Ellipsis in file comparison filename dropdown

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
David B. Trout
New Member
Posts: 5
Joined: Wed Jan 06, 2010 4:21 am

Ellipsis in file comparison filename dropdown

Post by David B. Trout » Thu Jun 01, 2017 4:20 pm

.
At the top of each filename comparison's pane is the full path of each of the two filenames being compared. When the path is too long to fit within the width of the pane, an ellipsis is used to shorten the path such that the most important part, the filename, is always visible.

This is good! BUT...


Would it be possible to try to choose a bit more intelligently where the ellipsis is placed? ;-)


Foe example: suppose the two paths were:
  • C:\Users\Fish\Documents\Visual Studio 2008\Projects\Hercules\_GIT\_Fish\_BitBucket\_prometheus-0\scedasd.c
  • C:\Users\Fish\Documents\Visual Studio 2008\Projects\Hercules\_GIT\_Fish\_BitBucket\_prometheus-1\scedasd.c

Today (version 9.0), the ellipses are placed as follows:
  • C:\Users\Fish\Documents\Visual Studio 2008\Projects\Hercules\_GIT\_Fish\_BitBucket\_prome...\scedasd.c
  • C:\Users\Fish\Documents\Visual Studio 2008\Projects\Hercules\_GIT\_Fish\_BitBucket\_prome...\scedasd.c

Which I hope you'll agree is not very helpful!


What I would personally prefer is to truncate (replace with an ellipsis) the longest substring the two paths have in common, or if they have nothing in common, the beginning of the path and not the end.


If such a rule were implemented then almost identical paths such as the ones I provided would instead appear as follows:
  • C:\Users\Fish\Documents\Visual Studio 2008\Projects\Hercules\_GIT\_Fish\_BitB...\_prometheus-0\scedasd.c
  • C:\Users\Fish\Documents\Visual Studio 2008\Projects\Hercules\_GIT\_Fish\_BitB...\_prometheus-1\scedasd.c

Which I hope you'll agree is much more helpful!


Thanks for a great product that just keeps getting better!
.
"Fish" (David B. Trout)
"Programming today is a race between
software engineers striving to build bigger
and better idiot-proof programs, and the
Universe trying to produce bigger and better
idiots. So far, the Universe is winning"
- Rich Cook

User avatar
psguru
Site Admin
Posts: 1706
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Ellipsis in file comparison filename dropdown

Post by psguru » Fri Jun 02, 2017 8:45 am

Unfortunately not possible (or, to be precise, very hard). ExamDiff Pro uses the DT_PATH_ELLIPSIS flag with the DrawText() Win32 API (see https://msdn.microsoft.com/en-us/librar ... s.85).aspx). So this behavior is provided by Windows and is consistent with other Windows programs.

On top of this, one could argue that sometimes the important part of the path is actually at the beginning, not closer to the end of it, so it's impossible to satisfy all scenarios unless both paths are compared themselves in order to determine which parts are to be made visible.
psguru
PrestoSoft

JeremyNicoll
Full Member
Posts: 30
Joined: Sun May 02, 2010 12:00 pm
Location: Edinburgh

Re: Ellipsis in file comparison filename dropdown

Post by JeremyNicoll » Tue Jun 27, 2017 1:22 am

Remember that the whole value is visible in a tooltip.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest