Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Add completion for commands and feeds #15

Closed
wants to merge 47 commits into from
Closed

Conversation

ni3k
Copy link

@ni3k ni3k commented Dec 2, 2022

Addresses issue #12

@h2337
Copy link
Owner

h2337 commented Dec 3, 2022

Thanks for taking time to contribute.

It doesn't work for me for some reason though, I built it and added few feeds, clicking tab after typing doesn't really do anything for me (I do have bash-completion installed).
Does it work for you?

@ni3k
Copy link
Author

ni3k commented Dec 3, 2022

@jafarlihi you have to follow the steps for enabling autocompletion for the program when testing:

https://cli.urfave.org/v2/examples/bash-completions/

for me it was running the following command:

PROG=rssnix source ../cli/autocomplete/zsh_autocomplete

Edit: It seems I missed the enabling step, I'll add a commit addressing that

@ni3k
Copy link
Author

ni3k commented Dec 5, 2022

@jafarlihi I added a setup command that enables autocompletion for zsh or bash profiles.
I tested it in following mode:

$ go install -a
$ rssnix s zsh
$ source ~/.zshrc
$ rssnix [Tab] ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants