Sufler¶
Sufler provides the ability to easily add new completions for commands.
The tool use completions for commands from .yml files. Sufler support shells:
|
Quickstart¶
Installation¶
To install Sufler, open an interactive shell and run:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/limebrains/sufler/master/install.bash)"
Or to specify installation directory and type of shell:
bash -c "shell='bash_or_zsh';install_dir='absolute_path';$(curl -fsSL https://raw.githubusercontent.com/limebrains/sufler/master/install.bash)"
Using Sufler¶
After installation just type command you like and press Tab.
User guide¶
For using Sufler we only need to know what arguments our commands takes and optionaly their order.
Creation of completion¶
For example, we want to add completion for command Food, so we need to add his arguments in nodes after :.
'food': &food
'fruit': &fruit
'orange': *fruit
'banana': *fruit
'strawberry': *fruit
'grape':
'green':
'red':
'grapefruit':
'"ruby red"':
'yellow':
'--seedless=': &seedless
'true': *food
'false': *food
'<Exec> ls':
'rm':
Note
All name of nodes need to be in ‘
Note
After add last elements in complete tree, just leave “:” after last node
Note
We can add reference to any node of tree. E.g. if we want to repeat completions from ‘fruit’ after ‘orange’, between node and subnodes of fruit add anchor ‘&’ with name of reference ‘&fruit’. When we have anchor just add reference ‘*’ to food ‘*food’.
Advanced¶
Sufler has implemented support for advenced markers:
|