kitty-runner.nvim icon indicating copy to clipboard operation
kitty-runner.nvim copied to clipboard

Escaping escapes

Open leephillips opened this issue 1 year ago • 1 comments

If the line in the nvim buffer looks like, for example,

s = "a \"quoted thing\" inside a quote"

then, upon sending it to the runner with the KittySendLines command, I see

s = "a "quoted thing" inside a quote"

in the runner.

In other words, the backslash escape character has been interpreted when I would like it to be copied literally. The same behavior occurs with other escaped characters such as \r and \t: newlines and tabs appear instead of what was literally in the nvim buffer. Is there a setting or some way of avoiding this?

leephillips avatar Aug 19 '24 22:08 leephillips

Thanks a lot for this report and sorry it's taken me so long to get to it! I feel like this should work as we've got a function to escape escape characters for exactly this reason. I'll try get to the bottom of it!

jghauser avatar Sep 29 '24 20:09 jghauser