Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-09-26 03:22:37

yurbev
Member
Registered: 2016-04-18
Posts: 28

Hotkeys to Open Folders in Thunar?

I don't like using the side panel. I'd like to assign hotkeys to open oft-used folders within an existing instance of Thunar. Would something involving application shortcuts starting with "exo-open --launch" work?

Offline

#2 2018-09-26 10:37:06

alcornoqui
Member
Registered: 2014-07-28
Posts: 313

Re: Hotkeys to Open Folders in Thunar?

In Settings > Appearance > Configuration tab > Menus and buttons > Activate editable accelerators.

In Thunar, create bookmarks in the side panel for the desired folders, then in the Thunar menu open Go, and as you hover over each bookmark entry, press your desired key combination, which you'll see then get set.

After this, you can press that key combination to go to that folder, even with the side panel hidden.

You can reset any of these shortcuts hovering again over the menu option and pressing backspace.

edit: wording may be different, as I'm translating from spanish... Again, what was the way of launching an app temporarily in another language?

Last edited by alcornoqui (2018-09-26 10:39:39)

Offline

#3 2018-09-26 10:54:54

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,846

Re: Hotkeys to Open Folders in Thunar?

To add to @alcornoqui's answer, gtk3 removed the editable accelerators functionality. If you are using the GTK3 version of thunar, you need to manually edit the ~/.config/Thunar/accels.scm file and add the shortcut to every "(gtk_accel_path "<Actions>/ThunarBookmarks/....." entry. There will be some trial and error to figure out which entry refers to which menu item as the entries appear as hash computations of some sort.

Offline

#4 2018-09-26 12:17:49

alcornoqui
Member
Registered: 2014-07-28
Posts: 313

Re: Hotkeys to Open Folders in Thunar?

Bummer. Do you happen to know if the existing custom shortcuts will work after the update? I guess the answer is yes, because I added one as a test and it appears right away in accels.scm, like this:

(gtk_accel_path "<Actions>/ThunarBookmarks/cb246386d4534320bf5f1c436ed746e4" "<Alt>ntilde")

Someone on the GTK team really really wants me to try PLasma... (sigh)

Offline

#5 2018-09-26 17:18:34

yurbev
Member
Registered: 2016-04-18
Posts: 28

Re: Hotkeys to Open Folders in Thunar?

Thanks for the help! Fortunately my version works with alcornoqui's directions.

To avoid starting another thread, do you happen to know if it's possible to have a previous folder button inside directories, like you have with Multi-Commander?

pGsmqzR.png

The one in Multi-Commander goes to the higher directory in the hierarchy and not necessarily the last folder visited, which I like. The back button on Thunar doesn't always take me to the higher directory to the one which I'm in.


Barring that can the back button on Thunar be modified in the way specified?

Offline

#6 2018-09-27 00:01:53

alcornoqui
Member
Registered: 2014-07-28
Posts: 313

Re: Hotkeys to Open Folders in Thunar?

The back button goes to the previous directory, as does Alt+left (Alt+right would do the opposite). Alt+up goes to the parent directory. All these are configurable.

Try them and ask any follow up questions, in case I didn't get it right.

Offline

#7 2018-09-27 00:52:39

mint4all
Member
From: America
Registered: 2018-08-21
Posts: 64

Re: Hotkeys to Open Folders in Thunar?

yurbev wrote:

I don't like using the side panel. I'd like to assign hotkeys to open oft-used folders within an existing instance of Thunar. Would something involving application shortcuts starting with "exo-open --launch" work?

Greetings!

Ime, "exo-open ..." may be the way to go (if you want to be GTK?-agnostic). The MAN-page states that if you don't use the "--launch" option, exo will launch the appropriate app per the target's mime-type. I've tested this and it sems to work ok. Ie, to have Thunar quickly jump to your Documents-folder with a shortcut, you'd pick a key combo (i used Super+3 for my testing) and it will open THAT folder just fine, or, for example, your FamilyDocs subfolder, like this ...

exo-open Ducments/FamilyDocs

I've been using exo-open for a collection of web-URLs that i routinely open using my panels' launch buttons. That way I don't have to bother with keyboard shortcuts (or any conflicting ones).

Good luck, M4A


Linux Mint 18.3-xfce & Linux Mint 19-xfce  -- Dell Precision T1500 Desktops -- Toshiba Satellite Laptop -- Family & Community Support re. Linux

Offline

Board footer

Powered by FluxBB