[TxMt] Re: parsing errors from textmate to terminal

Martin Batholdy batholdy at googlemail.com
Fri Feb 2 14:58:49 UTC 2018


Dear Allan Odgaard,

I meant pasting, sorry.

I use a keyboard shortcut that executes the script that I sent earlier to transfer the selected text to the terminal. If that would properly work, it would make it very convenient, as I do not have to copy, switch windows and paste manually, but simply press one button.

When I copy the code manually, these pasting-errors do not happen.
Also,no errors occur if I execute the script with smaller junks of text. 

Do you know what the script is doing to the text, that especially a lot of code gets messed up during the process?
like the col <- ifelse(… turning into col <col <cse(…



> On 2. Feb 2018, at 15:29 , Allan Odgaard <mailinglist at textmate.org> wrote:
> 
> On 2 Feb 2018, at 20:55, Martin Batholdy wrote:
> 
> When parsing large amount of text from textmate2 to the terminal, it sometimes happens that strange parsing errors occur.
> Line breaks, white space, or symbols are arbitrarily not send correctly to terminal.
> 
> Do you mean parsing or pasting?
> 
> If you mean pasting: when I have a temporary “script” in TextMate that I want to run in the current terminal I copy it to the clipboard and then in the terminal I run:
> 
> pbpaste|sh
> This will run the script through the shell interpreter without issues like e.g. tab characters triggering expansion, or return triggering instant execution with potential reads from stdin that may swallow some of your script.
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20180202/7adb7c59/attachment.html>


More information about the textmate mailing list