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

Visual Mode Search #5

Open
bmdahmen opened this issue Aug 16, 2022 · 1 comment
Open

Visual Mode Search #5

bmdahmen opened this issue Aug 16, 2022 · 1 comment

Comments

@bmdahmen
Copy link

Firstly, this plugin is awesome, thanks a bunch for putting this out here.

It'd be awesome if the visual mode selection searching worked as well. So with the current setup when I enter visual mode in vi-mode zsh and try to search, I expect when it finds a pattern to select everything from where the cursor was to where the pattern was found. Instead visual mode is effectively exited prior to instantiating the search, and I end up with nothing selected after the search.

Is there an easy way around this?

@qleveque
Copy link

qleveque commented Nov 4, 2023

I also found myself facing this problem so I decided to dig further.
In the end you just have to call zle set-mark-command after the read-from-minibuffer call in case you are in visual mode. Hope this still helps

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

No branches or pull requests

2 participants