Live data from Hacker News

lsix: ls for images

github.com

11–20 of 111 posts

Re: lsix: ls for images

#11
Semi-related fun fact: if you have iimage-mode turned on in Emacs (it might be the default on recent versions?), you can just cat images in eshell and have them show up just like this app. Unfortunately it doesn't do sixel graphics in a terminal yet.

Re: lsix: ls for images

#12
post #11

Semi-related fun fact: if you have iimage-mode turned on in Emacs (it might be the default on recent versions?), you can just cat images in eshell and have them show up just like this app. Unfortunately it doesn't do sixel graphics in a terminal yet.

Dude this is so off topic but I just gotta know what the madness that your hn "about" section is

Re: lsix: ls for images

#13
post #8

Earlier quoted context omitted.

ls does not show files starting with .

But there is a driving purpose behind that, hidden vs non-hidden is binary. With so many media formats I agree that consistency is very important.

The reason is because it was a lazy hack to hide . and .. from ls and then people started using this behaviour to hide files.

Re: lsix: ls for images

#14
post #8

Earlier quoted context omitted.

ls does not show files starting with .

But there is a driving purpose behind that, hidden vs non-hidden is binary. With so many media formats I agree that consistency is very important.

It's still largely arbitrary. I'm pushing back against the general notion that standard Unix-y command line tools are some shining example of consistency. Most of it is just us confusing familiarity for consistency.

Re: lsix: ls for images

#15
post #12
post #11

Semi-related fun fact: if you have iimage-mode turned on in Emacs (it might be the default on recent versions?), you can just cat images in eshell and have them show up just like this app. Unfortunately it doesn't do sixel graphics in a terminal yet.

Dude this is so off topic but I just gotta know what the madness that your hn "about" section is

you not down with “unicode fonts”?

http://antglove.com/erger/

Re: lsix: ls for images

#16
post #3

Wouldn’t this be more like “cat” than “ls”? List is for listing files, cat is for outputting the files, and this appears to output the image...

Only if the output is the image’s exact contents. This seems to output image data and text.

Re: lsix: ls for images

#17
post #9

How many terminal emulators can handle sixel? (vt340) Does anyone have a list?

As far as I know it's just xterm on desktop. It's fascinating that we have this standard that allows us to build programming environments like notebooks -- without resorting to layering hacks on hacks to make it work on web -- practically crossplatform yet we don't make use of it.

At repl.it we've been toying around with adding sixel support for xterm.js and we have a prototype up and people in our community are already building things on it.

Here are a few examples:

- gnuplot: https://gnuplot.basicer.repl.run/rob

- gif in terminal (python): https://repl.it/talk/share/SPINNING-GLOBE-GIF-WITH-SIXEL-NEW...

- connect 4 game (ruby): https://repl.it/talk/share/Connect-4-20-with-better-graphics...

Re: lsix: ls for images

#18
post #12
post #11

Semi-related fun fact: if you have iimage-mode turned on in Emacs (it might be the default on recent versions?), you can just cat images in eshell and have them show up just like this app. Unfortunately it doesn't do sixel graphics in a terminal yet.

Dude this is so off topic but I just gotta know what the madness that your hn "about" section is

https://lingojam.com/WeirdTextGenerator

Re: lsix: ls for images

#19
post #8

You can also specify filenames and, of course, use shell wild cards However, some may be slow to render (like PDF), so lsix doesn't show them unless you ask specifically. Regardless of the justification, I don't think creating such extra exception/edge-case behaviours are ever a good idea in a commandline tool like this. The equivalent in regular ls would be something like not showing more than X files "unless you as…

ls does not show files starting with .

Yeah, but those files are known as "hidden files". In other words, it is the creators of those files who purposefully prepend them with a . to hide them from ls and other tools.

One can argue whether this "starting with a . means hidden" is a hack or not, but I think it's manifestly different than not showing particular file types based on size or something like that.

I agree just not showing pdf files by default because they render slowly is a design mistake.

Re: lsix: ls for images

#20
Cooool! Is there any way to get this work with tmux? Currently it seems it's filtering Sixel escape sequences. On a raw xterm it's fine.
Post reply on HN