Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial tab completetion implementation #32

Closed
wants to merge 3 commits into from

Conversation

mchf
Copy link
Member

@mchf mchf commented Jun 24, 2016

No description provided.

@mvidner
Copy link
Member

mvidner commented Jun 24, 2016

OK, but how do I use this?

return 0
}

rake_cache=$(rake -T 2> /dev/null | sed "s/\[[^]]*]//") && complete -F _rake -o nospace rake
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean that when I cd to a different Rakefile, it will use the tasks of the previous one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These usability details are currently being researched ;-) Thanks for hint.

@jreidinger
Copy link
Member

general note, why it is part of yast-rake and not attach it to rake itself? I see no yast specific stuff here and I am sure other projects will also benefit from it.

@jreidinger
Copy link
Member

jreidinger commented Jun 27, 2016

mvidner - usage should be placing this sh file to /etc/bash_completion.d/, then relogin ( not sure if it is needed ) and then <tab> should work.

@mchf
Copy link
Member Author

mchf commented Dec 2, 2016

@jreidinger just restarting terminal should be enough

@lslezak
Copy link
Member

lslezak commented Apr 3, 2017

@mchf how should we proceed here? I agree with @jreidinger as this looks generic and should be part of the rake package. (Or a separate package like rake-bash-completion - similar to the existing pulseaudio-bash-completion or rubygem-hub-bash-completion packages.)

On the other hand is it really needed? My usual workflow it to run rake -T and then copy&paste the command I need. Tab completion is nice, but when I do not know what I need to run then it does not help much.

@lslezak
Copy link
Member

lslezak commented Apr 5, 2017

Closing, please add the completion directly to the rake package or to a separate package.

@lslezak lslezak closed this Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants