Live data from Hacker News

Why is the terminal input so weird?

warp.dev

1–10 of 185 posts

Re: Why is the terminal input so weird?

#2
I can edit the terminal input line with full vim-mode in my shell (zsh). In fact, in normal mode I can even hit 'v' and edit the line in a full vim session to zip around however I want, do completions, etc. It's pretty close to the platonic ideal method of input I could imagine.

Re: Why is the terminal input so weird?

#3
As much as I'd like to encourage the rethinking of input methods, any terminal with a "Pricing" page is an instant nope from me. My current terminal is Open Source and while it's not perfect, it's also Free. That matters more to me than mouse input or IDE autosuggestions. If you're going to treat Linux users as a second-class citizen and charge for corporate usage, who are you hoping your target audience will be? Frankly, I don't ever see this replacing iTerm 2 for most Mac developers.

I wish you luck, but your product in it's current state is confusing to me. fish solves most of these issues for me and it runs on all my devices, free. All I'll say is that your competition is stiff.

Re: Why is the terminal input so weird?

#4
Although I don't like terminals, I think the article overstates the problems to significant degree. The fact that text editors running in terminal still manage to have "ide-like" experience (including mouse input!) proves that you can do a lot with terminals. I still think that trying to move beyond terminals is good idea, but it's important to distinguish what is impossible, and what is just ugly/hacky to do.

Re: Why is the terminal input so weird?

#6
I bit and was curious to try Warp. Downloaded it and it immediately made a request to a Google domain and then forced a sign-up window on me. I clicked their "why do we require an account" FAQ and the answer is "we think there are features that are better with a login."

Absolute no from me, even if their terminal truly is better and innovative.

Re: Why is the terminal input so weird?

#7
post #2

I can edit the terminal input line with full vim-mode in my shell (zsh). In fact, in normal mode I can even hit 'v' and edit the line in a full vim session to zip around however I want, do completions, etc. It's pretty close to the platonic ideal method of input I could imagine.

I’m also using vim mode in zsh with simply "bindkey -v". I’m interested by your "v" as full vim session shortcut. Do you mind sharing the config?

Re: Why is the terminal input so weird?

#8
I have one question about terminal input that I cannot work out how to work out.

The setup: I'm on a Mac, I use iTerm for my terminal, Fish for my shell, and most often I'm inside a docker container also running Fish and using iPython.

The question: When I Ctrl+W to delete a word in a Fish prompt, what counts as a word is different to what counts as a word in iPython. For instance, Ctrl+w at the end of this string `test.func('param1', 'param2')` produces...

Fish: test.func('param1', 'param2'

iPython: test.func('param1',

Hit Ctrl+w again, and you get...

Fish: test.func('param1', '

iPython: all gone.

This causes me to over delete in iPython many, many times per day. I'm guessing that the rough flow of the delete word signal is iTerm -> Fish -> iPython and that iPython is the thing that's being overzealous?

Re: Why is the terminal input so weird?

#9
TL;dr.

In zsh (vi mode) I simply press shift-v and I am dropped into my $EDITOR with my current input loaded into a buffer. Of course I rarely need to do this because zsh vi mode covers 99% of my requirements.

So, my tldr for an article I didn't finish reading: someone doesn't know how to use their tools and instead of learning they jumped on the internet to complain, and/or sell me a solution or something, idk.

Re: Why is the terminal input so weird?

#10
post #5

People who do not understand things are poised to reinvent them badly. The post manage to analyse terminal input without having acknowledging readline. So yeah, they have no idea what they are talking about. https://www.masteringemacs.org/article/keyboard-shortcuts-ev...

They fail to understand that this isn't a problem of the terminal at all... The terminals only job is to display output and to pass through input.

They could write an "interactive shell" with mouse support that implements all those features and it would run in any pre existing terminal. They could even make this work with existing shells and it would work over ssh ect. Nothing against innovation but this is the wrong approach imo.

Post reply on HN