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: Pickers to show git blame and git line history for a particular line. #1442

Open
1 task done
231tr0n opened this issue Sep 12, 2024 · 2 comments
Open
1 task done
Labels
feature request New feature

Comments

@231tr0n
Copy link

231tr0n commented Sep 12, 2024

Have you RTFM'd?

  • I have done proper research

Feature Request

Hi ibhagwan! Is it in the scope of fzf-lua to add a picker for git blame of a file and entire blame history of a single line in a git file.

@231tr0n 231tr0n added the feature request New feature label Sep 12, 2024
@ibhagwan
Copy link
Owner

picker for git blame of a file

Need to think about it, what is the purpose of this? To search changes by specific committers? What will it pick? The selected line?

history of a single line in a git file

If you map a key to in visual mode to git_bcommits and visually select a single line (or range) you’ll get the commit history specific to the range.

@231tr0n
Copy link
Author

231tr0n commented Sep 12, 2024

picker for git blame of a file

Need to think about it, what is the purpose of this? To search changes by specific committers? What will it pick? The selected line?

history of a single line in a git file

If you map a key to in visual mode to git_bcommits and visually select a single line (or range) you’ll get the commit history specific to the range.

For the first question, when you pick a line it just goes to that line maybe. Basically it should act like vim-fugitive's git blame and just show the last committer who edited that particular line whom I cam blame to my hearts content.

As per my second requirement of git line history for a particular line, I just taught it would be better to mimick MiniGit.show_range_history() with fzf-lua.
As you told I tried it out with FzfLua git_commits and it does the job perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature
Projects
None yet
Development

No branches or pull requests

2 participants