vimium icon indicating copy to clipboard operation
vimium copied to clipboard

feat: passing link mode.name to lint marker's classname, added .bg-ta…

Open JUSTIVE opened this issue 2 months ago • 2 comments

Resolves #4783 #2049

open a link in a new tab link hint is now visually distinguishable from open in current tab.

It can be achieved by exposing the mode's name directly to link_hint's classname. Since all the mode names are kebab-cased, it's fully compatible with CSS classnames. Also, other modes can be modified by adding additional styles in CSS.

I adjusted the hue slightly from the original color to choose a new one. Please feel free to share any thoughts or preferences regarding the color.

mode before after
open in current tab image image
open in new tab image image

JUSTIVE avatar Nov 05 '25 05:11 JUSTIVE

Honestly, I like the flexibility of at least having a way for the user to add a custom style for new tab links. Whether the default style should be different may be a point of contention, but unless there is already another way to add a different style to new tab links, I think it would be beneficial to add one.

UncleSnail avatar Nov 11 '25 21:11 UncleSnail

If you feel the default styles for new tabs don't match the PR, I'll remove them. The core goal of this PR is to provide the ability to specify different tab styles for different link types.

JUSTIVE avatar Nov 14 '25 01:11 JUSTIVE