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 in real-time (configurable in settings).
- 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>(HarpoonerToggleQuickMenu)
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>(HarpoonerNextFileAction)
nmap <leader>hp <action>(HarpoonerPreviousFileAction)
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.
HarpoonerOpenFile0
-HarpoonerOpenFile9
→ Open a specific file from the menu (indexed 0-9)HarpoonerNextFileAction
→ Open the next file in the Harpoon list.HarpoonerPreviousFileAction
→ Open the previous file in the Harpoon list.
HarpoonerQuickMenu
→ Open the Harpoon menu.HarpoonerToggleQuickMenu
→ Toggle the Harpoon menu.HarpoonerClearMenu
→ Clear all saved paths.
You can change the settings: Settings/Preferences > Tools > Harpooner Settings
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.