[Geany] Copy File Path Keybinding
Jeff Pohlmeyer
yetanothergeek at xxxxx
Wed Dec 29 05:55:06 UTC 2010
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.
- Jeff
More information about the Users
mailing list