Updated config options for new URL navigator bar
ClosedPublic

Authored by abika on Jun 23 2016, 6:57 PM.

Details

Summary

New config options for url navigator bar

Diff Detail

Repository
R167 Krusader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
abika updated this revision to Diff 4692.Jun 23 2016, 6:57 PM
abika retitled this revision from to Updated config options for new URL navigator bar.
abika updated this object.
abika edited the test plan for this revision. (Show Details)
abika added a reviewer: Krusader.
martinkostolny accepted this revision.Jun 23 2016, 9:46 PM
martinkostolny added a reviewer: martinkostolny.
martinkostolny added a subscriber: martinkostolny.

New options are working. Thanks a lot, Alex!

PS: I've just discovered that if I uncheck Flat Origin Bar, Krusader crashes and can never be started again. So it is definitely good that this option was now removed. :)

This revision is now accepted and ready to land.Jun 23 2016, 9:46 PM
asensi accepted this revision.Jun 24 2016, 6:32 AM
asensi added a reviewer: asensi.
asensi added a subscriber: asensi.

Thanks, Alex!

abika updated this revision to Diff 4709.Jun 24 2016, 6:19 PM
abika edited edge metadata.
  • Fixing behaviour of url navigator (1) after focus loss and (2) after url was changed
martinkostolny added a comment.EditedJun 27 2016, 4:23 PM

It is definitely better now, thanks!

Though I would still suggest to add a support for Esc key to cancel any changes (and return to browse mode if Edit Mode by Default is unchecked).

Also I've encountered a crash:

  1. Lock a tab
  2. Edit path in URL navigator and press enter

Interestingly when clicking apply button, it works fine. Can you also replicate this behaviour?

Not so related, but interesting one more thing I've encountered when testing: If I insert url with hash, e.g. "/home/user/#hashfolder/hello", it fails to enter the folder. But it seems to be a bug in KUrlNavigator itself because Dolphin has this problem, too, it only acts a bit differently -> enters the nearest folder ("/home/user"). I'll try to investigate this one more and propose a patch to KIO or at least file a bug.

In the end I ended up fixing the hash problem on Krusader side (D2022) but I appreciate any other opinions on this matter. Thanks!

abika updated this revision to Diff 4809.Jun 28 2016, 4:55 PM
  • Fixing behaviour of url navigator (1) after focus loss and (2) after url was changed
  • Fixed failed assert if focus is requested after new tab creation
abika added a comment.Jun 28 2016, 5:03 PM

ok, first the crash: It was not related to the URL navigator, it also happened with the URL requester. But fixed now anyway.

abika updated this revision to Diff 4811.Jun 28 2016, 5:15 PM
  • Proper handling of escape key event in url navigator
abika added a comment.Jun 28 2016, 5:23 PM

about the escape key: This one was tricky. There is a default shortcut set with the escape key for getting the panel focus . Cause there was no way to the navigator getting the key event I reset the shortcut to "control+escape". (It was the same for the old url requester but again nobody noticed it). It should work now, tested with "navigator mode" and "edit mode".

And thanks for testing!

Closed by commit R167:ee6a07f2c686: Updated config options for new URL navigator bar (authored by Alexander Bikadorov <bikaejkb@mailbox.tu-berlin.de>). · Explain WhyJun 28 2016, 5:25 PM
This revision was automatically updated to reflect the committed changes.
In D1984#37415, @abika wrote:

about the escape key: This one was tricky. There is a default shortcut set with the escape key for getting the panel focus . Cause there was no way to the navigator getting the key event I reset the shortcut to "control+escape". (It was the same for the old url requester but again nobody noticed it). It should work now, tested with "navigator mode" and "edit mode".

And thanks for testing!

Hm-m-m... Ctrl-Esc is the default global KDE shortcut for "System Activity" (analog of Ctrl-Alt-Del in Windows). How is it supposed to work in KDE?

Thanks in advance for your answer.

abika added a comment.Jun 29 2016, 8:24 PM

Hm-m-m... Ctrl-Esc is the default global KDE shortcut for "System Activity" (analog of Ctrl-Alt-Del in Windows). How is it supposed to work in KDE?

Oho. Ok, this solution was certainly crap. I just found out about ShortcutOverride events and will work on a better solution asap.

Thank you all!

Like Toni said, thanks a lot!

abika added a comment.Jul 2 2016, 2:17 PM

Thank you all for checking!