You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would indeed love to have ci)(change in parentheses) and also % (jump between matching braces/parens/brackets). Or ... some hints on where to start for adding these.
Issue #32
Behaves the same way as in Vim. % to go to the next match of the first
thing found on the line, or the previous thing found on the line, at any
further point into the document. No support for a count.
Unit test added to confirm basic behavior.
Added a FindFirstCharOf command on the buffer, which returns the first
found char in a list of characters, either forward or backwards
(inclusive).
Can now change a region demarked by the char after ci. Should work for
just about anything; though probably best not to use it for things other
than brackets and quotes.
Known minor bug; an empty string ci" will not work depending on which
side you are in (i.e. you won't be dropped into insert mode).
The code tries to maintain indent, with reasonable success for multiple
line curly brackets, etc. i.e for the following command in the inner
brackets:
{
{ dsdf
sdf <ci}>
}
}
Results in:
{
{
|
}
}
Even though Zep doesn't really support auto intent, this is convenient
for now.
ci(, ci), ci{, ci}, ci[, ci], ci", ci' are of course very useful...
No unit tests yet.
In order of preference/usefulness/ease of implementation:
The text was updated successfully, but these errors were encountered: