Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qoreQyaS opened this issue Dec 29, 2022 · 1 comment

Comments

@qoreQyaS
Copy link
Contributor

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: ohmyzsh/ohmyzsh#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?

@unixorn
Copy link
Owner

unixorn commented Dec 30, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants