init/igroup/gshortcut/snote/n
--search,-s--search-only,-S--config-dir <PATH>,-C <PATH>--json,-j
Use wkey --help or wkey <command> --help for generated help with examples.
Selector behavior:
wkey --searchopens the selector first, then launches the main TUI with the chosen item preselectedwkey --search-onlyruns only the selector, prints the selected item's description, and exits- If
pipeout.commandis configured,wkey --search-onlyalso writes that selected description to the pipeout command
List groups:
wkey group list
wkey g lShow one group:
wkey group show shell
wkey g s shellCreate a group:
wkey group create shell
wkey g c shellRename a group:
wkey group rename shell terminal
wkey g r shell terminalDelete an empty group:
wkey group delete terminal
wkey g d terminalForce-delete a non-empty group:
wkey group force-delete terminal
wkey g D terminalImportant behavior:
group deleteonly removes empty groups- If the group still contains shortcuts or notes,
wkeytells you to usegroup force-deleteorg D group force-deleteremoves the whole group file even when it is non-empty
Create:
wkey shortcut create --group shell copy --key Ctrl+C --desc "Copy selection"
wkey s c -g shell copy -k Ctrl+C -d "Copy selection"Show:
wkey shortcut show --group shell copy
wkey s s -g shell copyList:
wkey shortcut list
wkey shortcut list --all
wkey shortcut list --group shell
wkey s l
wkey s l -a
wkey s l -g shellUpdate:
wkey shortcut update --group shell copy --key Cmd+C
wkey shortcut update --group shell copy --desc "Copy in macOS apps"
wkey shortcut update --group shell copy --new-id duplicate
wkey s u -g shell copy -k Cmd+CDelete:
wkey shortcut delete --group shell copy
wkey s d -g shell copyMove:
wkey shortcut move --from-group shell --to-group editor copy
wkey s m -f shell -t editor copyImportant behavior:
shortcut createauto-creates the target group file if neededshortcut moveauto-creates the destination group if neededshortcut listdefaults to all groups--allis an explicit alias for the default all-groups behavior--groupand--allcannot be used together
Create:
wkey note create --group shell prompt-tip --desc "Use !! to repeat the previous command"
wkey n c -g shell prompt-tip -d "Use !! to repeat the previous command"Show:
wkey note show --group shell prompt-tip
wkey n s -g shell prompt-tipList:
wkey note list
wkey note list --all
wkey note list --group shell
wkey n l
wkey n l -a
wkey n l -g shellUpdate:
wkey note update --group shell prompt-tip --desc "Use Ctrl+R for history search"
wkey note update --group shell prompt-tip --new-id history-tip
wkey n u -g shell prompt-tip -d "Use Ctrl+R for history search"Delete:
wkey note delete --group shell prompt-tip
wkey n d -g shell prompt-tipMove:
wkey note move --from-group shell --to-group editor prompt-tip
wkey n m -f shell -t editor prompt-tipImportant behavior:
note createauto-creates the target group file if needednote moveauto-creates the destination group if needednote listdefaults to all groups--allis an explicit alias for the default all-groups behavior--groupand--allcannot be used together
Use --json or -j with group, shortcut, and note commands:
wkey --json group list
wkey -j shortcut list --all
wkey -j note show --group shell prompt-tipJSON is supported for non-interactive data commands only. It is not supported for:
wkeyTUI launchwkey --searchwkey --search-onlywkey init
group list --json
[
{
"name": "shell",
"shortcut_count": 3,
"note_count": 2
}
]group show --json
{
"name": "shell",
"items": [
{
"kind": "shortcut",
"group": "shell",
"id": "copy",
"key": "Ctrl+C",
"desc": "Copy selection"
},
{
"kind": "note",
"group": "shell",
"id": "prompt-tip",
"desc": "Use !! to repeat the previous command"
}
]
}shortcut payload:
{
"kind": "shortcut",
"group": "shell",
"id": "copy",
"key": "Ctrl+C",
"desc": "Copy selection"
}note payload:
{
"kind": "note",
"group": "shell",
"id": "prompt-tip",
"desc": "Use !! to repeat the previous command"
}wkey validates common mistakes and tries to make recovery obvious.
Examples:
- Missing CLI arguments print the original Clap error, then show contextual examples
- Invalid item ids are rejected if they contain whitespace or dots
- Group names cannot contain path separators
- A normal
group deleteon a non-empty group tells you to usewkey group force-delete <group>orwkey g D <group>