tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.43k stars 484 forks source link

Is it possible to alter the file listing order, so that it is like Linux's `ls`? #368

Open nonopolarity opened 3 years ago

nonopolarity commented 3 years ago
Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting

Issue description

Since live-server is for developers, when the directory content is listed, can it be more like ls on Linux. (top to bottom, and then second row, top to bottm, as oppose to left to right, next row, left to right). Right now often I have to get used to live-server's ordering and then switch back to Bash ordering... often I thought I cannot find the file but except it is there, but just listed in a different way.

Software details

yandeu commented 3 years ago

Seems like a good idea to improve the list order!

This behavior is done by serve-index which seems not to be maintained anymore.

I maintain a fork of Live Server called Five Server which implements a fork of serve-index. If you want to modify it, feel for to make changes to /public/serve-index.

nonopolarity commented 3 years ago

Seems like a good idea to improve the list order!

This behavior is done by serve-index which seems not to be maintained anymore.

I maintain a fork of Live Server called Five Server which implements a fork of serve-index. If you want to modify it, feel for to make changes to /public/serve-index.

oh in that case will I get credit for live-server (as in the git log?)

yandeu commented 3 years ago

If you make a PR and I merge it, you will be in the log and listed as contributor. Five Server not Live Server

yandeu commented 3 years ago

I have made the changes. Will be available in the next update.

nonopolarity commented 3 years ago

I have made the changes. Will be available in the next update.

I would have tried to make the changes... if I could get credit for live-server

kerryj89 commented 1 year ago

The order is annoying me also, I don't understand why they made it that way, it's not a natural flow for file order where a vertical flow would make it easy to catch small filename differences. They should've used css multi-column property, e.g. column-count: 3; instead if they really wanted to use a columnar layout.

Anyway, just to clarify for anyone else coming in with sleepy eyes, @yandeu updated the behavior for his five-server, not live-server (he mentioned this also). The way it's inside this thread made me think that there was some PR or a hidden option I was overlooking 🙃.