git-link icon indicating copy to clipboard operation
git-link copied to clipboard

Incosistent C-u C-u behavior across git-link{,-homepage,-commit}

Open sethidden opened this issue 10 months ago • 1 comments

  • C-u C-u git-link flips git-link-use-commit
  • C-u C-u git-link-homepage opens the homepage with browse-url ✅
  • C-u C-u git-link-commit flips git-link-use-commit

Would it be possible to make the already existing behavior of C-u C-u git-link-homepage be consistent among all three commands? It could be under negative prefix, e.g. C-u - to avoid having to shift around all the existing multi-prefix meaning in all the commands.

It's really useful to support both browse-url and copy-only workflows at the same time

sethidden avatar Mar 11 '25 12:03 sethidden

Yes I see. Makes sense to normalize. C-uC-u seems like a nicer approach but, compatibility aside, what is the more common action: flip git-link-use-commit on open URL? Not sure.

I think C-u- is only used for linking without a line number, which felt like a good mnemonic since it's less the line number.

sshaw avatar Apr 17 '25 14:04 sshaw