Skip to content

Commit

Permalink
Merge pull request #9 from koki-develop/add-count-view-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Mar 26, 2023
2 parents c631c58 + 41a7830 commit 5978e69
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/gofzf/main.go
Expand Up @@ -30,6 +30,8 @@ var (
flagUnselectedPrefix string
flagInputPlaceholder string

flagCountView bool

flagCursorFg string
flagCursorBg string
flagCursorBold bool
Expand Down Expand Up @@ -129,6 +131,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 @@ -223,6 +228,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 5978e69

Please sign in to comment.