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

Feature: Filter on file names the open file pane #3078

Open
johanmattssonm opened this issue Jan 1, 2022 · 8 comments
Open

Feature: Filter on file names the open file pane #3078

johanmattssonm opened this issue Jan 1, 2022 · 8 comments

Comments

@johanmattssonm
Copy link

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

@elextr
Copy link
Member

elextr commented Jan 2, 2022

GTK treeview provides a search capability, but not a filter capability.

@johanmattssonm
Copy link
Author

johanmattssonm commented Jan 2, 2022 via email

@elextr
Copy link
Member

elextr commented Jan 2, 2022

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 now with no coding 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.

The dropdown next to the open icon in the toolbar is the "Recently opened files list" not the "Recently visited documents" list, so no.

@techee
Copy link
Member

techee commented Jan 2, 2022

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.

@ntrel
Copy link
Member

ntrel commented Mar 20, 2024

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 (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).

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.

@elextr
Copy link
Member

elextr commented Mar 20, 2024

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?

@shbitsus
Copy link

shbitsus commented Aug 6, 2024

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.

@techee
Copy link
Member

techee commented Aug 6, 2024

Maybe not exactly this feature but I just added something similar to the ProjectOrganizer plugin in geany/geany-plugins#1341:

Screenshot 2024-08-06 at 11 05 56

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.

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

5 participants