Am 29.11.2012 17:19, schrieb Steven Blatnick:

On 11/28/2012 04:57 PM, Colomban Wendling wrote:

14. "Snap Open" dialog. Quickly open files by typing the filename and
     filtering down based on a project's base directory (or otherwise
configurable). The dialog should be configurable to skip files for speed, such as a build directory, .svn/.git and hidden directories, etc.
That'd probably be a great plugin :)  I think GProject (or maybe it's
GeanyPRJ?) has a similar feature.

Ah, and if you want this feature, maybe you'd be interested by the
Commander plugin ;) (it allows to browse the menus and open files using
a search entry).

This of course used to be part of the open dialog until the brain dead
at GTK removed it.
Did they?  I can still type and filter.  If I type in the entry I get a
completion list with the possible filenames, and if I typahead in the
list it still performs a (naive) search in that very list.

However, a more advanced filtering might be interesting, like showing
only project patterns (if any are set -- but this one is easy with the
filter option of the file chooser), with more powerful matching
algorithm like (not necessarily the filename start, plus wildcards, why
not with "magic" matching like "p/fbc" matching "plugins/filebrowser.c",
this kinda stuff), etc.
The plugin I use in gedit searches sub-directories independent of path and case insensitive that filters as I type like google suggestions. I also edited the plugin to skip .git/.svn directories. I think a plugin like this should behave like ack-grep (and maybe even be configured throuch the .ackrc) to be fast and only search certain files. It should allow a base directory to search off of for the code base (probably the project base directory).


Both the project and codenav plugin have a similar feature: toggle between header (.h) and source (.c/.cpp). They search directories to find the file if it's not open already (project starts search in the project base, codenav in the current folder). Plus, actually codenav wanted to implement your very feature request, but it was never completed.

Anyway, you might start by modifying either plugin, you'd probably only need to implement the snap dialog to specify the filename. The search-for-file algorithm is in place.

I would love this feature, btw :)

Best regards.
_______________________________________________
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel

Reply via email to