<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
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).<br>
<br>
Here is a screenshot of how it works:<br>
<br>
<img src="cid:part1.01080806.05070707@yahoo.com" alt=""><br>
<br>
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 :-)<br>
<br>
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.<br>
<br>
Thanks,<br>
<br>
Steve<br>
<br>
<div class="moz-cite-prefix">On 01/10/2013 03:57 PM, Thrawn wrote:<br>
</div>
<blockquote
cite="mid:1357858621.75934.YahooMailClassic@web140401.mail.bf1.yahoo.com"
type="cite">
<pre wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a>
<a class="moz-txt-link-freetext" href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
</blockquote>
<br>
</body>
</html>