You are not logged in.

#1 2017-03-05 04:58:23

dahy
Member
Registered: 2017-03-05
Posts: 5

[SOLVED] Semicolon is slow in zsh

It takes a few hundred metric milliseconds for the `;` symbol to display after pressing the key when I have a zsh shell open in urxvt. If I open vim or bash within the same shell the symbol displays right away. Is this because of zsh itself?

Last edited by dahy (2017-03-05 05:13:13)

Offline

#2 2017-03-05 04:58:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Semicolon is slow in zsh

Nope. Likely a config issue.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-03-05 05:12:05

dahy
Member
Registered: 2017-03-05
Posts: 5

Re: [SOLVED] Semicolon is slow in zsh

@jasonwryan You are right. I noticed that when holding the key down zsh would wait until release to display the string of characters. I checked my config and found these lines that I added in order to use ctrl+left and ctrl+right to navigate words (similar to alt+b and alt+f).

bindkey -e
bindkey ";5C" forward-word
bindkey ";5D" backward-word

Commenting them out removes the delay.

Offline

#4 2017-03-05 05:14:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Semicolon is slow in zsh

You probably want (depending on your terminal), something like:

bindkey "^[[A"

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-03-05 05:30:42

dahy
Member
Registered: 2017-03-05
Posts: 5

Re: [SOLVED] Semicolon is slow in zsh

`^[[A` didn't work but I was able to determine the correct character string by running `cat` and pressing ctrl+left and ctrl+right. Thanks for the cue!

# .zshrc

bindkey -e
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
$ echo $TERM
rxvt-unicode
$ 

Last edited by dahy (2017-03-05 05:33:26)

Offline

Board footer

Powered by FluxBB