5 ms·
>The truly unpredictable UX is when a noob tries to paste Yes, and you've not solved that. You've only solved that one special edge-case where they're pasting
by faho 8y ago
>The truly unpredictable UX is when a noob tries to paste
Yes, and you've not solved that.
You've only solved that one special edge-case where they're pasting "a youtube url".
This only pushes the confusing bit further along, and adds some more cruft on top!
Quoting is a fact in shells. The way these languages work is through loads of string interpolation, so you kinda need to learn that. And I'd prefer to make the rules there simple than add special cases for URLs.
- darkpuma 8y agoThat "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 switch to zsh (where complaints about url escaping inconsistency don't seem to come up very often at all despite your reasoning.) Here is an idea to improve the UX that zsh currently offers: use bracketed paste mode and prompt the user whenever they paste something that looks like a URL, asking if they'd like it to be escaped/quoted. y[enter] or n[enter] after the paste is much nicer than remembering to press ' before you paste and then pressing it again after you paste.
- zapzupnz 8y ago> 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" when it comes to power tools such as shells, scripting languages, programming languages, etc. and that seems to be what GP is stating as preferable to edge-case scenario surprises. You may disagree all you like with that as a priority, but please don't go to the extreme of stating that someone is being dismissive simply because they don't hold your idea up on a golden plinth above their own.
- darkpuma 8y ago>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.
- ridiculous_fish 8y agoYour proposed remedy is for the shell to insert something different than what the user inputs. That is much more surprising. No program works that way.
- darkpuma 8y agoNo program other than a shell requires that a URL copied out of your browser's address bar be escaped. Users may not be accustomed to a program escaping or quoting text they paste, but they're also definitely not accustomed to escaping or quoting strings manually.
- michaelmrose 8y agoHow do you propose that people use a shell without learning about escaping. How many people actually using fish are liable to be confused. Its a strange world you seem to be describing where people simultaneously prefer to use mpv in the terminal instead of clicking on a link but can't figure out how to quote the url. You can actually set it up for example in Firefox so you can open a link in mpv instead and skip a step. You could trivially make a quoted paste function and bind it in fish. This fixes the problem for you it would seem.
- shhsshs 8y ago