What do you think about making a view of the content of the file or a preview right or after the selection list?
It will be difficult to implement?
It could be like:
Usage is same as sentaku, like:
$ ls | /PATH/TO/file_selector
(if file_sleector is under $PATH, /PATH/TO/ is not needed.)
This wrapper script shows the file content below, and shows more content when you push s.
or simpler implementation only s function (much faster):
Yeah! The first one is great, thanks! :D
Is it possibile to achieve something like ranger? Maybe choosing where to show the preview...
file_selector has been added in the repository:
Now, you can use "--right" or "--under" option, showing a content in the right or under the list, respectively.
Default is "right".
Can be changed by _SENTAKU_CONTENT_SHOW_UNDER variable, like
$ ls |_SENTAKU_CONTENT_SHOW_UNDER=1 ./file_selector
This is same as ./file_selector --under.
$ export _SENTAKU_CONTENT_SHOW_UNDER=1
How about it?
Thank you so much 🍺
I have updated the script in the different repository: shell-explorer