I tried using shell mode in emacs, but my fingers use control-p and control-r on the terminal shell and I fail. instead of searching backwards in commands, it does it in the buffer. How do people deal with this?
Eschewing Zshell for Emacs Shell (2014)
11–20 of 26 posts
Re: Eschewing Zshell for Emacs Shell (2014)
#12Re: Eschewing Zshell for Emacs Shell (2014)
#13Earlier quoted context omitted.
This is extremely helpful. I have never considered the possibility that there could be a better method to deal with emulation than visual commands. You have no idea how much this helps me.
You have to turn on eat-eshell-mode to enable Eat's terminal emulation in eshell. It runs full-fledged TUIs like vim and ncmpcpp in Eshell slowly, but is good enough for quick fzf uses. It's perfectly fine for "small" dynamic elements like the spinners and progress bars used by package managers. Just remember to use system pipes (with "*|") instead of Elisp pipes (with "|") if you're piping data into an interactive T…
Re: Eschewing Zshell for Emacs Shell (2014)
#14Cmd+Up - jumps you to the top of the last command
Cmd+F - just search for what you want
I don't need no stinkin' Emacs
Re: Eschewing Zshell for Emacs Shell (2014)
#15Re: Eschewing Zshell for Emacs Shell (2014)
#16Earlier quoted context omitted.
You have to turn on eat-eshell-mode to enable Eat's terminal emulation in eshell. It runs full-fledged TUIs like vim and ncmpcpp in Eshell slowly, but is good enough for quick fzf uses. It's perfectly fine for "small" dynamic elements like the spinners and progress bars used by package managers. Just remember to use system pipes (with "*|") instead of Elisp pipes (with "|") if you're piping data into an interactive T…
How does eat detect a visual command in eshell? I use vterm in Emacs for visual commands like nvim and htop. But it's triggered manually with a simple custom prefix command (just 'v') added to the actual command. I wonder if that trigger could be automated. It sounds from your description like vterm is faster than eat. If so, a similar automatic trigger for vterm could be very beneficial.
> How does eat detect a visual command in eshell?
eat-eshell-mode doesn't detect visual commands and launch a separate eat buffer, like eshell-visual-commands do. It filters all process output in eshell and handles term codes. It turns the eshell buffer itself into a terminal, so that vim or whatever runs in eshell.
> It sounds from your description like vterm is faster than eat.
vterm is faster than eat, but a dedicated eat buffer is fast enough for most common TUIs. An eshell buffer with eat-eshell-mode is slower.
Re: Eschewing Zshell for Emacs Shell (2014)
#17> with EShell, you don’t need to bother with a pager, since if you received too much information, hit C-c C-p which jumps you to the top of the last command, and then C-v your way down. Or better yet, just search for what you want. Cmd+Up - jumps you to the top of the last command Cmd+F - just search for what you want I don't need no stinkin' Emacs
Re: Eschewing Zshell for Emacs Shell (2014)
#18Earlier quoted context omitted.
You have to turn on eat-eshell-mode to enable Eat's terminal emulation in eshell. It runs full-fledged TUIs like vim and ncmpcpp in Eshell slowly, but is good enough for quick fzf uses. It's perfectly fine for "small" dynamic elements like the spinners and progress bars used by package managers. Just remember to use system pipes (with "*|") instead of Elisp pipes (with "|") if you're piping data into an interactive T…
How does eat detect a visual command in eshell? I use vterm in Emacs for visual commands like nvim and htop. But it's triggered manually with a simple custom prefix command (just 'v') added to the actual command. I wonder if that trigger could be automated. It sounds from your description like vterm is faster than eat. If so, a similar automatic trigger for vterm could be very beneficial.
Re: Eschewing Zshell for Emacs Shell (2014)
#19> with EShell, you don’t need to bother with a pager, since if you received too much information, hit C-c C-p which jumps you to the top of the last command, and then C-v your way down. Or better yet, just search for what you want. Cmd+Up - jumps you to the top of the last command Cmd+F - just search for what you want I don't need no stinkin' Emacs
Re: Eschewing Zshell for Emacs Shell (2014)
#20> with EShell, you don’t need to bother with a pager, since if you received too much information, hit C-c C-p which jumps you to the top of the last command, and then C-v your way down. Or better yet, just search for what you want. Cmd+Up - jumps you to the top of the last command Cmd+F - just search for what you want I don't need no stinkin' Emacs
Ctrl-R to search for previous command, which I use more often. Pretty ergonomic if you do the normal Emacs thing and rebind Caps Lock to Ctrl, ironically.