Insert cursor into a line rather than have it on top of the selected character

Đang mở
#3,916 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Issue không nêu tệp, test hoặc entry point nào. Hãy bắt đầu bằng cách xác định phần xử lý cấu hình và việc render cursor của Micro, sau đó truy vết cách xuống dòng được xử lý; công việc được hoàn thành khi một tùy chọn cấu hình chèn cursor mà không làm mất ký tự bên dưới, và hành vi xuống dòng phát sinh được kiểm thử.

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

Mô tả

Context

From the Canute Console Braille display development team.

The Canute Console is a 360 6-dot Braille display running Raspian (Debian based). The Braille display reflects the last 9 lines of the terminal. We use Micro as the primary text editor.

Because Braille has no option for background/foreground colour (common terminal way of showing the cursor), and because our display is 6-dot not 8-dot (the extra bottom two dots being the common refreshable Braille display method of showing cursor position), the cursor essentially blocks out the character it is on.

So rather than a string like this having the cursor visible over the letter P, it obscures the letter P (our default cursor shape is all six dots, represented here by the "=" sign, but it doesn't matter what cursor shape it is, it always obscures the letter underneath):

Hello, said Peter becomes, Hello, said =eter

Its not the end of the world but there are circumstances where it is far from ideal.

Proposed solution

An option in Micro configuration to insert the cursor as a character, therefore to move the letters over. So:

Hello, said Peter becomes, Hello, said =Peter

This will presumably have some consequences for line wrapping and so I can see it may not be trivial.

Ngôn ngữ chính
Go
Star
29.8k
Fork
1.4k
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của micro-editor/micro

Tất cả issue của micro-editor/micro

Issue tương tự

Thêm issue về Go

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.