<table><tr><td style="">gregormi retitled this revision from "POC: Show partial path in Tabswitcher Ctrl+Tab list to distinguish equally named files" to "Show partial path in Tabswitcher Ctrl+Tab list to distinguish equally named files".<br />gregormi edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-hfxf2fwgqb3ydgb/">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16054">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Often</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Currently, when there are equally named files open</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">I have equally named files open,</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">e.g.</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">mostly </span>some README.md files<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">,</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">W</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">then w</span>ith Ctrl+Tab i<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">s currently</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">t is</span> not possible to find the correct one instantly.<div style="padding: 8px 0;">...</div>This <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">POC</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">chnage</span> extends the Ctrl+Tab list with a new column to the left of the filename<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">. It contains the partial paths to the file in grey color</span>. <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Not the whol</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">It contains th</span>e pa<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">ths are shown the</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">rtial paths (the</span> common prefix of the strings are stripped away to avoid <span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">to </span>show<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">ing</span> redundant informati<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">on</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">on) to the file in grey color</span>.<div style="padding: 8px 0;">...</div>ISSUES:<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- T</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">- Auto-sizing of t</span>he co<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">de is a</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">lumns does not work yet (see the</span> first <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">POC for review if the left column,</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">file which is located in "asynckit" but only "asyn" is displayed.</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">the grey color and the right-alignment is ok.<br />
- Or is it better to only show the first parent folder (and more if it is still not unique;</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Strange.</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">but this would be another algorithm)?<br />
- It is not optimized and cleaned yet</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">I havn't figured out how to handle this properly</span>.<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- One obvious thing that does not work yet is the auto-sizing of the columns (see the first file which is located in "asynckit" but only "asyn" is displayed. Strange. I havn't figured out how to handle this properly.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R40 Kate</div></div></div><br /><div><strong>BRANCH</strong><div><div>my_tabswitch</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16054">https://phabricator.kde.org/D16054</a></div></div><br /><div><strong>To: </strong>gregormi, Kate, VDG, cullmann<br /><strong>Cc: </strong>cullmann, abetts, thsurrel, dhaumann, ngraham, kwrite-devel, michaelh, demsking, sars<br /></div>