Add `git-link-browse-url'
Any reason not to add this command?
(defun git-link-browse-url ()
"Open `git-link' URL in web browser."
(interactive)
(let ((git-link-open-in-browser t))
(call-interactively 'git-link)))
Hi,
The use case being one mostly doesn't want to open the URL when using git-link, but in certain instances they do?
What about for git-link-comment? Maybe better to do this via a prefix argument like git-link-homepage?
I guess if you mostly want only one behaviour then the double prefix arg approach isn't so bad, but when one frequently (but in differing circumstances) wants both of those behaviours it becomes a bit annoying if that's the only way to do it.
Or if you infrequently used this at all, it would be easy to forget whether or not you needed a prefix. There's a convenience to calling these things via M-x and being able to see from the command name you choose what it's going to do.
And yes, I think it'd would be useful for the -commit variant as well. I almost always want a commit-based URL myself, so I just have that option enabled permanently, but it would make sense to me for there to be separate commands for that too.
There's only a small collection of possible actions, so exposing all of them with commands seems like a sensible idea to me.