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 support for diredfl #17

Merged
merged 1 commit into from
May 7, 2022
Merged

Add support for diredfl #17

merged 1 commit into from
May 7, 2022

Conversation

slotThe
Copy link
Contributor

@slotThe slotThe commented May 5, 2022

Diredfl adds extra faces and font-lock rules for dired. Now, I know how "extra faces" sounds with regards to this theme, but hear me out! It's really quite neat to be able to tell, at a glance, the difference between a symlink, directory, or "ordinary" file. In that vein I've decided to highlight the file extension as well.

As always, any comments/suggestions are most welcome!

Before

2022-05-05-204124_1132x313_scrot

After

2022-05-05-204207_1133x389_scrot

In case you prefer non-highlighted extensions:

2022-05-05-204056_1129x262_scrot

@motform
Copy link
Owner

motform commented May 6, 2022

Wow, the original version of diredfl looks like an old DOS nightmare, well done on cleaning it up! I really like your highlight of the file extension, I think it is a nice way to provide "icon like" functionally and aid scanning.

One thing I thought about was that it might be nice to have the mode string font locked in like a string, as done in magit,
, might add a nice visual break since the column has a fixed width. There is a risk that it might float together with the heading, so one would have to to try that.

Otherwise, great and really appreciated work as always!

@slotThe
Copy link
Contributor Author

slotThe commented May 6, 2022

Thanks for the feedback!

One thing I thought about was that it might be nice to have the mode string font locked in like a string, as done in magit, [magit-screenshot], might add a nice visual break since the column has a fixed width. There is a risk that it might float together with the heading, so one would have to to try that.

It does flow together with the heading a little, but that's certainly fixable. The bigger problem is that there is no face for the absence of the directory indicator d1 and so it looks really irregular (at least to my eyes):

2022-05-06-191209_728x209_scrot

Not sure if this bothers you as much as it bothers me; if not I can certainly add this in (with some twiddling of the shades for the heading)!

Footnotes

  1. All othes instances of a - (for rwx) use diredfl-no-priv so this may well be a bug that's worth reporting upstream. EDIT: https://github.com/purcell/diredfl/issues/15 let's see what happens

@motform
Copy link
Owner

motform commented May 7, 2022

You are totally right, the absence of d is really unsettling (in one of the strangest recorded uses of that word). I think the first version is the way to go!

@motform motform merged commit f842788 into motform:master May 7, 2022
@slotThe
Copy link
Contributor Author

slotThe commented May 9, 2022

@motform upstream already merged the changes! Should I play around with this a bit?

@motform
Copy link
Owner

motform commented May 9, 2022

Cool, well done! In that case, I think it would be nice to give it at try and move it a bit in line with magit, if that feels "right". Then again, it might conceptually be closer to your great treatment of notmuch and message-mode, as a reference of how tabular metadata should "feel".

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.

2 participants