Navigation in autocomplete with PageUp / PageDown
{ "keys": ["pageup"], "command": "move", "args": {"by": "lines", "forward": false},
"context":[{"key": "auto_complete_visible", "operator": "equal", "operand": true },]
},
{ "keys": ["pagedown"], "command": "move", "args": {"by": "lines", "forward": true},
"context":[{"key": "auto_complete_visible", "operator": "equal", "operand": true },]
},
If it doesn’t work, maybe these keys are still being used somewhere below, then you need to resolve these conflicts
A convenient way to configure hotkeys is to take an action and see what command was used in the console.
View → Show console, Enter this:
sublime.log_commands(True)
And documentation
Context https://www.sublimetext.com/docs/key_bindings.html#context-key
Examples
Show/Hide panel Find by pressing single key
{"keys": ["f1"], "command": "show_panel", "args": {"panel": "find"}},
{"keys": ["f1"], "command": "hide_panel", "args": {"panel": "find"}, "context": [ {"key": "panel", "operand": "find" } ] },
Useful contexts: Last command, Settings
{"keys": ["ctrl+space"], "command": "hide_auto_complete", "context":
[
{"key": "auto_complete_visible", "operator": "equal", "operand": true },
{"key": "last_command", "operator": "equal", "operand": "commit_completion" },
{"key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},