Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
xfce:thunar:custom-actions [2019/07/26 18:52]
alexxcons updated pic to 1.8.x/graybird
xfce:thunar:custom-actions [2019/07/26 18:57] (current)
alexxcons Removed uca example xfprint (does that still exist?) with catfish
Line 13: Line 13:
 </​figure>​ </​figure>​
  
-On the first page, enter ''​Print File''​ in {gui>​Name:​} and ''​Print the selected file using xfprint''​ in {gui>​Description:​} Enter ''​xfprint4 ​%f''​ for the {gui>​Command:​} (the ''​%f''​ will be replaced with the path to the selected file, as explained in the dialog), and select an icon by clicking {gui>​Icon:​} (in the screenshot the ''​printer-symbolic.svg''​ icon was used). <​note>​Thunar seems to do the sensible thing when passing file/folder names with spaces in them, so don't worry excessively about putting single or double quotes around the "​%"​ placeholder.</​note>​+On the first page, enter ''​Search with Catfish''​ in {gui>​Name:​} and ''​search''​ in {gui>​Description:​} Enter ''​catfish ​%f''​ for the {gui>​Command:​} (the ''​%f''​ will be replaced with the path to the selected file, as explained in the dialog), and select an icon by clicking {gui>​Icon:​} (in the screenshot the ''​system-search.svg''​ icon was used). <​note>​Thunar seems to do the sensible thing when passing file/folder names with spaces in them, so don't worry excessively about putting single or double quotes around the "​%"​ placeholder.</​note>​
  
 Now, continue with the second page (the {gui>​Appearance Conditions} page). Now, continue with the second page (the {gui>​Appearance Conditions} page).
  
-We want to create an action that is only applicable to text files, so select the **Text Files** options and unselect the options for the other file types. Next you can specify a **File Pattern** to display the action only for text files that match a certain pattern. In the example, we set the file pattern to ''​*''​ (which matches all filenames) to indicate that the action should be displayed for all text files.+We want to create an action that is only applicable to folders, so select the **Folders** options and unselect the options for the other file types. Next you can specify a **File Pattern** to display the action only for text files that match a certain pattern. In the example, we set the file pattern to ''​*''​ (which matches all filenames) to indicate that the action should be displayed for all folders.
  
-That's all. Click **OK** to close the **Create Action** dialog. The new action, labeled **Print File** will appear in the **Custom Actions** list.+That's all. Click **OK** to close the **Create Action** dialog. The new action, labeled **Search with Catfish** will appear in the **Custom Actions** list.
  
-Now close the **Custom Actions** dialog, select a text file in Thunar and open the context menu (right-click on the file icon). The newly created **Print File** action will appear in the context menu, as shown in the screenshot below.+Now close the **Custom Actions** dialog, select a folder ​in Thunar and open the context menu (right-click on the file icon). The newly created **Search with Catfish** action will appear in the context menu, as shown in the screenshot below.
  
 <figure "​Custom Actions Dialog">​ <figure "​Custom Actions Dialog">​