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

Add completion for fishshell #440

Merged
merged 9 commits into from
Apr 17, 2024

Conversation

ccoVeille
Copy link
Collaborator

Other completions may be added later by other contributors.

Fixes #436

@ccoVeille
Copy link
Collaborator Author

I'm unsure what to do with the spellcheck errors reported by the CI

@andy5995
Copy link
Member

I think if you just add 'cp' and 'mkdir' to .github/wordlist.txt that will take care of it.

@andy5995 andy5995 self-requested a review March 25, 2024 09:52
@andy5995 andy5995 added this to the v0.9.3 milestone Mar 25, 2024
@ccoVeille
Copy link
Collaborator Author

I'm unsure if we should update "debian/rules" or create "debian/install" to ship the completion and install them in /usr/share/fish/ and its subfolders

@ccoVeille
Copy link
Collaborator Author

Maybe something around meson also

Like in this project

https://github.com/swaywm/swaylock/blob/master/completions%2Fmeson.build

@andy5995
Copy link
Member

Maybe something around meson also

Like in this project

https://github.com/swaywm/swaylock/blob/master/completions%2Fmeson.build

Yes, good idea.

I'm unsure if we should update "debian/rules" or create "debian/install" to ship the completion and install them in /usr/share/fish/ and its subfolders

The Debian rules file executes meson install and meson test (even though it's not obvious) so if an install target is added for the fish file it will get included with the deb package automatically.

completions/fish/rmw.fish Outdated Show resolved Hide resolved
completions/README.md Outdated Show resolved Hide resolved
completions/fish/README.md Outdated Show resolved Hide resolved
completions/fish/rmw.fish Outdated Show resolved Hide resolved
@andy5995
Copy link
Member

@ccoVeille You don't need to squash your commits, but you certainly may if you like to. I know some projects on GitHub require it, but I don't.

@ccoVeille
Copy link
Collaborator Author

@ccoVeille You don't need to squash your commits, but you certainly may if you like to. I know some projects on GitHub require it, but I don't.

I hesitated as it's always unclear how to behave on each project.

Noted, I will take this into account and may split my PR in multiple commits

@ccoVeille
Copy link
Collaborator Author

I added fish completion to meson by doing some reverse engineering 😁

Let me know if t's ok because I don't know what I'm doing 🤣

@ccoVeille ccoVeille force-pushed the fish-completion branch 2 times, most recently from 43c6ffd to c8f7e25 Compare March 26, 2024 17:19
Other completions may be added later by other contributors.

Fixes theimpossibleastronaut#436
@ccoVeille
Copy link
Collaborator Author

I think we are ok now, what do you think ?

Copy link
Member

@andy5995 andy5995 left a comment

Choose a reason for hiding this comment

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

@ccoVeille You did very well with the meson build for having no experience with meson.

You can test changes like these by using meson install --destdir inst_test in the build directory. That will create a directory called 'inst_test' and install everything there. You can navigate through the subdirectories to see where everything is going to. Then you can simply rm or rmw the inst_test directory when done.

meson_options.txt Outdated Show resolved Hide resolved
meson_options.txt Outdated Show resolved Hide resolved
completions/meson.build Outdated Show resolved Hide resolved
@andy5995
Copy link
Member

I added fish completion to meson by doing some reverse engineering 😁

Let me know if t's ok because I don't know what I'm doing 🤣

You did great! Let me know if you have any questions about making the new changes I requested, or questions about what the code does.

@andy5995
Copy link
Member

I think we are ok now, what do you think ?

Getting closer. :)

@ccoVeille
Copy link
Collaborator Author

I think we are ok now, what do you think ?

Getting closer. :)

I'll make the suggested changes tomorrow or later.

See you

@ccoVeille
Copy link
Collaborator Author

everything should be all set

@ccoVeille ccoVeille requested a review from andy5995 March 30, 2024 13:17
@ccoVeille
Copy link
Collaborator Author

You forgot github words whitelist

@andy5995
Copy link
Member

andy5995 commented Apr 1, 2024

You forgot github words whitelist

Thanks!

I apologize for the delay, I haven't been able to spend much time on the computer lately. We'll have this merged soon though.

I'm not entirely happy with it yet. I think I might just install all the completions into the rmw docdir instead of creating directories for each one in the datadir.

I need to give it a little more thought.

@ccoVeille
Copy link
Collaborator Author

No problem. I'm not waiting for the feature. I already have it locally. That's why I contributed.

@ccoVeille
Copy link
Collaborator Author

A small reminder. This PR is still pending

@ccoVeille
Copy link
Collaborator Author

I think we are good

@andy5995 andy5995 merged commit 61f03f9 into theimpossibleastronaut:master Apr 17, 2024
16 checks passed
@ccoVeille ccoVeille deleted the fish-completion branch April 17, 2024 19:13
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.

Please consider adding autocompletion for fishshell
2 participants