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

split screen diff feature #3

Open
dlee opened this issue Dec 13, 2009 · 6 comments
Open

split screen diff feature #3

dlee opened this issue Dec 13, 2009 · 6 comments

Comments

@dlee
Copy link

dlee commented Dec 13, 2009

It would be nice to be able to do the split screen diff for side-by-side viewing of the versions of the file.

@shire
Copy link
Collaborator

shire commented Dec 15, 2009

the vimdiff feature of vim (on which this relies) is a split screen diff, is this what you're looking for or something different?

@dlee
Copy link
Author

dlee commented Dec 15, 2009

Yes, I want the ability to access that interface, but with scmdiff's ability to easily compare different revisions of the same file.

@shire
Copy link
Collaborator

shire commented Dec 15, 2009

So can you try out the following diff and let me know if it's what you have in mind?

https://gist.github.com/257330/e76010fdad018cd926a97a5b973aa6f441a08196

We need to come up with a shortcut for this format or a setting, I'm thinking a new shortcut may be in order as you may not want to change a setting if you want to switch between two views. We also need a way to set vertical vs. horizontal diffing, although maybe that should be a setting. Let me know if you run into issues or have suggestions (this is just a proof-of-concept hack).

@dlee
Copy link
Author

dlee commented Dec 15, 2009

Cool, that's exactly what I'm talking about. Now, if there was a way to toggle between the two views... :)

@shire
Copy link
Collaborator

shire commented Dec 15, 2009

Oh I'm sure something could be done there... ;-)

@shire
Copy link
Collaborator

shire commented Dec 23, 2009

Ok, can you try out my latest patch and let me know what you think/if there's any problems. I added basic usage intsructions to the top of the file but basically now '\s' will toggle the split/non-split view while either in diff or non diff mode. You can also set the default with a Dsplit and Dnosplit command.

http://gist.github.com/262410

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

No branches or pull requests

2 participants