-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Basic Zsh auto-completion for --options #440
Conversation
I think this is good, but maybe rename the files to something like Also please use tabs for indentation, right now you use a mix of tabs and spaces :) |
I'll make sure to do that. The only thing that isn't in my request but should be is an update to cmake to install those files to the appropriate directory for zsh completions. I didn't do that because I did not how to code cmake.
|
It's pretty much done like this: https://github.com/SirCmpwn/sway/blob/master/CMakeLists.txt#L121 |
Could this work for the cmake file? They will be placed with this cmake file in a directory called completions. However, the problem with suffixing them with .zsh screws up the autoloading feature because it has to be prefixed with an underscore such as _(command) for each completion file. If I am wrong, then please tell me! |
That should work. Make it optional, though. |
Shouldn't the directory be |
I debated this on the sway IRC was told that it was share/zsh/Completions/ but I do agree with you, crondog. I too think it should be share/zsh/site-functions. Sent from my iPhone
|
@SethBarberee Could you also move the files to Other than that it looks good. |
Will do :) Sent from my iPhone
|
Can you squash all of this when you're done? |
I tried to squash them but to no avail... I'm sorry if i'm causing a lot of trouble. I'm still new to Git and I will try to fix the problems before I try to actually make the pull request. If I did somehow fix it then maybe there is hope.. |
It says 9 days ago so I guess I squashed it? Idk |
Do this:
Double check that you have all the right commits here, then replace "pick" with "squash" for all but the first commit, then save and close the file and enter a single commit message for this whole change. Then:
|
Whoops, you got one commit too many in the squash. This can't be merged like that. Can you just grab the relevant files and make a new commit on a new branch and open a new pull request? |
Yeah, I've been busy all week and forgot to do that. Thx! Sent from my iPhone
|
So I force-pushed this so now it's one commit. This should work now, I hope. |
Looks great. Nice work! |
Basic Zsh auto-completion for --options
Hi, I've created at least a skeleton of zsh completion files for the sway, swaymsg, and swaygrab. Currently, it is only for --options but I will work on the other commands unless you say otherwise.
I'm sorry if it is a mess because it is my first time submitting a pull request to anything.