Replies: 1 comment 1 reply
-
by adding these: if not is_commit and opts.what == "commit" and is_valid_commit_hash(opts.branch, cwd) then
is_commit = true
word = opts.branch
end after this: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to open a commit by providing it, however the code only checks commit by
<cword>
:https://github.com/folke/snacks.nvim/blob/HEAD/lua/snacks/gitbrowse.lua#L144
can I open a commit by providing
opts.branch
?with this code the URL opens the right commit but the file and not the commit itself.
Beta Was this translation helpful? Give feedback.
All reactions