Skip to content

Commit 33ba136

Browse files
zgracemEnselic
authored andcommitted
fix --pager opts display and add some examples
1 parent f36df73 commit 33ba136

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

assets/completions/bat.fish.in

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ set -l color_opts '
100100
set -l decorations_opts $color_opts
101101
set -l paging_opts $color_opts
102102

103+
# Include some examples so we can indicate the default.
104+
set -l pager_opts '
105+
less\tdefault
106+
less\ -FR\t
107+
more\t
108+
vimpager\t
109+
'
110+
103111
set -l italic_text_opts '
104112
always\t
105113
never\tdefault
@@ -165,7 +173,7 @@ complete -c $bat -s m -l map-syntax -x -a "(__bat_complete_map_syntax)" -d "Map
165173

166174
complete -c $bat -s n -l number -d "Only show line numbers, no other decorations" -n __bat_no_excl_args
167175

168-
complete -c $bat -l pager -x -a less\tdefault -d "Which pager to use" -n __bat_no_excl_args
176+
complete -c $bat -l pager -x -a "$pager_opts" -d "Which pager to use" -n __bat_no_excl_args
169177

170178
complete -c $bat -l paging -x -a "$paging_opts" -d "When to use the pager" -n __bat_no_excl_args
171179

0 commit comments

Comments
 (0)