diff options
author | Janar Sööt <janar.soot@gmail.com> | 2018-12-20 21:02:24 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-01-07 21:38:53 -0500 |
commit | 005cbe157ac74e79043a55cf31bd04e67f7e1707 (patch) | |
tree | b55beee8eb4e634870607702fc90a6507e4590e6 /config/example-menu.cfg | |
parent | b9cccc5959ddb14211103f5f36676340649af9ce (diff) | |
download | kutter-005cbe157ac74e79043a55cf31bd04e67f7e1707.tar.gz kutter-005cbe157ac74e79043a55cf31bd04e67f7e1707.tar.xz kutter-005cbe157ac74e79043a55cf31bd04e67f7e1707.zip |
menu: allow names in card content and simplify define single card decks
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
Diffstat (limited to 'config/example-menu.cfg')
-rw-r--r-- | config/example-menu.cfg | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/example-menu.cfg b/config/example-menu.cfg index 81359081..453e1552 100644 --- a/config/example-menu.cfg +++ b/config/example-menu.cfg @@ -171,6 +171,11 @@ #items: # It accepts only 'card' elements. You are able to switch between different card screens # by using encoder or up/down buttons. +#content: +# It allows quickly define single card decks by adding content directly to deck. +# You have to remove deck item attribute and use named items in content. +# The menu functionality will then internally create one card item for this deck. +# This is optional. #[menu card1] #type: card @@ -179,6 +184,10 @@ # Card screen content. Each line represents display line. # Quotes can be used in the beginning and end of line. # Rendered elements are available for output formatting as {0}..{x}. It's always string type. +# It's possible directly use menu item names in content by leaving items attribute out or empty +# and use menu items names directly in content as {msg,xpos|ypos}. The menu functionality will then +# internally build a item list and replace names with indexes in content. +# This is optional. #items: # List of elements in card. Each line represents a single index for content formatting. # It's possible to show multiple elements in one place by separating them with comma on single line. |