3 ms·
One of the nice things about fish is that it does this when pasting: https://github.com/fish-shell/fish-shell/issues/967 https://github.com/fish-shell/fish-shel
by NegativeLatency 4y ago
One of the nice things about fish is that it does this when pasting: https://github.com/fish-shell/fish-shell/issues/967 https://github.com/fish-shell/fish-shell/issues/967
- jchw 4y agoPowerShell does this too, at least for URLs. That said, it’s a true pain in the ass when it kicks in incorrectly, which unfortunately does happen.
- re 4y agoSo can Zsh -- this functionality has shipped with Zsh since for several years, though not enabled by default. See https://github.com/zsh-users/zsh/blob/master/Functions/Zle/bracketed-paste-magic https://github.com/zsh-users/zsh/blob/master/Functions/Zle/b... or https://github.com/zsh-users/zsh/blob/master/Functions/Zle/bracketed-paste-url-magic https://github.com/zsh-users/zsh/blob/master/Functions/Zle/b...
- a1369209993 4y agoHonestly, the "when pasting" part seems very much a case of solving the wrong problem there. For my shell, I just had any unquoted ':/' or ':?' mark the word as a url, causing glob characters (and some others like '&', for obvious[0] reasons) to be implicitly quoted until the end of the word. 0: assuming you've seen a url like http://example.com/foo?bar=1&baz=2 http://example.com/foo?bar=1&baz=2 before