Hi. I would like to have a button or shortcut that lets me filter the files I see in the open file pane by pressing the first letter. I have ~1000 files open and I am very happy to see that the editor can handle that many files I just need a bit of help from the UI in order to jump to the right file.
Thank you for creating the best editor for coding in Vala.
Cheers
GTK treeview provides a search capability, but not a filter capability.
Thanks. How do I access that feature? Another way to solve the problem for me might be to put each file I visit on top in the drop down box next to the open icon when I switch files. Could that be an option?
How do I access that feature?
Somebody has to code it. Search will be simple, that "should" just need code to enable it as its built in to GTK. But if you start at the top and start typing a filename the selected item in the documents list should go to that file on `enter`, not perfect but a start.
The dropdown next to the open icon in the toolbar is the "Recently opened files list" not the "Recently visited documents" list, so no.
I have ~1000 files open
That's impressive :-).
Anyway, sounds pretty much like #3055, just for the files instead of symbols so maybe something similar could be used here too.
if you start at the top and start typing a filename the selected item in the documents list should go to that file and the tab on enter, not perfect but a start.
Thanks @elextr, I didn't know that before you posted that. I've been using it but you have to type from the start of the filename, it doesn't match substrings. Also the symbol list filter is really good at just showing the matching items and hiding the uninteresting stuff, whereas with default tree search you have to press up and down and there doesn't seem to even be indication of whether there are any other matches besides the selected one. Also it's not easy to discover the feature (the tree has to have focus, not the Documents tab).
The dropdown next to the open icon in the toolbar is the "Recently opened files list" not the "Recently visited documents" list, so no.
The latter might be useful to save too many ctrl-tabs.
I've been using it but you have to type from the start of the filename, it doesn't match substrings. Also the symbol list filter is really good at just showing the matching items and hiding the uninteresting stuff, whereas with default tree search you have to press up and down and there doesn't seem to even be indication of whether there are any other matches besides the selected one (when the other matches are off screen). Also it's not easy to discover the feature (the tree has to have focus, not the Documents tab).
For the file tree its the GTK built-in search IIUC, and thats how it works, symbols search has had a makeover courtesy of @techee per #3055, so presumably "somebody" could take that code and use it to improve filenames?
A quicker way to locate an open file would be much appreciated. I only have 60 open. I moved the tab-list to the right side. It helps a little seeing them in a column, but since there is no quick way to see the path (yes, there's a tool-tip on mouse-over: can see path one file at a time), but if I could filter on a folder it'd be much quicker.
I would love to be able to filter the list of open files by partial match to full-path/filename. Even better: append to the bottom of the filtered list of open files, the list of recent files that are matched, and clicking on any result switches to that file, opening it if necessary.
Maybe not exactly this feature but I just added something similar to the ProjectOrganizer plugin in https://github.com/geany/geany-plugins/pull/1341:
<img width="575" alt="Screenshot 2024-08-06 at 11 05 56" src="https://github.com/user-attachments/assets/7522f0a1-26d9-4976-9409-da933b0407b9">
It works similarly to vscode - when there's no prefix, it searches files, with the `@` prefix it searches in current document's symbols, with the `#` prefix it searches in all symbols and with the `:` prefix you can jump to the specified line in the current document. You can assign a keybinding for this popup for quick access.
It works independently of other features provided by the plugin and works also when there's no project open.
I'm planning to merge that pull request soon.
github-comments@lists.geany.org