Harpooner - the Harpoon by Erotourtes for JetBrains products
Inspired by ThePrimeagen/harpoon
Preview.webm
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.
- The Harpooner menu is represented as a file within the IDE, thus seamlessly integrates with the IdeaVim plugin.
- All changes made to the menu are automatically saved.
- Automatic renaming of files is supported when they are moved, renamed, or deleted.
- Users have control over the length of visible paths displayed in the menu
This plugin is inspired by Harpoon
You need to use IdeaVim plugin to use the following keybindings.
" Harpoon
nmap <leader>hm <action>(HarpoonerToggleMenu)
nmap <leader>ha <action>(HarpoonerToggleFile)
nmap <M-j> <action>(HarpoonerOpenFile0)
nmap <M-k> <action>(HarpoonerOpenFile1)
nmap <M-l> <action>(HarpoonerOpenFile2)
nmap <M-;> <action>(HarpoonerOpenFile3)
nmap <leader>hn <action>(HarpoonerOpenNextFile)
nmap <leader>hp <action>(HarpoonerOpenPreviousFile)
nmap <leader>hc <action>(HarpoonerClearMenu)Tip
You can move code with
vmap J <action>(MoveLineDown)
vmap K <action>(MoveLineUp)
nmap <C-j> <action>(MoveLineDown)
nmap <C-k> <action>(MoveLineUp)HarpoonerAddFile→ Add the current file to Harpoon’s menu.HarpoonerRemoveFile→ Remove the current file from Harpoon’s menu.HarpoonerToggleFile→ Toggle the current file in Harpoon - adds it if it's not already in the list, removes it if it is.HarpoonerReplaceFile0-HarpoonerReplaceFile9→ Replace the entry at position 0-9 in the Harpoon menu with the current file.
HarpoonerOpenFile0-HarpoonerOpenFile9→ Open a specific file from the menu (indexed 0-9)HarpoonerOpenNextFile→ Open the next file in the Harpoon list.HarpoonerOpenPreviousFile→ Open the previous file in the Harpoon list.
HarpoonerOpenMenu→ Open the Harpoon menu.HarpoonerToggleMenu→ Toggle the Harpoon menu.HarpoonerClearMenu→ Clear all saved paths.
You can change the settings: Settings/Preferences > Tools > Harpooner Settings
-
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.


