Help with special symbols in User Menu...

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
User avatar
Mauro72
Posts: 206
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 6 times

Help with special symbols in User Menu...

Post by Mauro72 » Tue 10 Apr, 2012 16:47

Hi,
I need to know how to put passive panel in this line:
"c:\WinRAR\Rar.exe" a -y !?Nombre del archivo:?! !&
This line is a user menu option to compress selected files in RAR format. Works, but i want to put the drive/folder of passive panel.
Any help?
Thanks.

User avatar
John Doe
Бюрократ
Posts: 11100
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 12 times
Been thanked: 68 times

Re: Help with special symbols in User Menu...

Post by John Doe » Tue 10 Apr, 2012 16:52

F1?

User avatar
HaRT
Moderator
Posts: 8032
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 67 times
Been thanked: 100 times

Re: Help with special symbols in User Menu...

Post by HaRT » Tue 10 Apr, 2012 17:29

Mauro72
in Far 1.75, it's here: open the New User Menu Command dialog (titled “Edit user menu”), press F1 there and go by the “Special symbols” link.
Фар есть инструмент, а не нянька. © 2009 DrKnS

User avatar
Mauro72
Posts: 206
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 6 times

Re: Help with special symbols in User Menu...

Post by Mauro72 » Tue 10 Apr, 2012 22:44

FAR3 is the version and i check the help with F1 and special symbols link, but i can't find a solution.
Try the symbols !#, but no work.
With !?Nombre del archivo:?! i need to write the name of the new file, but i want the dialog with the drive:\folder of passive panel.
Example:

Passive panel: D:\Audio
Active panel: E:\Manuales
So when i select x number of files of E:\Manuales, will be ok if the dialog put:
D:\Audio\'here write the filename'
More info?
Thanks.

PD: I'm still waiting the option to sort files and folders separately. xD

User avatar
John Doe
Бюрократ
Posts: 11100
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 12 times
Been thanked: 68 times

Re: Help with special symbols in User Menu...

Post by John Doe » Thu 19 Apr, 2012 15:54

Mauro72 wrote:Try the symbols !#, but no work.
It works.

Code: Select all

"c:\WinRAR\Rar.exe" a -y "!#!\!?Nombre del archivo:?!" !^!&

User avatar
Mauro72
Posts: 206
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 6 times

Re: Help with special symbols in User Menu...

Post by Mauro72 » Thu 19 Apr, 2012 18:55

Ok, works, but the dialog always is blank.
The window dialog 'Nombre de archivo' always is empty (or name enter below).
I know, is irrelevant to show or not show the full path. (D:\Audio\'here write the filename') or ('here write the filename' directly)
I remember Dos NAvigator user menu syntax and works perfectly. Some like !.!:\!.!
Thanks anyway John Doe.

User avatar
Centaur
Posts: 1083
Joined: Tue 05 Apr, 2005 20:09
Location: Novosibirsk, Russia

Re: Help with special symbols in User Menu...

Post by Centaur » Fri 20 Apr, 2012 05:19

Read the help on special symbols carefully, it has some syntax involving parentheses to use !#!\ in the default value for !??!.

User avatar
Mauro72
Posts: 206
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 6 times

Re: Help with special symbols in User Menu...

Post by Mauro72 » Sun 22 Apr, 2012 03:47

Yeah...... I find the solution. :D
Like Centaur says, the parentheses is needed. And the working correct line is:

"c:\WinRAR\Rar.exe" a -y !?Nombre del archivo:?(!#!\)! !^!&

Thanks boys for the help. Question solved. :Yahoo!:

mrfyx
Posts: 10
Joined: Fri 10 Apr, 2015 14:04

"user menu" special symbols

Post by mrfyx » Fri 10 Apr, 2015 14:34

Hi,

I want to create a user command available in "user menu" to copy big file with external tool.
I want to copy selected and undercursor file/directory to the other panel path.
I can match easily the file select in the current panel with "!&" but i don't find a symbol for the other panel path.

The command is like this:
externaltool.exe source="!.! !&" destination=""

destination symbol missing :'(

Is there a way to do this ?

User avatar
HaRT
Moderator
Posts: 8032
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 67 times
Been thanked: 100 times

"user menu" special symbols

Post by HaRT » Fri 10 Apr, 2015 14:49

mrfyx wrote: i don't find a symbol for the other panel path
:rtfm2:
FAR Help wrote:"!^" modifier specified before a file association symbol forces it (and all the following characters) to refer to the active panel (see note 4).
For example, !^!.! denotes a current file name on the active panel, !##!\\!^!.! - a file on the passive panel with the same name as the name of the current file on the active panel.
[…]
4. The prefixes "!##" and "!^" work as toggles for associations. The effect of these prefixes continues up to the next similar prefix.
Фар есть инструмент, а не нянька. © 2009 DrKnS

mrfyx
Posts: 10
Joined: Fri 10 Apr, 2015 14:04

Help with special symbols in User Menu...

Post by mrfyx » Fri 10 Apr, 2015 14:53

oups sorry, I read it to quickly.

Thanks anyway

Post Reply

Return to “Support and Troubleshooting”