kevins8
09/03/2020, 3:40 PMTomD
09/03/2020, 5:29 PMkevins8
09/03/2020, 6:35 PMkevins8
09/03/2020, 6:36 PMTomD
09/03/2020, 8:18 PMp0lyg0n
09/03/2020, 9:19 PMkevins8
09/03/2020, 9:22 PMkevins8
09/03/2020, 9:24 PMp0lyg0n
09/03/2020, 9:26 PMp0lyg0n
09/03/2020, 9:26 PMquery
part of that that grabs the selected text ?p0lyg0n
09/03/2020, 9:27 PMjson
{
"key": "ctrl+k ctrl+f",
"command": "search.action.openNewEditor",
"args": {
"query": "${needSomethingThatGrabsSelectedText}", // <----
"triggerSearch": false,
"focusResults": false,
"includes": "${fileBasenameNoExtension}",
},
"when": "editorTextFocus"
},
p0lyg0n
09/03/2020, 9:29 PMp0lyg0n
09/03/2020, 9:29 PMjson
{
"key": "ctrl+k ctrl+f",
"command": "search.action.openNewEditor",
"args": {
"query": "${selectedText}",
"triggerSearch": false,
"focusResults": false,
"includes": "${fileBasenameNoExtension}.*",
},
"when": "editorTextFocus"
}
p0lyg0n
09/03/2020, 9:30 PM.*
in the includes
part, so now I just hit enter and I get all results matching the tag I had selected from the same hierarchyp0lyg0n
09/03/2020, 9:30 PMkevins8
09/03/2020, 9:35 PMp0lyg0n
09/03/2020, 9:36 PMkevins8
09/03/2020, 9:36 PMp0lyg0n
09/03/2020, 9:37 PMtriggerSearch
and focusResults
to true, save me one extra keystroke 😄kevins8
09/03/2020, 9:41 PMp0lyg0n
09/03/2020, 9:42 PMkevins8
09/03/2020, 9:43 PMp0lyg0n
09/03/2020, 9:45 PMkevins8
09/03/2020, 9:45 PMspan
or div
which would be a painp0lyg0n
09/03/2020, 9:45 PMp0lyg0n
09/03/2020, 9:46 PMkevins8
09/03/2020, 9:46 PMkevins8
09/03/2020, 9:47 PM