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 [2019/11/30 21:58] – added icon and section dividers kevinbowenxfce:thunar:custom-actions [2020/08/10 00:26] – [Opening a terminal] alexxcons
Line 134: Line 134:
 ---- ----
  
-==== Opening terminal ==== +==== Opening terminal here ==== 
-    * Name: **Open in a terminal** +    * Name: **Open terminal here** 
-    * Command: ''%%terminal --default-working-directory=%d%%''+    * Command: ''%%for f in %F; do if [ -d "$f" ]; then exo-open --working-directory "$f" --launch TerminalEmulator; elif [ -z "$default" ]; then default=1; exo-open --launch TerminalEmulator; fi done%%''
     * File pattern: *     * File pattern: *
-    * Appears if selection contains: Directories+    * Appears if selection contains: any 
 + 
 +**Note:** If non-directory files are selected, a terminal in the current directory will be opened 
 +**Note:** For each selected folder, a terminal on that folder is opened
  
-**Note:** You might need to type ''xfce4-terminal'' instead of just ''terminal'' for some distributions. 
  
 ---- ----
Line 270: Line 272:
     * Name: **Move into new folder**     * Name: **Move into new folder**
     * 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.     * 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: <nowiki>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 </nowiki>
     * File pattern: *     * File pattern: *
     * Appears if selection contains: All     * Appears if selection contains: All