prezto icon indicating copy to clipboard operation
prezto copied to clipboard

Switch to an alternative method of async git in the sorin prompt

Open belak opened this issue 4 years ago • 4 comments

Fixes #1795, maybe #1493

Proposed Changes

  • Update sorin prompt to use zle callbacks rather than zsh-async

This should fix a number of random, hard to debug issues we've had with zsh-async and may improve Windows support. It doesn't get updates super often either so it may be worth investigating removing it completely if we can.

The code here is based off a simplified version of the code in autosuggestions mentioned here: https://github.com/mafredri/zsh-async/issues/24

belak avatar Mar 19 '20 18:03 belak

Which doesn't get updates? zsh-async or zle

zsh-async. There are people saying reverting to 1.1 fixes the issue but that’s a really old release and there have been a ton of fixes since then.

Yeah, there are obviously some bugs... it was a quick implementation thrown together in an hour and it’s hard for me to debug this because I don’t have a windows machine available at the moment.

belak avatar Mar 23 '20 15:03 belak

@belak Is this still relevant given that #1810 appears to fix the root issue? Or were there other problems with zsh-async such that you want to continue pursuing this?

jeffwidman avatar Mar 31 '20 23:03 jeffwidman

As far as I know, the fix for zsh-async still doesn't fix the zsh hang on exit with windows because (by design) there's a process still running to handle git information. I'm not sure if this is worth pursuing or not.

belak avatar Apr 01 '20 20:04 belak

Gotcha... yeah, Idk either... Microsoft/windows has been changing a lot to be more linux-friendly, I would probably vote to let this sit a bit and see if they provide easier hooks to do that. This would be years in the future, so if someone urgently wanted it and came up with a way, I wouldn't be opposed, but otherwise not something I'd pursue...

jeffwidman avatar Apr 10 '20 19:04 jeffwidman