— because I can't remember them
Shortcuts will be filtered based on the current active window.
Removing context will list all shortcuts.
- Follow
scoop-garyng
to setupscoop
- Install
Wims
withscoop install Wims
A yaml
file for configuring the app's behavior.
directory: shortcuts
activation: LWin + Escape
autoHide: true
topmost: true
directory
: the directory that contains the shortcuts file.activation
(optional): the shortcut key to activate the main window (see Keys enum for available keys)- Default value:
LWin + Escape
- Default value:
autoHide
(optional): automatically hides the window when focus is lost- Default value:
false
- Default value:
topmost
(optional): keep the window always on top- Default value:
false
- Default value:
Order of configuration precedence:
wims.yml
at home directorywims.yml
at the same directory as the app's exe
The last loaded config key wins.
A context
is used to determine whether a shortcut is active based on the current active window.
For example, here is a context
that matches a Visual Studio window:
contexts:
"vs":
icon: vs.png
match:
exe: devenv.exe
"vs"
: the name of the context, which can be used by ashortcut
.icon
: the path to an image.svg
is also supported.match
(optional): the conditions for determining whether the context is active.exe
: match the process name of the current active window. Normally usingexe
is sufficient enough.class
: match the class name of the current active window.- Regex can be used in both
exe
andclass
, just wrap them inside//
, eg:/*.exe/
Here is another context
that matches a Visual Studio Code window:
contexts:
"vscode":
icon: vscode.svg
match:
exe: code.exe
A shortcut
defines a shortcut, optionally associated with a context
.
For example, below are 2 shortcuts (the first is global, the second is associated with the context vs
):
shortcuts:
"Toggle active window always on top":
sequence:
- Alt + F1
"Navigate backward":
context: vs
sequence:
- F15
- LeftArrow
"Navigate backward"
: the name of the shortcut.- This is used for matching the search query when searching with text.
context
(optional): the name of thecontext
.- If this is left empty, the shortcut is considered as "global", and will be active only when there is no active context.
sequence
: a sequence of chords that are pressed subsequently, eg:Ctrl + K, Ctrl + F
- A chord is a sequence of keys that are pressed at the same time, eg:
Ctrl + Shift + P
- This is used for matching the search query when searching with keys.
- A chord is a sequence of keys that are pressed at the same time, eg:
git clone --recurse-submodules
as this repo uses submodules