I find very useful to be able to open a external terminal pretty quick directly from geany. Tree Browser plugin already has this option but File Browser doesn't.
I'd like to make a PR for this if you're OK with it :smiley:
When you say "open in terminal" what do you mean? The terminal in Geany or an external terminal?
I was thinking in an external terminal, but I could be configured in the plugin preferences the same way execute scripts can be run in the VTE or in an external one.
hi! any fresh thoughts on this?
Well I personally am not really in favour of making file browser into a second rate file manager (as I have ranted in other places :), IMHO thats not its purpose, the Geany Plugins Tree Browser aspires to that.
But at least this is not an actual file manipulation operation, so its possibly ok. If its a simple straightforward PR then it should be ok IMHO.
Some questions remain, what are you going to make the default terminal command? The Geany default of xterm does not have a working directory option AFAIK. And on windows? Don't forget to handle commands that don't work properly, since the user can edit them. You will need to substitute the directory path into the command, the traditional placeholder is %d.
Be aware that doing things to the built-in terminal is unfortunately messy, see how build.c runs commands there and how that can fail.
Because its a core plugin distributed with Geany, filebrowser will in general be held to a higher standard for reliability and user friendliness than treebrowser, so you may need to improve any code you copy.
github-comments@lists.geany.org