Improve i3.nix to handle options as list like in sway, adjusted functions for less new-lines#2314
Improve i3.nix to handle options as list like in sway, adjusted functions for less new-lines#2314sumnerevans merged 2 commits intonix-community:masterfrom SebTM:i2030_i3_refacotring_newlines
Conversation
sumnerevans
left a comment
There was a problem hiding this comment.
Seems like the right direction. Please update the tests to make sure that you didn't introduce any regressions.
|
Fixed the tests, format and adjusted the writeText in i3/sway to follow this approach. Would be nice if you could review it again :) |
berbiche
left a comment
There was a problem hiding this comment.
Looks good overall.
Would be cool if the indentation could also be preserved.
Tried my best in the new commits :) |
|
Changed everything according feedback, one conversation left because of some things to check back :) |
berbiche
left a comment
There was a problem hiding this comment.
Could you move the lists.nix changes to a different PR and undo the changes in this PR?
Done, also did my best for the other points of your feedback :) |
|
Rebased on current master, Cleaned commit :) |
|
Looks like the build is failing for some reason. Can you look into that (oh, I see, it depends on the other PR)? |
sumnerevans
left a comment
There was a problem hiding this comment.
Looks good, overall.
sumnerevans
left a comment
There was a problem hiding this comment.
Sorry it's taken so long to look over this. I think it looks fine. If you want to try and refactor to avoid the ++ [ "\n" ] then feel free to and I'll have another look.
|
Are the failing tests related? I would say no... I've also added myself as maintainer and to CodeOwners for notifications on related things, if it's OK for your? (#2815 for adding me as maintainer) |
|
Rebased (now including fixed tests) and added commit as mention in #2815 :) |
…ted functions for less new-lines (nix-community#2314) * i3/sway: Improve code to generate config to avoid new-line issues on code/config changes * Maintainer: Add SebTM as maintainer
…ted functions for less new-lines (nix-community#2314) * i3/sway: Improve code to generate config to avoid new-line issues on code/config changes * Maintainer: Add SebTM as maintainer
…ted functions for less new-lines (nix-community#2314) * i3/sway: Improve code to generate config to avoid new-line issues on code/config changes * Maintainer: Add SebTM as maintainer
Description
Issue #2030 should describe it well :)
Didn't fixed the tests yet, just wanted to ask if there is feedback before about the way2go here? :)
Checklist
Change is backwards compatible.
Code formatted with
./format.Yes but formats some code parts really bad?
Code tested through
nix-shell --pure tests -A run.all.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Added myself as module maintainer. See example.
Added myself and the module files to
.github/CODEOWNERS.