about summary refs log tree commit homepage
path: root/contrib/completion/lei-completion.bash
DateCommit message (Collapse)
2023-03-25lei: improve bash completion involving colons
This fixes completions of labels (`+L:' for `lei import' and `L:' for `lei q') so they can appear anywhere in the command-line. I mainly wanted this for `lei import $URL +L:label', but this also fixes `lei forget-external' completions for URLs (which involve colons).
2021-04-30lei import: support shell completion of known folders
This also fixes completion of "lei up" for IMAP folders.
2021-02-18lei: completion: bash: generalize nospace usage
We'll be completing more options with ':', '//' and '=' in the future, so make it easier to disable trailing spaces on completions.
2021-02-07lei: add-external --mirror support
This can be useful for users who want to clone and mirror an existing public-inbox. This doesn't have update support, yet, so users will need to run "git fetch && public-inbox-index" for now.
2021-02-04lei add-external: completion for existing URL basenames
Given the presence of one external on a certain host or prefix path, it's logical other inboxes would share a common prefix. For bash users, attempt to complete that using the "-o nospace" option of bash
2021-01-06lei: completion: fix filename completion
"-o default" is what we want from "complete", "-o filename" just tells readline the result from the "_lei" function might be a filename and quote appropriately.
2021-01-01update copyrights for 2021
Using "make update-copyrights" after setting GNULIB_PATH in my config.mak
2020-12-19lei: start working on bash completion
Much work still needs to be done, but that goes for this entire project :P