mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-04 14:39:24 +00:00
Vim :% and :0 (#6739)
Fixes #4303 Release Notes: - Added :$ and :0 to vim command ([#4303](https://github.com/zed-industries/zed/issues/4303)).
This commit is contained in:
commit
204af431e0
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,7 @@ use serde_derive::Deserialize;
|
|||
use workspace::{SaveIntent, Workspace};
|
||||
|
||||
use crate::{
|
||||
motion::{EndOfDocument, Motion},
|
||||
motion::{EndOfDocument, Motion, StartOfDocument},
|
||||
normal::{
|
||||
move_cursor,
|
||||
search::{FindCommand, ReplaceCommand},
|
||||
|
@ -235,6 +235,8 @@ pub fn command_interceptor(mut query: &str, _: &AppContext) -> Option<CommandInt
|
|||
|
||||
// goto (other ranges handled under _ => )
|
||||
"$" => ("$", EndOfDocument.boxed_clone()),
|
||||
"%" => ("%", EndOfDocument.boxed_clone()),
|
||||
"0" => ("0", StartOfDocument.boxed_clone()),
|
||||
|
||||
_ => {
|
||||
if query.starts_with("/") || query.starts_with("?") {
|
||||
|
|
Loading…
Reference in a new issue