I spent a little time writing a little utility for Geany for navigating quickly between a given list of files:
http://www.milliwatt-software.com/jmg/files/geany_project_browser.py.bz2
I originally wanted it for navigating between already open files, but since I didn't at the time have an easy way to see what files geany has open (gah... I'm so lazy I haven't gotten around to installing Jeff's Lua plug-in yet), I instead just made it show files listed in a ./<foo>.project file that you create.
Just posting about it here in case anyone finds it useful. It'll probably only be interesting to folks who don't like taking their hands off the keyboard. :) While its running, I just Alt-Tab over to it, hit a key (or a few, bouncing around between files), then Alt-Tab back to Geany.
Let me know if you think it's handy.
---John
Just tried it. Got the window, but no "cursor" nor any way to select a file. The only thing that worked was mousing to the "close" button. Running up-to-date archlinux (no "Testing" packages)
Your script is in the right direction, but I read where Geany will have a key shortcut to get to the open files list. Then arrowing (or incrementally selecting by typing the first part of a filename?) to select. I assume the focus will return to Geany after selection, as well as if no selection is made, a shortcut key to get back to the editor window.
The notion of having projects is good. Geany should have that someday. In the interim, if I could actually select a project file somehow, and then select a file listed, that would be cool.
In the words of a VERY OLD cartoon cat "I hate those meeses to pieces!"
chuck
ps. If anyone gets the above reference, you are old too. And I'm not the first to use that phrase in reference to computer mice. (They do have there place.)
John Gabriele wrote:
I spent a little time writing a little utility for Geany for navigating quickly between a given list of files:
http://www.milliwatt-software.com/jmg/files/geany_project_browser.py.bz2
I originally wanted it for navigating between already open files, but since I didn't at the time have an easy way to see what files geany has open (gah... I'm so lazy I haven't gotten around to installing Jeff's Lua plug-in yet), I instead just made it show files listed in a ./<foo>.project file that you create.
Just posting about it here in case anyone finds it useful. It'll probably only be interesting to folks who don't like taking their hands off the keyboard. :) While its running, I just Alt-Tab over to it, hit a key (or a few, bouncing around between files), then Alt-Tab back to Geany.
Let me know if you think it's handy.
---John _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
On 10/3/07, chuck ctl@arrowtwins.com wrote:
Your script is in the right direction, but I read where Geany will have a key shortcut to get to the open files list. Then arrowing (or incrementally selecting by typing the first part of a filename?) to select.
Yup. I'm guessing Geany will eventually get that. But, I've been using Python lately, and since I can't yet write a plugin in Python, I figured a tiny little Tkinter app would do for now.
I assume the focus will return to Geany after selection, as well as if no selection is made, a shortcut key to get back to the editor window.
I use Ctrl-E to get the focus back to the editor window (after, say, having used Ctrl-F to do an incremental search). Though, the default key for returning to the editor is an F-key, I think.
The notion of having projects is good. Geany should have that someday.
It already does, however, Geany projects don't currently seem to contain information on what files belong to the project proper (though they store the name of the project's tld).
In the interim, if I could actually select a project file somehow, and then select a file listed, that would be cool.
You can currently tell Geany to open a project file. Menu: "Project --> Open".
In the words of a VERY OLD cartoon cat "I hate those meeses to pieces!"
:)
---John
oops. sorry, now I see the selection method.
I think it would be better placed on the left in a nice column.
Anyway, thanks, think I'll use it.
chuck
John Gabriele wrote:
I spent a little time writing a little utility for Geany for navigating quickly between a given list of files:
http://www.milliwatt-software.com/jmg/files/geany_project_browser.py.bz2
I originally wanted it for navigating between already open files, but since I didn't at the time have an easy way to see what files geany has open (gah... I'm so lazy I haven't gotten around to installing Jeff's Lua plug-in yet), I instead just made it show files listed in a ./<foo>.project file that you create.
Just posting about it here in case anyone finds it useful. It'll probably only be interesting to folks who don't like taking their hands off the keyboard. :) While its running, I just Alt-Tab over to it, hit a key (or a few, bouncing around between files), then Alt-Tab back to Geany.
Let me know if you think it's handy.
---John _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
On 10/3/07, chuck ctl@arrowtwins.com wrote:
John Gabriele wrote:
I spent a little time writing a little utility for Geany for navigating quickly between a given list of files:
http://www.milliwatt-software.com/jmg/files/geany_project_browser.py.bz2
Just posting about it here in case anyone finds it useful. It'll probably only be interesting to folks who don't like taking their hands off the keyboard. :)
Anyway, thanks, think I'll use it.
Updated it to generate the project file for you, if you ask it to. Uses "my.project" for the filename when doing so, and it overwrites any existing my.project file.
As usual, haven't tried it on anything besides GNU/Linux.
---John