<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Allan Odgaard,<div class=""><br class=""></div><div class="">I meant pasting, sorry.</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">When I copy the code manually, these pasting-errors do not happen.</div><div class="">Also,no errors occur if I execute the script with smaller junks of text. </div><div class=""><br class=""></div><div class="">Do you know what the script is doing to the text, that especially a lot of code gets messed up during the process?</div><div class="">like the col <- ifelse(… turning into col <col <cse(…</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 2. Feb 2018, at 15:29 , Allan Odgaard <<a href="mailto:mailinglist@textmate.org" class="">mailinglist@textmate.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8" class="">
<div class="">
<div style="font-family:sans-serif" class=""><div style="white-space:normal" class=""><p dir="auto" class="">On 2 Feb 2018, at 20:55, Martin Batholdy wrote:</p>
</div>
<div style="white-space:normal" class=""><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px" class=""><p dir="auto" class="">When parsing large amount of text from textmate2 to the terminal, it sometimes happens that strange parsing errors occur.<br class="">
Line breaks, white space, or symbols are arbitrarily not send correctly to terminal.</p>
</blockquote></div>
<div style="white-space:normal" class=""><p dir="auto" class="">Do you mean <em class="">parsing</em> or <em class="">pasting</em>?</p><p dir="auto" class="">If you mean <em class="">pasting</em>: 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:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7" class=""><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7" class="">pbpaste|sh
</code></pre><p dir="auto" class="">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.</p>
</div>
</div>
</div>
<br class="">_______________________________________________<br class="">textmate mailing list<br class=""><a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a><br class="">http://lists.macromates.com/listinfo/textmate</div></blockquote></div><br class=""></div></body></html>