This adds a preview option to the open command. I default to using head -100 as the preview option but I also added support for specifying the pager. For example, bind \cp '__fzf_open --editor --preview="bat --color always {}"' would make use of bat to show a nice preview window. I also added used ls -al for showing directories, this is mostly to show something reasonable for directories.
This adds a preview option to the open command. I default to using
head -100
as the preview option but I also added support for specifying the pager. For example,bind \cp '__fzf_open --editor --preview="bat --color always {}"'
would make use ofbat
to show a nice preview window. I also added usedls -al
for showing directories, this is mostly to show something reasonable for directories.