Live data from Hacker News

Fish shell 3.0

github.com

151–160 of 227 posts

Re: Fish shell 3.0

#151

I like fish's auto completion speed and smoothness but one thing that has held me back when I checked out fish was that there didn't seem to be a `Ctrl+r` command that bash and zsh provide to quickly go through history commands.

You start typing what you want, then hit the up arrow to fuzzy search back through history.

Is this the only way? Arrow keys require I take my fingers off the home row, which is far from ideal with the frequency I search shell history.

Re: Fish shell 3.0

#153

Is there anything remotely like this on Windows? I use Cmder / Conemu now but it doesn't seem to have even 10% of the features of a fully fledged shell like this.

cmder and conemu are terminals. They run shells, like bash or zsh, but also fish.

I've not used it myself, but I know that fish is available in WSL and cygwin (though this release had some issues there).

Re: Fish shell 3.0

#154
post #153

Is there anything remotely like this on Windows? I use Cmder / Conemu now but it doesn't seem to have even 10% of the features of a fully fledged shell like this.

cmder and conemu are terminals. They run shells, like bash or zsh, but also fish. I've not used it myself, but I know that fish is available in WSL and cygwin (though this release had some issues there).

Yeah I realised after I posted that I was talking about terminals not shells but it's too late to edit my mistake away :)

Interesting about it working on cygwin / WSL. Maybe I'll give that a go. I'm sure someone's also made Powershell enhancements that add similar functionality too.

Re: Fish shell 3.0

#155

Earlier quoted context omitted.

That "one special edge-case" is easily the most common case by far. Your dismissive attitude towards this is antithetical to the design of user friendly software. Even when the noob manages to learn that ? is a deprecated but still present wildcard in fish, they'll still be left with the unfortunate reality of being forced to manually quote their urls each and every time, until either fish fixes this or until they sw…

> Your dismissive attitude towards this is antithetical to the design of user friendly software And your dismissive attitude of the project's own design goals is antithetical to the notion that not everybody has the same priorities as you, nor do they think your personal ideas equate to "the design of user friendly software". The principle of "no surprises" is probably the greatest aspect of "user friendly software"…

>The principle of "no surprises"

Is violated by this:

    > mpv https://www.youtube.com/watch?v=LBoF1e5YDdQ
    fish: No matches for wildcard 'https://www.youtube.com/watch?v=LBoF1e5YDdQ'. See `help expand`.
    mpv https://www.youtube.com/watch?v=LBoF1e5YDdQ
        ^
Particularly for software that sells itself as user friendly. The carrot doesn't even point at the wildcard!

I am very far from the first person to raise this issue with the fish devs, you can find numerous people bringing this up going years back. I'm generally pretty cognizant of when I have unusual requests or opinions about how software should work, and this is not one of those times.

Re: Fish shell 3.0

#156

Earlier quoted context omitted.

I would like to hear your counterarguments to https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/E... , which seems to me like a compelling argument.

It seems to be mostly about math, with the only mention of array indexing being that 0 looks nicer. "starting with 0, however, gives the nicer range 0 ≤ i This doesn't seem to be much of an argument so I'm not even sure what to address.

[deleted]

Re: Fish shell 3.0

#158

I made fish my default shell for around a month, and I really liked the smart suggestions of what command I was going for when I started typing. But the "vi" mode had enough incompatibilities that it really irritated me, it was extremely incomplete. Discussions of it with devs went nowhere. Plus, there were incompatibilities in the language that I could never bring myself to commit to memory; I might have if the vi m…

I think vi mode suffers because it's a relatively niche feature - none of the current committers use it as far as I know, and pull requests to improve it are fairly infrequent. It gained t/T/;/,/d{f,F,t,T} in 3.0 in two different pull requests, which represents about 1% of all PRs in the 3.0 cycle.

I don't think it helps that it's this huge target area which (the small number of?) users use a slightly different 10% of, and it can be quite complex to integrate new features into existing editor state.

Re: Fish shell 3.0

#159

I like fish's auto completion speed and smoothness but one thing that has held me back when I checked out fish was that there didn't seem to be a `Ctrl+r` command that bash and zsh provide to quickly go through history commands.

fzf [0] has a history mode included and integrates nicely with fish. You just need to enable the fzf bindings [1], then CTRL-r will give you a (fzf) history searcher.

[0] https://wiki.archlinux.org/index.php/Fzf#fish

[1] https://github.com/junegunn/fzf

Re: Fish shell 3.0

#160

Earlier quoted context omitted.

You start typing what you want, then hit the up arrow to fuzzy search back through history.

Is this the only way? Arrow keys require I take my fingers off the home row, which is far from ideal with the frequency I search shell history.

Control-P does it too, and is what I normally use. (Generally, I use control-{n,p,f,b} instead of arrow keys wherever possible. I also have caps lock mapped to control.)
Post reply on HN