diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-16 09:09:48 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-16 09:57:49 +1100 |
commit | f528e12c8364f55c7cc822e2e245a2b055c1943a (patch) | |
tree | 6b3a1872b53faff48a97415502eda92499abe978 /pkg/gui/tags_panel.go | |
parent | 8ca9f93ccf9faafa776264be06520b8199fe9162 (diff) |
allow resetting to tag
Diffstat (limited to 'pkg/gui/tags_panel.go')
-rw-r--r-- | pkg/gui/tags_panel.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/gui/tags_panel.go b/pkg/gui/tags_panel.go index 8b74a3527..0cd6d2859 100644 --- a/pkg/gui/tags_panel.go +++ b/pkg/gui/tags_panel.go @@ -140,3 +140,12 @@ func (gui *Gui) handleCreateTag(g *gocui.Gui, v *gocui.View) error { return gui.refreshTags() }) } + +func (gui *Gui) handleCreateResetToTagMenu(g *gocui.Gui, v *gocui.View) error { + tag := gui.getSelectedTag() + if tag == nil { + return nil + } + + return gui.createResetMenu(tag.Name) +} |