The command for ls contained a typo. For the preview to work, you need to pass the path to bat using {}, that is: --preview 'bat --style=numbers --color=always {}'.
I have updated the command in the article, thanks for noticing!
As for the navigation, I guess you could trigger the command recursively when clicking on the right arrow, with the new path, and abort the current command. Clicking the left arrow would trigger ls .., hit me up if you manage to get it working!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the words!!
The command for
ls
contained a typo. For the preview to work, you need to pass the path tobat
using{}
, that is:--preview 'bat --style=numbers --color=always {}'
.I have updated the command in the article, thanks for noticing!
As for the navigation, I guess you could trigger the command recursively when clicking on the right arrow, with the new path, and abort the current command. Clicking the left arrow would trigger
ls ..
, hit me up if you manage to get it working!