mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
vim: Add :noh[lsearch] (#20056)
Closes: #18590 Release Notes: - vim: Add :noh[lsearch]
This commit is contained in:
parent
ecb874db62
commit
f757e5a6c3
2 changed files with 4 additions and 0 deletions
|
@ -546,6 +546,9 @@ impl BufferSearchBar {
|
|||
registrar.register_handler(ForDeployed(|this, _: &editor::actions::Cancel, cx| {
|
||||
this.dismiss(&Dismiss, cx);
|
||||
}));
|
||||
registrar.register_handler(ForDeployed(|this, _: &Dismiss, cx| {
|
||||
this.dismiss(&Dismiss, cx);
|
||||
}));
|
||||
|
||||
// register deploy buffer search for both search bar states, since we want to focus into the search bar
|
||||
// when the deploy action is triggered in the buffer.
|
||||
|
|
|
@ -682,6 +682,7 @@ fn generate_commands(_: &AppContext) -> Vec<VimCommand> {
|
|||
VimCommand::str(("Ch", "at"), "chat_panel::ToggleFocus"),
|
||||
VimCommand::str(("No", "tifications"), "notification_panel::ToggleFocus"),
|
||||
VimCommand::str(("A", "I"), "assistant::ToggleFocus"),
|
||||
VimCommand::new(("noh", "lsearch"), search::buffer_search::Dismiss),
|
||||
VimCommand::new(("$", ""), EndOfDocument),
|
||||
VimCommand::new(("%", ""), EndOfDocument),
|
||||
VimCommand::new(("0", ""), StartOfDocument),
|
||||
|
|
Loading…
Reference in a new issue