Is it possible in someway to send selected text to show_overlay command in a keybind.
What i want, i have a code file with a include file in, ie "include “filepath/filename.ext”, that i want to open.
Now i just press ctrl+p, type in filename, or copy+paste, but would like to make another keybind, where i can select filename, press ctrl+o, and it does like if i had copied filename, pressed ctrl+p, and pasted it in.
That is something like this:
{ "keys": "ctrl+o"], "command": "show_overlay", "args": {"overlay": "goto", "text": "${SELECTED}"} },