what is a shortcut command to select to enclosing bracket? #22208
-
i tried using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I don't quite understand the effect you're going for, but I've made some guesses Zed has already supported common TextObject. {
"context": "vim_operator == a || vim_operator == i || vim_operator == cs",
"bindings": {
"w": "vim::Word",
"shift-w": ["vim::Word", { "ignorePunctuation": true }],
"t": "vim::Tag",
"s": "vim::Sentence",
"p": "vim::Paragraph",
"'": "vim::Quotes",
"`": "vim::BackQuotes",
"\"": "vim::DoubleQuotes",
"|": "vim::VerticalBars",
"(": "vim::Parentheses",
")": "vim::Parentheses",
"b": "vim::Parentheses",
"[": "vim::SquareBrackets",
"]": "vim::SquareBrackets",
"r": "vim::SquareBrackets",
"{": "vim::CurlyBrackets",
"}": "vim::CurlyBrackets",
"shift-b": "vim::CurlyBrackets",
"<": "vim::AngleBrackets",
">": "vim::AngleBrackets",
"a": "vim::Argument",
"i": "vim::IndentObj",
"shift-i": ["vim::IndentObj", { "includeBelow": true }],
"f": "vim::Method",
"c": "vim::Class"
}
}, If you want to select a curly brackets, you can use Of course the lookup defaults to the current line only, you can turn on the multi-line setting "vim": {
"use_multiline_find": true,
}, So you can use |
Beta Was this translation helpful? Give feedback.
-
thanks to @helgemahrt, |
Beta Was this translation helpful? Give feedback.
thanks to @helgemahrt,
vim::Matching
is what i was looking for, since it works the same aseditor::MoveToEnclosingBracket
, except it also does not drop the selection in visual.i would expect to see something like
editor::SelectToEnclosingBracket
though :)