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

Add AceJump jumps to IdeaVim jump list #312

Closed
Vozf opened this issue Nov 21, 2019 · 8 comments
Closed

Add AceJump jumps to IdeaVim jump list #312

Vozf opened this issue Nov 21, 2019 · 8 comments
Labels

Comments

@Vozf
Copy link

Vozf commented Nov 21, 2019

it would be great if acejump jumps would be added to the vim jump list so jumping to previous location using ctrl+o and ctrl+i is possible
ref https://vim.fandom.com/wiki/Jumping_to_previously_visited_locations

@Vozf Vozf added the feature label Nov 21, 2019
@breandan
Copy link
Collaborator

breandan commented Nov 21, 2019

We add the jump locations to the IntelliJ Platform history, however IdeaVim probably does not read from this. Is there an extension point for adding jump locations to the IdeaVim jump list? @AlexPl292

@Vozf Vozf changed the title Add acejump jumps to vim jump list Add acejump jumps to ideaVim jump list Nov 21, 2019
@AlexPl292
Copy link
Contributor

IdeaVim doesn't currently support jump lists: https://github.com/JetBrains/ideavim#summary-of-supported-vim-features

@Vozf
Copy link
Author

Vozf commented Nov 22, 2019

Although Ctrl+o and Ctrl+i are working in IdeaVim.

@breandan breandan changed the title Add acejump jumps to ideaVim jump list Add AceJump jumps to IdeaVim jump list Nov 22, 2019
@denis-savran
Copy link

One way is to use IDE's actions for this:

nnoremap <c-o> :action Back<cr>
nnoremap <c-i> :action Forward<cr>

@AlexPl292
Copy link
Contributor

AlexPl292 commented Feb 18, 2020

The integration between IdeaVim and AceJump is presented in https://github.com/AlexPl292/IdeaVim-EasyMotion. The feature in question is supported since v1.2 (no need to enable easymotion emulation via set easymotion).

cc @breandan

@breandan
Copy link
Collaborator

Great! Although there still appears to be a discrepancy between the Back/Forward action behavior of the IntelliJ Platform (via IdeDocumentHistoryImpl) and the way <C-o>/<C-i> are handled in IdeaVim. Is it possible to merge them or is the default Vim behavior incompatible with the platform implementation?

@AlexPl292
Copy link
Contributor

Yes, unfortunatelly. We are going to work with it along with reviewing this PR JetBrains/ideavim#224

@breandan
Copy link
Collaborator

breandan commented Apr 4, 2021

I believe this issue has been fixed and is now supported by IdeaVim.

@breandan breandan closed this as completed Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants