Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: use hop in visual mode #607

Merged
merged 1 commit into from
Apr 2, 2023
Merged

feat: use hop in visual mode #607

merged 1 commit into from
Apr 2, 2023

Conversation

fecet
Copy link
Contributor

@fecet fecet commented Apr 1, 2023

An important feature (to me) of hop.nvim is it support be used in visual mode:

Use it with commands like v, d, c, y to visually select/delete/change/yank up to your new cursor position.

But the current map only support normal mode.

Weird thing is simply changing it to

["nv|<leader>w"] = map_cu("HopWord"):with_noremap():with_desc("jump: Goto word")

does not work.

@fecet fecet changed the title use hop in visual mode feat: use hop in visual mode Apr 1, 2023
@ayamir
Copy link
Owner

ayamir commented Apr 2, 2023

-- <C-u> to eliminate the automatically inserted range in visual mode

@ayamir ayamir merged commit b23dc33 into ayamir:main Apr 2, 2023
@fecet fecet deleted the feat/visual-hop branch April 3, 2023 11:04
boomker pushed a commit to boomker/uvcode-nvim that referenced this pull request Apr 4, 2023
feat: use hop in visual mode
(cherry picked from commit b23dc33)
YanTree pushed a commit to YanTree/nvim that referenced this pull request Apr 9, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants