Bug 457962

Summary: go-up in file browser not going one level up
Product: [Applications] amarok Reporter: empyreal <empyreal>
Component: File BrowserAssignee: Amarok Bugs <amarok-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: tuomas
Priority: NOR    
Version First Reported In: 2.9.71   
Target Milestone: kf5   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description empyreal 2022-08-16 15:07:09 UTC
//  Keyboard shortcut for going back one level
QAction *action = new QAction( QIcon::fromTheme( QStringLiteral("go-up") ), i18n( "Go Up in Media Sources Pane" ),
                                  m_mainWidget );
But this shortcut do not go one level up. It works like "home" in file browser jumping straight to categories.
Going one level down we have - Enter key but going one level up is missing.
Could this shortcut be made go level up 1 folder?
For example: /folder1/folder2/folder3
1. Backspace => /folder1/folder2/
2. Backspace => /folder1/
3. Backspace => categories list (Local Music, Internet etc)
I found that it may be realized like in Dolpin backAction->setEnabled(index < urlNavigator->historySize() - 1) but I don't know how to make it in Amarok because my qt knowledge is almost zero.
Comment 1 empyreal 2022-08-17 20:29:10 UTC
Keyboard shortcut for going back one level works properly in Playlists tree, but in FileBrowser - no way.
Categories => Enter -=> Playlists => Enter => Saved Playlists => Backspace => Backspace => Categories
Comment 2 Tuomas Nurmi 2024-10-20 17:57:38 UTC
I think this didn't work earlier, but does now. Got probably fixed by https://invent.kde.org/multimedia/amarok/-/commit/e1debfcaba306c8cb82365659cb2db645619d24a as the relevant button is now available in the shown toolbar.