File content preview #9

edoz90 opened this Issue Dec 4, 2016 · 5 comments


None yet

2 participants

edoz90 commented Dec 4, 2016

Hi! :)
Great work.

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?

rcmdnk commented Dec 4, 2016

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):

edoz90 commented Dec 4, 2016

Yeah! The first one is great, thanks! :D

Is it possibile to achieve something like ranger? Maybe choosing where to show the preview...


rcmdnk commented Dec 4, 2016

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.
Or set


How about it?

edoz90 commented Dec 4, 2016

OMG! 😃
You're great!!

screenshot from 2016-12-04 19-32-24

Thank you so much 🍺

@edoz90 edoz90 closed this Dec 4, 2016
rcmdnk commented Dec 6, 2016

I have updated the script in the different repository: shell-explorer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment