fix help properly

This commit is contained in:
2025-07-13 21:05:32 -07:00
parent 5543a9a8e0
commit 491416a575
10 changed files with 45 additions and 40 deletions

View File

@@ -181,15 +181,11 @@ func (m *RowDetailModel) View() string {
}
content.WriteString("\n")
var helpText string
if m.showFullHelp {
helpText = m.help.FullHelpView(m.keyMap.FullHelp())
content.WriteString(m.help.FullHelpView(m.keyMap.FullHelp()))
} else {
helpText = m.help.ShortHelpView(m.keyMap.ShortHelp())
// Add ctrl+g to short help
helpText += " • " + HelpStyle.Render("ctrl+g: toggle help")
content.WriteString(m.help.ShortHelpView(m.keyMap.ShortHelp()))
}
content.WriteString(helpText)
return content.String()
}