Teach abra to set up or spit out at least auto-completion config #216

Closed
opened 2021-10-28 12:53:52 +00:00 by decentral1se · 3 comments
Owner

Describe the problem to be solved

It's kinda a bit of a pain to get that source file from the Git.

Describe the solution you would like

Can abra auto-configure auto-completion? Or can it help make it easier?

## Describe the problem to be solved It's kinda a bit of a pain to get that source file from the Git. ## Describe the solution you would like Can `abra` auto-configure auto-completion? Or can it help make it easier?
decentral1se added the
enhancement
abra
labels 2021-10-28 12:53:52 +00:00
Owner

If e.g. abra completion bash can spit out the scripts/completion/bash file and so on, we can change the "set up completion" instructions to just adding

source <(abra completion bash)

to bashrc etc.

Maybe that's Automatic Enough™?

If e.g. `abra completion bash` can spit out [the `scripts/completion/bash` file](https://git.coopcloud.tech/coop-cloud/abra/src/branch/main/scripts/autocomplete/bash) and so on, we can change the "set up completion" instructions to just adding `source <(abra completion bash)` to bashrc etc. Maybe that's Automatic Enough™?
Owner

Oh, or tea (Gitea CLI) does it a really interesting way:

➜ tea autocomplete bash
Fetching https://gitea.com/gitea/tea/raw/branch/master/contrib/autocomplete.sh

# Run the following commands to install autocompletion (or use --install)
echo 'PROG=tea source "/home/user/.config/tea/autocomplete.sh"' >> ~/.bashrc && source ~/.bashrc
Oh, or `tea` (Gitea CLI) does it a really interesting way: ``` ➜ tea autocomplete bash Fetching https://gitea.com/gitea/tea/raw/branch/master/contrib/autocomplete.sh # Run the following commands to install autocompletion (or use --install) echo 'PROG=tea source "/home/user/.config/tea/autocomplete.sh"' >> ~/.bashrc && source ~/.bashrc ```
decentral1se added this to the Beta release (software) project 2021-11-02 21:17:58 +00:00
Author
Owner

Would be great if you could tweak outputs in https://git.coopcloud.tech/coop-cloud/abra/src/branch/main/cli/autocomplete.go as you see fit, I've just cobbled it together for now.

Would be great if you could tweak outputs in https://git.coopcloud.tech/coop-cloud/abra/src/branch/main/cli/autocomplete.go as you see fit, I've just cobbled it together for now.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#216
No description provided.