Help with special symbols in User Menu...

You have encountered a problem using Far Manager? Here you can get help.
SuperStainless
Posts: 10
Joined: Sat 07 Mar, 2020 16:42
Been thanked: 1 time

FarMenu.ini syntax and special aliases

Post by SuperStainless »

Latest post of the previous page:

I have to operate with tagged files, not selected files. With selected file is easier but a different thing. I think I will solve the problem with an external Python script.
Thank you.

buniak_a_h
Posts: 1852
Joined: Sat 20 Apr, 2013 00:17
Location: Питер
Has thanked: 116 times
Been thanked: 165 times
Contact:

Help with special symbols in User Menu...

Post by buniak_a_h »

SuperStainless wrote:
Wed 22 Apr, 2020 16:19
I also meant menus in separate files: would be useful because you can compile the menu only one time and use it in different places.
You can write in FarMenu.ini so:

Code: Select all

:    Menu from «UserMenu.Ini»
     lua:mf.usermenu(0x02, win.SearchPath( (APanel.Plugin and win.GetCurrentDir() or APanel.Path) .. ';' .. (win.GetEnv("FARHOME") .. ';') .. (win.GetEnv("FARPROFILE") .. ';') .. (win.GetEnv("FARLOCALPROFILE") .. ';'), 'UserMenu.Ini' ))
File UserMenu.ini has same format as FarMenu.ini
More detailed and example see here (in Russian, sorry)
Last edited by buniak_a_h on Sun 03 May, 2020 08:50, edited 1 time in total.

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

Help with special symbols in User Menu...

Post by SuperStainless »

@buniak_a_h: It works perfectly! THANK YOU!!! :)

Post Reply

Return to “Support and Troubleshooting”