Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.55k stars 572 forks source link

Highlight match control? #311

Open pmcmorris opened 9 years ago

pmcmorris commented 9 years ago

Hello I'd like to change the matching code used when choosing what text is converted to a clickable link when pressing the highlight key. Currently this works great for file names that show up in build errors. But I'd like to extend the matching to recognize grep output:

λ grep -inr Test_AffinitizedYieldAndContinueSoak tests tests/source/legacy/testlist.inl:32:DECLARE_TEST(Test_AffinitizedYieldAndContinueSoak) tests/source/legacy/tests/test_yield_and_continue.cpp:587:int Test_AffinitizedYieldAndContinueSoak()

It would be nice if I could quickly turn these file paths into clickables as well. Additionally, it would be nice to add recognition for web addresses.

Is there a place were this can be customized?

Maximus5 commented 9 years ago

Web addresses are working. The code is in Match.cpp

Spown commented 8 years ago

I would use some type of configurable control over the match patterns as well. For example this one does work: while this one doesn't

I looked in the Match.cpp but unfortunately my cpp skills are too low... Also I don't understand why do you build your own matching functions instead of simply using RegExp? This 1k+ lines long file would became like 10 times smaller and much more readable.

Really guys, your Terminal is the only one so far that has any type of control over goto editor file:line:column feature. And I've tried like 10 different already. Unfortunatly one can only configure the editor, but not the patterns.

For example there is something like this that I would like to be able to match by adding a regexp to the config

I cant help you with coding, but I can probably help you with RegExps, if you like... Я могу и по-русски, есличо...

Maximus5 commented 8 years ago

When you talk about "10K lines would be much smaller", it sounds like a joke. Do you know how many lines the RegExp implementation takes? Even in binary form...

Anyway, I has plans to use this regexp implementation:

https://github.com/Maximus5/Onigmo

But of course it takes a lot of time...

Maximus5 commented 8 years ago

May be soon I'll start new branch where anyone may help with regexps. Probably two ones.

Remember, that ConEmu supports not only file:line:col and emails, but also any arbitrary protocols, http://, ftp://, file:/// are just a few examples.

AuthorProxy commented 7 years ago

UP. Sample path: C:\ProxyDocuments\...\pmrpc.js:684:5 For current path filepath:line is highlighted instead of filepath:line:column