AutoHotKey scripts for SuperMemo: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 33: | Line 33: | ||
send, {Enter} | send, {Enter} | ||
} | } | ||
</pre> | |||
==Highlight selected text {{kbd|ctrl + H}}== | |||
[[SuperMemo]] does not offer a direct keyboard shortcut for showing the references. This is useful when you cannot see the element's references as you would need to scroll down. | |||
Binding: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Alt</kbd> + <kbd>H</kbd> | |||
; peek references | |||
^+!r:: | |||
{ | |||
send, ^{Enter} | |||
send, r | |||
send, {Down} | |||
send, {Enter} | |||
} | |||
return | |||
</pre> | </pre> |
Revision as of 08:59, 25 July 2021
Here I will be compiling useful AutoHotKey scripts for SuperMemo along with my suggested key binding.
Base Code
You may want to bind all shortcuts specifically to run only on SuperMemo, so all others apps are unaffected. The following code is the base where you can add any other shortcut binding you want. In that manner, you will have all custom shortcuts fro SuperMemo in one single file.
; main script for restricting execution of custom shortcut bindings to SuperMemo. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. CoordMode, Mouse, Screen #SingleInstance, force SetTitleMatchMode,2 GroupAdd, SuperMemo, ahk_class TBrowser ; Browser GroupAdd, SuperMemo, ahk_class TContents ; Content Window (Knowledge Tree) GroupAdd, SuperMemo, ahk_class TElWind ; Element window GroupAdd, SuperMemo, ahk_class TElDATAWind ; Element Data window GroupAdd, SuperMemo, ahk_class TSMMain ; Toolbar
Highlight selected text ctrl + H
SuperMemo does not offer a direct keyboard shortcut for highlighting. This script automates the process of highlighting via commander. Binding: Ctrl + H
; highlight selected text ^H:: { send, ^{Enter} send, highlighter font send, {Enter} }
Highlight selected text ctrl + H
SuperMemo does not offer a direct keyboard shortcut for showing the references. This is useful when you cannot see the element's references as you would need to scroll down. Binding: Ctrl + Shift + Alt + H
- peek references
^+!r:: { send, ^{Enter} send, r send, {Down} send, {Enter} } return