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:
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?
I am using the keybindings recommended in the readme, in particular:
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: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 withfd
. 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 actuallyfdfind
, notfd
(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?