[Thunar-workers] [Thunar File Manager] page changed: documentation:custom_actions

thunar-workers at xfce.org thunar-workers at xfce.org
Mon Apr 17 19:47:49 CEST 2006


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2006/04/17 17:47
Browser     : Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051116 Firefox/1.0.7
IP-Address  : 80.131.228.193
Hostname    : p5083E4C1.dip.t-dialin.net
Old Revision: http://thunar.xfce.org/pwiki/documentation/custom_actions?rev=1145223766
New Revision: http://thunar.xfce.org/pwiki/documentation/custom_actions
Edit Summary: Add short tutorial for Custom Actions
User        : benny

@@ -3,8 +3,32 @@
  Thunar allows users to add custom actions to the file and folder context menus (by the use of the ''thunar-uca'' plugin, part of the Thunar distribution, in the ''plugins/'' subdirectory). You can setup new actions in the **Custom Actions** dialog, available via the **Configure custom actions...** item in the **Edit** menu.
  
  {{ documentation:thunar-custom-actions.png }}
  
+ This page serves as an introduction to the **Custom Actions** plugin, and includes a list of useful [[documentation:custom_actions#examples|Examples]].
+ 
+ 
+ ===== Adding a custom action =====
+ 
+ This section provides a step-by-step introduction to the **Custom Actions** plugin, demonstrating how to add a **Print File** action, which uses xfprint to print text files. We start by opening the **Custom Actions** dialog as explained above. In the dialog, click on the first button in the list of buttons (the one labeled with the ''+''). The **Create Action** dialog will appear, as shown in the screenshot below.
+ 
+ {{ documentation:thunar-custom-actions-1.png }}
+ 
+ On the first page, enter ''Print File'' as name and ''Print the selected using xfprint'' as description. Enter ''xfprint4 %f'' as command (the ''%f'' will be replaced with the path to the selected file, as explained in the dialog), and select an icon for the icon (in the screenshot the ''xfprint.svg'' icon was used).
+ 
+ Now, continue with the second page (the **Appearance Conditions** page).
+ 
+ {{ documentation:thunar-custom-actions-2.png }}
+ 
+ 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.
+ 
+ That's all. Click **OK** to close the **Create Action** dialog. The new action, labeled **Print File** 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.
+ 
+ {{ documentation:thunar-custom-actions-3.png }}
+ 
+ You can use the [[http://thunar.xfce.org/pwiki/start#mailinglist|thunar-dev mailinglist]] to get in touch with the developers, if you have questions about this short tutorial or custom actions in general.
  
  ===== Examples =====
  
  Here are a few useful examples of custom actions, feel free to extend this list.



-- 
This mail was generated by DokuWiki at
http://thunar.xfce.org/pwiki/




More information about the Thunar-workers mailing list