tui.footer.set
tui.footer.set [ITEMS]
Declares the footer bar, as <footer/> does. Records the items only; the page layout then leaves the last row free.
Parameters
ITEMS:KEY|LABEL[|WHEN_FN]items separated by;. Empty: the default (quit, command bar, and Back when there is a page to go back to).KEYis shown as written (ctrl+s), or@COMMANDshows whichever key is bound to that command right now, so the footer follows rebinding. An@COMMANDwith no key is skipped.WHEN_FN: the item is shown only while it returns0.
Notes
- The footer belongs to its page and is removed on page change. At runtime use
tui.footer.show, which also relayouts. - Styled with
.footer,.footer_key,.footer_label.
Example
tui.footer.set "@tui.action.quit|Quit;@tui.palette.open|Commands;ctrl+s|Save|is_dirty"
