mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-16 23:32:45 +08:00
Update just.fish to handle descriptions for completions (#10260)
* Update just.fish to handle descriptions for completions This change updates fish completions to also include descriptions for justfile recipes. It has been tested with descriptions for recipes with arguments as well * rely on fish only (avoid sed)
This commit is contained in:
parent
3914bbe538
commit
6f797ac958
|
@ -1,4 +1,4 @@
|
|||
function _justfile_targets
|
||||
just --summary 2>/dev/null | string split ' '
|
||||
just -l | tail -n +2 | string trim -l | string replace -r '(\s*#\s*)' '\t' | string replace -r '(\s*[\*\+][^\s]*)' ''
|
||||
end
|
||||
complete -c just -a '(_justfile_targets)' -f
|
||||
complete -c just -f -a '(_justfile_targets)'
|
||||
|
|
Loading…
Reference in New Issue
Block a user