mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 22:21:15 -03:00
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:
committed by
Johannes Altmanninger
parent
4a575b26f5
commit
ceade1629d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user