Add documentation, screenshots and changelog for 1.0.0
README with install, quick start, keys, command reference and troubleshooting; docs/how-it-works.md explains the scan in detail. The screenshots show made-up devices only. The help line now drops hints that do not fit instead of cutting one in half, and the timeline no longer prints a new device's address twice. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e34ba75b7b
commit
52781ac4a8
9 files changed
+428
-83
No files matched your search
+11
-1
@@ -356,12 +356,22 @@ func (m *model) footer(hints ...string) string {
|
||||
}
|
||||
var b strings.Builder
|
||||
b.WriteString(" ")
|
||||
width := 1
|
||||
for i, h := range hints {
|
||||
key, label, _ := strings.Cut(h, " ")
|
||||
w := lipgloss.Width(h)
|
||||
if i > 0 {
|
||||
w += 3
|
||||
}
|
||||
// drop the hints that do not fit whole instead of cutting one in half
|
||||
if m.w > 0 && width+w > m.w {
|
||||
break
|
||||
}
|
||||
if i > 0 {
|
||||
b.WriteString(styleMuted.Render(" · "))
|
||||
}
|
||||
b.WriteString(styleKey.Render(key) + " " + styleDim.Render(label))
|
||||
width += w
|
||||
}
|
||||
return b.String()
|
||||
}
|
||||
@@ -520,7 +530,7 @@ func (m *model) viewHelp() string {
|
||||
}
|
||||
lines = append(lines, "",
|
||||
styleDim.Render(" Symbols: ")+styleOnline.Render("●")+" online "+styleMuted.Render("○")+" offline "+
|
||||
styleTracked.Render("⚑")+" tracked "+styleMuted.Render("✓")+" Whitelist",
|
||||
styleTracked.Render("⚑")+" tracked "+styleMuted.Render("✓")+" whitelisted",
|
||||
styleDim.Render(" Data: ")+m.cfg.Store.Dir())
|
||||
if m.cfg.Version != "" {
|
||||
lines = append(lines, styleDim.Render(" Version: ")+m.cfg.Version)
|
||||
|
||||
Reference in new issue
Block a user