-
Notifications
You must be signed in to change notification settings - Fork 166
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
feat(gitbrowse): get commit hash from current line on open #1381
base: main
Are you sure you want to change the base?
Conversation
Similar to: #393 |
How would you open |
You would change the I altered it a bit: 31ebdb4 |
snacks.nvim/lua/snacks/gitbrowse.lua Lines 192 to 200 in 70e7e08
These will never execute if you always set #1371 will expose |
@dpetka2001 I guess then what's the point of setting Why not have another option like Without looking at the code it's kinda unclear what it will do when setting it to |
Anyhow, maintainer has the final say. I'm just a simple user. |
@dpetka2001 Its all good, this isnt super important but thought it was worth a discussion. No where does it say you need to hover a commit sha for Maybe just a note somewhere as this confused me till I looked at the code. Thanks for the back and forth |
Description
Allow gitbrowse to get the current line commit hash when using
Snacks.gitbrowse.open()
Related Issue(s)
Currently you must hover the word of the actually commit hash. This requires you opening git blame(or something similar) and hovering the word of the commit hash you want to open.
I feel like this is kind of clunky and would it would be nicer to just be able to open commit url straight from file/line.