Skip to content

Commit

Permalink
add --input-position flag
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Apr 2, 2023
1 parent 250beec commit 7ecd3b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/gofzf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ var (
flagSelectedPrefix string
flagUnselectedPrefix string

flagCountView bool
flagInputPosition string
flagCountView bool

flagPromptFg string
flagPromptBg string
Expand Down Expand Up @@ -129,6 +130,8 @@ var rootCmd = &cobra.Command{
fzf.WithSelectedPrefix(flagSelectedPrefix),
fzf.WithUnselectedPrefix(flagUnselectedPrefix),

fzf.WithInputPosition(fzf.InputPosition(flagInputPosition)),

fzf.WithCountViewEnabled(flagCountView),

fzf.WithStyles(
Expand Down Expand Up @@ -340,6 +343,8 @@ func init() {
rootCmd.Flags().StringVar(&flagSelectedPrefix, "selected-prefix", "● ", "")
rootCmd.Flags().StringVar(&flagUnselectedPrefix, "unselected-prefix", "◯ ", "")

rootCmd.Flags().StringVar(&flagInputPosition, "input-position", string(fzf.InputPositionTop), "position of input (top|bottom)")

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

rootCmd.Flags().StringVar(&flagPromptFg, "prompt-fg", "", "")
Expand Down

0 comments on commit 7ecd3b6

Please sign in to comment.