iridakos / stup

Daily notes in the terminal :penguin:
https://github.com/iridakos/stup
MIT License
413 stars 31 forks source link

Add bash completion #2

Open iridakos opened 4 years ago

iridakos commented 4 years ago

Add bash completion related to the following contexts.

hedyhli commented 3 years ago

How about along with zsh and fish? 🙂

wwalker commented 10 months ago

Has anyone written one of these yet?

dbv-rl commented 10 months ago

Neh, I don't think so. Not yet. Volunteering?

wwalker commented 10 months ago

@dbv-rl

Sort of ... I've created a very basic stup-completions here:

https://github.com/wwalker/stup/tree/bash-completion-%232

It completes command names and seems to work fairly well at options and --category.

However it is my first real completion script, and I only found stup because of @iridakos's "how to create a bash completion" tutorial.

So, I have not used stup at all, except to write the completion script, (and a stup bash-completion sub command to dynamically write the completion command, which isn't in that branch right now, it's in the other bash-completion-... branch).

I'd appreciate any feedback.

dbv-rl commented 10 months ago

@wwalker Basic is IMHO better than nothing. I'll give it a try and add it to my ansible role for stup. I'll try to let you know how it worked. will take a week or two, though..

Update: I had some time looking at it and it worked right out of the box so far. Thanks for the effort. This is something that maybe could/should be included into this project as well? @iridakos