acejump / AceJump

🅰️ single character search, select, and jump
https://plugins.jetbrains.com/plugin/7086-acejump
GNU General Public License v3.0
1.21k stars 91 forks source link

Add AceJump jumps to IdeaVim jump list #312

Closed Vozf closed 3 years ago

Vozf commented 4 years ago

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

breandan commented 4 years ago

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

AlexPl292 commented 4 years ago

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

Vozf commented 4 years ago

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

denis-savran commented 4 years ago

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

nnoremap <c-o> :action Back<cr>
nnoremap <c-i> :action Forward<cr>
AlexPl292 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Yes, unfortunatelly. We are going to work with it along with reviewing this PR https://github.com/JetBrains/ideavim/pull/224

breandan commented 3 years ago

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