mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Rename surround to match_mode
This commit is contained in:
parent
753ed4cbc5
commit
e0fd08d6df
@ -256,7 +256,7 @@ pub fn name(&self) -> &'static str {
|
||||
view_mode,
|
||||
left_bracket_mode,
|
||||
right_bracket_mode,
|
||||
surround
|
||||
match_mode
|
||||
);
|
||||
}
|
||||
|
||||
@ -3312,7 +3312,7 @@ fn right_bracket_mode(cx: &mut Context) {
|
||||
})
|
||||
}
|
||||
|
||||
fn surround(cx: &mut Context) {
|
||||
fn match_mode(cx: &mut Context) {
|
||||
let count = cx.count;
|
||||
cx.on_next_key(move |cx, event| {
|
||||
if let KeyEvent {
|
||||
|
@ -200,7 +200,7 @@ fn default() -> Self {
|
||||
// extend_to_whole_line, crop_to_whole_line
|
||||
|
||||
|
||||
key!('m') => Command::surround,
|
||||
key!('m') => Command::match_mode,
|
||||
key!('[') => Command::left_bracket_mode,
|
||||
key!(']') => Command::right_bracket_mode,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user