spmenu-wiki/pages/Configurable keybindings.md

219 lines
2.5 KiB
Markdown
Raw Normal View History

2023-05-09 19:37:40 +02:00
Configurable keybindings
========================
spmenu has since version 1.0 supported configuring keybinds and mouse binds through a config file. The default config file *should* have the default keybinds already.
# List of valid modes
- -1
2023-05-21 16:38:43 +02:00
- Any mode
2023-05-09 19:37:40 +02:00
- 0
2023-05-21 16:38:43 +02:00
- Normal mode
2023-05-09 19:37:40 +02:00
- 1
2023-05-21 16:38:43 +02:00
- Insert mode
2023-05-09 19:37:40 +02:00
# List of valid clicks
2023-05-21 16:38:43 +02:00
- ClickWindow
- Clicking on the spmenu window
- ClickPrompt
- Clicking on the prompt
- ClickInput
- Clicking on the input
- ClickLArrow
- Clicking on the left arrow
- ClickRArrow
- Clicking on the right arrow
- ClickItem
- Clicking on the item area
- ClickSelItem
- Clicking on an item, function here doesn't matter, it will always be selected
- ClickNumber
- Clicking on the match count indicator
- ClickCaps
- Clicking on the caps lock indicator
- ClickMode
- Clicking on the mode indicator
2023-05-09 19:37:40 +02:00
# List of valid modifiers
- Ctrl
- Shift
- Super
- Alt
- AltGr
- ShiftGr
- None
These can also be combined by using '+' as a separator (ie. Ctrl+Shift)
# List of valid buttons
- Left Click
- Middle Click
- Right Click
- Scroll Up
- Scroll Down
# List of valid functions
**NOTE: This applies to both mouse and keybinds.**
- moveup
- movedown
- moveleft
- moveright
- moveend
- movestart
2023-05-22 16:37:30 +02:00
- movenext
- moveprev
- moveitem
2023-05-09 19:37:40 +02:00
- paste
- pastesel
- restoresel
- clear
- clearins
- viewhist
- moveword
- moveword
- deleteword
- movecursor
- movecursor
- navhistory
- navhistory
- backspace
- selectitem
- quit
- complete
- setimgsize
- setimgsize
- toggleimg
2023-05-21 16:38:43 +02:00
- togglefullimg
2023-05-09 19:37:40 +02:00
- defaultimg
- rotateimg
- flipimg
- setimgpos
- setimgpos
- setimggaps
- setimggaps
- setlines
- setlines
- setcolumns
- togglehighlight
- setprofile
- switchmode
# List of valid arguments
**NOTE: This applies to both mouse and keybinds.**
- 0
- 1 through 100
- +1 through +100
- -1 through -100
# List of valid modes
- -1
2023-05-21 16:38:43 +02:00
- Any mode
2023-05-09 19:37:40 +02:00
- 0
2023-05-21 16:38:43 +02:00
- Normal mode
2023-05-09 19:37:40 +02:00
- 1
2023-05-21 16:38:43 +02:00
- Insert mode
2023-05-09 19:37:40 +02:00
# List of valid keys
- None
- Space
- Enter
- Tab
- a
- b
- c
- d
- e
- f
- g
- h
- i
- j
- k
- l
- m
- n
- o
- p
- q
- r
- s
- t
- u
- v
- w
- x
- y
- z
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- !
- "
- #
- $
- %
- &
- '
- (
- )
- *
- +
- ,
- -
- .
- /
- :
- ;
- <
- =
- >
- ?
- @
- [
- \\
- ]
- _
- grave
- {
- bar
- }
- ~
- F1
- F2
- F3
- F4
- F5
- F6
- F7
- F8
- F9
- F10
- F11
- F12
- PageUp
- PageDown
- Home
- End
- Delete
- PrintScr
- Esc
- Pause
- ScrollLock
- Backspace
- Up
- Down
- Left
- Right
- Next
- Prior