Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/mshell.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ History search is prefix-based and case-insensitive. The prefix is whatever is c
- Shift-Tab: cycle completion backward when matches are active
- Ctrl-N/Ctrl-P: when cycling completions, move forward/backward through matches

Completion results render in one or two columns based on available rows. If the list still doesn't fit, the final line shows `[n] more items..`.

### Definition-based completions

The CLI can use definition metadata to provide argument completions for binaries. Add a `complete` key in the metadata dictionary of a `def` to register it for one or more command names. The definition is invoked with a clean stack containing a single list of argument tokens (excluding the binary name and the current prefix), and it should return a list of strings.
Expand Down
Loading