Closed bpn19 closed 1 year ago
Hi @bpn19, and thanks for your thoughts. Absolutely agreed. Now:
#ifdef
could be used for the auto-generated config file (preview.clifm
). No problem./usr/local/share/clifm/preview.clifm
), so that fixing this file is the main goal.The ideal solution would be to first check for gls
(which does support --indicator-style
) and then, if not there, for ls
(removing this option if running on BSD). Maybe we could just avoid importing the file on BSD, jumping directly to the auto-generated file.
Should be solved now.
git clone
and make
the latest version (1.12.15
).preview.clifm
file (from ~/.config/clifm/profiles/default/
).Hello @leo-arch, you're completely correct about gls
, good point.
Thanks for the quick turnaround, I can confirm that this is now fixed.
Describe the bug Directory previews fail with
ls
diagnostic while using shotgunTo Reproduce Steps to reproduce the behavior:
<tab>
and select any directoryls: unrecognized option '--indicator-style=none'
Expected behavior The auto-generated preview.clifm file should not contain the option when compiling for FreeBSD.
Desktop (please complete the following information):
Additional context Obviously an easy fix for me to just remove the option from the config file with
view edit
, but I consider it non-ideal behavior for basic directory previews to be broken by default on FreeBSD.I confirmed that the problem occurs with both the ports based
pkg install clifm
and my owngit clone
version. Could trip up new users. Interested in your thoughts, I think a simple#ifdef
etc would work?