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

Jump to declaration #85

Open
ris58h opened this issue Oct 11, 2022 · 5 comments
Open

Jump to declaration #85

ris58h opened this issue Oct 11, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@ris58h
Copy link

ris58h commented Oct 11, 2022

I would like to jump to declaration using IdeaVim-EasyMotion.
I have nmap f <Plug>(easymotion-bd-w) in my .ideavimrc but I couldn't find the way to specify a JumpMode. Is it possible?

@AlexPl292
Copy link
Owner

Hi, this feature is not supported in easyMotion. Does it exist in the vim-easymotion?

@ris58h
Copy link
Author

ris58h commented Oct 12, 2022

I'm not sure because I don't use Vim, but it seems like it's not supported in vim-easymotion.
I just want to emulate Vimium behavior where f is for follow a link in a browser, but in case of an IDE it would be go to declaration.

There is gd to go to declaration but I would like to do it automatically.
Is it possible in IdeaVim-EasyMotion to do easymotion-bd-w and gd after easymotion-bd-w is successfully done?

@AlexPl292
Copy link
Owner

It's not supported in IdeaVim-EasyMotion yet, but this is a nice feature request. Also, I know that AceJump already supports this behavior.

@AlexPl292 AlexPl292 added the enhancement New feature or request label Oct 17, 2022
@ris58h
Copy link
Author

ris58h commented Oct 17, 2022

Actually, I don't see a good reason to add such feature (jump to declaration) if it's not supported in easymotion and I don't want to push you to do so.
But as I can see, vim has bar to separate commands:

The second command (and subsequent commands) are only executed if the prior command succeeds.

I've tried
nmap f <Plug>(easymotion-bd-w) <bar> gd but it hasn't worked. Did I miss something?

@ris58h
Copy link
Author

ris58h commented Nov 29, 2022

I've created easymotion/vim-easymotion#494 to ask if it's possible to implement it in the upstream repository.

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

No branches or pull requests

2 participants