JakeSays / QtCreatorTerminalPlugin

Provides an embedded terminal/shell for Qt Creator
Other
20 stars 7 forks source link

Open files with Ctrl-click? #7

Open mquinson opened 1 year ago

mquinson commented 1 year ago

Hello,

does this plugin allow to open a file in Qt creator by ctrl-clicking on it? If not, then this issue is here to ask this killer feature, please. If yes, then the issue is to ask to document the feature in the README.

I'm asking because rebuilding it does not seem trivial since I use a packaged / prebuilt version of Qt Creator, and I don't feel like paying the pain to then discover that it won't serve my usual workflow as I'd like.

In any case, thanks for this great plugin, Mt.

JakeSays commented 1 year ago

@mquinson that is supported if the absolute file location can be resolved, so absolute paths should work. Relative paths are resolved based on the loaded project root. Also I attempt to look for some_file.foo:line:col paths and will open them at the line/column location.

There may be bugs in the path detection code though. It's based on the filters used by konsole and they are not the best. I do want to improve things at some point.

I will update the readme:)