mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
fix: added the temp add keybind to the tui list
This commit is contained in:
@@ -2,8 +2,8 @@ package tui
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"github.com/Slug-Boi/cocommit/src_code/go_src/cmd/utils"
|
||||
"io"
|
||||
"os"
|
||||
"sort"
|
||||
"strings"
|
||||
@@ -156,7 +156,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
case tea.KeyMsg:
|
||||
// deletion toggle with confirmation required
|
||||
b := false
|
||||
defer func(b *bool){deletion = *b}(&b)
|
||||
defer func(b *bool) { deletion = *b }(&b)
|
||||
if m.list.FilterState() == list.Filtering {
|
||||
break
|
||||
}
|
||||
@@ -301,6 +301,7 @@ func listModel() model {
|
||||
listKeys.negation,
|
||||
listKeys.groupSelect,
|
||||
listKeys.createAuthor,
|
||||
listKeys.tempAdd,
|
||||
}
|
||||
}
|
||||
l.Styles.HelpStyle = helpStyle
|
||||
|
||||
Reference in New Issue
Block a user