f-person / git-blame.nvim

Git Blame plugin for Neovim written in Lua
GNU General Public License v3.0
839 stars 41 forks source link

GitBlameOpenFileURL on the current commit #87

Closed haoyuan80s closed 9 months ago

haoyuan80s commented 11 months ago

GitBlameOpenFileURL open url of the master. Is that possible to GitBlameOpenFileURL on the current commit?

f-person commented 10 months ago

There's GitBlameOpenCommitURL, which opens the specific commit where the change was made. Maybe that's what you are looking for? I can't picture a scenario where you wanna open the file in the latest commit

haoyuan80s commented 10 months ago

The scenario is that I want to save some codepointers. GitBlameOpenFileURL(GitBlameOpenCommitURL) copys(opens) latest commit on the current file + current line number. The line number will be wrong after the code gets updated.

f-person commented 10 months ago

Makes sense! I'll tag this as enhancement and implement it at some point when I'm free