The way I imagined it it would be something like the user has multiple UserMenu.ini files (for example usermenu_doc.ini, usermenu_audio.ini, ..), each one has in it at the start a filter for what type of files it's active, something like :
Code: Select all
[Active] Filename=*.ini, *.diz, *.nfo
I'm not exactly sure how this should work when multiple files are selected, since the files might respect different filters.
Also there could be 2 menu's that apply to the same file because of the filters, maybe in this case it should show a menu containing both usermenu's (maybe as submenus ?)
For now I have one usermenu with all the commands that i might apply to files, but it's not the best idea since i have audio editor, video editor, image editor, hex viewer, office viewer/editor commands and a few more and of course most of those commands don't apply to most of the files.
Another idea would be to have a plugin or program (maybe a LUA script ?) that would be called from the usermenu and depending on the file name/type would show a customizable menu for further commands, that way in the usermenu.ini file i would only have one entry : "view.exe !.!" that would call the plugin/program/script.
Is this possible and if not then what do you think should it be possible to be done in FAR or it's not something you would use.