News for hackers. Stuff that matters.
Re: by camgunz on Saturday August 05, 2023 @01:44PM (#37014570)
I think I may have said this before but:

> Warp: a terminal emulator whose killer feature is allowing you to edit your command as if you were in vscode/sublime

I exhort anyone interested in this feature to enable vi mode for your shell; zsh, bash, and ksh all support it. Readline also supports it, which will let you use it in CLIs like REPLs and psql. It is glorious.

Re: by chungy on Saturday August 05, 2023 @02:33PM (#37015038)
You can also do C-x C-e in bash and it'll open your current prompt input in $EDITOR. You can even start doing multi-line input the easy way through this method.
Re: by theusus on Saturday August 05, 2023 @04:55PM (#37016212)
Also warp requires you to sign in before you use it. That's stupid imo
Re: by HumanOstrich on Saturday August 05, 2023 @07:14PM (#37017155)
Agreed. I immediately nuked Warp when it demanded that I sign in to use it.
Re: by williamdclt on Saturday August 05, 2023 @06:08PM (#37016745)
I did not know readline supported it!! This is great info

Aside: how is it implemented? Does readline have to reimplement vi style editing; or is there some sort of vi lib?

Re: by camgunz on Saturday August 05, 2023 @06:28PM (#37016859)
I'm pretty sure there isn't a vi lib, would be cool, but I think it's just a reimplementation.
Re: by mdwalters on Sunday August 06, 2023 @03:03AM (#37019614)
no fish support? :(
Re: by Schiphol on Sunday August 06, 2023 @03:58AM (#37019868)
Yes, fish supports it too