Standard secondary up/down listview keys
Open, Needs TriagePublic

Description

We've had a bunch of review requests adding vim bindings or emacs bindings in various listviews.

Adding both doesn't work, adding one or the other (user configurable) makes sense, but ideally it should only be done once in a common pattern not copy-pasting the same code.

KDE has a concept of standard keys.

systemsettings -> shortcuts ->standard shortcuts

This includes "Next Item in List" "Prev Item in List" which by default only have one shortcut down/up cursors respectively.

Ideally I would like to see a ListView implementation (or decorator for a listview) that takes keyboard events and matches it against our standard shortcuts, performing the right listview action.

Once that exists we can just add it to all listviews.

ognarb added a subscriber: ognarb.May 27 2020, 6:44 AM
alex added a subscriber: alex.May 27 2020, 7:30 AM

Just for context, this originated from https://invent.kde.org/plasma/milou/-/merge_requests/5.

And a question: In the MR above we discussed the bindings for KRunner, there might be other functionalities we want to implement. Like focusing actions, clearing the search field and so on.
So is this task about making the "Next Item in List" and "Prev Item in List" shortcuts for ListViews available in the plasma libs or making the Shortcuts configurable inside of KRunner?