Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take filetype into consideration when sorting files #1495

Open
kaixoo opened this issue Dec 21, 2024 · 4 comments
Open

Take filetype into consideration when sorting files #1495

kaixoo opened this issue Dec 21, 2024 · 4 comments

Comments

@kaixoo
Copy link

kaixoo commented Dec 21, 2024

Problem

Capture d'écran du 2024-12-21 03 48 15

I have a project like this with many .cpp and .h files. It takes me effort to find the CMakeLists.txt file because the treeview is sorted only alphabetically and doesn't take into account the frequency of files or the Uppercases.

Proposal

It'd make more sense to sort files like the following:

file1.cpp
file1.h
file2.cpp
file2.h
CMakeLists.txt
README.md
...

So that less frequent filetypes go in the bottom (or top).

Prior Art (Optional)

No response

@jeremypw
Copy link
Collaborator

Interesting. So source files would be sorted before other text files? Taking into account case is a separate issue really.

Note that there is a (not very discoverable) way to search in the sidebar - press <Alt>F. This does a fuzzy find on filename in all open projects.

@kaixoo
Copy link
Author

kaixoo commented Dec 21, 2024

That's good to know. <Alt>F doesn't do anything for me. Ctrl+P is a standard, why not use that?

@jeremypw
Copy link
Collaborator

Ah, sorry - I did not mention that it is an extension. You need to have the "Find Project Files" extension activated.
The shortcut us <Alt>f (no shift key). Best to have a document focused but it works in most situations for me. There should be a context menu item but I cannot find it atm.

@jeremypw
Copy link
Collaborator

That shortcut was chosen in line with the other "Find" shortcuts (<Ctrl>F and `F) but if there is a standard for this action it can be proposed as an alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants