fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes Altmanningerbuiltin commandline: fix completion description508ae410a

master
2.2 KiB30 linesraw
1complete -c commandline -s h -l help -d "Display help and exit"
2complete -c commandline -s a -l append -d "Add text to the end of the selected area"
3complete -c commandline -s i -l insert -d "Add text at cursor"
4complete -c commandline -s i -l insert-smart -d 'Add text at cursor but DWIM, stripping leading $'
5complete -c commandline -s r -l replace -d "Replace selected part"
6
7complete -c commandline -s j -l current-job -d "Select job under cursor"
8complete -c commandline -s p -l current-process -d "Select process under cursor"
9complete -c commandline -s s -l current-selection -d "Select current selection"
10complete -c commandline -s t -l current-token -d "Select token under cursor"
11complete -c commandline -s b -l current-buffer -d "Select entire command line (default)"
12
13complete -c commandline -s c -l cut-at-cursor -d "Only return that part of the command line before the cursor"
14complete -c commandline -s f -l function -d "execute readline function"
15complete -c commandline -s x -l tokens-expanded -d "Print a list of expanded tokens"
16
17complete -c commandline -s I -l input -d "Specify command to operate on"
18complete -c commandline -s C -l cursor -d "Set/get cursor position, not buffer contents"
19complete -c commandline -s B -l selection-start -d "Get current selection starting position"
20complete -c commandline -s E -l selection-end -d "Get current selection ending position"
21complete -c commandline -s L -l line -d "Print/set the line the cursor is on"
22complete -c commandline -l column -d "Print/set the column the cursor is on"
23complete -c commandline -s S -l search-mode -d "Return true if performing a history search"
24complete -c commandline -s P -l paging-mode -d "Return true if showing pager content"
25complete -c commandline -l paging-full-mode -d "Return true if pager is showing all content"
26complete -c commandline -l search-field -d "Operate on the pager search field"
27complete -c commandline -l is-valid -d "Return true if the command line is syntactically valid and complete"
28complete -c commandline -l showing-suggestion -d "Return true if the command line has an autosuggestion"
29
30complete -c commandline -n '__fish_contains_opt -s f function' -a '(bind --function-names)' -d 'Function name' -x