Shell Completion¶
exsh supports tab-completion for subcommands, flags, and — most usefully — remote collection and document paths. Paths are resolved by hitting the eXist server at tab-press time, so you can browse the server's database without typing full paths.
Install completion¶
Usage¶
Once installed, press Tab after a nick to expand the path:
The completer distinguishes between collections (trailing /) and documents, and filters suggestions based on context:
lsandmkdircomplete both collections and documents.cat,edit, andrmcomplete only documents.synccompletes collections and accepts local paths too.
Notes¶
- Completion works only when a server is reachable. If the server is down, Tab returns nothing.
- Completion uses the registered credentials from
~/.config/exsh/config.toml— no extra login needed.