Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-02-11 19:11:28

pedherall
Member
Registered: 2017-02-11
Posts: 3

Thunar custom action for hidden and unihiden files.

I want to do a thunar custom action for hidden and unhidden files.
For hide files I use “ echo %N  >> .hidden” and it works.
For unhidden I use “sed -i s/n%//gi /.hidden” and it doesn’t work.
Could you tell me any idea of  how can I unhidden files with a thunar custom action.

Offline

#2 2017-02-11 19:59:18

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 3,749

Re: Thunar custom action for hidden and unihiden files.

Hello and welcome.

“sed -i s/n%//gi /.hidden”

A couple of issue with this command: first, it should be "%n" and secondly, "/.hidden" is the .hidden file in the system root.

Try these commands instead:
Hide:

echo %n >> %d/.hidden

UnHide:

sed -i '/%n/d' %d/.hidden

How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2017-02-12 07:56:55

pedherall
Member
Registered: 2017-02-11
Posts: 3

Re: Thunar custom action for hidden and unihiden files.

Thank you very much, ToZ

Offline

Board footer

Powered by FluxBB