This forum has been archived. All content is frozen. Please use KDE Discuss instead.

making words 'clickable' in Konsole?

Tags: konsole konsole konsole
(comma "," separated)
User avatar
unhammer
Registered Member
Posts
53
Karma
0
OS

making words 'clickable' in Konsole?

Wed Mar 30, 2011 12:33 pm
I'm working with a program that outputs trace info with line numbers, and I'd like to be able to mouse-click on part of that trace info and then "myscript [string-that-was-clicked", e.g. if the output contained a line with

Code: Select all
;       "foo" bar fie SELECT:31


I'd like to be able to click (right-click, double-click, whatever) the 'SELECT:31', and automatically have Konsole run
Code: Select all
~/myscript.sh "SELECT:31"
(where the script just opens the line in my editor). Is something like this possible, or would I be better off trying to make an emacs interpreter mode...?
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS
There would need to be some way for konsole to parse the output, look for some sort of string or regular expression match, then somehow know what to do with it. I don't think any of these is currently possible.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
unhammer
Registered Member
Posts
53
Karma
0
OS
OK; I thought it might be possible to hook into the same mechanism that recognises URL's, but guess that's rather deep-level then…


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell