gazorby / fifc

🐠 Configurable fzf completions for fish shell
MIT License
123 stars 7 forks source link

fifc treats symlinks as binary files #9

Closed kseistrup closed 2 years ago

kseistrup commented 2 years ago

Describe the bug

In a directory with several e.g. *.fish files, where some of them are symlinks to real *.fish files elsewhere on the filesystem, fifc will show a hexdump of the symlinked files as if they were binary files, wheras the real files will be shown as text files.

The same goes for *.txt et cetera, where some are symlinks. See below.

To Reproduce

  1. mkdir -p fifctest/subdir
  2. cd fifctest
  3. echo This is symlinked > a.txt
  4. cd subdir
  5. echo This is a real file > b.txt
  6. ln -sr ../a.txt
  7. ls \<TAB>

Expected behavior

fifc should show the symlinked a.txt and the real file b.txt as real files.

System (please complete the following information):