Skip to content

Commit

Permalink
fix: allow for typing the letter r into filter
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasmorado committed Feb 1, 2025
1 parent 7b3bfac commit 8f76e60
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
case "r":
if m.state == stateShowStash {

if m.stash.filterState == filtering {
var cmd tea.Cmd

m.stash, cmd = m.stash.update(msg)
return m, cmd
}

m.stash.markdowns = nil
return m, m.Init()
}
Expand Down

0 comments on commit 8f76e60

Please sign in to comment.