on master help sign in
Rename surround to match_mode
e0fd08dGokul Soumya
helix-term/src/commands.rs+2−2
@@ -256,7 +256,7 @@ impl Command {
256 view_mode,
256 view_mode,
257 left_bracket_mode,
257 left_bracket_mode,
258 right_bracket_mode,
258 right_bracket_mode,
259− surround
259+ match_mode
260 );
260 );
261}
261}
262
262
@@ -3312,7 +3312,7 @@ fn right_bracket_mode(cx: &mut Context) {
3312 })
3312 })
3313}
3313}
3314
3314
3315−fn surround(cx: &mut Context) {
3315+fn match_mode(cx: &mut Context) {
3316 let count = cx.count;
3316 let count = cx.count;
3317 cx.on_next_key(move |cx, event| {
3317 cx.on_next_key(move |cx, event| {
3318 if let KeyEvent {
3318 if let KeyEvent {
helix-term/src/keymap.rs+1−1
@@ -200,7 +200,7 @@ impl Default for Keymaps {
200 // extend_to_whole_line, crop_to_whole_line
200 // extend_to_whole_line, crop_to_whole_line
201
201
202
202
203− key!('m') => Command::surround,
203+ key!('m') => Command::match_mode,
204 key!('[') => Command::left_bracket_mode,
204 key!('[') => Command::left_bracket_mode,
205 key!(']') => Command::right_bracket_mode,
205 key!(']') => Command::right_bracket_mode,
206
206