Hi, Steven.
I love the idea of snap-open. I've been using 'Find in Files' as a clumsy workaround (search for any text and filter by filename), but it's not ideal...
I've drafted a quick Lua script that does a basic job of this, and uploaded to wiki.geany.org/config/scripts/lua. What do you think?
Enhancements currently planned include: - filtering of unlikely files/directories (.svn, compiled files like .class or .pyc, etc) unless explicitly in search string; - specifying directory patterns in search string (eg test/foo to search for 'foo*' in any subdirectory of 'test*'); - searching through open files (probably only if searching the project fails).
That's awesome! I hadn't tried the lua plugin features until I tried your script (geany is still new to me). Can you create complex UIs with them? If so, I suggest taking a look at gedit's snap-open plugin for interface ideas. It filters a list of files as you type. The list includes two column in a table: the filename, and the file path (for context).
Here is a screenshot of how it works:
I've tweaked the gedit plugin a bit for my personal use so that it always searches from my ~/work/ directory, so for geany I like that you have it search from the project directory already :-)
This feature being missing from geany is one of the major reasons I still use gedit for work (that and external tools, which I hope to write my own plugin for geany unless I can get by with the build tools already in geany). I hope with a little tweak/improvement here and there, I'll feel comfortable completely abandoning gedit sooner than later.
Thanks,
Steve
On 01/10/2013 03:57 PM, Thrawn wrote:
Hi, Steven.
I love the idea of snap-open. I've been using 'Find in Files' as a clumsy workaround (search for any text and filter by filename), but it's not ideal...
I've drafted a quick Lua script that does a basic job of this, and uploaded to wiki.geany.org/config/scripts/lua. What do you think?
Enhancements currently planned include:
- filtering of unlikely files/directories (.svn, compiled files like .class or .pyc, etc) unless explicitly in search string;
- specifying directory patterns in search string (eg test/foo to search for 'foo*' in any subdirectory of 'test*');
- searching through open files (probably only if searching the project fails).
Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel