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
[Feature Request] alternate folder view: preview all media thumbnails at once #2224
Comments
While maybe technically possible. All the methods of drawing images to the screen are somewhat kludgy. So this sounds like inviting pain to me. (It'd still be cool to show off as a gimmicky demo though : > ) However, if you really feel like scratching this itch you're always welcome in #ranger to talk about it and ask for help grokking the codebase. |
@chu4ng, they're already using image viewers as an alternative. |
This issue hasn't gotten any attention in a while, has anyone investigated this further? Kitty's graphics protocol should make the rendering aspect fairly trivial and said protocol is supported by several different terminals now, so the main hurdles would be writing the new GUI code, and handling the actual asynchronous thumbnail generation. I'm a pretty new ranger user but I might see if I can throw something together when I have the time. |
very cool, I would be interested in the implementation (purely to sate my curiosity, Im not a ranger dev 😅) |
Okay, here it is: You can find more details and how to use it here: If there are questions or something doesn't work at all, please post it here. I went through it again and fixed some stuff. But there are problems, I'm sure. The mix of ranger's codebase + curses is not fun to work with. |
By the way, if anyone finds this. I'm not working on this anymore, because ranger's ui and image drawing is too messy. So I would consider this a successful experiment. The idea is good, the feature is very useful, and it's doable in kitty. The problem is the quality of ranger's existing code. Also, I'm wondering if there's any interest in this. There were no responses to my code. Not even "I tried it but it doesn't work". |
is this sixel? |
@Kreijstal But no, it was done using the kitty protocol. |
@markus-bauer I'm interested in this, though my initial need was for something more specific: music directories. I was originally thinking something similar to the existing function in scope.sh to view the first image inside of archives, only instead it'd try to determine if the selected directory contained an audio file with embedded album artwork and attempt to draw a preview of it using |
@vide0hanz I think you're talking about something else. |
Runtime Environment
Current Behavior
image previews are only shown when hovering over a specific file. This does not give a good overview of everything that is in a folder.
Context
searching for an image in a folder based on its content (rather than its name) requires slowly stepping over each file, waiting for a preview to generate, and repeat.
Its also harder to get a recollection of what a folder contains. For example, if I have several folders with all containing shots from a camera, file names may be very similar. Its hard to get an idea of what I was shooting without seeing several images in a row. Usually I resort to opening geeqie or a similar image viewer which includes thumbnails in these situations.
Possible Solutions
If ranger had a "thumbnail mode" like most file managers do (see an example of nautilus below)
Then it would become much easier to search for a specific file by its content
Remaining Questions
[edit] this feature request was written, perhaps, in response to this hacker news post https://news.ycombinator.com/item?id=25719796 😅
The text was updated successfully, but these errors were encountered: