Repository navigation
Replies: 1 comment
|
Use local harpoon = require("harpoon")
local function tab_list()
return harpoon:list("tab-" .. vim.api.nvim_get_current_tabpage())
end
vim.keymap.set("n", "<leader>a", function() tab_list():add() end)
vim.keymap.set("n", "<C-e>", function()
harpoon.ui:toggle_quick_menu(tab_list())
end)
vim.keymap.set("n", "<C-h>", function() tab_list():select(1) end)
vim.keymap.set("n", "<C-t>", function() tab_list():select(2) end)
vim.keymap.set("n", "<C-n>", function() tab_list():select(3) end)
vim.keymap.set("n", "<C-s>", function() tab_list():select(4) end)
vim.keymap.set("n", "<C-S-P>", function() tab_list():prev() end)
vim.keymap.set("n", "<C-S-N>", function() tab_list():next() end)New sessions get new handles, so don't count on |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Most of the time when I'm working on a project I have multiple named tabs for a bunch of different tasks, kind of like workspaces in a single project. So, for example, one tab with a split view for debugging something, one tab for fixing a specific bug where I need to keep track of the whole stack that called the buggy function etc.
I wish there was a way to keep a separate Harpoon list for each of my named tabs/workspaces. I don't use a bufferline and Telescope is way too slow in huge codebases.
All reactions