mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
acb77ad1a3
In the presence of modified files, assume `git checkout ...` is being invoked/completed with the intention of restoring modifications. Even if not the case, this list is likely going to be shortest if someone is about to change branches. Afterwards, list branches (with local branches sorted by recency), then remote unique remotes, heads, tags, and recent commits. The order of these last four is up for debate, and honestly if any of them generate a lot of results it makes finding what you're actually looking for in the autocompletions a lot harder. It may be better to merge these last contenders and sort them by individual recency instead, but that does make the pager entries rather messy (and we would need to add a new function to do that in order to interleave them in the desired sort order but preserve the overall sort after the completions subshell terminates). |
||
---|---|---|
.. | ||
completions | ||
functions | ||
groff | ||
tools | ||
__fish_build_paths.fish.in | ||
config.fish | ||
lynx.lss |