dbcli / dbcli/pgcli

Ctrl-u cuts the line, but Ctrl-y doesn't put it back in Vi-mode

未关闭
#1,608 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
13.4k
派生
612
平均合并
6 天 14 小时
30 天内合并 PR
10

描述

In Vi-mode, when using Ctrl+U to cut the current input it's impossible to use Ctrl+Y afterwards to get it back: it does nothing.

If I switch back to Emacs-mode and press Ctrl+Y, I get the data back. I can then switch back to Vi-mode.

I would expect Ctrl+Y to work the same way it works with readline, or for Ctrl+U to do nothing in Vi-mode (as the vi equivalent would be dd rather than Ctrl+U).

Version: v4.0.1

贡献指南

打开贡献指南

调研方向

Start by reproducing the Ctrl-U and Ctrl-Y behavior in pgcli v4.0.1 while Vi-mode is enabled, then compare it with Emacs-mode and readline behavior. Trace the CLI's Vi-mode key handling and make the expected behavior consistent; verify the result by repeating both key sequences in each mode.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。