fix: prefix with ctrl to avoid typing conflicts

This commit is contained in:
decentral1se 2023-05-15 21:13:48 +02:00
parent 40f6c0c234
commit d624da4ab9
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410

View File

@ -334,7 +334,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.toggleFilterMode()
case "enter":
// TODO: fire content search query
case "o":
case "ctrl+o":
selectedDatasheet := m.datasheets[len(m.datasheets)-1]
// TODO: handle error
_ = xdg.Open(selectedDatasheet.absPath)
@ -376,7 +376,7 @@ func (m model) View() string {
}
body.WriteString("\n" + mode)
help := "[ctrl-c]: quit | [tab]: filter mode | [o]: open"
help := "[ctrl+c]: quit | [tab]: filter mode | [ctrl+o]: open pdf"
body.WriteString("\n" + help)
peers := fmt.Sprintf("peers: %s", strings.Join(m.peerAddresses(), "|"))