View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003718||Far Manager||User Menu||public||2019-06-20 19:37||2019-06-20 19:37|
|Target Version||Fixed in Version|
|Summary||0003718: Implemented: Support for includable user menus|
|Description||Attached patches provide a support for includable user menus, that is, user menus which insert the contents from some other menu in some place. This is very useful e.g. in situations where the user has a global user menu with some functions but needs to enhance this menu with new functions in a specific directory: my patch now allows to write a menu with just the new functions and then include the global menu file instead of copying the contents of the global file manually.|
The functionality is very rudimentary, particularly the UI which pretty much just prevents any actions on the included menu items.
* patch1.diff - contains the core functionality (support for reading included files).
* patch2.diff - contains the UI (what of it is there).
* FarMenuDemo.ini - shows how to include the global usermenu file. Note that the exact syntax is required, there may not be any extra spaces anywhere in the #include command.
The patch files can be imported into FAR source codes by copying the files inside FAR source and running 'git apply patch1.diff' and 'git apply patch2.diff' commands.
|Tags||No tags attached.|