Some useful custom thunar file manager actions. Requirements are XFCE, Thunar, Zenity.

Note there is a shortcut menu in thunar by default called “Create Folder…” and “Create Dowcument…” but it only works if you click on empty *white* space in the thunar. With this custom actions bellow you can click anywhere even folder, file and still see this custom shortcuts and use them. So I consider this to be workaround for annoyance.
If you have your menu hidden make it visible for now by pressing “CTRL+M” then open “Configure custom actions…” from “Edit” menu. Ones you have “Custom Actions” dialog opened click on “+” plus button to add new thunar action. Ones you have “Create Action” dialog fill in the blanks with this following info.
Then you can hide your menu bar again by pressing “CTRL+M” and right click on any file in your thunar folder to open menu, there you should see new option called “New Empty File”. Now you can use that to create new file =) I know it would be easier to bind thunar shortcut but we can’t do this right now.
|
1 2 3 4 5 6 7 8 9 |
In "Basic" tab: Name: New Empty File Description: Create new empty file. Command: fileloc=$(zenity --entry --text "Enter new file name:" --entry-text ""); touch "$fileloc" Icon: select icon of your choice In "Appearance Conditions" tab: File Pattern: * (make sure its wildcard by default) Appears if selection contains: select all of them. |
Optionally you can create “New Empty Folder” action.
|
1 2 3 4 5 6 7 8 9 |
In "Basic" tab: Name: New Empty Folder Description: Create new empty folder. Command: dirloc=$(zenity --entry --text "Enter new folder name:" --entry-text ""); mkdir "$dirloc" Icon: select icon of your choice In "Appearance Conditions" tab: File Pattern: * (make sure its wildcard by default) Appears if selection contains: select all of them. |