Skip to content

Commit

Permalink
Enable "r" in filter state
Browse files Browse the repository at this point in the history
  • Loading branch information
NijeboerFrank committed Sep 13, 2024
1 parent 67243bb commit f4d1400
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,13 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, tea.Batch(batch...)
}
case "r":
var cmd tea.Cmd
if m.state == stateShowStash {
// pass through all keys if we're editing the filter
if m.stash.filterState == filtering {
m.stash, cmd = m.stash.update(msg)
return m, cmd
}
m.stash.markdowns = nil
return m, m.Init()
}
Expand Down

0 comments on commit f4d1400

Please sign in to comment.