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

feature: multi-way splits #73

Open
arxanas opened this issue Oct 25, 2024 · 0 comments
Open

feature: multi-way splits #73

arxanas opened this issue Oct 25, 2024 · 0 comments
Labels
enhancement New feature or request ux User interface and user experience issue

Comments

@arxanas
Copy link
Owner

arxanas commented Oct 25, 2024

Ideally, we would be able to split a commit into a different number than exactly two commits, but instead into any number of commits. It should be possible to create/reorder/delete commits, set their messages, and move selected lines between commits.

Meta's "Interactive Smartlog" extension that I used internally had a really good interface that would be nice to emulate, where you could scroll horizontally through a set of commit selectors and edit them. Unfortunately, I can't find a publicly-available reference. They might implement it in the Sapling VS Code extension at some point.

There's some existing code in the scm-record codebase to render side-by-side commit UIs, although it's not currently exposed/available to callers. It would also work for a first pass to render only one "active" commit at a time, and allow sending a selected line to an arbitrary commit.

Note that this is incompatible with the typical difftool/mergetool interface, so callers would have to integrate with scm-record specifically for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ux User interface and user experience issue
Projects
None yet
Development

No branches or pull requests

1 participant