Sublime Forum

How to change ordering of different filetypes?

#1

Right now in my main folder I have a src and js directory (I’m writing in an altJS). Currently sublime text shows the .js file above the other file, how can I change this?

0 Likes

#2

you want to change the order of entries in the sidebar?

currently not possible, but there is an open feature request for it:

0 Likes

#3

Sorry, I meant in the file menu thing (when you press super+p)

0 Likes

#4

oh I’m not sure about sorting for Goto Anything - probably also not possible

0 Likes

#5

From observation it looks like the Goto Anything popup sorts the file list alphabetically by path but it also puts the most frequently accessed files at the top of the list, ordered by the number of times you’ve accessed them.

Based on the MRU nature of the top entries and the idea is that you’re going to type a character or two in order to quickly filter down to what you want it’s probably not likely (or a priority) that is is possible to re-order the files in the list somehow.

With that said, since it looks like the natural order is alphabetical by their full path, you could “cheat” the system by using path names that sort the way that you want them to, like asrc or zjs (or something more imaginative and less ugly) so that the files sort the way you want.

On the other hand you can also use the fuzzy filter to your advantage: If you only wanted to view e.g. coffeescript files, enter .coffee (or probably just .co is enough) to filter to only files that match that text, which is unlikely to be a JavaScript file.

2 Likes