builtin commandline: add option to determine if pager is fully disclosed

Use the remaining_to_disclose count to determine if all completions
are shown (allows consistent behavior between short and long completion
lists).

Closes #8485
This commit is contained in:
thibault
2021-11-24 18:03:20 -05:00
committed by Johannes Altmanninger
parent 4a575b26f5
commit ceade1629d
6 changed files with 18 additions and 1 deletions

View File

@@ -61,6 +61,8 @@ The following options output metadata about the commandline state:
- ``-P`` or ``--paging-mode`` evaluates to true if the commandline is showing pager contents, such as tab completions
- ``--paging-full-mode`` evaluates to true if the commandline is showing pager contents, such as tab completions and all lines are shown (no "<n> more rows" message)
- ``--is-valid`` returns true when the commandline is syntactically valid and complete. If it is, it would be executed when the ``execute`` bind function is called. If the commandline is incomplete, it returns 2, if it is erroneus, it returns 1.
Example