<table><tr><td style="">emateli added a comment.
</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/D8920" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p><a href="https://phabricator.kde.org/p/dfaure/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;" rel="noreferrer">@dfaure</a> I've managed to take another look at this, added a <tt style="background: #ebebeb; font-size: 13px;">directory</tt> property which controls the base dir. Works as it should, however there is one case where I'm not sure which way we want it and is probably just a matter of preference.</p>
<p>User types <tt style="background: #ebebeb; font-size: 13px;">~/some-dir</tt> which does not exist. The <tt style="background: #ebebeb; font-size: 13px;">kshorturifilter</tt> plugin will expand that to <tt style="background: #ebebeb; font-size: 13px;">/home/.../some-dir</tt>, check that it doesn't exist, and then decide to not return the expanded value, but rather the original value.<br />
The result of this is that the <tt style="background: #ebebeb; font-size: 13px;">KUrlNavigator</tt> will attempt to browse <tt style="background: #ebebeb; font-size: 13px;">/home/.../~/some-dir</tt> instead of <tt style="background: #ebebeb; font-size: 13px;">/home/.../some-dir</tt> which perhaps might be slightly confusing, this works as it should if the directory does exist though.<br />
On the upside directories named <tt style="background: #ebebeb; font-size: 13px;">~</tt> are browsable. Thoughts? Do we try to "fix" this or is the current behaviour okay.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8920" rel="noreferrer">https://phabricator.kde.org/D8920</a></div></div><br /><div><strong>To: </strong>emateli, Frameworks, dfaure<br /><strong>Cc: </strong>Frameworks<br /></div>