I am trying to create a keyboard shortcut for "Create document..." subcomponent "Empty file", shown in the picture below:
It seems all the shortcuts in use by Thunar are stored in the file ~/.config/Thunar/accels.scm.
Thus, I tried to create one myself by adding one of the following lines:
(gtk_accel_path "<Actions>/ThunarStandardView/create-archive" "<Primary>n")
(gtk_accel_path "<Actions>/ThunarActions/Tap::create-archive" "<Primary>n")
but none of them work. Any idea which is the correct configuration?
Update: this website shows that it is possible to edit Menu keyboard shortcuts in a very simple fashion (just highlighting a menu entry and pressing a keyboard key(s)). Sadly enough, Empty File is one of the few that do not work this way!
xq '.' ~/.config/Thunar/uca.xml | jq -r '.actions.action[] | select(.name == "Confirm Trash") | .["unique-id"]'.xqfrom the pipyqpackage. https://www.ashbyhq.com/blog/engineering/jq-and-yq https://kislyuk.github.io/yq/ – Pysis Aug 08 '24 at 17:34