Implementing command stash with #cursor get/set #249
Replies: 2 comments
-
Hi, there's not a good workaround for unmatched braces, but I've got it fixed in the beta: https://mudhalla.net/tintin-beta.tar.gz The scripting solution would be |
Beta Was this translation helpful? Give feedback.
-
Thanks! That makes life a whole lot easier; maybe not a perfectly clean solution yet until the next version's out of beta, but it's workable, since braces don't appear often in my typical use cases. (And it's way better than the ugly hack I initially came up with, scanning the source string and removing escape backslashes from input with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to implement a stash of entered commands (e.g. when I need to pause typing a long input, press Ctrl+PageDown to stash it atop of a stack, type a command or several, and then press Ctrl+PageUp to pop the long command off the stack and continue typing) using
#cursor get
to retrieve the current input contents, store it (in a list), and then retrieve and set again using#cursor set
.The issue I've ran into is, #cursor set seems to be escaping some characters (semicolons, backslashes, curly braces), and I can't quite find a way to restore the input window verbatim, without escaping. So if I stash the string
"Blah blah; blah"
, I end up with"Blah blah\; blah"
after unstashing it. Is there a workaround to it?Beta Was this translation helpful? Give feedback.
All reactions