Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
xfce:thunar:custom-actions [2018/11/27 21:19] – [Using 'nano' text editor] alexxcons | xfce:thunar:custom-actions [2020/08/04 16:45] – [Opening a terminal] alexxcons | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{ : | ||
====== Custom Actions ====== | ====== Custom Actions ====== | ||
Line 4: | Line 5: | ||
This page serves as an introduction to the **Custom Actions** plugin, and includes a list of useful examples. | This page serves as an introduction to the **Custom Actions** plugin, and includes a list of useful examples. | ||
+ | |||
+ | ---- | ||
===== Adding a Custom Action ===== | ===== Adding a Custom Action ===== | ||
Line 10: | Line 13: | ||
<figure " | <figure " | ||
- | {{: | + | {{: |
</ | </ | ||
- | On the first page, enter '' | + | On the first page, enter '' |
Now, continue with the second page (the {gui> | Now, continue with the second page (the {gui> | ||
- | 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 '' | + | 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 '' |
- | 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 |
<figure " | <figure " | ||
- | {{thunar:thunar_custom-actions-dialog.png}} | + | {{:xfce:thunar:uca-list.png}} |
</ | </ | ||
+ | |||
+ | [[|Back to Top]] | ||
+ | ---- | ||
===== Use mnemonics to open Thunar Custom Actions ===== | ===== Use mnemonics to open Thunar Custom Actions ===== | ||
When you create a Thunar Custom Action you can set the name with an underscore " | When you create a Thunar Custom Action you can set the name with an underscore " | ||
+ | ---- | ||
===== Examples ===== | ===== Examples ===== | ||
Line 35: | Line 42: | ||
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 |
* Name: **Search...** | * Name: **Search...** | ||
* Command: '' | * Command: '' | ||
Line 43: | Line 50: | ||
**Note:** For this action, you'll need to have '' | **Note:** For this action, you'll need to have '' | ||
- | ==== Finding files in the current folder with catfish ==== | + | ---- |
- | * Name: **Search files...** | + | |
- | * Command: '' | + | |
- | * File pattern: * | + | |
- | * Appears if selection contains: Directories | + | |
- | **Note:** For this action, you'll need to have '' | + | ==== Finding files inside the current/selected folder with catfish ==== |
- | + | ||
- | ==== Finding files inside the selected folder with catfish ==== | + | |
* Name: **Search files inside...** | * Name: **Search files inside...** | ||
- | * Command: '' | + | * Command: '' |
* File pattern: * | * File pattern: * | ||
* Appears if selection contains: Directories | * Appears if selection contains: Directories | ||
**Note:** For this action, you'll need to have '' | **Note:** For this action, you'll need to have '' | ||
+ | |||
+ | ---- | ||
==== Working with archives | ==== Working with archives | ||
Line 76: | Line 79: | ||
**Hint:** You may prefer the [[http:// | **Hint:** You may prefer the [[http:// | ||
+ | |||
+ | ---- | ||
==== Playing music files ==== | ==== Playing music files ==== | ||
Line 88: | Line 93: | ||
**Hint:** Works exactly the same with Audacious. | **Hint:** Works exactly the same with Audacious. | ||
+ | |||
+ | ---- | ||
==== Burning an ISO file to a CD ==== | ==== Burning an ISO file to a CD ==== | ||
Line 94: | Line 101: | ||
* File pattern: *.iso | * File pattern: *.iso | ||
* Appears if selection contains: Other Files | * Appears if selection contains: Other Files | ||
+ | |||
+ | ---- | ||
==== Viewing images ==== | ==== Viewing images ==== | ||
Line 102: | Line 111: | ||
**Note:** This tip also works just as well with GThumb | **Note:** This tip also works just as well with GThumb | ||
+ | ---- | ||
==== Converting PNGs to JPEGs ==== | ==== Converting PNGs to JPEGs ==== | ||
Line 110: | Line 120: | ||
**Hint:** '' | **Hint:** '' | ||
+ | |||
+ | ---- | ||
==== Losslessly Rotating JPEGs ==== | ==== Losslessly Rotating JPEGs ==== | ||
Line 119: | Line 131: | ||
[[https:// | [[https:// | ||
+ | |||
+ | ---- | ||
==== Opening a terminal ==== | ==== Opening a terminal ==== | ||
* Name: **Open in a terminal** | * Name: **Open in a terminal** | ||
- | * Command: '' | + | * Command: '' |
* File pattern: * | * File pattern: * | ||
- | * Appears if selection contains: | + | * Appears if selection contains: |
- | **Note: | + | **Note: |
+ | |||
+ | ---- | ||
==== Opening a root terminal ==== | ==== Opening a root terminal ==== | ||
Line 135: | Line 151: | ||
**Note:** You should rewrite the command with normal straight quotes. | **Note:** You should rewrite the command with normal straight quotes. | ||
+ | |||
+ | ---- | ||
==== Opening a root Thunar ==== | ==== Opening a root Thunar ==== | ||
Line 143: | Line 161: | ||
**Note:** Some distributions no longer include '' | **Note:** Some distributions no longer include '' | ||
+ | |||
+ | ---- | ||
+ | |||
==== Editing as root ==== | ==== Editing as root ==== | ||
* Name: **Edit as root** | * Name: **Edit as root** | ||
Line 150: | Line 171: | ||
**Note:** You'll need to replace put-your-favourite-text-editor-here with your favourite text editor (e.g. mousepad or geany). Also, see previous note about '' | **Note:** You'll need to replace put-your-favourite-text-editor-here with your favourite text editor (e.g. mousepad or geany). Also, see previous note about '' | ||
+ | |||
+ | ---- | ||
==== Creating a symbolic link ==== | ==== Creating a symbolic link ==== | ||
Line 164: | Line 187: | ||
* File pattern: * | * File pattern: * | ||
* Appears if selection contains: //any// | * Appears if selection contains: //any// | ||
+ | |||
+ | ---- | ||
==== Setting an image as the desktop background ==== | ==== Setting an image as the desktop background ==== | ||
Line 170: | Line 195: | ||
* File pattern: * | * File pattern: * | ||
* Appears if selection contains: Image Files | * Appears if selection contains: Image Files | ||
+ | |||
+ | ---- | ||
==== Viewing the disk usage of the current directory ==== | ==== Viewing the disk usage of the current directory ==== | ||
Line 179: | Line 206: | ||
**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 ' | + | ---- |
- | * Command: xfce4-terminal -e "nano test.txt" | + | |
+ | ==== Using ' | ||
+ | * 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. | ||
+ | |||
+ | ---- | ||
==== Comparing selected files/ | ==== Comparing selected files/ | ||
Line 191: | Line 226: | ||
**Note:** You will need the '' | **Note:** You will need the '' | ||
+ | |||
+ | ---- | ||
==== Changing OpenDocument-supported formats ==== | ==== Changing OpenDocument-supported formats ==== | ||
Line 206: | Line 243: | ||
You can go on, try '' | You can go on, try '' | ||
+ | |||
+ | ---- | ||
+ | |||
==== Download subtitles with periscope ==== | ==== Download subtitles with periscope ==== | ||
* Name: **Download subtitles** | * Name: **Download subtitles** | ||
Line 213: | Line 253: | ||
**Note:** You will need '' | **Note:** You will need '' | ||
+ | |||
+ | ---- | ||
+ | |||
==== Rename subtitles easily ==== | ==== Rename subtitles easily ==== | ||
* Name: **Rename subtitles** | * Name: **Rename subtitles** | ||
Line 221: | Line 264: | ||
**Note:** You will need '' | **Note:** You will need '' | ||
+ | |||
+ | ---- | ||
==== Move files into a new folder ==== | ==== Move files into a new folder ==== | ||
* Name: **Move into new folder** | * Name: **Move into new folder** | ||
* Description: | * Description: | ||
- | * Command: NEW_FOLDER=$(/ | + | * Command: |
* File pattern: * | * File pattern: * | ||
* Appears if selection contains: All | * Appears if selection contains: All | ||
Line 232: | Line 277: | ||
+ | [[|Back To Top]] | ||
+ | ---- | ||
+ | [[: |