feat: H shows what's hidden; Spring keys that don't look secret are hidden (#81)
Co-authored-by: Karl-Einar Bergstrøm <karl-einarb@outlook.com>
This commit was merged in pull request #81.
This commit is contained in:
1 parent
17da9eaa32
commit
913b3db6a9
19 files changed
+323
-74
No files matched your search
@@ -335,6 +335,12 @@ func (d Detail) lines(st styles.Styles) []string {
|
||||
}
|
||||
}
|
||||
case ValueShown:
|
||||
if d.value.Reveal() == "" {
|
||||
// Not in the value's colour, nor a word a value could be.
|
||||
field(label, st.Muted.Italic(true).Render("∅ no value (an empty string)"))
|
||||
out = append(out, valueIndent+hints("hide"))
|
||||
break
|
||||
}
|
||||
// Where the dots were, continuing under itself; the keys below.
|
||||
first := true
|
||||
lines, note := valueView(d.value.Reveal())
|
||||
|
||||
Reference in new issue
Block a user