Custom completion API is experimental and subject to change
Writing custom fuzzy completion
See https://github.com/junegunn/fzf#custom-fuzzy-completion
[ZSH] Complete hg update/hg merge
If you need to add branch name completion for a subset of hg commands, e.g. hg up, hg merge, you can use technique as follows (zsh completion):
[ZSH] Complete git co (for example)
You can use the same approach as above to complete any git command. In the example below, completion is triggered on git co (usual alias for git checkout):
[BASH] Custom trigger-less completion
If you want to remove the ** trigger just for certain completions, you can achieve this like so:
[BASH] Use bfs instead of fd for more ergonomic results
Uses bfs to put shallow-depth paths closer to the top of results, while also leveraging bfs' superior performance over fd.
Based on: https://github.com/tavianator/bfs/discussions/119
See also: bfs vs fd vs find benchmark