do not truncate long filenames beginning with dot

Sometimes, when trying to save a document with long filenames, the truncated default save-as filename will start with a dot. (Ie. a hidden file.) This behaviour should change. Perhaps truncate the end of the filename instead (and preserve the file extension)?

On Wed, May 29, 2013 at 04:50:21AM -0400, Dennis New wrote:
Do you have an example where this happens? I see that it can happen with URLs like http://dillo.org/bla/.blub Is this the case where you are seeing the issue or do you get it with other types of URLs as well? Cheers, Johannes

On Tue, 11 Jun 2013 23:26:21 -0400, Jorge Arellano Cid wrote:
The problem is with very long filenames, such as: http://dennisn.dyndns.org/guest/pubstuff/dillo.long.file.name-0.69_r1337.fil... Dillo seems to truncate with just the last 64 chars. So, in this example, the save-as filename would be saved as a hidden file ".file.name-....txt". Perhaps a better solution would be to truncate the *middle* of the filename, thus preserving the beginning and file extension?

On Sa, Jun 15, 2013, Dennis New wrote:
The attached patch does this, and inserts an ellipsis to indicate that something was replaced. The above URL becomes dillo.long.file.name-0.69_r133...789012345678901234567890123.txt which is 64 characters long. I like this approach, because both the beginning and the end are the most characteristic parts of a filename. Sebastian
participants (4)
-
dennisn@dennisn.dyndns.org
-
jcid@dillo.org
-
Johannes.Hofmann@gmx.de
-
sgeerken@dillo.org