Equivalent of a Neovim macro to select text based on specific motions in VS Code #7763
Unanswered
pauljacobson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there 👋
I have macros in Neovim that enable me to select sections of text based on a set of motions that my macros execute, and I'd like to be able to do something similar in VS Code. I imagine this is possible in some way, and I'm hoping someone can point me in the right direction.
An example
By way of an example, I have Markdown notes that include something like this:
My macro runs this set of motions to select everything from "Hello" to just before "#Internal note":
I then copy that to my clipboard history to work with in another application.
What I would like to do
I would like to be able to run a similar operation in VS Code, presumably using the Vim extension (or something similar) so I can run this operation using a keyboard trigger instead of using my mouse to click and drag. The macro I have in Neovim is so much more efficient than using the mouse, and I'd like to be able to do the same thing in VS Code.
Is this sort of thing possible? If so, what do you suggest as a way to reproduce something like this in VS Code?
Beta Was this translation helpful? Give feedback.
All reactions