[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: send selection or current line to Terminal/iTerm

From: John Mastro
Subject: Re: send selection or current line to Terminal/iTerm
Date: Sat, 14 Jun 2014 11:36:55 -0700


klebsiella <address@hidden> wrote:
> Many thanks again. One error was produced (I believe this will be the
> last ;)), when the assignment contains quotes. i.e the following will
> produce in error in R:
> file <- "myFile.txt"
> Error:
> > file <- \"myFile.txt\"
> Error: unexpected input in "file <- \"
> I believe that "iterm-escape-string" is replacing the quote (") by
> (\"), which is sent to iTerm then. Also, is it important to have the
> first replacement in "iterm-escape-string" (replace-regexp-in-string
> "\\\\" "\\\\" str nil t). I find it useless myself, unless if I am
> missing something,

Does something different happen if you do the same thing from
SublimeText? I based the escaping on what the SublimeText plugin does. I
can change it, I just want to understand whether what's there now is
reproducing what the ST plugin is doing.

- John

reply via email to

[Prev in Thread] Current Thread [Next in Thread]