Skip to content

Feature req: sub-layout loading #458

@uther-p

Description

@uther-p

the layout should be more dynamic by adding the following items.json directives:

  1. sub-menu:
    Allows you to specify another json file with another layout that gets used when the item is clicked
    e.g.:
  { 
    "type": "sub-menu",
    "icon": "...",           // icon
    "file": "menu.json",     // sub-menu json file
  }
  1. inline-menu:
    Like sub-menu, but the menu is expandable/collapsable within the current menu context.
  {
    "type": "sub-menu",
    "icon": "...",           // icon
    "file": "menu.json",     // sub-menu json file
    "width": 100,            // max expanded width (potentially also use %'s)
    "collapsed": true,       // true or false, collapsed by default
  }
  1. app-menu:
    Defines a menu layout to be used when a specific application is in focus, or maybe when the app's title bar matches an expression.
  {
     "type": "app-menu",
     "app-name": "Chrome",
     "file":  "chrome-menu.json"
  }

... these are just a few of my thoughts. I think making this possible is gonna require reworking the way configuration is loaded, to be more dynamic / extensible. As I don't see much progress being made to this project, however, I think maybe I may fork this project and do it myself. If so, and you are interested, I will keep you informed. Thanks for the starting point... provides me with a lot of how-to details I probably wouldn't have gotten around to digging into myself. ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions