Configure the preview directory command (#120)
To acquiesce to the popularity and diversity of ls alternatives (e.g. https://github.com/ogham/exa, https://github.com/Peltoche/lsd, https://github.com/athityakumar/colorls, tree, all of which have many different options to configure them), I have finally decided to make the command used to preview directories configurable. Users can place their desired command in fzf_preview_dir_cmd and fzf.fish will use it.
Bug fix for the search file feature (#119 - @ovv )
If the file path already starts with . or /, which can happen if such a path was used as the base directory, then don't prepend ./.
Without such logic, the path becomes invalid. For example:
- if the current token is
/etc/
and you selectsystemd
, you end up with'.//etc/systemd'
- if the current token is
~/
and you selectDesktop
, you end up with'./~/desktop'