Changeset View
Changeset View
Standalone View
Standalone View
krusader/useraction_examples.xml
1 | <?xml version="1.0" encoding="UTF-8" ?> | 1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE KrusaderUserActions> | 2 | <!DOCTYPE KrusaderUserActions> | ||
3 | <KrusaderUserActions> | 3 | <KrusaderUserActions> | ||
4 | <action name="sample_panesize" > | 4 | <action name="sample_panesize" > | ||
5 | <title>Equal panel-size</title> | 5 | <title>Equal panel-size</title> | ||
6 | <tooltip>Sets the ratio between the two panels to 50/50</tooltip> | 6 | <tooltip>Sets the ratio between the two panels to 50/50</tooltip> | ||
7 | <icon>view-split-left-right</icon> | 7 | <icon>view-split-left-right</icon> | ||
8 | <category>Samples</category> | 8 | <category>Samples</category> | ||
9 | <command>%aPanelSize("50")%</command> | 9 | <command>%aPanelSize("50")%</command> | ||
10 | <defaultshortcut>Alt+Ctrl+Equal</defaultshortcut> | 10 | <defaultshortcut>Alt+Ctrl+Equal</defaultshortcut> | ||
11 | </action> | 11 | </action> | ||
12 | <action name="sample_edit_as_root" > | 12 | <action name="sample_edit_as_root" > | ||
13 | <title>Edit as root</title> | 13 | <title>Edit as root</title> | ||
14 | <tooltip>Edit a file as root</tooltip> | 14 | <tooltip>Edit a file as root</tooltip> | ||
15 | <icon>kate</icon> | 15 | <icon>document-edit</icon> | ||
16 | <category>Samples</category> | 16 | <category>Samples</category> | ||
17 | <description>Edit a file with root permissions</description> | 17 | <description>Edit a file with root permissions</description> | ||
18 | <command>EDITOR='kate -b' SUDO_ASKPASS=/usr/bin/ssh-askpass sudoedit -A %aCurrent%</command> | 18 | <command>EDITOR='kate -b' SUDO_ASKPASS=/usr/bin/ssh-askpass sudoedit -A %aCurrent%</command> | ||
19 | <defaultshortcut>Ctrl+E</defaultshortcut> | 19 | <defaultshortcut>Ctrl+E</defaultshortcut> | ||
20 | </action> | 20 | </action> | ||
21 | <action name="sample_newmount" > | 21 | <action name="sample_newmount" > | ||
22 | <title>Mount</title> | 22 | <title>Mount</title> | ||
23 | <tooltip>Mount a new filesystem</tooltip> | 23 | <tooltip>Mount a new filesystem</tooltip> | ||
24 | <icon>hdd_mount</icon> | 24 | <icon>media-mount</icon> | ||
25 | <category>Samples</category> | 25 | <category>Samples</category> | ||
26 | <command executionmode="collect_output" run_as="root" >mount -t %_Ask("Filesystem Type?")% %_Ask("Device ?")% %_Ask("Mount Point ?")%</command> | 26 | <command executionmode="collect_output" run_as="root" >mount -t %_Ask("Filesystem Type?")% %_Ask("Device ?")% %_Ask("Mount Point ?")%</command> | ||
27 | <defaultshortcut>Alt+Ctrl+M</defaultshortcut> | 27 | <defaultshortcut>Alt+Ctrl+M</defaultshortcut> | ||
28 | </action> | 28 | </action> | ||
29 | <action name="sample_amarok_enqueue" > | 29 | <action name="sample_amarok_enqueue" > | ||
30 | <title>Enqueue in Amarok</title> | 30 | <title>Enqueue in Amarok</title> | ||
31 | <tooltip>Append selected item(s) to Amarok playlist</tooltip> | 31 | <tooltip>Append selected item(s) to Amarok playlist</tooltip> | ||
32 | <icon>amarok</icon> | 32 | <icon>amarok</icon> | ||
33 | <category>Multimedia</category> | 33 | <category>Multimedia</category> | ||
34 | <description same_as="tooltip" /> | 34 | <description same_as="tooltip" /> | ||
35 | <command>amarok --append %aList("Selected")%</command> | 35 | <command>amarok --append %aList("Selected")%</command> | ||
36 | <defaultshortcut>Meta+A</defaultshortcut> | 36 | <defaultshortcut>Meta+A</defaultshortcut> | ||
37 | </action> | 37 | </action> | ||
38 | <action name="filename_to_clipboard" > | 38 | <action name="filename_to_clipboard" > | ||
39 | <title>Copy current item to clipboard</title> | 39 | <title>Copy current item to clipboard</title> | ||
40 | <icon>edit-paste</icon> | 40 | <icon>edit-paste</icon> | ||
41 | <category>Samples</category> | 41 | <category>Samples</category> | ||
42 | <command>%_Clipboard("%aCurrent%")%</command> | 42 | <command>%_Clipboard("%aCurrent%")%</command> | ||
43 | <defaultshortcut>Alt+Ctrl+C</defaultshortcut> | 43 | <defaultshortcut>Alt+Ctrl+C</defaultshortcut> | ||
44 | </action> | 44 | </action> | ||
45 | <action name="sort_by_name" > | 45 | <action name="sort_by_name" > | ||
46 | <title>Sort by Name</title> | 46 | <title>Sort by Name</title> | ||
47 | <tooltip>Sort by Name</tooltip> | 47 | <tooltip>Sort by Name</tooltip> | ||
48 | <icon>view_text</icon> | 48 | <icon>sort-name</icon> | ||
49 | <category>User Interface</category> | 49 | <category>User Interface</category> | ||
50 | <description>Sorts the active panel by Name</description> | 50 | <description>Sorts the active panel by Name</description> | ||
51 | <command>%aColSort("Name")%</command> | 51 | <command>%aColSort("Name")%</command> | ||
52 | <defaultshortcut>Ctrl+1</defaultshortcut> | 52 | <defaultshortcut>Ctrl+1</defaultshortcut> | ||
53 | </action> | 53 | </action> | ||
54 | <action name="sort_by_extension" > | 54 | <action name="sort_by_extension" > | ||
55 | <title>Sort by Extension</title> | 55 | <title>Sort by Extension</title> | ||
56 | <tooltip>Sort by Extension</tooltip> | 56 | <tooltip>Sort by Extension</tooltip> | ||
57 | <icon>view_text</icon> | 57 | <icon>sort-name</icon> | ||
58 | <category>User Interface</category> | 58 | <category>User Interface</category> | ||
59 | <description>Sorts the active panel by Extension</description> | 59 | <description>Sorts the active panel by Extension</description> | ||
60 | <command>%aColSort("Ext")%</command> | 60 | <command>%aColSort("Ext")%</command> | ||
61 | <defaultshortcut>Ctrl+2</defaultshortcut> | 61 | <defaultshortcut>Ctrl+2</defaultshortcut> | ||
62 | </action> | 62 | </action> | ||
63 | <action name="sort_by_size" > | 63 | <action name="sort_by_size" > | ||
64 | <title>Sort by Size</title> | 64 | <title>Sort by Size</title> | ||
65 | <tooltip>Sort by Size</tooltip> | 65 | <tooltip>Sort by Size</tooltip> | ||
66 | <icon>view_text</icon> | 66 | <icon>sort-name</icon> | ||
67 | <category>User Interface</category> | 67 | <category>User Interface</category> | ||
68 | <description>Sorts the active panel by Size</description> | 68 | <description>Sorts the active panel by Size</description> | ||
69 | <command>%aColSort("Size")%</command> | 69 | <command>%aColSort("Size")%</command> | ||
70 | <defaultshortcut>Ctrl+3</defaultshortcut> | 70 | <defaultshortcut>Ctrl+3</defaultshortcut> | ||
71 | </action> | 71 | </action> | ||
72 | <action name="sort_by_modified" > | 72 | <action name="sort_by_modified" > | ||
73 | <title>Sort by Modified</title> | 73 | <title>Sort by Modified</title> | ||
74 | <tooltip>Sort by Modified</tooltip> | 74 | <tooltip>Sort by Modified</tooltip> | ||
75 | <icon>view_text</icon> | 75 | <icon>sort-name</icon> | ||
76 | <category>User Interface</category> | 76 | <category>User Interface</category> | ||
77 | <description>Sorts the active panel by Modified</description> | 77 | <description>Sorts the active panel by Modified</description> | ||
78 | <command>%aColSort("Modified")%</command> | 78 | <command>%aColSort("Modified")%</command> | ||
79 | <defaultshortcut>Ctrl+4</defaultshortcut> | 79 | <defaultshortcut>Ctrl+4</defaultshortcut> | ||
80 | </action> | 80 | </action> | ||
81 | <action name="backup_current" > | 81 | <action name="backup_current" > | ||
82 | <title>Backup current</title> | 82 | <title>Backup current</title> | ||
83 | <tooltip>Backup current file in current folder</tooltip> | 83 | <tooltip>Backup current file in current folder</tooltip> | ||
84 | <icon>document-save-as</icon> | 84 | <icon>document-save-as</icon> | ||
85 | <category>System</category> | 85 | <category>System</category> | ||
86 | <description>Backs current file up in current folder and asks the user for a new filename. By default ".old" is appended to the original filename.</description> | 86 | <description>Backs current file up in current folder and asks the user for a new filename. By default ".old" is appended to the original filename.</description> | ||
87 | <command>%_Copy("%aCurrent("", "No")%", "%_Ask("New filename", "%aCurrent%.old")%")%</command> | 87 | <command>%_Copy("%aCurrent("", "No")%", "%_Ask("New filename", "%aCurrent%.old")%")%</command> | ||
88 | <defaultshortcut>Meta+F5</defaultshortcut> | 88 | <defaultshortcut>Meta+F5</defaultshortcut> | ||
89 | </action> | 89 | </action> | ||
90 | </KrusaderUserActions> | 90 | </KrusaderUserActions> |