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()
|
m.toggleFilterMode()
|
||||||
case "enter":
|
case "enter":
|
||||||
// TODO: fire content search query
|
// TODO: fire content search query
|
||||||
case "o":
|
case "ctrl+o":
|
||||||
selectedDatasheet := m.datasheets[len(m.datasheets)-1]
|
selectedDatasheet := m.datasheets[len(m.datasheets)-1]
|
||||||
// TODO: handle error
|
// TODO: handle error
|
||||||
_ = xdg.Open(selectedDatasheet.absPath)
|
_ = xdg.Open(selectedDatasheet.absPath)
|
||||||
@ -376,7 +376,7 @@ func (m model) View() string {
|
|||||||
}
|
}
|
||||||
body.WriteString("\n" + mode)
|
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)
|
body.WriteString("\n" + help)
|
||||||
|
|
||||||
peers := fmt.Sprintf("peers: %s", strings.Join(m.peerAddresses(), "|"))
|
peers := fmt.Sprintf("peers: %s", strings.Join(m.peerAddresses(), "|"))
|
||||||
|
Loading…
Reference in New Issue
Block a user