
Is it possible to add a Lua plugin entry to the F2 User Menu? Or, specifically, to have entries in that menu appear only on certain conditions? I'd like some different options for hitting F2 on a JPG, a PDF, a TXT, an EXE, or maybe on a name that matches a regexp... Or, is my only option to make my plugin show as a menu in the F11 Plugins menu, and - basing on the selected file name - open as a different submenu?