Mailinglist Archive: opensuse (868 mails)
| < Previous | Next > |
[opensuse] Re: copy/mv in MC
- From: Charles Philip Chan <cpchan@xxxxxxxx>
- Date: Wed, 18 May 2011 17:39:23 -0400
- Message-id: <87aaejd6yc.fsf@karnak.MagnumOpus.khem>
"Carlos E. R." <robin.listas@xxxxxxxxx>
writes:
In the manpage:
,----
| Macro Substitution
| When accessing a user menu, or executing an extension dependent
command, or running a
| command from the command line input, a simple macro substitution takes
place.
|
| The macros are:
|
| %i The indent of blank space, equal the cursor column position.
For edit menu
| only.
|
| %y The syntax type of current file. For edit menu only.
|
| %k The block file name.
|
| %e The error file name.
|
| %m The current menu name.
|
| %f and %p
| The current file name.
|
| %x The extension of current file name.
|
| %b The current file name without extension.
|
| %d The current directory name.
|
| %F The current file in the unselected panel.
|
| %D The directory name of the unselected panel.
|
| %t The currently tagged files.
|
| %T The tagged files in the unselected panel.
|
| %u and %U
| Similar to the %t and %T macros, but in addition the files are
untagged. You
| can use this macro only once per menu file entry or
extension file entry,
| because next time there will be no tagged files.
|
| %s and %S
| The selected files: The tagged files if there are any.
Otherwise the current
| file.
|
| %cd This is a special macro that is used to change the current
directory to the
| directory specified in front of it. This is used primarily as
an interface to
| the Virtual File System.
|
| %view This macro is used to invoke the internal viewer. This macro
can be used
| alone, or with arguments. If you pass any arguments to
this macro, they
| should be enclosed in brackets.
|
| The arguments are: ascii to force the viewer into ascii mode;
hex to force the
| viewer into hex mode; nroff to tell the viewer that it
should interpret the
| bold and underline sequences of nroff; unformatted to tell the
viewer to not
| interpret nroff commands for making the text bold or underlined.
|
| %% The % character
|
| %{some text}
| Prompt for the substitution. An input box is shown and the
text inside the
| braces is used as a prompt. The macro is substituted by the
text typed by the
| user. The user can press ESC or F10 to cancel. This macro
doesn't work on the
| command line yet.
|
| %var{ENV:default}
| If environment variable ENV is unset, the default is
substituted. Otherwise,
| the value of ENV is substituted.
`----
Charles
--
"Besides, I think [Slackware] sounds better than 'Microsoft,' don't you?"
(By Patrick Volkerding)
writes:
That is interesting. Where is the list of such tokens?
In the manpage:
,----
| Macro Substitution
| When accessing a user menu, or executing an extension dependent
command, or running a
| command from the command line input, a simple macro substitution takes
place.
|
| The macros are:
|
| %i The indent of blank space, equal the cursor column position.
For edit menu
| only.
|
| %y The syntax type of current file. For edit menu only.
|
| %k The block file name.
|
| %e The error file name.
|
| %m The current menu name.
|
| %f and %p
| The current file name.
|
| %x The extension of current file name.
|
| %b The current file name without extension.
|
| %d The current directory name.
|
| %F The current file in the unselected panel.
|
| %D The directory name of the unselected panel.
|
| %t The currently tagged files.
|
| %T The tagged files in the unselected panel.
|
| %u and %U
| Similar to the %t and %T macros, but in addition the files are
untagged. You
| can use this macro only once per menu file entry or
extension file entry,
| because next time there will be no tagged files.
|
| %s and %S
| The selected files: The tagged files if there are any.
Otherwise the current
| file.
|
| %cd This is a special macro that is used to change the current
directory to the
| directory specified in front of it. This is used primarily as
an interface to
| the Virtual File System.
|
| %view This macro is used to invoke the internal viewer. This macro
can be used
| alone, or with arguments. If you pass any arguments to
this macro, they
| should be enclosed in brackets.
|
| The arguments are: ascii to force the viewer into ascii mode;
hex to force the
| viewer into hex mode; nroff to tell the viewer that it
should interpret the
| bold and underline sequences of nroff; unformatted to tell the
viewer to not
| interpret nroff commands for making the text bold or underlined.
|
| %% The % character
|
| %{some text}
| Prompt for the substitution. An input box is shown and the
text inside the
| braces is used as a prompt. The macro is substituted by the
text typed by the
| user. The user can press ESC or F10 to cancel. This macro
doesn't work on the
| command line yet.
|
| %var{ENV:default}
| If environment variable ENV is unset, the default is
substituted. Otherwise,
| the value of ENV is substituted.
`----
Charles
--
"Besides, I think [Slackware] sounds better than 'Microsoft,' don't you?"
(By Patrick Volkerding)
| < Previous | Next > |