zsh-quickstart-kit icon indicating copy to clipboard operation
zsh-quickstart-kit copied to clipboard

OMZ: pasting speed / automatic changing of pasted URLs / DISABLE_MAGIC_FUNCTIONS=true is not respected

Open qoreQyaS opened this issue 2 years ago • 1 comments
trafficstars

hello,

don't know if this is zsh-quickstart-kit related so this ain't really a bug report (yet?) 1: i was always wondering why pasting into zsh was horribly slow. 2: today i figured something changes (escapes) urls when i paste them

for both the culprit is omz:url-quote-magic it basicly checks eveything you paste and escapes urls when it thinks its neccessary (it also does it when they are quoted...)

there is an option to switch it off kindly see: https://github.com/ohmyzsh/ohmyzsh/issues/5569

one shall put DISABLE_MAGIC_FUNCTIONS=true in ~/.zshrc before source $ZSH/oh-my-zsh.sh no matter where i put it (export, and plain), i tried ~/.zshrc (the very top), ~/.zsh-quickstart-local-plugins (also top, right before the first omz mention, outside of the condition), and ~/.zshrc.d/999-env

i was able to deactivate it by commenting out line 4-16 in ~/.zgenom/ohmyzsh/ohmyzsh/___/lib/misc.zsh https://github.com/ohmyzsh/ohmyzsh/blob/a3c579bf27b34942d4c6ad64e7cfd75788b05ea3/lib/misc.zsh#L4-L16

what do you think? is this zgenom related, kit related or an omz issue?

qoreQyaS avatar Dec 29 '22 20:12 qoreQyaS

I don't think it's a bug, exactly, but it's certainly something you should be able to disable.

I'll add a zqs toggle command for it.

unixorn avatar Dec 30 '22 03:12 unixorn