diff --git a/gshmm.go b/gshmm.go index facc08e..e0fd981 100644 --- a/gshmm.go +++ b/gshmm.go @@ -218,8 +218,8 @@ func filterDatasheetContents(m model) []string { // wait for datasheetsLoaded to go true // then iterate m.datasheets and index them // - // for this function, catch 3 chars or more in the textinput - // start the query, fire the spinner and block any other queries + // for this function, wait until Enter is hit to fire the query, + // run the query, fire the spinner and block any other queries // coming in. return the list hits that come back from the query return []string{} } @@ -294,7 +294,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, tea.Quit case "tab": m.toggleFilterMode() - case "enter": + case "o": selectedDatasheet := m.datasheets[len(m.datasheets)-1] // TODO: handle error _ = xdg.Open(selectedDatasheet.absPath) @@ -336,7 +336,7 @@ func (m model) View() string { } body.WriteString("\n" + mode) - help := "[ctrl-c]: quit | [tab]: filter mode | [enter]: open" + help := "[ctrl-c]: quit | [tab]: filter mode | [o]: open" body.WriteString("\n" + help) return body.String()