zdharma-continuum / fast-syntax-highlighting

Feature-rich syntax highlighting for ZSH
BSD 3-Clause "New" or "Revised" License
1.07k stars 76 forks source link

recover the pasting highlight #16

Open FranklinYu opened 2 years ago

FranklinYu commented 2 years ago

After I paste some text onto Zsh, it highlights the pasted part with background color, which is a nice feature that z-sy-h also does. However, with z-sy-h the background would recover when I hit /, turning back into normal highlight mode. Am I able to do the same with f-sy-h? Currently it only clear the background color when I actually edit the line (such as insert or remove a character). My habit is pressing immediately after confirming that the pasted text is correct.

msaadatkh commented 2 years ago

Hi @FranklinYu, this might help you https://github.com/zdharma-continuum/fast-syntax-highlighting/issues/25#issuecomment-1094035433