[OT] Is this a feature is any Linux terminal?

Nick Sabalausky (Abscissa) SeeWebsiteToContactMe at semitwist.com
Mon Oct 15 06:00:57 UTC 2018


On 10/14/18 10:31 PM, Gerald wrote:
> 
> Tilix supports this. You can define a custom regex and then use the 
> values extracted by the regex to launch an editor to load the file at 
> the right line number.
> 
> https://gnunn1.github.io/tilix-web/manual/customlinks/
> 
> The screenshot shows a configuration that does this for gedit.

Awesome! With all the terminal emulators out there, I figured I couldn't 
be the only one to think of this.

I'll admit, I have a very strong personal distaste for UIs that use the 
GNOME interface guidelines. But, this is such a useful feature, I think 
I'll be using it anyway when I'm coding. And heck, maybe someday I'll 
just whip up a term of my own :)

I've been using KDevelop as my editor lately, and it doesn't support 
this *quite* as nicely as I would like. But this configuration does seem 
to be working for me:

Regex: (.*)\(([0-9]+)\):.*
Cmd:   kdevelop -s SESSION_NAME_HERE $1:$2

Unfortunately, Tilix doesn't appear to support using envvars from the 
current terminal in the custom command above (if that would even be 
possible), so I'll have to manually change SESSION_NAME_HERE to my 
KDevelop session name once per session. (Or always use "curr" or 
something for whatever session I'm currently working in.)

Still though, this will be really nice to have working. Thanks.


More information about the Digitalmars-d mailing list