Stefan Schimanski wrote:
I cooked up some more clever elide mode for the LyX buffer tabs. In trunk currently the whole path is used (possibly with some unmotivated ... in the middle) which is usually far too long.

The algorithm I propose here will start with absolute paths. From left to right single path segments are added to the display string if they help to make the display strings more unique. Otherwise nothing is added, or if some middle path segments are omitted otherwise by this, three dots ... are added.

The result is that we get just the base filename without extension if they are unique in the tabbar. In the picture below I created the files a/b/c/newfile1.lyx, aa/b/c/newfile1.lyx and a/bb/c/newfile1.lyx. As you can see the tab display strings are unique, but still as small as possible to make them unique.

I have not checked on Windows with drive letters, but they should be handled as any other directory string. So I guess it's fine.

Any objections? Comments?

Neither, I'm afraid. Other than that there looks to be some indentation weirdness in the FileName.h part. But this will be very helpful.

rh

Reply via email to