The SuperMemo Blog

Sharing and learning knowledge with SuperMemo

Moving items to Categories fast July 18, 2009

Filed under: AutoHotKey, Hacks, How to, tips — gersapa @ 06:47
Tags: , ,

Many project, ideas and todo’s clash constantly as it happens to everybody else, so a nice scheme of what I’m about to post is almost impossible. Previously I talked about the subject on moving trough categories in painless matter. Today, I’ve decided to post this script to move items to different categories by using the keyboard. I’ve used several macro programs before, but lately I’m enjoying mostly Autohotkey.

Before going to the scritp I would recommended modifying the names of you categories by using a  label. Use only two letters (not numbers) for identifying your categories (if you have even less then maybe even one character would suffice).  The two letter combination is for accessing your categories list faster, and numbers will be used for the direct shortcut for moving items trough categories. Only exception is label for “desktop” category (I want to have it listed at top always). If I use numbers for the label of the categories my memory gets mixed up.

Category name examples:

lm. Learning and Memory (a)
mb. Money and Bussiness (a)
ne. Neuroscience (b)
me. Medicine (b)
rp. Residency pending (a)
01. Desktop (exception) almost everything goes into my collection trough the desktop
ta. Trash (b) – when in doubt of deleting an item, it goes to this category (recycler should be on SuperMemo).

Personal rules for label prefix.
(a) Categories with phrase names get first letters from first two representative words
(b) Categories with single word names get the first letter plus the first vocal

By using a combination of scripts you have access to 9 favorite categories (numbers 1 – 9), 0 is used as desktop shortcut. In order to move items to non-favorite categories a  dot shortcut is used, plus the first label for the category (ea. the two letter combination).

Script examples:

;*******************************************
;MOVING TROUGH CATEGORIES - SUPERMEMO
;*******************************************
;.[#!.] Opens category dropdown menu
;*******************************************
#!.::
#!NumpadDot::
Sleep, 100
Send, {CTRLDOWN}{SHIFTDOWN}p{SHIFTUP}{CTRLUP}
Send, {ALTDOWN}c{ALTUP}{DEL}
return
;.[#!0] Moves item to category with name starting with "01." (desktop)
;*******************************************
#!0::
#!Numpad0::
Send {CTRLDOWN}{SHIFTDOWN}p{SHIFTUP}{CTRLUP}{ALTDOWN}c{ALTUP}01.{ENTER}{ENTER}
return
;.[#!9] Moves item to category with name starting with "rp." (residency pending)
;*******************************************
#!9::
#!Numpad9::
Send {CTRLDOWN}{SHIFTDOWN}p{SHIFTUP}{CTRLUP}{ALTDOWN}c{ALTUP}rp.{ENTER}{ENTER}
return
;Moves item to category with name starting with "ta." (trash)
;*******************************************
#+Del::
Send {CTRLDOWN}{SHIFTDOWN}p{SHIFTUP}{CTRLUP}{ALTDOWN}c{ALTUP}ta.{ENTER}{ENTER}
return
 

A really simple AutoHotkey scripter tutorial July 15, 2009

Filed under: AutoHotKey, How to, tips — gersapa @ 08:41

I always look for short good answers, concerning Autohotkey tutorial or any great app tool sometimes creators are not the best when writing tutorials about their products (no, this is not necessary Dr Wozniak). This probably comes from what I call “teacher’s paradigm” (teachers usually can’t put themself in student’s shoes). The easiest tutorial in this subject and that shows great aplicabiliy that I used is on Swich on the Code: Creating your first AutoHotkey Script.

Previous post used some formating inside the script this is for searching purposes with in the script, I would definitively recomend it. You need to keep track of the shortcuts assigned as well a way to search them fast (I edit my text notes with  Notepad ++ hence incremental searching makes it very eassy).

 

Superscript and Subscript keyboard shortcut with Autohotkey script July 14, 2009

Filed under: AutoHotKey, Hacks, How to, tips — gersapa @ 17:08
Tags: , ,

Currently there are many scripts to be posted but as some of you would probably benefit here I start posting some of my Autohotkey scripts for supermemo.

If you don’t currently use Autohotkey I’lll post some explanation of how to load it. But for starters is pretty easy, just copy the following text in a text file with the extension ahk after installing autohotkey and the keyboard shortcuts ctrl+win+p= superscript, and ctrl+win+b=subscript will be available.

;****************************
;.[#^p] #SuperScript: Change current selectec text to superscript
;*****************************
#^p::
Send, ^c
clipboard = <SUP>%clipboard%</SUP>
Send, {AppsKey}xp
return

;****************************
;.[#^p] #SubScript: Change current selectec text to subscript
;*****************************
#^b::
Send, ^c
clipboard = <SUB>%clipboard%</SUB>
Send, {AppsKey}xp
return

Thanks for the idea yahoo group. I’m planning on using this sort of scripts for highligthing in different colours (some thing I think is missing in SuperMemo).