In Thunar, it is possible to define custom actions. There is already a "send to desktop (create link)" option in the right-click menu.
What I want is to add a self-defined action in Thunar that could create a link of a file or folder under current directory so that I can copy it to anywhere I want right away, instead of going to the Desktop at first by using the "send to" option already available.
How to do this?
I know I can do this in a terminal with the "ln" command, but I cannot figure out how to assign a new name for the created link in the context menu command.
%n
(because the filename of the link can't be the same as the target). For example,ln -s %f %n1
orln -s %f %n-link
. Or if you're like me and prefer relative links,ln -sr %f %n1
. – Maxfield