zsh-users
 help / color / mirror / code / Atom feed
* How can I debug lost keyboard input?
@ 2018-09-12 18:42 Andy Spiegl
  2018-09-19 18:27 ` Andy Spiegl
  0 siblings, 1 reply; 6+ messages in thread
From: Andy Spiegl @ 2018-09-12 18:42 UTC (permalink / raw)
  To: Zsh-Users List

Hi,
my problem I tried to summarize in the subject line is:

Since the recent OS upgrade to Ubuntu 18.04 my zsh (5.4.2) behaves
strangely when typing keys together with Meta + Shift.  The first time I
type e.g. Meta+Shift+f nothing happens.  The second time (and all following
times) the bound function is executed and everything seems normal.

I've bound finer-forward-word to Meta+Shift+f and finer-backward-word to Meta+Shift+b
They are defined as follows:
--------
finer-forward-word() {
  local WORDCHARS=$WORDCHARS_FINER
  zle forward-word
}

finer-backward-word() {
  local WORDCHARS=$WORDCHARS_FINER
  zle backward-word
}
--------
export WORDCHARS='*?_-.[]~=/&;!%^(){}<>+:@'
export WORDCHARS_FINER='?~&!%'
zle -N finer-forward-word
zle -N finer-backward-word
bindkey "^[F"		finer-forward-word
bindkey "^[B"		finer-backward-word
--------

All my other keybindings work normally.  Just these two are crazy.
BTW if I bind the functions to a different key the same thing happens.
Uhm, as if the function would have to be loaded/initialized on the first try?

I know I should let you know about the rest of my zsh config but it has
grown pretty large over the last decades. :-)  But nothing except some
aliases has changed during the last months so the problem must have to do
with the upgrade.

Any ideas how I can debug this?

Thanks,
 Andy


-- 
 Experience is something you don't get until just after you need it.
   (Olivier)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-09-20 10:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-12 18:42 How can I debug lost keyboard input? Andy Spiegl
2018-09-19 18:27 ` Andy Spiegl
2018-09-19 19:42   ` Jérémie Roquet
2018-09-20  9:47     ` Andy Spiegl
2018-09-20 10:10   ` Mikael Magnusson
2018-09-20 10:19     ` Andy Spiegl

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).