Bug 403303

Summary: Up/Down arrow should move in the general view instead of the filter bar
Product: [Applications] dolphin Reporter: andreas_k <andreas_k>
Component: bars: filterAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: aspotashev, mail, nate, rokupstys
Priority: NOR    
Version: 18.12.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=403379
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description andreas_k 2019-01-17 11:35:58 UTC
SUMMARY
Dolphins filter bar is awesome it's the fastest way to find an file in the folder. with Ctrl + I you immediately filter with the filter bar. than you have at least one or more files in the general view. When you are in the general view (general view is activated) you select an file with keyboard up and down arrow keys. 

It would be awesome if you can use the up and down arrow keys when the focus is in the filter bar to navigate through the filtered files. So no additional switch to the general view needed. With enter you open the selected file.
Comment 1 Nate Graham 2019-01-17 15:47:00 UTC
But the left and right keys would still move the insertion point inside the text field? I dunno, this feels like it would be really weird.

Maybe the real problem here is that tab ordering is non-ideal. When the filter bar is focused, maybe the next press on the tab key should focus the view.
Comment 2 Nate Graham 2019-01-18 21:35:24 UTC
I don't think this makes sense, sorry. Only the up and down arrow keys would be active in the view, and those keys aren't sufficient to actually navigate in icons view. Not sure it would work.
Comment 3 Julian Steinmann 2019-01-18 21:40:28 UTC
I agree, but 

> "Maybe the real problem here is that tab ordering is non-ideal. When the filter bar is focused, maybe the next press on the tab key should focus the view."

sounds good, so I'd convert this bug to that feature request.
Comment 4 Nate Graham 2019-01-18 21:42:44 UTC
Let's open a new bug for that, it will be less confusing: 403379
Comment 5 andreas_k 2019-01-22 09:48:06 UTC
On the other hand, is it possible to have the same behaviour than at krunner, when there is only one item in the filter list and you click ENTER the file, folder will be open? 

So if you have only one item the item is auto selected.
Comment 6 Nate Graham 2019-01-22 14:47:53 UTC
(In reply to andreas_k from comment #5)
> On the other hand, is it possible to have the same behaviour than at
> krunner, when there is only one item in the filter list and you click ENTER
> the file, folder will be open? 
> 
> So if you have only one item the item is auto selected.

I see what you mean, but that would entail dynamically changing the view, which doesn't seem desirable. Dolphin's filter bar isn't some kind of special search; it's filtering the contents of the current view. Changing that view to implement this feature doesn't seem desirable.

There's an easy workaround too: just hit the return/enter key, which will instantly focus the view. If the currently selected item is that one you want, it's as simple as hitting enter/return twice.
Comment 7 Nate Graham 2019-05-12 23:30:45 UTC
Apparently I changed my mind. :)
Comment 8 Nate Graham 2019-05-12 23:31:35 UTC
Basically what should probably happen here is that the up/down arrow keys should perform normal navigation if the main view is in list mode, and if it's in icon mode, the up/down arrow keys should go left/right instead.
Comment 9 Nate Graham 2019-05-12 23:31:43 UTC
*** Bug 407229 has been marked as a duplicate of this bug. ***
Comment 10 Rokas Kupstys 2019-05-13 08:40:33 UTC
It wasnt obvious to me that we can focus file list with enter press. Now that i know it - i personally no longer find it to be an issue that up/down do not work. Maybe another solution to this could be some kind of indicator to signal the user that enter key would change focus? A tooltip maybe?
Comment 11 Nate Graham 2019-06-14 04:53:21 UTC
I've also made it such that the tab key immediately focuses the main view too. Hopefully that's enough! :)