-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
Compare to last Save: always place original file at bottom #29
Comments
Hello Yaron, I really don't know what you are talking about at the moment :) but I'll get to that part of the code soon and all will become clear. Thanks. BR |
Hello Pavel, When you get to that part please ping me and I'll try to make myself clearer. :) BR |
Files to be compared selection changed. The selected file stays in its current view while the other is moved to the other view.
Hello Pavel, After the comment in bcfcea5, this is somewhat irrelevant. Thank you. BR |
Hello Yaron, I'm working on a complex rework now that will affect this behavior so this may become irrelevant. PS. I'm not having much free time this week so it's going to take a while. BR |
Hello Pavel, Best of luck. I'll be looking forward to it. Best regards. |
Hello again Yaron, I've made a preliminary commit to master that is the re-implemented compared files handling. Thanks. BR |
Hello Pavel, I've had a busy day and I downloaded the updated repo a short while ago. Some short comments after a quick test:
Best regards. |
Hello Yaron,
No problem, whenever you have spare time, we are not in a hurry :)
That sounds reasonable. Anyway, I'll prompt (with default to 'yes' - re-compare) if the re-compare was deliberate just in case you triggered it by mistake (some files may need much time to compare). I'll think about suggestion 3) - at first it seems a bit heavy to implement but if it is not so I'll do it. About 4) - it doesn't seem that important to me, but I'll consider it anyway. Thanks for the valuable feedback. BR |
One update: Can you explain further the idea behind the current issue when you have time? BR |
Hello Pavel, When viewing a commit in a split mode on GitHub, the deletions are in the left pane and the additions are in the right one. In principle this is true in Compare Plugin as well: the file containing the "Line added" (interestingly the sub-view) marks is the FOCAL one. Anyway, "current-at-top/left" is also current gets the "Line deleted" marks and the other gets the "Line added" marks (as in GitHub). In "Compare to last Save" the current original file is certainly the NEW version compared to the OLD version before the recent changes were made. If we ignore the "Rotate to Right/Left" issue, it might still be relevant. I'll open new issues for the other topics discussed here. Thank you. Best regards. |
Hello again,
If it's too complex gust forget it. :)
Thank you. I appreciate it. Best regards. |
Hello Yaron, Thank you for the clarifications. I'll have in mind that when implementing the other compare modes. BR |
Hello Pavel, Let me describe the "evolution of my thoughts" about this issue. When I first started analyzing it I thought the best approach would be treating both files as equal in terms of "importance". That is: no primary vs. secondary (or focal vs. sub) but just two files. Practically this would mean the following: And the interpretation is simple. But then I thought that people were used to comparing primary vs. secondary (if we take the split view on GitHub as an example). Conclusion. You can change the current behavior in three ways: What do you think? Thank you. Best regards. |
Hello Yaron, I'm currently unable to read that carefully ;) so it will wait for a while. As a matter of fact my first user experience with Compare plugin was not quite good exactly because of the marks. Those didn't seem intuitive to me at all - I just didn't "feel" them well after being using BeyondCompare for quite some time now. BR |
Hello Pavel,
I'm really glad you feel that way. Thank you very much. Best regards. |
Hello Yaron,
I couldn't agree more. It's a compare program after all (or should I say "before everything else"). BR |
Hello Pavel, Great. Thank you very much. BR |
Hello Yaron, Thanks for the visualization. I would go for the case of having only '+' signs in the first selected file and '-' in 'compared-against' one. BR |
Precisely. These lines are alignment gaps due to enabled "Align Matches". They should be grey.
BTW Is there an easy way to change the grey colour (a little less dark would suit me better). |
Hello @xylographe , Can you suggest RGB values that suit you? I'll try to see how those look. Thanks. BR |
@pnedev |
Perhaps I could add an option for the blank lines color as well (together with the other color settings). Do you think it is justified? BR |
Thank you**!!** Adding the blank line colour to "Options > Color settings" would be very nice. AFAICT it's the only colour missing. On the other hand, |
Hello Pavel and xylographe,
Indeed. When I saw the result I thought so too.
That's correct.
If this is implemented "Align Matches" should be the only option.
That's also a good point. Some good Cons so far. I'm not sure about the conclusion myself. But I do think it's worth considering. Pavel, If the current concept of old vs. new prevails, allow me to change my mind regarding the position of the files. xylographe has converted me (thanks). :) When we discussed "current vs. previous" or "current vs. next" my argument was the workflow: you have some files open, you then open two new files and Compare. So left == old, right == new. Sorry for the confusion. There used to be a setting for Blank Lines background color. Thank you very much. Best regards. |
Hello again, Anther reason why xylographe is right: we compare current to previous; so before Compare current was on the right and the other on the left (unless first tab is active etc.). I usually use horizontal split (top/bottom) so it's not that obvious. Regarding the focus: I think we should leave it with the current file on the right. Thank you. BR |
Hello @Yaron10 and @xylographe , I fixed that in master branch. Please read #45 latest post for details. BR |
Hello Pavel,
The file at top is considered the old version and is compared to the new one at bottom (i.e. the "Line deleted" marks are always at top, and the "Line added" marks are at bottom).
Obviously the correct arrangement is up to the user and we can't control it.
However, in "Compare to last Save" we know that the original file is the new version.
I think, therefor, that if we start in One-View mode we should make sure that the original file is always placed at bottom.
That means checking if "currentView == 1" and make the appropriate adjustments.
Thank you.
Best regards.
The text was updated successfully, but these errors were encountered: