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
create config for symlink arrow #436
Conversation
The code part looks good. @kmoschcau do you have any other suggestion for the name of the group that will contain this( |
8620784
to
d91f507
Compare
@meain Yeah I don't think "styles" is a good way of naming it. At style to me is something like a set of settings, that you switch as a whole. It might be easier to comprehend, if you just keep this key to setting up icons/symbols and name it either "symbols" or "icons". That way you can reuse it for file type icons as well. Spacing can then be under its own key. Also in terms of code organization, yes I understand to some degree that one might want to put this one setting into the symlinks module, but for future proofing it would be better to put it into its own icons (or similar) module. |
I am also not sure if What I see here are mostly a bunch of unrelated configs (symlink-arrow, icon-spacing). What are you guys' opinion on dropping it at root level? |
IMO, root-level options would make it simpler, but as the number of options grows, the config file may be a little bit messy, this is I would like to group it up like your previous comment, adding the number of space between icon and filename here.
|
as code organization part, @kmoschcau you are right, I should have put it to a new mod. when I first implement the symlink arrow, I treat it as an option for symlink, but later the If we reach an agreement, the |
d91f507
to
c9a23f3
Compare
@meain but why not group this together with the filename icons? To me this sound pretty sensible. Just to be clear, I would of course not put the spacing options in there as well. Those would go somewhere else. @zwpaper after thinking some more about this, especially when putting options like spacing in this category, what about naming it "layout"? |
Are you suggesting something like this? I am assuming we will need some classification for general, filename and filetype anyways. Or should icons:
symlink-arrow: <>
general:
- directory: <>
- symlink: <>
- broken-symlink: <>
- file: <>
filename:
- Dockerfile: <>
- node_modules: <>
extension:
- rs: <>
- py: <> |
The symlink arrow is a little bit special, it can be UTF-8 chars like the But as you guys said, it also can be an icon sitting between the filename and target file, I am also ok with this, but prefer leaving the |
@zwpaper Yeah, that was what I was thinking too. |
style is a little bit too general, but I can't figure out a better one. If we can, I would also like to replace it.
|
How about a root key called "styling" and then have the "icons", "color-theme" (or similar), "layout" and all other miscellaneous keys like the "symlink-arrow" under it? On second thought, that's pretty similar to the original proposal, but I think "styling" fits better than "styles". |
c9a23f3
to
328fe02
Compare
Codecov Report
@@ Coverage Diff @@
## master #436 +/- ##
==========================================
+ Coverage 78.54% 80.56% +2.02%
==========================================
Files 34 35 +1
Lines 3360 3417 +57
==========================================
+ Hits 2639 2753 +114
+ Misses 721 664 -57
Continue to review full report at Codecov.
|
@meain changed according to discuss, good to go now |
Hey @zwpaper , sorry that this taking a while. I have been super busy with work stuff recently. Just wanted to make sure we get the config right as that will stick forever. Here is my argument for having this in the root than under a heading. Just an example: # general settings
layout: grid
color:
when: always
icons:
when: never
# display colors
color-theme:
file: #fafafa
directory: #fce3e3
symlink: #dddddd
borken-symlink: #ff0000
# custom icons
icons:
filetype:
rs: "<>"
go: "<>"
# other settings
symlink-arrow: "->"
icon-spacing: 2 This to me actually looks better than nesting everything other than the top items in |
this convinced me,looks like root level make sense too. PS: never mind the delay 😁 |
@meain you are making a good point, I agree. |
@meain should be ready to go now! |
fix #409