Live data from Hacker News

Run programs in Emacs buffer, seeing their output inline, interactively

github.com

31–39 of 39 posts

Re: Run programs in Emacs buffer, seeing their output inline, interactively

#31
post #22

kakoune includes this by default with the pipe operator. very useful functionality.

And vim with :term [0] https://vimhelp.org/terminal.txt.html#%3Aterminal

oh cooool thanks!!!

do you know how to make the output in the terminal cleaner?

for example `:term ls -lah /` isn't well formatted

Re: Run programs in Emacs buffer, seeing their output inline, interactively

#33
post #23

Would love if there was a gif in the README, so I could get a feel for this (even more important because the whole selling point is interactivity).

i have this thought for SO MANY TOOLS.

gif, screenshot, anything to make me not install it and run it just to find out it wasn't what i wanted / needed.

Re: Run programs in Emacs buffer, seeing their output inline, interactively

#34

Tangentially, has there been any work in having more structured scrollback, say one buffer for every command, which can be collapsed, pinned or copied individually? Presently there's the minor annoyance when (accidentally) running any program with lots of output, which is that all the scrollback above it becomes inaccessible. Yeah, could have run them in different splits or redirected to begin with, but sometimes you…

A lot of programming modes in emacs give you a quick shortcut to send a given section to the REPL for evaluation. For instance, you can do it in sly-mode and julia-mode (I think it’s named that). Hit C-c C-c to eval one section and see output in the REPL. Works really well.

Re: Run programs in Emacs buffer, seeing their output inline, interactively

#35
post #8

Earlier quoted context omitted.

EShell in Emacs can preserve point at the prompt that executed the command. You can then hit space to page through the output, or start typing to immediately jump to the end of the buffer (and thus a blank prompt): https://www.masteringemacs.org/article/complete-guide-master... There's also `C-c C-p` to jump to the previous command prompt in the likes of M-x shell. That's not quite what you want, but it's another way…

Also eshell imenu support can be enabled https://xenodium.com/imenu-on-emacs-eshell

Hey Xenodium, thanks for this post. I love your site and use Plain Org regularly. I wanted to ask: what utility do you get in jumping back to the old prompts? Can you edit them in-place and re-run them or something?

Re: Run programs in Emacs buffer, seeing their output inline, interactively

#37
post #23

Would love if there was a gif in the README, so I could get a feel for this (even more important because the whole selling point is interactivity).

i have this thought for SO MANY TOOLS. gif, screenshot, anything to make me not install it and run it just to find out it wasn't what i wanted / needed.

As a slightly sight-impaired user (no colors, and I never could learn/figure-out icons (fsck they bother me!)), I really enjoy "screen-shots" but I really wish there was a text alt-image that would render in lynx or emacs-w3m through emacspeak.

For the exact same reasons You are mentioning. Thanks.

Re: Run programs in Emacs buffer, seeing their output inline, interactively

#38
post #22

Earlier quoted context omitted.

And vim with :term [0] https://vimhelp.org/terminal.txt.html#%3Aterminal

oh cooool thanks!!! do you know how to make the output in the terminal cleaner? for example `:term ls -lah /` isn't well formatted

Interesting. Looks “ok” to me. What’s broken for you?

Re: Run programs in Emacs buffer, seeing their output inline, interactively

#39

Earlier quoted context omitted.

Also eshell imenu support can be enabled https://xenodium.com/imenu-on-emacs-eshell

Hey Xenodium, thanks for this post. I love your site and use Plain Org regularly. I wanted to ask: what utility do you get in jumping back to the old prompts? Can you edit them in-place and re-run them or something?

> Hey Xenodium, thanks for this post. I love your site and use Plain Org regularly.

Thank you. Really nice to hear it.

> I wanted to ask: what utility do you get in jumping back to the old prompts?

Mostly about jumping back to specific points in buffer. If you’ve been investigating or troubleshooting in a shell session, you can quickly jump back to previous invocations of a command to view its output.

By now, I’ve become used to imenu being available in most modes/contexts, so I figured why not eshell too.

Post reply on HN