![]() Registered Member ![]()
|
Hi,
is there any way to reference the currently selected file(s) in Dolphin's terminal panel? I guess the most natural way to do this was by way of some environment variable, but that is evidently not how it works. What I would like to to is something like
where `exiv2` is the command that I want to execute, and `$F` holds the selected file(s). |
![]() Registered Member ![]()
|
I couldn't find that exact way. But there are others.
You can add an item to the Dolphin context menu: https://develop.kde.org/docs/dolphin/service-menus/ You can also transfer the file name via the clipboard:
|
![]() Registered Member ![]()
|
Hi!
You can just drag and drop them to insert the filename, but I would really prefer the ServiceMenu-way. |
![]() Registered Member ![]()
|
Thanks for the suggestions. I'm an ardent keyboard user and prefer not to switch between mouse and keyboard as much (if I can), and I need a way to insert the name of the currently selected file for various commands in the terminal -- therefore, my personal favorite is the clipboard method. I created a one-line script in `$HOME/bin/F`:
Now, I can press CTRL+C, F4 and enter
That makes it a lot easier. Thanks again to both of you! |
Registered users: Bing [Bot], gfielding, Google [Bot], markhm, sethaaaa, Sogou [Bot], Yahoo [Bot]