Xfce Wiki

Sub domains
 

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
xfce:thunar:custom-actions [2018/08/03 23:08] alexxconsxfce:thunar:custom-actions [2019/01/29 22:26] – fixed path to picture alexxcons
Line 24: Line 24:
  
 <figure "Custom Actions Dialog"> <figure "Custom Actions Dialog">
-{{thunar:thunar_custom-actions-dialog.png}}+{{:xfce:thunar:1.6:thunar_custom-actions-dialog.png}}
 </figure> </figure>
  
-You can use the [[https://mail.xfce.org/mailman/listinfo/thunar-dev|thunar-dev mailinglist]] to get in touch with the developersif you have questions about this short tutorial or custom actions in general.+===== Use mnemonics to open Thunar Custom Actions ===== 
 + 
 +When you create a Thunar Custom Action you can set the name with an underscore "_" before a letter to use it as mnemonic.  When you right click in a Thunar view, you can type the letter to access your custom action.
  
 ===== Examples ===== ===== Examples =====
Line 33: Line 35:
 Here are a few useful examples of custom actions. Feel free to extend this list. Here are a few useful examples of custom actions. Feel free to extend this list.
  
-==== Finding files in the current folder ====+==== Finding files in the current folder with gnome-search-tool ====
     * Name: **Search...**     * Name: **Search...**
     * Command: ''gnome-search-tool --path=%f''     * Command: ''gnome-search-tool --path=%f''
Line 41: Line 43:
 **Note:** For this action, you'll need to have ''gnome-search-tool'' installed, which is part of the ''gnome-utils'' package. This program also has a [[http://linux.die.net/man/1/gnome-search-tool|lot of other nice command-line options]] which you could use to create even more specialized actions. **Note:** For this action, you'll need to have ''gnome-search-tool'' installed, which is part of the ''gnome-utils'' package. This program also has a [[http://linux.die.net/man/1/gnome-search-tool|lot of other nice command-line options]] which you could use to create even more specialized actions.
  
-==== Finding files in the current folder with catfish ==== 
-    * Name: **Search files...** 
-    * Command: ''%%catfish --path=%f%%'' 
-    * File pattern: * 
-    * Appears if selection contains: Directories 
- 
-**Note:** For this action, you'll need to have ''catfish'' installed, which is part of the ''catfish'' package. 
  
-==== Finding files inside the selected folder with catfish ====+==== Finding files inside the current/selected folder with catfish ====
     * Name: **Search files inside...**     * Name: **Search files inside...**
-    * Command: ''%%catfish --path=%f%d%%''+    * Command: ''catfish %f''
     * File pattern: *     * File pattern: *
     * Appears if selection contains: Directories     * Appears if selection contains: Directories
Line 177: Line 172:
 **Note:** The idea is to get a visual picture of the current directory and any subdirectories. You could also use fsview or filelight, but the visuals are crisper in baobab. **Note:** The idea is to get a visual picture of the current directory and any subdirectories. You could also use fsview or filelight, but the visuals are crisper in baobab.
  
-==== Using 'nano' text editor ==== +==== Using 'nano' text editor in a terminal ==== 
-    * Command: ''terminal -x nano %f''+    * Name: **Open in Terminal** 
 +    * Command: xfce4-terminal -x nano %f 
 +    *  File pattern: * 
 +    * Appearance Conditions: Text files 
  
 Since nano isn't a GUI app, you must start it in a terminal window. Since nano isn't a GUI app, you must start it in a terminal window.
Line 222: Line 221:
 ==== Move files into a new folder ==== ==== Move files into a new folder ====
     * Name: **Move into new folder**     * Name: **Move into new folder**
-    * Description: Select any file. A dialog will popup in which you can write the nam of the folder to create. Files will be moved there.+    * Description: Select any number of file/folders. A dialog will popup in which you can write the name of a new folder to create. Selected Files will be moved there.
     * Command: NEW_FOLDER=$(/usr/bin/zenity --entry --title "Move into new folder" --text "Please enter a name for the new folder"); mkdir $NEW_FOLDER; mv %F $NEW_FOLDER      * Command: NEW_FOLDER=$(/usr/bin/zenity --entry --title "Move into new folder" --text "Please enter a name for the new folder"); mkdir $NEW_FOLDER; mv %F $NEW_FOLDER 
     * File pattern: *     * File pattern: *