
<picture snipped>
Granted, this is just a one-line change, but it proves out a lot of things I was concerned about. For one, the diff lexer is definitely emitting fold sections for each diff chunk (this was a lucky guess on my part). For two, the fold margin can be added to the commit diff view without any side-effects to the other views.For convenience, we could easily enable folding for the file/annotate views as well, for all of the lexers which support folding. But we might want to use a different folding style so that the features are not confused.
2. I think the "unchecked" (I stubbornly refuse to call them "folded"
:-) ) changes should be colored differently (perhaps in light gray).
3. I really do not like the fact that unchecking a file on the file
list folds all changes on that file. It is perhaps consistent, but I
don't think it is very convenient.
4. I am not super happy with the "folded changes are excluded from
commit" message. While it is nice that it appears right on the first
change that you uncheck, the fact that it gets mixed with actual file
contents is not that nice. What about showing a "tooltip" or an
overlay with that message when you uncheck the first chunk? The
tooltip could disappear after a few seconds or if the user clicks
anywhere... Also, I think the message should say "unchecked" rather
than "folded" if we are to have a mode where there is no folding.
Personally I am not super thrilled with the folding. I would find it
ok as an option, but not as the default behavior. I think it has good
properties but overall the bad outweights the good IMHO.
A couple extra comments:
- I'd like to get a clearer picture of the actual implementation
details. I did not go through the revisions on a lot of detail, but
getting an overview of the design (the partialcommit "extension", etc)
would be nice. In particular I'd like to better understand the memctx.
Is this something that was developed a while ago for mercurial core?
- What are the limitations of this? It seems this cannot work with
amend, can it? What about mq? These would be important limitations
which would be great to overcome if possible.
Despite all this comments I must say that I am very thrilled by this
and a bit impressed by the fact that this is already so functional.
Not necessarily. I I'd just like the "fold marker" to not be the usualOn Tue, Jan 1, 2013 at 6:30 AM, Steve Borho <st...@borho.org> wrote:
>> I just tested this. It looks pretty good! I think _a lot_ of people
>> will be very, very happy when they discover this new functionality on
>> the next version.
>>
>> That being said, there are a couple of things that I'd like to
>> comment, some of which I already mentioned in the past:
>>
>> 1. I find the fact that this uses regular fold icons confusing. I
>> think this may lead people to not commit some changes by mistake.
>> Maybe a "checkbox" style icon would be better.
>
>
> I'll summarize that as -1 for folding.
"+"/"-" within a square or circle, but a "checked / unchecked" box.
That would be really awesome, since it is quite likely that I will also make it. It would be great to finally meet you in person :-)
Angel