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

Autojump in Visual mode #27

Open
dmxk062 opened this issue May 31, 2024 · 2 comments
Open

Autojump in Visual mode #27

dmxk062 opened this issue May 31, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@dmxk062
Copy link

dmxk062 commented May 31, 2024

First of all, awesome plugin. This is exactly what i never knew i needed until i had it.
However i noticed that this seems to be limited to operator-pending mode. Is there any specific reason for that?
I dont use visual mode very often but it would be nice to just have the consistency. It would also be useful with treesitter textobjects so i could do virf instead of s[leap]vif whenever i want to select a function body.

@ggandor
Copy link
Owner

ggandor commented May 31, 2024

This is a bug - technically it still works, e.g. virw<leap>y correctly yanks the given word, but the selection is not updated after an autojump, while the plugin is still waiting for input, only after selecting a label, doing an operation, or exiting Spooky in some other way. (I guess it's not possible to "fix" this at all, autojump should not be allowed then, only if the target is unique.) Thanks for drawing my attention to this!

@ggandor ggandor changed the title Make remote motions available in visual mode? Visual selection is not updated after autojump May 31, 2024
@ggandor ggandor added the bug Something isn't working label May 31, 2024
@ggandor ggandor changed the title Visual selection is not updated after autojump Autojump in Visual mode May 31, 2024
@dmxk062 dmxk062 closed this as completed Jun 12, 2024
@dmxk062
Copy link
Author

dmxk062 commented Jun 12, 2024

Thanks a lot, I'll just map r to m in visual mode then.

@ggandor ggandor reopened this Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants