android icon indicating copy to clipboard operation
android copied to clipboard

Offer long file name ellipsizing options

Open leafcutterant opened this issue 7 years ago • 5 comments

I work with long-named files and it would be more important to see as much of the beginning of the file name as possible as the end of it offers little informational value.

Could we have different options for file name ellipsizing? I would be totally okay with it as a hidden expert option.

My ideas for the options:

  • ellipsize the beginning of the file name
  • ellipsize the middle of the file name
  • ellipsize the end of the file name
  • ellipsize the end of the file name, except the extension (where the extension is all the characters after the last dot)

leafcutterant avatar Mar 06 '18 22:03 leafcutterant

2018-03-08-155802

@nextcloud/designers do you have an idea how to solve this? Adding another option, alongside with more code, is something I would like to avoid.

As far as I remember we chose ellipsizing it this way as the more important info is at the end, e.g. if you upload a file twice, it gets "file.txt" and "file (2).txt".

Changing the orientation to landscape will help, but it not a real solution ;-) If possible, we could also scroll, but this maybe looks also ugly if 10 names are moving...

tobiasKaminsky avatar Mar 08 '18 14:03 tobiasKaminsky

I can understand that more user options introduce extra complexity.

How about these solutions?

  • Swiping left/right is not yet associated with any action. Swiping left would (after a bit of a delay) display the beginning of the name without any ellipsizing, and one could "scroll" the name all the way to its end with the swiping movements. The same with swiping right, only it would start from the end of the name. After x seconds of inactivity or touching the screen outside this file's/folder's row, the name would reset to the middle-ellipsized state.

  • In the case of long names, tapping the "..." button would display the beginning of the name without ellipsizing and it would automatically scroll on to the end. After reaching the end, it could move on continuously, or turn into the opposite direction.

leafcutterant avatar Mar 08 '18 19:03 leafcutterant

Nice idea, but I am unsure if anybody can use this without an introduction ;-) Let us wait if @nextcloud/designers have a better solution.

tobiasKaminsky avatar Mar 12 '18 14:03 tobiasKaminsky

In the case of long names, tapping the "..." button would display the beginning of the name without ellipsizing and it would automatically scroll on to the end. After reaching the end, it could move on continuously, or turn into the opposite direction.

@leafcutterant this seems good. As soon as the menu is open, the file name could scroll (if too long). What do you think @tobiasKaminsky?


And just regarding the swiping: If we implement it, should not be used for this. Swiping to the left is pretty much standard for deletion, and swiping to the right is pretty much standard for favoriting.

jancborchardt avatar Mar 19 '18 16:03 jancborchardt

I definitely vote for text scrolling. It would be so convenient !

AubinF avatar Jul 14 '23 13:07 AubinF