Unstable ordering during scan for devices with the same alias

Aperta
#160 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux, rust
Ambito
cli, desktop

Direzione di ricerca

Start by reading the device scan and ordering logic, then compare the behavior with issues #60 and #31. Check how devices sharing an alias are sorted and whether newly detected devices change the cursor selection. Done means ordering by alias and address is stable, and the cursor selection remains stable as devices are detected.

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

Descrizione

When scanning, it appears that there is no ordering defined with devices of the same alias, which creates a confusing behavior where they repeatedly swap positions. It would be much more intuitive if this ordering can be stable. Perhaps as an extension to #60. we can sort first by alias, then by address.

Image

Furthermore, #31 is closed, but it appears that the selection under the cursor does not remain stable as new devices are detected. Was there a prior regression by chance?

I would be happy to submit a PR to address either, or both.

Lingua principale
Rust
Stelle
3.1k
Fork
85
Merge medio
3g 4h
PR unite (30g)
1

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 pythops/bluetui

Tutte le issue di pythops/bluetui

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.