aswinkumar863 / sort-editors-vscode

Automatically sorts the VSCode editors when they are opened

Home Page:https://marketplace.visualstudio.com/items?itemName=aswinkumar863.sort-editors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature requests

ruudhanegraaf opened this issue · comments

Hi Aswin.

This looks promising. :-)
Two request/suggestions which would would make it fit my own needs even more:

  • Do an automatic 'Sort Active Editor' after each save, to make sure that when you save a file - either a new file, or an existing file using a new name - the order is adjusted.

  • Unsaved files are sorted as starting with the U(ntitled). It would be great if you could also have the option to sort the tabs using the tab title, more in line with how the editors are sorted in the open editors view of the side bar.

So this...

image

... as opposed to...

image

Regards,
Ruud

  • Do an automatic 'Sort Active Editor' after each save, to make sure that when you save a file - either a new file, or an existing file using a new name - the order is adjusted.

The extension should allow the users to reorder the tabs if needed. While considering performance, it's not required to sort opened editor on each save. Sorting editors while its opening is enough. Only the untitled editor will be sorted on save.

  • Unsaved files are sorted as starting with the U(ntitled). It would be great if you could also have the option to sort the tabs using the tab title, more in line with how the editors are sorted in the open editors view of the side bar.

Doing this will make the untitled editor jumps to a new position on entering the first character. I tried implementing this and felt the user experience is bad and confusing. So It's better to keep sorting by name or path as existing.

Anyhow, thank you for using my extension and making good suggestions. I have reduced the sorting delay and optimized the untitled editor sorting with a new release (v2.0.0). Now the untitled editor will be sorted when it's saved.

Hi Aswin,

Thanks and you're welcome. :-)

Doing this will make the untitled editor jumps to a new position on entering the first character. I tried implementing this and felt the user experience is bad and confusing.

I get what you're saying. What I had in mind was only doing the sorting for the untitled files when opening VSCode or when using the manual sort commands.

Installing 2.0 now... :-)

Regards,
Ruud