Skip to content

Commit

Permalink
add --count-view flag
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Mar 26, 2023
1 parent e44823a commit 41a7830
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/gofzf/main.go
Expand Up @@ -28,6 +28,8 @@ var (
flagUnselectedPrefix string
flagInputPlaceholder string

flagCountView bool

flagCursorFg string
flagCursorBg string
flagCursorBold bool
Expand Down Expand Up @@ -94,6 +96,9 @@ var rootCmd = &cobra.Command{
fzf.WithSelectedPrefix(flagSelectedPrefix),
fzf.WithUnselectedPrefix(flagUnselectedPrefix),
fzf.WithInputPlaceholder(flagInputPlaceholder),

fzf.WithCountViewEnabled(flagCountView),

fzf.WithStyles(
fzf.WithStyleCursor(fzf.Style{
ForegroundColor: flagCursorFg,
Expand Down Expand Up @@ -188,6 +193,8 @@ func init() {
rootCmd.Flags().StringVar(&flagUnselectedPrefix, "unselected-prefix", "◯ ", "")
rootCmd.Flags().StringVar(&flagInputPlaceholder, "input-placeholder", "Filter...", "")

rootCmd.Flags().BoolVar(&flagCountView, "count-view", true, "")

rootCmd.Flags().StringVar(&flagCursorFg, "cursor-fg", mainColor, "")
rootCmd.Flags().StringVar(&flagCursorBg, "cursor-bg", "", "")
rootCmd.Flags().BoolVar(&flagCursorBold, "cursor-bold", false, "")
Expand Down

0 comments on commit 41a7830

Please sign in to comment.