mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-18 17:11:15 -03:00
Implement jump-till-matching-bracket input function
Part of #1842 It's like jump-to-matching-bracket, but jumps right before the bracket I will use it to mimic vi 'ab' and 'ib' text objects in the next commit Given complicated semantics of jump-till-matching-bracket, an alternative name could be 'jump-inside-matching-brackets'. But that would make names non-symmetrical. I'm not sure what is worse.
This commit is contained in:
committed by
Peter Ammon
parent
f8ebe346a9
commit
67e190876a
@@ -263,6 +263,13 @@ The following special input functions are available:
|
||||
otherwise, jump to the next occurence of *any right* bracket after the cursor.
|
||||
The following brackets are considered: ``([{}])``
|
||||
|
||||
``jump-till-matching-bracket``
|
||||
the same as ``jump-to-matching-bracket`` but offset cursor to the right for left bracket, and offset cursor to the left for right bracket.
|
||||
The offset is applied for both the position we jump from and position we jump to.
|
||||
In other words, the cursor will continuously jump inside the brackets but won't reach them by 1 character.
|
||||
The input function is useful to emulate ``ib`` vi text object.
|
||||
The following brackets are considered: ``([{}])``
|
||||
|
||||
``kill-bigword``
|
||||
move the next whitespace-delimited word to the killring
|
||||
|
||||
|
||||
Reference in New Issue
Block a user