forked from misfo/Shell-Turtlestein
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Default.sublime-keymap
43 lines (41 loc) · 1.69 KB
/
Default.sublime-keymap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[
// GNU readline-like keybindings for the input widget
{"keys": ["up"], "command": "readline_history_change",
"args": {"movement": "move", "movement_args": {"by": "lines", "forward": false}},
"context": [{"key": "setting.readline_input_widget"}]
},
{"keys": ["down"], "command": "readline_history_change",
"args": {"movement": "move", "movement_args": {"by": "lines", "forward": true}},
"context": [{"key": "setting.readline_input_widget"}]
},
{"keys": ["ctrl+a"], "command": "move_to",
"args": {"to": "bol"},
"context": [{"key": "setting.readline_input_widget"}]
},
{"keys": ["ctrl+e"], "command": "move_to",
"args": {"to": "eol"},
"context": [{"key": "setting.readline_input_widget"}]
},
{"keys": ["ctrl+u"], "command": "run_macro_file",
"args": {"file": "Packages/Default/Delete to Hard BOL.sublime-macro"},
"context": [{"key": "setting.readline_input_widget"}]
},
// The remaining keybindings are less to add functionality and more to
// prevent strange behavior that results from the input widget being a
// multi-line view.
{"keys": ["shift+up"], "command": "readline_history_change",
"args": {"movement": "move", "movement_args": {"by": "lines", "forward": false}},
"context": [{"key": "setting.readline_input_widget"}]
},
{"keys": ["shift+down"], "command": "readline_history_change",
"args": {"movement": "move", "movement_args": {"by": "lines", "forward": true}},
"context": [{"key": "setting.readline_input_widget"}]
},
{"keys": ["backspace"], "command": "left_delete_on_line",
"context": [
{ "key": "setting.readline_input_widget" },
{ "key": "num_selections", "operand": 1 },
{ "key": "selection_empty", "operator": "equal", "operand": true }
]
}
]