Re:TerminalView – A terminal inside Sublime Text 3
by mherrmann on Friday July 13, 2018 @04:40AM
(#17521397)
What large chunks do you need to copy? The only thing I really copy often are file paths.
[ Parent
| on HN ]
Re:TerminalView – A terminal inside Sublime Text 3
by dmortin on Friday July 13, 2018 @05:07AM
(#17521497)
Output from scripts, for example. Not necessarily large. E.g. I run various scripts, and then I need the output of some them later. Then I don't have to rerun the script and redirect to a file, or scroll back trying to find it. I just search for some string in it, and then it is right there and I can copy or even edit the output right in place in the terminal buffer if I don't want something from it and copy that.
It's quite useful and convenient.
Re:TerminalView – A terminal inside Sublime Text 3
by mherrmann on Friday July 13, 2018 @05:21AM
(#17521541)
Your reply to my question is basically "the output of scripts". I get that. But what _kind_ of scripts?
Re:TerminalView – A terminal inside Sublime Text 3
by thom on Friday July 13, 2018 @06:50AM
(#17521841)
You're executing a big import job that fails on a few items, so you want to go back and parse out the IDs of those items, transform them into an SQL command and look up the data in the database to poke about at what's wrong. This is trivially few operations in Emacs when you're running your shell and SQL client side-by-side and have brilliant regex and text manipulation tools in the middle. Sure, you could do this just on the command line if you'd logged to a file and could do the sed or awk bit in the middle to pipe a command to psql etc, but why bother? Doing it inside your editor is so much more forgiving.