Browse Source
fix: prefix with ctrl to avoid typing conflicts
main
decentral1se
12 months ago
No known key found for this signature in database
GPG Key ID: 3789458B3D0C410
1 changed files with
2 additions and
2 deletions
-
gshmm.go
|
|
@ -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(), "|")) |
|
|
|