-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Focus commits view after moving custom patch into new commit #3200
Comments
Hey @jesseduffield - I started working on this, but I need clarification on the best path. I was trying to intercept the error coming from
The problem is that the
What do you think is the best solution here? Thanks! P.S. Feel free to assign this issue to me :) |
@AzraelSec sorry for the late reply: Let me know if this isn't what you asked, but if we get a merge conflict, then I would still want the commit view to be focused because that's what the user would want to see. |
@jesseduffield thanks for responding. I just restarted from a blank branch a couple of days ago and am trying to remember exactly what my comment's context was. I created a PR for this; let's see if my code looks what you'd expect it to be 👍🏻 |
- **PR Description** This PR forces lazygit to focus to the `Commits` view after moving a custom (partial) patch in a new commit. This closes #3200.
Is your feature request related to a problem? Please describe.
When a custom patch is moved out into a new commit, we stay in the commit files view but end up looking at the new commit's files. This is a bit jarring: the important context we want to show the user is where this new commit is situated compared to the existing ones. The user already knows what changes the new commit contains because they just selected the changes themselves, and if they want to double-check they can easily press enter to view them.
Describe the solution you'd like
Focus the commits view after moving a custom patch out into a new commit.
The text was updated successfully, but these errors were encountered: