Help with special symbols in User Menu...

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

Help with special symbols in User Menu...

Post by Mauro72 »

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: 12829
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 38 times
Been thanked: 290 times

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

Post by John Doe »

F1?

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

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

Post by HaRT »

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: 216
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

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

Post by Mauro72 »

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: 12829
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 38 times
Been thanked: 290 times

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

Post by John Doe »

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: 216
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

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

Post by Mauro72 »

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
Been thanked: 2 times

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

Post by Centaur »

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

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

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

Post by Mauro72 »

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 »

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: 9446
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 106 times
Been thanked: 223 times

"user menu" special symbols

Post by HaRT »

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 »

oups sorry, I read it to quickly.

Thanks anyway

SuperStainless
Posts: 10
Joined: Sat 07 Mar, 2020 16:42
Been thanked: 1 time

FarMenu.ini syntax and special aliases

Post by SuperStainless »

I would like to know if exists an alias for the list of tagged (the ones marked yellow with INS key) files inside the "FarMenu.ini" file.

Does it exists?

I also need the missed ones () in the following list:
- name of current file (!.!)
- name of current file without extension (!^!)
- path of current panel (!\)
- path of opposite panel ()
- name of current file with full path (!\!.!) or?
- name of current file in the opposite panel with full path ()
- list of all tagged files ()
- name of a temporary file with all tagged files, one per line ()

Are available nested menus?

Thank you to all!

Shmuel
Posts: 6139
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 31 times
Been thanked: 317 times

FarMenu.ini syntax and special aliases

Post by Shmuel »

Press F2 F1 Enter and read (the help page).

SuperStainless
Posts: 10
Joined: Sat 07 Mar, 2020 16:42
Been thanked: 1 time

FarMenu.ini syntax and special aliases

Post by SuperStainless »

There is nothing in the concise contextual help. Or maybe in the Russian version is better, but I use the English version.

pepak
Posts: 469
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 10 times
Been thanked: 34 times

FarMenu.ini syntax and special aliases

Post by pepak »

Actually, it's in the English version too. Precisely where Shmuel wrote it would be.

Note that "name of current file without extension" should be "!", not "!^!".

Nested menus are not available in the stock FAR. I implemented a basic support for them and published it somewhere in the forum for an older build of FAR3, but there apparently wasn't any interest in it so I stopped updating it here and only use it in my own FAR build.

Post Reply

Return to “Support and Troubleshooting”