Hi All,
Is there a way to set a keybinding to copy the current file path? Or a right-click action on the files sidebar? Or a way to set a keybinding for the "file properties" window?
It's just that it is often desirable to get the current file path in the clipboard and I can't find a method other than choosing File > Properties and then copying the location from the dialogue box.
When I try to use gconf-editor to set the keybinding for File > Preferences it fails to set it.
Thanks much.
-Brad
On Tue, 28 Dec 2010 18:12:46 -0600 Brad Wilson brad@rhift.com wrote:
Hi All,
Is there a way to set a keybinding to copy the current file path? Or a right-click action on the files sidebar? Or a way to set a keybinding for the "file properties" window?
It's just that it is often desirable to get the current file path in the clipboard and I can't find a method other than choosing File > Properties and then copying the location from the dialogue box.
This is the only way I currently do know of.
When I try to use gconf-editor to set the keybinding for File > Preferences it fails to set it.
Not sure whether this si supported at all ;)
Cheers, Frank
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
On Tue, 28 Dec 2010 23:55:06 -0600 Jeff Pohlmeyer yetanothergeek@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