forked from varia/go-sh-manymanuals
fix: prefix with ctrl to avoid typing conflicts
This commit is contained in:
parent
40f6c0c234
commit
d624da4ab9
4
gshmm.go
4
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(), "|"))
|
||||
|
Loading…
Reference in New Issue
Block a user