zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Vincent Bernat <bernat@luffy.cx>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Magic URL quoting and bracketed paste gets "disabled" randomly
Date: Fri, 8 Jul 2022 20:10:52 -0700	[thread overview]
Message-ID: <CAH+w=7YcH=rBzOF42a3vmZJBfD1PU=ToJuCiNbcSL5XWg0kOyA@mail.gmail.com> (raw)
In-Reply-To: <bc5d0025-d0f3-ce8f-0c37-cbc810c60869@luffy.cx>

On Wed, Jul 6, 2022 at 11:13 PM Vincent Bernat <bernat@luffy.cx> wrote:
>
> zle -N self-insert url-quote-magic
> zle -N bracketed-paste bracketed-paste-magic
>
> It works fine, but after some time, [url-quote-magic] stops working.
> Bracketed paste never stops working.

First thing to check is whether any of your widgets have become
re-bound somehow.
  zle -l -L bracketed-paste self-insert
should return
  zle -N bracketed-paste bracketed-paste-magic
  zle -N self-insert url-quote-magic

If that hasn't changed, does url-quote-magic work when just typing in
a URL without pasting?

If so, next I'd try
  exec 2>/tmp/zshuqmtrace
  functions -t url-quote-magic
and then paste a URL.  See if you get anything in that trace file.


  reply	other threads:[~2022-07-09  3:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-07  6:13 Vincent Bernat
2022-07-09  3:10 ` Bart Schaefer [this message]
2022-07-09  5:40   ` Vincent Bernat
2022-07-10 17:44     ` Bart Schaefer
2022-07-10 19:12       ` Vincent Bernat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7YcH=rBzOF42a3vmZJBfD1PU=ToJuCiNbcSL5XWg0kOyA@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=bernat@luffy.cx \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).