我刚开始在终端上使用 R,因为它的选项卡功能。但我不知道如何将 TextMate 中选定的文本发送到终端。专业知识可以告诉我如何在 TextMate 中编写命令吗?
谢谢!
最佳答案
这是我目前使用的确切 TextMate 命令。希望能帮助到你!
rawText="$(cat | sed 's/ / /g;')"
osascript -e 'on run(theCode)' \
-e ' tell application "Terminal"' \
-e ' do script theCode in window 1' \
-e ' end tell' \
-e 'end run' -- "$rawText"
open "txmt://open?line=$(($TM_LINE_NUMBER+1))&column=1000000" &
关于r - 如何将 TextMate 中选定的文本(或一行)发送到在终端上运行的 R,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9217155/