Usability issues with sorting tabs by filename

[latest WebStorm, latest macOS]

I just discovered the ability to sort my tabs by filename and have a few suggestions for improving it. One thing might be a bug, while the others are merely suggested improvements:

Bug:

- when you have multiple files with the same basename open (lib/foo.js and test/foo.js) and the option to 'show directory in editor tabs for non-unique filenames' is disabled, the order the tabs feels nondeterministic. That is, sometimes the file in lib/ comes first, while sometimes test/ comes first. I have to switch to the tab to see if it's a test or not. Here's an example sorting: [lib/foo.js, test/foo.js, test/bar.js, lib/bar.js]

Suggestions:

- there should be an option which acts as the opposite of 'show directory in editor tabs for non-unique filenames'. That is, always show the directory. That way, sorting by filename would keep all the files from particular directories together, which is probably what a lot of people want

- the sort order should be either based on the name of the file or its full path, but not both. Currently a file's order in the list is based on what is shown, which may be the full path, or just the filename (depending on whether there is another file with the same name open). So if there is one file foo.js open (thus its path won't be shown in the tab), and then another foo.js is opened, they will both change to show their full path in their tabs. Thus the first foo.js that was open will have its order changed, and will jump to another spot. Then when one of them is closed, the other one will jump again, as its tab name reverts from full path to simple filename.

0

请先登录再写评论。