this post was submitted on 19 Nov 2023
1 points (66.7% liked)

Emacs

305 readers
1 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
top 9 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 10 months ago (1 children)

There is a thing which provides zsh completions. It's zsh. If that's what you're wanting, then maybe don't stop using it?

[–] [email protected] 1 points 10 months ago

If the zsh situation is similar to bash (as it seems to be, from the link you posted), then then problem is that zsh provides completions through readline commands only.

This makes it hard to access them from Emacs. The bash-completion package mentioned in the blog post does that, but it's a tricky solution, and not super robust in my experience...

[–] [email protected] 1 points 10 months ago

async-shell-command

I switched to detached-shell-command from detached.el

[–] [email protected] 1 points 10 months ago (1 children)

"In my experience Emacs simply isn't a very good terminal to run a shell in anyway"

Do you know about vterm and eat? If yes, what is the problem with these?

[–] [email protected] 1 points 10 months ago (3 children)

not OP, but i tried eat for about 2 seconds and immediately gave up. The backspace key produces spaces.

Then I tried vterm. The backspace key works! OK the basics are out of the way. Let's try my basic git workflow, using ncurses program tig to view a log. Nope, lots of random jumpy scrolling.

Maybe these issues have work arounds. But iterm2 + tmux + Emacs already work flawlessly. Years of use with 0 issues.

[–] [email protected] 1 points 10 months ago

eat and vterm don't have these problems for me — backspace works, less and vi work, haven't tried tig (I use magit). No hard blockers.

[–] [email protected] 1 points 10 months ago

For tui user, i think tmux makes sense, it has similar keybindings anyway. For gui users vterm really helps. And it gets you even more familiar key bindings. It works for all the front ground apps I use.

[–] [email protected] 1 points 10 months ago

As the others have mentioned, check that TERM is correctly set (it should be something like eat-truecolor), but also make sure that the terminfo file is there. If you're on Mac or, I assume, any flavor of BSD, the version that comes with eat won't work out of the box because Linux and Darwin/BSD compile these files differently.

Just run M-x eat-compile-terminfo and that should get you the proper files for your system. Restart eat and it should work.

[–] [email protected] 1 points 10 months ago

Yeah, vterm is a game changer for me. The directory tracking and ssh(tramp) support make it so seamless. Highly recommend giving it a try!