mirror of
https://github.com/charmbracelet/glow
synced 2024-12-14 14:12:27 +00:00
Shift+tab also moves into filtered results
This commit is contained in:
parent
2e1579542e
commit
a17cfa6d26
1 changed files with 1 additions and 4 deletions
|
@ -664,7 +664,7 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) {
|
||||||
// Cancel search
|
// Cancel search
|
||||||
m.state = stashStateReady
|
m.state = stashStateReady
|
||||||
m.searchInput.Reset()
|
m.searchInput.Reset()
|
||||||
case "enter", "tab":
|
case "enter", "tab", "shift+tab", "ctrl+k", "up", "ctrl+j", "down":
|
||||||
m.hideStatusMessage()
|
m.hideStatusMessage()
|
||||||
|
|
||||||
if len(m.markdowns) == 0 {
|
if len(m.markdowns) == 0 {
|
||||||
|
@ -700,9 +700,6 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) {
|
||||||
m.searchInput.Reset()
|
m.searchInput.Reset()
|
||||||
m.state = stashStateReady
|
m.state = stashStateReady
|
||||||
}
|
}
|
||||||
|
|
||||||
case "ctrl+k", "ctrl+j", "up", "down":
|
|
||||||
m.state = stashStateShowFiltered
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue