D8920: Fixes url navigation with relative links on KUrlNavigator

2017-12-18 Thread Emirald Mateli
emateli abandoned this revision. emateli added a comment. Resolved in https://phabricator.kde.org/D9217 REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8920 To: emateli, #frameworks, dfaure Cc: #frameworks

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-12-05 Thread David Faure
dfaure added inline comments. INLINE COMMENTS > kurlnavigator.cpp:1009 > +// Always expand starting ~/ to $HOME. We want all inputs starting with > it to point home directory. > +// The reason this expansion is performed here, is that kshorturifilter > will not return the desired result

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-12-05 Thread Emirald Mateli
emateli updated this revision to Diff 23532. emateli added a comment. - ~/ at the start always resolves to $HOME REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D8920?vs=22702&id=23532 BRANCH relative-files-v2 REVISION DETAIL https://phabricator.kde.org/D89

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-12-01 Thread David Faure
dfaure added a comment. Sounds to me like ~/foo should always mean $HOME/foo even if that doesn't exist. INLINE COMMENTS > kurlnavigatortest.cpp:207 > + > +QTest::newRow("relativeFile") << QStringLiteral(".some_dotfile") << > QUrl::fromUserInput(".some_dotfile", QLatin1String(""), > QU

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-12-01 Thread Emirald Mateli
emateli added a comment. Ping. Thoughts on the last comment? REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8920 To: emateli, #frameworks, dfaure Cc: #frameworks

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-11-26 Thread Emirald Mateli
emateli added a comment. @dfaure I've managed to take another look at this, added a `directory` 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. User types `~/some-dir

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-11-21 Thread David Faure
dfaure added a comment. Relative completions in KUrlCompletion defaults to $HOME but that can be configured with KUrlCompletion::setDir. Maybe KUrlNavigator should get a setter too, so that apps can set a base directory that makes sense to them? They have more context for setting a correc

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-11-21 Thread Emirald Mateli
emateli updated this revision to Diff 22702. emateli added a comment. - remove QDir::homePath + minor code style REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D8920?vs=22671&id=22702 BRANCH relative-files REVISION DETAIL https://phabricator.kde.org/D8920

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-11-21 Thread David Faure
dfaure requested changes to this revision. dfaure added a comment. This revision now requires changes to proceed. I like the use of the 3-args QUrl::fromUserInput, I added it to Qt for such purposes. I don't like the hardcoded QDir::homePath(), this has to be done better... In KUrlNavigato

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-11-21 Thread Elvis Angelaccio
elvisangelaccio added a reviewer: dfaure. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8920 To: emateli, #frameworks, dfaure Cc: #frameworks

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-11-20 Thread Emirald Mateli
emateli added a reviewer: Frameworks. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8920 To: emateli, #frameworks Cc: #frameworks

D8920: Fixes url navigation with relative links on KUrlNavigator

2017-11-20 Thread Emirald Mateli
emateli created this revision. Restricted Application added a project: Frameworks. Restricted Application added a subscriber: Frameworks. REVISION SUMMARY This patch aims to address an issue with KUrlNavigator using relative paths. Upon attempting to navigate using relative paths, due to the wa