Bug 94075

Summary: PATCH: Opening files/urls/google search strings with the RMB pop-up menu
Product: [Applications] konsole Reporter: Kurt Hindenburg <khindenburg>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: wishlist CC: robert, yg
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Adds Open selection to RMB
Adds Open selection to RMB

Description Kurt Hindenburg 2004-11-28 20:02:52 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:                Linux

From email to konsole-devel ml by Robert Hogan <robert@roberthogan.net>

Hi there,

I've often found it inconvenient to move from a shell session within konsole 
to another kde-based activity with the same content. For example, opening a 
url from a README, opening a file in kate, even googling on the contents of a 
compiler error.

The attached patch goes some way to removing this inconvenience (for me at 
least).  It allows you to open a file/google for a string/open a url from the 
pop-up menu under the right mouse button. The screenshots at the url below 
give you some idea of how it works.

http://roberthogan.net/konsole/

(Unfortunately, the patch is against 3.3.1 because I can't get the latest cvs 
to compile today for some reason.) Please feel free to commit,discard, 
improve, replace or whatever.

Thanks,
Robert
Comment 1 Kurt Hindenburg 2004-11-28 20:06:07 UTC
Created attachment 8468 [details]
Adds Open selection to RMB

This is Robert's patch converted to CVS/HEAD.  Works O.K. for me for the brief
testing I did.
Comment 2 Kurt Hindenburg 2004-12-12 18:55:29 UTC
Created attachment 8635 [details]
Adds Open selection to RMB

1. Change name to slotOpenSelection
2. Make sure m_filterData is deleted

Note: To have the search item appear, you have to set 'Default search engine'
in kcontrol/Internet & Network/Web Browser/Web Shortcuts.  It appears that
nothing is selected by default.
Comment 3 Andreas Kling 2006-08-07 13:13:13 UTC
*** Bug 130548 has been marked as a duplicate of this bug. ***
Comment 4 Constantin Berzan 2007-09-13 17:17:20 UTC
Konsole in KDE4 has the ability to open many URL types. Now it can also open the file browser at the current location. I think implementing Google searches would be impractical, as eventually people will ask for more search engines, and that would be far out of scope for Konsole.
The only thing left would be to do something about paths printed without the "file://" prefix and URLs without 'http://' or 'www.' But I can't imagine anything that would work for that without misinterpreting all text containing slashes.
Comment 5 Robert Knight 2007-12-16 00:26:17 UTC
Marking as fixed for the reasons Constantin gave above.