dbcli / dbcli/pgcli

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

Đang mở
#1,608 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
13.4k
Fork
612
Merge trung bình
6 ngày 14 giờ
Pull request đã merge (30 ngày)
10

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.