-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: terminal cmd preview for directories #74
Conversation
63aa4d9
to
8ffb357
Compare
Cool! |
Thanks for test driving! I can reproduce that, but not really sure as to why that would happen 😅 In general, it seems to be associated with terminal previewers, e.g.
Probably related to the prompt buffer bugs. |
The fix is quite hacky, but seems to work as intended so long as anyone would want to return to insert mode coming off of the Could you please confirm it also saves the issue on your end? :) |
Yes, this fixes it :) |
😍This just what I was looking for. does it need more tests? |
No, primarily documentation so people will understand what they can pass as I'll try to do that tonight. |
We should drop scandir.ls and everything with it. It was a mistake. Makes highlighting for unix like and windows systems the same but offers 0 flexibility. Windows just only gives us But I would suggest to not do this here but rather in core |
No way it should be dropped @Conni2461 it extremely fast and we have end up creating it for a reason. Yah I agree on the flexibility part but that just a render function need to be exposed and a set of themes to be built upon it. It's extremely easy t build tree structure or hide certain information. I can take a look on increasing it flexibility if you like. |
One thing I've planned on doing eventually for The idea is that
What I nevertheless really like would be incorporating |
I'll be working on this upstream most likely in a more universal solution. Let's close this. |
@fdschmidt93 this looks amazing! I think this (tree as command) is also my interpretation of what #165 was hinting at which I'd love since that's the default behavior of https://github.com/Canop/broot which I currently still use for exploration. Do you think this could be useful for non-directories too? https://github.com/jarun/nnn allows specifying it per file-type via plugin https://github.com/jarun/nnn/blob/master/plugins/preview-tui I think that would be extremely powerful. Just some ideas for use cases directory preview: tree via file preview:
|
Ah, this is a tricky one. This allows overwriting the directory previewer with a function like so
would show
ls -la
output like in the terminalThe video shows
tree
as a previewer. Colors may or may not work depending on compatability with a pager.fb_trees.mp4
I hope someone appreciates this hack 😆