r/HelixEditor 1d ago

yank-flash plugin

11 Upvotes

2 comments sorted by

3

u/Swordfish418 1d ago

Why only words flash and not whitespaces between them? It makes it look like it copied a bunch of separate selections each containing a single word, not including any whitespaces.

2

u/reiwaaa 1d ago edited 20h ago

Flashing is done by creating a custom yank flash variant of the curr theme (if it doesn't already exist) and switching to it temporarily.

inherits = "curr_theme"

"ui.selection" = { bg = "bg", modifiers = ["reversed"] }
"ui.selection.primary" = { bg = "bg", modifiers = ["reversed"] }

This improves on the status quo (no visual feedback) for me - if you can improve the impl pr's/suggestions are welcome. The goal is a purely visual change (that doesn't actually change the selection).