Bug 332842

Summary: Location bar context menu item to open in new tab
Product: [Frameworks and Libraries] frameworks-kio Reporter: Graham White <graham_alton>
Component: URL navigatorAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: wishlist CC: frank78ac, kdelibs-bugs, nate
Priority: NOR Keywords: junior-jobs, usability
Version: 5.47.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=280571
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Graham White 2014-03-31 09:46:43 UTC
When right-clicking on the non-editable version of the location bar it would be really useful to have an additional context menu entries to open a new tab at the location clicked or to open a new window at the location clicked.

Reproducible: Always

Steps to Reproduce:
n/a, feature request.
Actual Results:  
n/a, feature request.

Expected Results:  
n/a, feature request.

n/a, feature request.
Comment 1 Frank Reininghaus 2014-03-31 16:00:14 UTC
Thanks for the suggestion. Note that you can open a location from the breadcrumbs in the location bar by middle-clicking it.

Adding a "Open in new tab" action to the context menu of the breadcrumbs is far more tricky that it might look to a user. The class which provides the location bar, KUrlNavigator, is part of kdelibs and shared with the file dialog. So one cannot just add a hard-coded "Open in new tab" entry, because it would also show up in the file dialog, where it does not make any sense.

This means that the class would have to provide some API to let the application decide if it wants this action in the context menu or not. That's definitely possible, but it requires changes in various places. All that Dolphin would need to do is tell the class that it should show the entry using the new API. It listens to the tabRequested(KUrl) signal already (for the middle clicks).

I'll reassign to KUrlNavigator because that's where most of the changes required for such a feature would be needed.
Comment 2 Graham White 2014-04-01 08:31:41 UTC
I'd never thought to try middle-click before, that does exactly what I'm looking for.  Thanks!
Comment 3 Nate Graham 2019-11-29 22:49:08 UTC
This has since been implemented! :)