zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
48.88k stars 2.94k forks source link

Better tab/buffer switcher a'la harpoon for when working without tabs #17353

Open tkgalk opened 1 month ago

tkgalk commented 1 month ago

Check for existing issues

Describe the feature

When working with Zed with:

"tab_bar": {
  "show": true
},

It can be hard to navigate between open buffers/tabs as the tab switcher seems to be split specific. It would be amazing to have an option to "pin" some locations and then have those tabs always accessible under a specific keybind.

If <space> h is the tab switcher, a <space> h a should add the current location to the pinned list, <space> h 1 should go there.

If applicable, add mockups / screenshots to help present your vision of the feature

Look into harpoon Neovim plugin.

shivambaku commented 2 weeks ago

This would be a big win. Also, look into VSCode extension "VSCode Harpoon" (tobias-z.vscode-harpoon). Concept is similar to control groups in RTS games.