Last active
April 9, 2023 22:50
-
-
Save minisoba/ec2aa3a381c45d42b7029641e4f36ac1 to your computer and use it in GitHub Desktop.
SublimeText user key bindings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
// incremental forward search doesn't work for C++ file (re-define here) | |
{ "keys": ["ctrl+s"], "command": "sbp_inc_search", "args": {"forward": true, "regex": false}}, | |
{ "keys": ["ctrl+s"], "command": "sbp_inc_search", "args": {"cmd": "next", "keep": false, "forward": true}, | |
"context": [ {"key": "i_search_active"}, {"key": "panel_has_focus"} ] | |
}, | |
// Emacs key bindings for move | |
{ "keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} }, | |
{ "keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} }, | |
{ "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "bol", "extend": false} }, | |
{ "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false} }, | |
{ "keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false} }, | |
{ "keys": ["ctrl+j"], "command": "insert", "args": {"characters": "\n"}}, | |
{ "keys": ["ctrl+n"], "command": "move", "args": {"by": "lines", "forward": true} }, | |
// alt+<: buffer top | |
{ "keys": ["escape", "<"], "command": "move_to", "args": {"to": "bof", "extend": false} }, | |
// alt+>: buffer bottom | |
{ "keys": ["escape", ">"], "command": "move_to", "args": {"to": "eof", "extend": false} }, | |
// Emacs key binding for delete | |
{ "keys": ["ctrl+d"], "command": "right_delete" }, | |
{ "keys": ["ctrl+right"], "command": "next_view" }, | |
{ "keys": ["ctrl+left"], "command": "prev_view" } | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment