On Tue, 28 Dec 2010 23:55:06 -0600 Jeff Pohlmeyer <[email protected]> wrote:
> On Tue, Dec 28, 2010 at 6:12 PM, Brad Wilson wrote: > > > Is there a way to set a keybinding to copy the current file path? > > You can do it with the Lua plugin... > > From a terminal, do: > > mkdir -p ~/.config/geany/plugins/geanylua > cd ~/.config/geany/plugins/geanylua > echo 'geany.copy(geany.filename() or "")' > copy-filename.lua > echo 'copy-filename.lua' >> hotkeys.cfg > > > Now enable the Lua plugin and restart Geany, then go to > Edit->Preferences->Keybindings and scroll to the very > bottom of the list. Click on the "Copy filename" entry > and click the "Change" button to assign a keybinding to > your new command. You can also access the command from > the Tools->Lua menu. Building up a plugin in C would be also possible with only a few lines I guess. But to be honest I didn't prepare any code here by now for. :D Cheers, Frank -- http://frank.uvena.de/en/
pgp327VcJteFS.pgp
Description: PGP signature
_______________________________________________ Geany mailing list [email protected] http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
