Skip to content
Snippets Groups Projects
Commit fb59b19a authored by blisshome's avatar blisshome
Browse files

Works with files or directories, with periods in any position within the file...

Works with files or directories, with periods in any position within the file or directory and with spaces in the filename.
parent e4ac00b0
No related branches found
No related tags found
No related merge requests found
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/allfiles
MimeType=all/allfiles;inode/directory
X-KDE-Priority=TopLevel
Actions=softLink
[Desktop Action softLink]
Name= Soft link
Icon=insert-link.png
Exec=FA=`basename "%F"`;FE=${FA##*.};FN=${FA%.*};ln -sT "%F" "$FN"_lnk."$FE";
Exec=FA=`basename %F`;if [[ $FA =~ .+\\..+ ]] ;then FE="_lnk."${FA##*.};FN=${FA%.*};elif [[ $FA =~ ^\\..+ ]];then FE="_lnk";FN=$FA;elif [[ ! $FA =~ \\. ]];then FE="_lnk";FN=$FA;fi;ln -sinT %F "$FN$FE";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment