Harpooner - the Harpoon by Erotourtes for JetBrains products
Harpooner is a navigation plugin. You can "harpoon" a file and quickly open it later in the Tools menu or through the keyboard shortcuts.
Note: you need to configure the keyboard shortcuts yourself. See the example section.
This plugin is inspired by Harpoon
You need to use IdeaVim plugin to use the following keybindings.
" Harpoon
nmap <M-j> <action>(HarpoonerOpenFile0)
nmap <M-k> <action>(HarpoonerOpenFile1)
nmap <M-l> <action>(HarpoonerOpenFile2)
nmap <M-;> <action>(HarpoonerOpenFile3)
nmap <leader>hm <action>(HarpoonerQuickMenu)
nmap <leader>ha <action>(HarpoonerAddFile)
nmap <leader>hn <action>(HarpoonerNextFileAction)
nmap <leader>hp <action>(HarpoonerPreviousFileAction)
" nmap <M-4> <action>(HarpoonerOpenFile4)
" nmap <M-5> <action>(HarpoonerOpenFile5)
" nmap <M-6> <action>(HarpoonerOpenFile6)
" nmap <M-7> <action>(HarpoonerOpenFile7)
" nmap <M-8> <action>(HarpoonerOpenFile8)
" nmap <M-9> <action>(HarpoonerOpenFile9)
[!TIP] You can move code with
vmap J <action>(MoveLineDown) vmap K <action>(MoveLineUp) nmap <C-j> <action>(MoveLineDown) nmap <C-k> <action>(MoveLineUp)
You can change the settings: Settings/Preferences > Tools > Harpooner Settings
With show project path
on
With the number of visible words: 1
With save on type
off
Changes are saved after and only after closing the file
Using IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for " Harpooner" > Install Plugin
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
Plugin based on the IntelliJ Platform Plugin Template.