-
Notifications
You must be signed in to change notification settings - Fork 350
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
Feature: Install completions by default #1263
Conversation
0fde591
to
b1f38be
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1263 +/- ##
=======================================
Coverage 65.51% 65.51%
=======================================
Files 48 48
Lines 7997 7997
=======================================
Hits 5239 5239
Misses 2758 2758
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
b1f38be
to
600233b
Compare
LGTM. If we ship completions by default, they have to be removed from the contrib directory, though. That contains only community additions. |
Do you have a preferred directory for them to be moved to? I just quickly went through some projects (distilled from installed bash completions on my system):
|
I like "completions" the best. So if you don't have a strong preference you can go for that |
600233b
to
2ef4141
Compare
@fwsmit I just realized that when completions are installed by default, we should really make If you agree on this, I would:
Do you agree on this approach? |
Jq is a little bit of a weird dependency to have for dunst. Are there simple alternatives? Maybe the output of dunstctl history and rules could be tweaked? |
I partially agree here, but I currently don't see any (time and code) efficient way of getting the needed information out of the DBus data while keeping
Do you have any proposals here? I don't see how it can be made more simple than an array of array of key-values pairs (the inner one basically forming a dictionary). If the output of DBus needs to be parsed (which is required to provide the actual data), it will be really ugly in any kind of shell if there are no external dependencies are allowed - e.g. just getting multi line strings properly parsed will be one major issue.
Some more thoughts of how to get forward:
|
Yeah, the only thing I can think of is to do some clever grepping of the output of dunstctl history. But that's more flakey than properly parsing the json. So I think adding the dependency is best. Most distro's ship jq anyways.
Good point, could you add it, while you're at it?
Yeah, I just wanted to bring it up to brainstorm a bit about alternatives, but they all seem worse than just adding the dependency. |
As a side note, is the gdk-pixbuf dependency missing in the documentation? |
At least it isn't mentioned in the README. Was mentioned in the CHANGELOG and RELEASE_NOTES |
I think it should be added in the readme, alongside librsvg which is a runtime dependency (of gdk-pixbuf)
I think it should be added in the readme, alongside librsvg which is a runtime dependency (of gdk-pixbuf) |
This fixes dunst-project#1262. To better distinguish (maintained) completions from community contributions, they are move to completions.
2ef4141
to
56ca621
Compare
Fine by me. I noticed that several dependencies are outdated both in the readme, wiki pages and documentation in general. We may want also to update the website with some more up to date info. |
Everything seems fine. I was wondering if we should check if the completion dirs exist before writing to them (I left a suggestion in the comments). But it's not really important I guess |
This resolves #1262.