News for hackers. Stuff that matters.
Re:Why is the terminal input so weird? by alokedesai on Wednesday November 16, 2022 @02:46PM (#33629424)
Aloke from the Warp team here--you're totally right that some of these features (syntax highlighting) can be accomplished within the terminal using an editor. In a traditional terminal--you'd have to spend time configuring your shell to get this to work instead of getting these features by default.

Some of these features are near-impossible given the current terminal-shell abstraction, however. For example, a traditional terminal has no concept of command input/output, which means that it can't suggest a next command to run based on the output of the previous command.

Re:Why is the terminal input so weird? by zokier on Wednesday November 16, 2022 @03:18PM (#33629911)
> For example, a traditional terminal has no concept of command input/output, which means that it can't suggest a next command to run based on the output of the previous command.

Neither does wayland or whatever. Point being that you can treat terminals as dumb character cell grid display with slightly wonky input mechanism and get quite far ignoring/working around all the traditional line-oriented stuff.

Re:Why is the terminal input so weird? by vimda on Wednesday November 16, 2022 @03:11PM (#33629809)
> it can't suggest a next command to run based on the output of the previous command

thefuck (https://github.com/nvbn/thefuck#how-it-works) does exactly that...

Re:Why is the terminal input so weird? by alokedesai on Wednesday November 16, 2022 @03:45PM (#33630269)
We collaborated with thefuck to build our version of this :) TF is slightly different in that they actually _rerun_ your last command to get the output since they don't have access to command output