-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Search files] make fd configurable, exclude hidden files by default #126
Conversation
@@ -3,7 +3,7 @@ function __fzf_search_current_dir --description "Search the current directory. R | |||
# See similar comment in __fzf_search_shell_variables.fish. | |||
set --local --export SHELL (command --search fish) | |||
|
|||
set fd_arguments --hidden --color=always --exclude=.git | |||
set fd_opts --color=always $fzf_fd_opts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed the variable because we are using opts everywhere else, e.g. FZF_DEFAULT_OPTS
if test -d functions | ||
@test "doesn't change fd's base directory if no slash on current token" -z (string match --entire -- "--base-directory" $fd_args) | ||
test -n "$fd_captured_opts" && test -z (string match --entire -- "--base-directory" $fd_captured_opts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of scope: this test wasn't failing even when the code wasn't working.
…atrickF1#126) Making fd configurable has been a long time ask and I'm finally giving in (e.g. PatrickF1#107, PatrickF1#112, and many other issues). It makes sense because fd has a wealth of useful options and I can see how others may want to play around with them to fit their use case. I also have decided to exclude hidden files by default. This is a backwards break change but I doubt many people will notice. It was only ever useful for me to search my own dotfiles repo, and much of the feedback I got was asking to NOT search hidden files by default. I also made this change because it makes the new configuration code much simpler to implement.
Making fd configurable has been a long time ask and I'm finally giving in (e.g. #107, #112, and many other issues). It makes sense because fd has a wealth of useful options and I can see how others may want to play around with them to fit their use case.
I also have decided to exclude hidden files by default. This is a backwards break change but I doubt many people will notice. It was only ever useful for me to search my own dotfiles repo, and much of the feedback I got was asking to NOT search hidden files by default. I also made this change because it makes the new configuration code much simpler to implement.