8 ms·
Every now and again I give Fish a try, think how great it is, and then try to do something like `sudo !!` and give up in a fit of rage. I understand the desire
by marrs 11y ago
Every now and again I give Fish a try, think how great it is, and then try to do something like `sudo !!` and give up in a fit of rage.
I understand the desire to avoid using the special chars but the alternative (using the cursor keys) is just too cumbersome. It turns out that when you use the shell for everything, efficiency is the thing that matters the most.
Not complaining - I'm not the target audience - I just find it an interesting observation about usability.
- sdegutis 11y agoEvery now and again, I give Fish a try, and I'm definitely wow'd (usually by the automatic colors), but not enough to completely ditch Eshell.
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]
- ufo 11y agoIf you really really hate cursor keys there are keybindings you can use instead. Don't remember what they are though because I personally don't mind using the cursor keys. (I do know that they add vim keybindings in the latest version, which was a commonly requested feature)
- makecheck 11y agoNot only are special characters useful but some shells went to the other extreme. In the early days of the Mac, the system’s default keybindings made it so easy to type “weird” characters that the MPW Shell had many more special characters than shells on other platforms at the time, leading to creative uses of ƒ and ∂, etc. Now that Unicode support is becoming more common, perhaps some bold shells will bravely adopt new special characters.
- justinmayer 11y agoAs you noted, avoiding arcane magical characters is a primary design goal for Fish. But the alternative you mention — using the cursor keys — is indeed cumbersome and not at all what Fish users would normally do. In my case, I added a "sdl" command (for "sudo last") as a plugin for my Tacklebox and Tackle projects: https://github.com/justinmayer/tacklebox https://github.com/justinmayer/tacklebox https://github.com/justinmayer/tackle/blob/master/plugins/sdl/sdl.fish https://github.com/justinmayer/tackle/blob/master/plugins/sd... Some may feel that these kinds of functions should be built-in, and if so, that's probably where the philosophical divide lies. For me and many others, avoiding esoteric syntax makes it easy to compose small snippets that accomplish precisely what we want, without having to remember unintuitive special characters or deal with their often-idiosyncratic behavior. (^_^)
- chemzqm 11y agoThanks for sharing, I do like the philosophy that avoiding esoretic syntax and unnecessary configuration, that would prevent anyone from writing clean and solid code.
- adwf 11y agoYeah the bang commands are the biggest thing I miss. Such an easy powerful feature. On the other hand I love how much fish does for me. I really take a huge amount for granted and noticably miss it when I have to use a different shell.
- bucaran 11y agoYou can create a plugin that installs key bindings for the `!!` sequence and define your desired behavior. Fish can do this.