jeffreytse/zsh-vi-mode

Slow on 'J' in NORMAL mode

Open

#240 创建于 2023年8月30日

在 GitHub 查看
 (2 评论) (3 反应) (1 负责人)Shell (147 fork)github user discovery
good first issue

仓库指标

Star
 (4,364 star)
PR 合并指标
 (PR 指标待抓取)

描述

General information

  • Terminal program: iTerm.app 3.4.20 (xterm-256color)
  • Operating system: macOS 13.5.1 (22G90)
  • ZSH framework: starship 1.16.0
  • ZSH version: zsh 5.9 (x86_64-apple-darwin22.0)
  • ZVM version: zsh-vi-mode 0.10.0

Basic examination

  • I have read through the README page
  • I have the latest version of zsh-vi-mode
  • I have tested with another terminal program

Problem description

Using ZVM_VI_ESCAPE_BINDKEY=jj

Reproduction steps

  1. Press 'jj' to enter NORMAL mode
  2. Press 'k' a number of times to navigate back/up in the history
  3. Press 'j' to navigate down/forward in the history and notice a delay

Expected behavior

'j' should be as fast as 'k' It seems that in NORMAL mode there is a delay after pressing 'j' perhaps because it's waiting if 'j' is pressed again within a certain timeframe (ZVM_VI_ESCAPE_BINDKEY). I would think that this is only necessary in INSERT mode to escape it.

贡献者指南