Preview Tabs - Reducing the number of open tabs

Viewed 18

Howdy, are there any plans to support preview tabs? As in, when you click an item it opens in a tab but if you click a different item without editing or saving anything then it replaces that tab instead of opening a new tab. As examples, tools like VSCode and Notesnook behave this way.

A preview tab becomes a "full tab" if any of these happen:

  1. The file is edited
  2. The file is saved
  3. The tab is double clicked

I don't remember off the top of my head what other cases a preview tab becomes a full tab, but there may be edge-cases around multi-user setups I'm not considering.

I find this feature super handy for times I might be clicking through many files just to glance at them. Then I don't have to go back and close 20+ tabs.

1 Answers

Hello, thanks for your comments!

Yes!!! When I... copied vscode tabs design, this came into my attention and decided to put it off until later, and also a close others, close to the right context menu.

so esentially we always open the document in the "preview tab" if we edit at least once or double click it. we convert this into a regulr tab, and free the preview tab.

Otherwise, while changing documents they will be previewed by default in the preview tab, (could also make this a setting) this is super important when "just browsing" a big project.

Added for the todo, thank you!!

===

EDIT: I gave this a shot and it is PERFECT! will be available soon in 2.1.14! (still deciding if I should keep the 'old' behaviour under a setting) hopefully I can add the context menu as well by then.

Tab pinning