Skip to content
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

[FR] Including dotfiles in the search prompt if there are #104

Closed
hangg7 opened this issue Jul 22, 2020 · 4 comments
Closed

[FR] Including dotfiles in the search prompt if there are #104

hangg7 opened this issue Jul 22, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@hangg7
Copy link

hangg7 commented Jul 22, 2020

Is your feature request related to a problem? Please describe.
Currently fzf-tab cannot search for dotfiles in their results, while under the same case the default completion would do. An screenshot for describing this visually:
image
image

This behavior is specifically undesirable when user would like to first see the directories under current path and deside whether or not navigate one level back the directories:
image

Describe the solution you'd like
Adding dotfiles in the search prompty -- an example would be seeing both dir{1,2} and ., .. in my last screenshot above.

Describe alternatives you've considered
junegunn/fzf#634 might be related, but cannot get it to work with the suggested configuration.

Having the issue solved / adding this feature could largely improve the experience. And from my own perspective, this is the only thing stop me using fzf-tab as a real file explorer :)

@hangg7 hangg7 added the enhancement New feature or request label Jul 22, 2020
@Aloxaf
Copy link
Owner

Aloxaf commented Jul 22, 2020

To list all hidden files, you can use glob_dots option: setopt glob_dots
To list both . and .., you can use special-dirs tag: zstyle ':completion:*' special-dirs true

@hangg7
Copy link
Author

hangg7 commented Jul 22, 2020

Thanks for your quick reply! But in my case it does not really works:
image
image

In addition to these two settings, I tried the suggestion in #65 (comment), and it indeed listed hidden files and directories. And I let _cd to find . and .. by doing sharkdp/fd#364 (comment)

_cd() {
    local dirs=($(echo "."; echo ".."; fd --hidden --follow --type=d))
    compadd -a -f dirs
}

But I cannot continuous complete after doing this.

@Aloxaf
Copy link
Owner

Aloxaf commented Jul 23, 2020

图片
That's strange.

Can you provide your zshrc?

@Aloxaf
Copy link
Owner

Aloxaf commented Oct 23, 2020

Close due to a lack of information.

@Aloxaf Aloxaf closed this as completed Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants