You are not logged in.

#1 2015-07-21 16:28:24

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

add 'open with...' to a folder in XFCE?

Hello everyone, silly question here...

sometimes when I'm working with SublimeText I need to open an entire folder project, not just a file and I know I can do it by opening Sublime and then 'Open folder' but I was wondering if maybe I can add the 'Open with...' or 'Open with sublime' option to the folder's contextual menu... I know I can do that in OSX with automator, but have  no idea if I can make it on Arch [specifically XFCE].

Thanks for your help.


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

#2 2015-07-21 16:33:53

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: add 'open with...' to a folder in XFCE?

Yes this is possible for Xfce (Thunar file manager specifically).

Go to Thunar -> Edit -> Configure Custom Actions and add a custom action.

The command could be something like:

subl %f

On the Appearance Conditions tab, make sure directories is ticked.

Hope this helps.

Edit: I'm assuming the Sublime Text command is actually sublimetext, otherwise replace as appropriate.

Edit 2: Changed $PWD to %f ($PWD will only work if you are inside the directory, not if you are a level above the directory and right clicking on it).

Last edited by Chazza (2015-07-22 08:24:14)

Offline

#3 2015-07-21 19:26:59

MGu3l
Member
From: Medellín, Colombia
Registered: 2009-12-19
Posts: 109

Re: add 'open with...' to a folder in XFCE?

Thank you so much for your help!! the command is "subl %f" but apart from that everything is working flawlessly. thanks again!!


"Dream as if you'll live forever, live as if you'll die today" - James Dean

Offline

Board footer

Powered by FluxBB