m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 07:13:48 -05:00

Remove TODO comments

This commit is contained in:
Junegunn Choi
2025-09-28 23:50:26 +09:00
parent c87a8eccd4
commit 8a943a9b1a

View File

@@ -1124,7 +1124,6 @@ func NewTerminal(opts *Options, eventBox *util.EventBox, executor *util.Executor
if opts.GutterRaw != nil {
gutterRawChar = *opts.GutterRaw
} else if t.unicode && !t.theme.Gutter.Color.IsDefault() {
// TODO: Doesn't look too good. Maybe use a different color instead, or both?
gutterRawChar = "▖"
} else {
gutterRawChar = ":"
@@ -4814,10 +4813,6 @@ func (t *Terminal) selectItem(item *Item) bool {
if len(t.selected) >= t.multi {
return false
}
// TODO: Should we allow selecting non-matching items?
// if t.raw && !t.isItemMatch(item) {
// return false
// }
if _, found := t.selected[item.Index()]; found {
return true
}
@@ -6158,12 +6153,10 @@ func (t *Terminal) Loop() error {
case actAccept:
req(reqClose)
case actAcceptNonEmpty:
// TODO: Allow accepting unmatched items in raw mode?
if len(t.selected) > 0 || t.merger.Length() > 0 || !t.reading && t.count == 0 {
req(reqClose)
}
case actAcceptOrPrintQuery:
// TODO: Allow accepting unmatched items in raw mode?
if len(t.selected) > 0 || t.merger.Length() > 0 {
req(reqClose)
} else {