VS Code Harpoon is inspired by The Primeagen's Harpoon plugin for neovim. It supports the basic use case of file navigation just like with Harpoon.
VSCode Harpoon is a file navigation tool, which lets you mark editors and jump to your marked editors.
When adding your first editor, it will be set as editor 1
, the next editor 2
and so on.
You are then able to jump to editor 1
or editor 2
from anywhere in your workspace.
VSCode Harpoon: Add Editor (vscode-harpoon.addEditor)
adds the current editor to your workspaceVSCode Harpoon: Add Editor [1-9] (vscode-harpoon.addEditor[1-9])
adds the editor at the specified indexVSCode Harpoon: Go to editor [1-9] (vscode-harpoon.gotoEditor[1-9])
Goes to workspace editor [1-9]VSCode Harpoon: Edit Editors (vscode-harpoon.editEditors)
Opens an editor for you do delete or move added editors around.VSCode Harpoon: Editor Quick Pick (vscode-harpoon.editorQuickPick)
Opens a quick pick menu to pick between your current workspace editorsVSCode Harpoon: Add Global Editor (vscode-harpoon.addGlobalEditor)
adds the current editor globallyVSCode Harpoon: Add Global Editor [1-9] (vscode-harpoon.addGlobalEditor[1-9])
adds the editor globally at the specified indexVSCode Harpoon: Go to global editor [1-9] (vscode-harpoon.gotoGlobalEditor[1-9])
Goes to global editor [1-9]VSCode Harpoon: Edit Global Editors (vscode-harpoon.editGlobalEditors)
Opens an editor for you do delete or move added editors around.VSCode Harpoon: Editor Global Quick Pick (vscode-harpoon.editorGlobalQuickPick)
Opens a quick pick menu to pick between your global editors
If desired the extension does support jumping to already open editors in different split panes. However, for this to work you need to add a property to your settings.json:
{
"workbench.editor.revealIfOpen": true
}
[
{
"key": "alt+a",
"commands": ["vscode-harpoon.addEditor"]
},
{
"key": "alt+e",
"commands": ["vscode-harpoon.editEditors"]
},
{
"key": "alt+p",
"commands": ["vscode-harpoon.editorQuickPick"]
},
{
"key": "alt+1",
"command": "vscode-harpoon.gotoEditor1"
}
]
{
"vim.leader": " ",
"vim.normalModeKeyBindings": [
{
"before": ["<leader>", "a"],
"commands": ["vscode-harpoon.addEditor"]
},
{
"before": ["<leader>", "e"],
"commands": ["vscode-harpoon.editEditors"]
},
{
"before": ["<leader>", "p", "e"],
"commands": ["vscode-harpoon.editorQuickPick"]
},
{
"before": ["<leader>", "1"],
"commands": ["vscode-harpoon.gotoEditor1"]
}
]
}
Looking to contribute? Please read the CONTRIBUTING.md
file, which contains information about
making a PR.
Any feedback is very appreciated!
Please file an issue for bugs, missing documentation, unexpected behavior etc.
Please file an issue to suggest new features. Vote on feature requests by adding a 👍.