jghauser / kitty-runner.nvim

A neovim plugin allowing you to easily send lines from the current buffer to another kitty terminal
GNU General Public License v3.0
101 stars 17 forks source link

Escaping escapes #16

Open leephillips opened 3 months ago

leephillips commented 3 months ago

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?

jghauser commented 1 month ago

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!