[Geany] Copy File Path Keybinding
Frank Lanitz
frank at xxxxx
Wed Dec 29 09:55:50 UTC 2010
On Tue, 28 Dec 2010 23:55:06 -0600
Jeff Pohlmeyer <yetanothergeek at gmail.com> 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20101229/51e4e899/attachment.pgp>
More information about the Users
mailing list