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

help setting up the ctrl-g keybinding: make it more explicit in the readme? #16

Open
jerabaul29 opened this issue Jun 21, 2021 · 0 comments

Comments

@jerabaul29
Copy link

I am using the keybindings recommended in the readme, in particular:

$fzf_dir_binding = "c-g"      # Ctrl+G

However, using ctrl-g without any more setup results in files, not dirs, being matched. Of course this is inconvenient for performing a cd (that fails). For example:

Screenshot from 2021-06-21 20-08-38

After a bit of digging and looking at the code, I now understand what the reason for that is. Namely, for the dir binding to have any special effect, the $fzf_find_dirs_command described a bit later in the readme needs to be set. The readme shows the exmaple of setting it with fd. A couple of comments here, as I was confused at first: 1) one could use find, or any other tools, though agree that fd is really nice, but it needs to be installed (guess it is this fd you were thinking about? or even another one? :) https://github.com/sharkdp/fd ). 2) if this is well the fd you think about, the command name on my ubuntu seems to be actually fdfind, not fd (but guess you may be using another fd tool :) ).

In the end, all works good, but this required a bit of profficiency from my side. Wondering if the readme could be made easier on people who are a bit less tech-savvy by guiding a bit more the user and / or having some default script / default config to make the xonfig install fully sufficient :) . What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant