vscode-modaledit
vscode-modaledit copied to clipboard
`docScope: true` not selecting matching element
Hi, could use some help here. Just started setting up my key bindings so far it's been fantastic. But I think i've run into my first issue.
I'm trying to setup a basic vi [some bracket]
. At first the issue was that it was only expanding to same line (which is rare for me). But then learned that we can pass the docScope: true
flag to change this.
The problem now tho, is that it's now expanding to the correct matching closing element (just the first one it finds).
Am I missing something obvious here or is this just a limitation?
"a,i": {
"help": "Select around/inside _",
"w": [
"modaledit.cancelSelection",
{
"command": "modaledit.selectBetween",
"args": "{ from: '\\\\W', to: '\\\\W', regex: true, inclusive: __rkeys[1] == 'a' }"
}
],
" -/,:-@,[-`,{-~": [
"modaledit.cancelSelection",
{
"command": "modaledit.selectBetween",
"args": "{ from: __rkeys[0], to: __rkeys[0], inclusive: __rkeys[1] == 'a', docScope: true }"
}
],
"(,)": [
"modaledit.cancelSelection",
{
"command": "modaledit.selectBetween",
"args": "{ from: '(', to: ')', inclusive: __rkeys[1] == 'a', docScope: true }"
}
],
"{,}": [
"modaledit.cancelSelection",
{
"command": "modaledit.selectBetween",
"args": "{ from: '{', to: '}', inclusive: __rkeys[1] == 'a', docScope: true }"
}
],
"[,]": [
"modaledit.cancelSelection",
{
"command": "modaledit.selectBetween",
"args": "{ from: '[', to: ']', inclusive: __rkeys[1] == 'a', docScope: true }"
}
],
"<,>": [
"modaledit.cancelSelection",
{
"command": "modaledit.selectBetween",
"args": "{ from: '<', to: '>', inclusive: __rkeys[1] == 'a' docScope: true }"
}
]
}
},