Skip to content

Commit

Permalink
Enable vim mode by default (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
goyalmunish authored Apr 15, 2022
1 parent e5d78ac commit b4ef62d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/utils/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func AskOption(options []string, label string) (int, string, error) {
Message: label,
Options: options,
PageSize: 25,
VimMode: true,
}
err := survey.AskOne(prompt, &selectedIndex)
if err != nil {
Expand Down Expand Up @@ -396,6 +397,7 @@ func GenerateNoteSearchSelect(items []string, searchFunc func(filter string, val
Options: items,
PageSize: 25,
Filter: searchFunc,
VimMode: true,
}
err := survey.AskOne(prompt, &selectedIndex)
return selectedIndex, err
Expand Down

0 comments on commit b4ef62d

Please sign in to comment.