Misinterpretation Mochi. Yes, titles of some web pages may be long, but I wasn't suggesting that they would be so long as to be problematic. What would be a problem is the path to a 6/7/8 level directory plus the long web page title....which would be very easy, but you also told me that even the basenames of your files may be very long (e.g.web page article titles).
No, wrong!So here your idea wouldn't help, right?
Here is a list of files with long titles I recently downloaded.And if the number of characters should be limited, what would this maximum number be and how should the name be truncated if it exceeds the limit
Backyard Woodfire Pizza Oven 10 Steps (with Pictures)-1.mp4
EaseUS-How to Create a Portable Windows 10_8_7 USB Drive.html
Is it Safe to Share My Internet Connection with My Neighbor_ - Ask Leo! (2019-07-31 10_52_13 PM).html
Is it Safe to Share My Internet Connection with My Neighbor_ - Ask Leo!.html
The first "Is it Safe ...", I renamed to the shorter title below it. It still is the longest at 74 characters. If you insist on a number, the old 80 col card length will suffice. Even such a length is unnecessary. The user has a good idea what he/she is looking for and should recognize it in 40 characters, I would think. The ideal would be:
Code: Select all
if file_length < 40, display all.
else make name consisting of a substring of the first 40 chars +"..."+ extension.
No! Why complicate matters. Why mix apples and oranges (paths and filenames)? But if you really want work, make the path to the directory a tooltip.and should full path names be shown if they fit within the limit?
I don't think so. Unless you have more to pose.Lots of questions remain...