Add :h[elp] vim command (#30179)
@jyn514 mentioned that this would be nice to have while trying out zed, and it seemed simple enough so I added it. Release Notes: - Added `OpenDocs` action to open Zed's docs in a browser, aliased to `:h[elp]` in vim.
This commit is contained in:
parent
37010aac6b
commit
d6c7cdd60f
3 changed files with 6 additions and 3 deletions
|
@ -28,7 +28,7 @@ use task::{HideStrategy, RevealStrategy, SpawnInTerminal, TaskId};
|
|||
use ui::ActiveTheme;
|
||||
use util::ResultExt;
|
||||
use workspace::{SaveIntent, notifications::NotifyResultExt};
|
||||
use zed_actions::RevealTarget;
|
||||
use zed_actions::{OpenDocs, RevealTarget};
|
||||
|
||||
use crate::{
|
||||
ToggleMarksView, ToggleRegistersView, Vim,
|
||||
|
@ -888,6 +888,7 @@ fn generate_commands(_: &App) -> Vec<VimCommand> {
|
|||
VimCommand::new(("cpp", "link"), editor::actions::CopyPermalinkToLine).range(act_on_range),
|
||||
VimCommand::str(("opt", "ions"), "zed::OpenDefaultSettings"),
|
||||
VimCommand::str(("map", ""), "vim::OpenDefaultKeymap"),
|
||||
VimCommand::new(("h", "elp"), OpenDocs),
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue