Skip to content

Comments

Add legit-jump-to-hunk#1430

Merged
vindarel merged 5 commits intolem-project:mainfrom
jfaz1:legit-hunk-selection
Jul 14, 2024
Merged

Add legit-jump-to-hunk#1430
vindarel merged 5 commits intolem-project:mainfrom
jfaz1:legit-hunk-selection

Conversation

@jfaz1
Copy link
Contributor

@jfaz1 jfaz1 commented Jul 12, 2024

Closes #1424

Currently if you hit enter on a file in legit's status, it'll open the file in a buffer. This adds the same behavior to their respective hunks, making it easy to go to the exact line that's changed. Also defines a variable for the amount of diff context so users' git/mercurial configurations don't get in the way.

Usage:

  • Write changes to a file
  • Open legit status
  • Select the file you want to view and press tab
  • Select the hunk and press enter

@vindarel
Copy link
Collaborator

@jfaz1 merge conflicts…

@jfaz1
Copy link
Contributor Author

jfaz1 commented Jul 13, 2024

@vindarel should be good now

@vindarel vindarel merged commit 44b01a4 into lem-project:main Jul 14, 2024
@jfaz1 jfaz1 deleted the legit-hunk-selection branch July 14, 2024 14:57
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

Successfully merging this pull request may close these issues.

Legit - open currently selected hunk in buffer

2 participants