Dynamic display of `InfoBar` messages

Aperta
#3,986 13 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Inizia esaminando l'InfoBar esistente, l'infobar setting e il comportamento dei prompt descritti nell'issue; non sono indicati file sorgente o test. Definisci l'interazione tra le soglie di verbosità, il rinnovo del timeout, le infobar nascoste e la priorità dei prompt, quindi identifica i test che possono verificare il comportamento proposto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
    • ...
Lingua principale
Go
Stelle
29.8k
Fork
1.4k
Merge medio
1g 12h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di micro-editor/micro

Tutte le issue di micro-editor/micro

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.