Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi selection search #11

Closed

Conversation

haberdashPI
Copy link
Contributor

Hi There!

First of all, thanks for the great extension! I love it, and use it daily. The clarity of your tutorial and documentation made this a joy to extend for my own purposes.

Here is a change that makes it possible to use multiple cursors with the search command. The idea is that it allows you to emulate commands like f and d in vim for each cursor. I am making use of it in my daily work now.

I also have been working on an ability to record "macros"; right now it only records normal mode keys, but seems like it should be possible to handle insert mode recording as well (though I don't know if it would be perfect). I will create a separate pull request for that once I am happy with the functionality.

This adds the ability to run an incremental search via the
`modaledit.search` command with multiple cursors. This is particularly
useful for emulating vim's `f` and `d` commands or `vim-sneak` with
multiple cursors. Cursor motion to specific characters for each cursor
is quite useful.
@haberdashPI
Copy link
Contributor Author

Note: a vscode extension of mine regularized some whitespace for me, I can rebase that commit out, if you'd prefer to keep the whitespace as is.

@haberdashPI
Copy link
Contributor Author

This would close #5

@haberdashPI
Copy link
Contributor Author

egad, some rebasing seems to have messed up this commit, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant