The usercommand as you know it so far is very simple, but not very flexible. The pair-structure where the names
of the marked items are simply added behind the value or command the user defines is very limitating.
To be more flexible the newusercommand was created. However, the syntax still is the same as in the old one and therefore, the old usercommand
still works.
The difference is in the 'value' (or better 'command') section of the pair-structur ('keyphrase:name;value'). Here, the newusercommand
is organized in three blocks, one formating the command called to a shell, one to define a dialog to get input from the user, and the last
one to define some options about the way of calling the items to the system.
Each block starts with '<blockname' where blockname is a keyword for each block and ends with '/>'.
All blocks have to be in one single line so Cat'sEyE can recognise them as the 'value' in the usercommand.
Every block has properties which have to be inside the block.
Inside of the text property of the command block and the question-predefine property of the dialog block
you have access to some variables listed below. They are exchanged when processed.
variable name | exchanged with |
---|---|
<ThisDirectory> <TDIR> |
the directory of the view where the contextmenu is opened, no quotes and no ending slash |
<OtherDirectory> <ODIR> |
the directory of the view of the other side, no quotes and no ending slash |
<Home> <home> |
the home directory of the user |
<MarkedItems> <MI> |
all marked items in a single line each one in quotes |
<MarkedItemsUnQuoted> <MI_UQ> |
same as before but without quotes |
<MarkedItemsWithPath> <MIWP> |
all marked items with pathes in a single line each one in quotes |
<MarkedItemsWithPathUnQuoted> <MIWP_UQ> |
same as before but without quotes |
property | description | usage |
---|---|---|
text | holds the command and variables to build the string given to the shell | text="xv <MarkedItems>" |
property | description | usage |
---|---|---|
capion | the caption of the dialog | caption="some questions" |
label | some text viewed in the dialog | label="some text" |
question | define a question text a variable name and, if you want, a predefine to get input from the user | question="text"<VAR1>predefine=<ThisDirectory> question="text"<VAR1>predefine="answer" question="text"<VAR2> |
checkbox | define a text a variable name, the value for true and if you want, the value for false and a predefine (if the checkbox is checked first or not) | checkbox="text"<CHK1>"value for true":"value for false(optional)"predefine=<TRUE> checkbox="text"<CHK1>"value for true"predefine="answer" checkbox="text"<CHK1>"value for true" |
text | define a text which is displayed | text="some text" |
filechooser | creates a button which opens a file chooser dialog. The file you choose will be displayed in the edit box of the leading question. Therefore, there MUST be a question in front of this property | filechooser="button text" filechooser="button text"predefine="dialog caption" |
dirchooser | the same as file chooser but lets you only choose directories. | dirchooser="button text" dirchooser="button text"predefine="dialog caption" |
property | description | usage |
---|---|---|
call | how to call the items to the system | possible values are: call="all" call="each" call="list" |
caption | only works with call="list" and defines the name of the widget | caption="thecaption" |
label | only works with call="list", and views some text in the widget | label="some text" |
quitreply | When the process ends the text you define here will be displayed. You have access to all variables you have definened and to the predefined too. Does not work with call="list". | quitreply="sometext" quitreply="text <Home>" |
folderupdate (unused since 3.0) | When the process ends the text you define here will be identified as a directory which should be updated, when shown on one side. You have access to all variables you have definened and to the predefined too. | folderupdate="/usr/lib" folderupdate="<Home>" folderupdate="<AnyVariable YouDefined>" |
actionnote | Defines a little widget which exists as long as the process runs. The user only can define the caption. Within this widget the command is displayed. | actionnote="caption" |
Impressum