snipp.in icon indicating copy to clipboard operation
snipp.in copied to clipboard

[FEATURE] Improve tab replacement

Open haxzie opened this issue 3 years ago • 4 comments

Currently, all the opened file's tabs gets piled up in the top bar and becomes extremely difficult to manage after a certain time.

Need to think about an algorithm that can replace current tabs with new tabs instead of keeping them piling up. This can be implemented either by keeping a max open tabs and follow a queue approach. Or, We can replace a tab by looking at the last modified date among the opened tabs and then close which have been edited long back compared to other tabs. We can also think about of having a mechanism similar to VSCode to replace tabs if they were just opened to read.

haxzie avatar May 08 '21 06:05 haxzie

@haxzie We can change tabs placement to next column

HimanshuVaghelaa avatar May 09 '21 17:05 HimanshuVaghelaa

@HimanshuVaghelaa I didn't quite understand what did you mean ny next column?

haxzie avatar May 09 '21 18:05 haxzie

@haxzie I mean we can wrap tabs instead of showing a scrollbar like in VSCode.

Ref: https://code.visualstudio.com/updates/v1_53#_wrap-tabs

HimanshuVaghelaa avatar May 09 '21 19:05 HimanshuVaghelaa

Yes, this looks good :+1: But we might wanna still replace the items in the tabs.

haxzie avatar May 09 '21 23:05 haxzie