Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-01-23 07:17:09

Manthano
Member
Registered: 2024-12-20
Posts: 11
LinuxFirefox 128.0

Thunar:Expandable folder opening/closing with custom keyboard shortcut

I went to Debian Testing. Xfce 4.20 is now even better, amazingly good job, all new features and functionalities are awesome and work really well.  smile

But my question is, is it possible to create a custom keyboard shortcut to open and close folder in Thunar when using "List View" with expandable folders? Left and right arrow work fine, but like binding for example TAB as a toggle for open and close.

Offline

#2 2025-01-23 12:00:45

eriefisher
Wanderer
From: ON, Canada
Registered: 2008-10-25
Posts: 629
LinuxFirefox 134.0

Re: Thunar:Expandable folder opening/closing with custom keyboard shortcut

I'm not sure about a toggle to open and close a folder but you can navigate around Thunar with the keyboard easily enough.


Siduction
Debian Sid
Xfce 4.20 with Wayland/Labwc

Offline

#3 2025-01-23 12:31:21

Manthano
Member
Registered: 2024-12-20
Posts: 11
LinuxFirefox 128.0

Re: Thunar:Expandable folder opening/closing with custom keyboard shortcut

Yes, it is easy to use Thunar with keyboard. But it would be convenient to be able to assign same functionality that left and right arrow key do with expandable folder, to some other key also, for example TAB, as a toggle for opening and closing. I don't find left and right arrow functionality listed as shortcuts anywhere.

Offline

#4 2025-01-23 12:57:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,717
LinuxFirefox 134.0

Re: Thunar:Expandable folder opening/closing with custom keyboard shortcut

The problem with any sort of toggle function is that you would need to know or keep track of the current state of the toggle (on/off) so you can switch between the two. Unfortunately, thunar does not expose this.

You could create a script to track the toggle state yourself and issue commands like:

xdotool key Left
xdotool key Right

...and assign it to whatever shortcut you want.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2025-01-23 13:29:53

Manthano
Member
Registered: 2024-12-20
Posts: 11
LinuxFirefox 128.0

Re: Thunar:Expandable folder opening/closing with custom keyboard shortcut

Okay, thanks, that sounds like a fine experiment! I've run many times to this xdotool in different situations, this could be the time to test this also.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 535.43 KiB (Peak: 536.27 KiB) ]