Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
func main() {
var ignoreNamesFlag, ignoreRegexFlag string
var workers uint
var interactiveMode bool
flag.StringVar(&ignoreNamesFlag, "ignore-names", "", "Comma-separated list of file/folder names to ignore (exact match)")
flag.StringVar(&ignoreRegexFlag, "ignore-regex", "", "Regex pattern to ignore files by path")
flag.BoolVar(&interactiveMode, "it", false, "Interactive TUI mode")
Expand Down
7 changes: 0 additions & 7 deletions model.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
"github.com/charmbracelet/lipgloss"
)

var (
interactiveMode bool
ignoreNamesFlag string
ignoreRegexFlag string
workers uint
)

type model struct {
groups [][]string
currentGroup int
Expand All @@ -35,8 +28,8 @@
selectedFileStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).Bold(true)
deleteStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("196")).Bold(true)
confirmStyle = lipgloss.NewStyle().Border(lipgloss.RoundedBorder()).BorderForeground(lipgloss.Color("196")).Padding(1)
itemStyle = lipgloss.NewStyle().PaddingLeft(2)

Check failure on line 31 in model.go

View workflow job for this annotation

GitHub Actions / build-and-test

var itemStyle is unused (U1000)

Check failure on line 31 in model.go

View workflow job for this annotation

GitHub Actions / build-and-test

var `itemStyle` is unused (unused)
selectedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).Bold(true)

Check failure on line 32 in model.go

View workflow job for this annotation

GitHub Actions / build-and-test

var selectedStyle is unused (U1000)

Check failure on line 32 in model.go

View workflow job for this annotation

GitHub Actions / build-and-test

var `selectedStyle` is unused (unused)
errorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("196")).Bold(true)

helpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("240")).Italic(true)
Expand Down Expand Up @@ -265,11 +258,11 @@
}
}

type updateMsg struct {

Check failure on line 261 in model.go

View workflow job for this annotation

GitHub Actions / build-and-test

type updateMsg is unused (U1000)

Check failure on line 261 in model.go

View workflow job for this annotation

GitHub Actions / build-and-test

type `updateMsg` is unused (unused)
deleted []string
}

func renderItems(items []string, current int, selected map[int]struct{}) string {

Check failure on line 265 in model.go

View workflow job for this annotation

GitHub Actions / build-and-test

func renderItems is unused (U1000)

Check failure on line 265 in model.go

View workflow job for this annotation

GitHub Actions / build-and-test

func `renderItems` is unused (unused)
var b strings.Builder
for _, item := range items {
prefix := " "
Expand Down