File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,12 @@ def loadini(struct, configfile):
107
107
'exit' : '' ,
108
108
'external_editor' : 'F7' ,
109
109
'help' : 'F1' ,
110
+ 'incremental_search' : 'M-s' ,
110
111
'last_output' : 'F9' ,
111
112
'left' : 'C-b' ,
112
113
'pastebin' : 'F8' ,
113
114
'reimport' : 'F6' ,
115
+ 'reverse_incremental_search' : 'M-r' ,
114
116
'right' : 'C-f' ,
115
117
'save' : 'C-s' ,
116
118
'search' : 'C-o' ,
@@ -185,6 +187,9 @@ def get_key_no_doublebind(command):
185
187
struct .toggle_file_watch_key = get_key_no_doublebind ('toggle_file_watch' )
186
188
struct .undo_key = get_key_no_doublebind ('undo' )
187
189
struct .reimport_key = get_key_no_doublebind ('reimport' )
190
+ struct .reverse_incremental_search_key = get_key_no_doublebind (
191
+ 'reverse_incremental_search' )
192
+ struct .incremental_search_key = get_key_no_doublebind ('incremental_search' )
188
193
struct .up_one_line_key = get_key_no_doublebind ('up_one_line' )
189
194
struct .down_one_line_key = get_key_no_doublebind ('down_one_line' )
190
195
struct .cut_to_buffer_key = get_key_no_doublebind ('cut_to_buffer' )
Original file line number Diff line number Diff line change @@ -611,9 +611,9 @@ def process_key_event(self, e):
611
611
self .on_control_d ()
612
612
elif e in ("<Esc+.>" ,):
613
613
self .get_last_word ()
614
- elif e in ( "<Esc+r>" ,) :
614
+ elif e in key_dispatch [ self . config . reverse_incremental_search_key ] :
615
615
self .incremental_search (reverse = True )
616
- elif e in ( "<Esc+s>" ,) :
616
+ elif e in key_dispatch [ self . config . incremental_search_key ] :
617
617
self .incremental_search ()
618
618
elif (e in ("<BACKSPACE>" ,) + key_dispatch [self .config .backspace_key ]
619
619
and self .incremental_search_mode ):
Original file line number Diff line number Diff line change 77
77
# exit = C-d
78
78
# external_editor = F7
79
79
# edit_config = F3
80
+ # reverse_incremental_search = M-r
81
+ # incremental_search = M-s
80
82
81
83
[curtsies]
82
84
You can’t perform that action at this time.
0 commit comments