James P McGrath
James P McGrath

Reputation: 1884

Automatically close saved file tabs when opening a new file

Each time I open a file in SublimeText it shows the file in a new tab in the window. This leads to dozens of being tabs open in the current window over the course of my working day. This is ok, until I commit my changes and switch branches. At this point I am asked to verify the reloading of each files that I have previously worked on.

I rarely use the window's open file tabs to swith to editing an already "open in tab" file. I find that using Ctrl-P to switch/open files is much quicker and more convenient. Also, for the majority of the files that I want to open, sublime is so quick in loading the file fresh. Because of this, having tabs showing the recently opened files not very useful. The only time it is useful to have the tab open is to highlight files with unsaved changes.

I would like tabs without unsaved changes to automatically close as I open/navigate to another file in the window. Is there a setting/plugin that does this?

[edit] - tweaked wording in an effort for clarity

Upvotes: 0

Views: 206

Answers (1)

Adam
Adam

Reputation: 3518

How about this? https://forum.sublimetext.com/t/close-tab-after-delete-file/9439/6

Close buffers on file delete

Upvotes: 0

Related Questions