Skip to content
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

Real text under thumbnails #70

Open
taokann opened this issue May 1, 2024 · 3 comments
Open

Real text under thumbnails #70

taokann opened this issue May 1, 2024 · 3 comments

Comments

@taokann
Copy link

taokann commented May 1, 2024

It could be great to have real text under thumbnails instead of rasterized text.
This would allow the user to copy-paste that 20240430_120511.png to eventually mv it into the cat_pictures/ directory.

NB. You can't just use tab-completion since they are many other pictures with different dates and time using the same format.

@hackerb9
Copy link
Owner

hackerb9 commented May 4, 2024

Good idea. Not sure it fits with lsix, though as its goal is to be small and uncomplicated so people can extend it as they wish.

Maybe try vv, an incomplete, but mostly working image viewer. vv already shows the filename as text (and as a mouse clickable link), but it's even easier to move files: hit the m key, It remembers the last directory you moved files into, so it is easy to use it again.

Let me know if vv fits your needs and, if not, how you imagine it should work.

@taokann
Copy link
Author

taokann commented May 4, 2024

Thank you for your answer. I tried vv but it doesn't seem to address the issue.

  • It shows pictures huge, I can only see the bottom-left corner (where lsix shows a quick overview)
  • It shows them one at a time (where lsix shows all directory at once)
  • The filename disappears when the picture is loaded

So I really prefer lsix's behaviour.
Moving files was only an example, it could be any action I want to take on images.

My typical workflow :

image

  1. ls
  2. [whatever command] [double click+middle click inserts filename]

(obviously here I could have used tab completion)

My goal is to achieve this on images. Let's imagine I want to edit a picture with boats at sunset.

Screenshot_20240504_011451

  1. ls
  2. Oops, I don't know which one it is!

image

  1. lsix. I see boats at sunset is 'Paysage-HD (28).jpg'
  2. gimp 'Paysage-HD (28).jpg' I must type it manually, can't copy paste with mouse.

I hope this example was more undersantable.
This use-case of lsix is "What's the filename of this picture I am thinking of?". Then I want to use that filename to do something.

I think this would imply:

  1. Remove filenames in montage call
  2. Print a text line between each pictures line

@hackerb9
Copy link
Owner

Thank you for taking the time to mock this up and show the use case. The explanation that you want to run any command and use double-click + middle-paste makes sense to me. I'll look into whether it is something that can be done in lsix while keeping the script simple.

However, it is tricky because of some of the assumptions lsix uses to be so short. It would be easier to add an lsix like grid view to vv (which I've let grow gargantuan) than to show plain text in lsix.

By the way, vv is supposed to show thumbnails by default. Even if you hit 'f' for "full screen" mode, it is never supposed to scroll the filename off from the image. It measures the number of terminal rows and subtracts two, one for the filename and one for the prompt. What terminal program are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants