You are not logged in.
Pages: 1
Hi,
I'd like to add a keyboard+mouse shortcut to Thunar, so that when I hold down Ctrl and press the left mouse button on a folder in the left bar, that the folder opens as a new tab.
Can someone help by letting me know if this is possible to do using the Configure Custom Actions menu (or via some other way), and if so how?
thanks,
Rik
Offline
Hi, Rik. Welcome to our community.
Thunar stores its shortcuts in ~/.config/Thunar/accels.scm. There is also a shortcuts editor dialog but it doesn't accept pointer clicks as valid input. Looking at keynames.txt, it's possible to refer to these clicks. Two good candidates are: Pointer_Left and Pointer_Button1.
If you look at your accels.scm file, you'll see that it already has an entry for this action. Uncomment a line that looks like this:
; (gtk_accel_path "<Actions>/ThunarActionManager/open-in-new-tab" "<Primary><Shift>p")
Get rid of the semicolon and then replace <Shift>p with one of the two. Note though: when I tested, they didn't work. Probably requires a restart of the Thunar daemon. Perhaps, you're luckier than me.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Actually, Ctrl+left click is used for selecting files, so you won't be able to use that combination.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
brilliant. thanks! I will find a different combo that is not taken yet.
Much appreciate the reply!
Rik
Offline
Actually, Ctrl+left click is used for selecting files, so you won't be able to use that combination.
I agree that this is the case for the folders in the main window, but this does not appear to be the case for the folders in the left-side sidebar, which is really where this would be very useful. Do you know if there are different actions for clicking the folders in this sidebar, then for clicking them in the main window, and if the "Ctrl-Pointer_button_1" combo could work for the sidebar using your method?
Offline
Offline
Do you know if there are different actions for clicking the folders in this sidebar, then for clicking them in the main window, and if the "Ctrl-Pointer_button_1" combo could work for the sidebar using your method?
To my knowledge, they use the same keybindings.
The closest you can get is by setting the /misc-middle-click-in-tab to false:
xfconf-query --channel thunar --property /misc-middle-click-in-tab --set false
After that, you'll be able to open locations in a new tab by holding Ctrl and clicking your mouse wheel.
Post number 666...
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Pages: 1
[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 540.87 KiB (Peak: 542.15 KiB) ]