Dynamic display of `InfoBar` messages

Đang mở
#3,986 13 bình luận 0 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng việc xem xét InfoBar hiện có, infobar setting và hành vi của prompt được mô tả trong issue; không có tệp nguồn hoặc test nào được nêu tên. Xác định tương tác giữa các ngưỡng verbosity, việc gia hạn timeout, các infobar bị ẩn và độ ưu tiên của prompt, sau đó xác định các test có thể kiểm chứng hành vi được đề xuất.

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

Mô tả

feature
Description

Personally, I find the info bar mostly an eyesore. Either it's spams with generic actions logging, taking up space unnecessarily, or it keeps displaying that stale latest message even when it's no longer relevant. And for this reason, I prefer to keep it hidden.

However, sometimes seeing a single timely warning can become a real life timesaver, and there's no way around it. Yet.

Thus, I'd like to suggest an alternative approach, or rather optional improvements to the current one, since not everyone may agree with me on this:

  • Desired behavior:

    https://github.com/user-attachments/assets/744ebcd2-c3a9-4661-9844-303afd1db191

  • Desired implementation (names are merely placeholders):

    • infobell: option sets the minimal level of verbosity (Message, Warning, Error, Plugin etc.) that triggers the display of the InfoBar
    • infobell.timeout: how long to display InfoBar in ms; renew the timer if currently shown and/or the message's being updated
    • infobell: "" or infobell.timeout: 0 means keep it hidden unconditionally
    • only relevant when infobar: false
    • ? inherit the behavior pattern of the prompt where it overlaps the status bar instead of toggling the info panel every time, as long as the prompt still has the higher priority
    • ...
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.