-
-
Notifications
You must be signed in to change notification settings - Fork 46
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 a specific "modified" face for Dired mode #25
Comments
Yep. I'll add diff-hl-dired-specific faces that will derive from diff-hl as appropriate.
I'm not convinced: this won't convey any extra information to the user. If the file is displayed normally, we already know it's "unchanged", otherwise, it would have some modification status, or be "unknown".
That would be nice, but first we'd have to start highlighting them. That is hard to do currently, because This would also not fit our logic very well: currently, if there's a non-up-to-date file in the repository somewhere, we highlight the subdirectory containing it with its status. For ignored files, this can become an annoyance, because the files stay there indefinitely, and they will create an impression that the whole directory is ignored. That leaves an option of collecting the list of all ignored files sort of manually, parsing the contents of the applicable
That sounds kinda nice, but Flymake already uses exclamation marks to highlight errors in the fringe, albeit using a different color. I'm wary about having that conflict (and we might have some colorblind users). EDIT: And this is a concern because when |
Hello Dmitry, Dmitry Gutov wrote:
Thanks!
The idea is to get something similar to the famous Tortoise, which is
I'm sure syntax (can) differ between VC, and I now understand that this But that brings back my request for something visible for the
Here, we're speaking of Dired. I guess Flymake never does anything in And, would it even be, I wouldn't search for a different icon because But, like I said, my request in this post are only targetting Dired, and Best regards. |
I see. Personally, I didn't like Tortoise very much. I'd rather reproduce the looks of modern IDEs in this regard, and given an open project, they don't mark up-to-date files in any special way. The assumption is, I guess, that any such project is version-controlled.
Getting the list of all up-to-date files in a VCS-agnostic way is actually not a lot easier: Thinking about it more, maybe showing the list of all ignored files is feasible, if we limit them only to plain files in the current directory: we collect that list (which hopefully will be easy), then do a second call to
True, but see the edit at the end of my previous message. The same bitmap-choosing function can be used in file buffers, too, and some users prefer it. And supplying another function that would differ in just one element seems rather redundant. Any user can write their own function for that anyway. However, actually we already conflict with it a bit, with the "unregistered" bitmap. So maybe one more won't hurt, I'll take a look. |
All done! Suggestions for better bitmap and default face for the ignored files would be welcome. |
Hello Dmitry. I confirm that face and "!" are working for changed files. However, in my tests, I never saw an indicator for Git ignored files (plain text syntax, no wildcards or such). And, I don't see anything neither for up-to-date files, but you did not commit to do something for these (and I accept that ;-)). Thanks for your work. It's already very nice to use! |
That is troubling: ignored files are displayed just fine on my machine, in the three versions of Emacs I have on hand (24.3, 24.4 pretest and trunk). Are you sure you're trying a Git repository, and not, say, a Bazaar one? What's your Git version?
Any supported syntax should work, because I'm using the Try running |
Regarding my repo, it was either a SVN or a Git repo, the only two VCS I work with. My Git version is 2.1.1 (from Cygwin, running on Windows 8). Regarding cloning Cmp, and doing your tests: both did work. I do have the gray square displayed next to foo.elc and I do have it reported in the command output. I don't understand what happens with my repo. I'll try to come back with more evidence at hand. Thanks for your help and patience. |
It's possible that the Git backend fails for some configurations, or the SVN backend doesn't show ignored files (I've tried to test this just now and failed, in part due to having very little SVN experience). There is a known bug in the Bazaar backend. Alas, it'll not be fixed in time for the upcoming release. Please do show the example if you can reproduce the problem. |
I could reproduce the problem with SVN repo. I'm sending you a video privately. |
Yep. There's a bug in |
Everything here seems resolved, one way or another, except for the For them, I need:
So far, the second item has proven the hardest: the red-green-blue diff palette doesn't leave a lot of strong colors. Yellow? :) Orange, like the |
Bad news: even So this won't work anyway until Emacs 24.5. |
You mean Emacs 25.0? ;-) |
Or that. :) 24.5 might still come out, as a bugfix-only release. |
When editing a buffer, having red - green - blue for deleted - inserted - changed looks very nice, by matching colors used in Diff mode.
However, in Dired, I'd prefer to see the modified files with an orange icon, to match my "vc-icon" in the modeline (à la Tortoise) : green for not modified since last commit, orange for modified.
See http://screencast.com/t/nUvy7GMnlmi.
Currently, in Dired, we have "diff-hl-unknown" for non-versioned files (not under version control, but have not been ignored). Can we have new faces:
For normal files, can we have a "v" indicator in the fringe?
For modified files, can we change the indicator to be "!" instead of "|" in the fringe?
Thanks in advance!
The text was updated successfully, but these errors were encountered: