anthraxx / intellij-awesome-console

IntelliJ IDEA plugin: awesome console finally makes links in your console at least 200% more awesome!
MIT License
159 stars 40 forks source link

Highlight only on hover option #40

Open konstpeppas opened 6 years ago

konstpeppas commented 6 years ago

Feature: I would like an option in which the links only highlight on hover with ctrl pressed like ubuntu terminal or vscode.

konstpeppas commented 5 years ago

It is also a bit frustrating when you try to copy part of some highlighted path because the left click opens the file and it doesn't open the menu.

anthraxx commented 5 years ago

would appreciate a pull request to iterate over

vitalybe commented 5 years ago

Do you have any idea how to start?

                            startPoint + match.start,
                            startPoint + match.end,
                            new OpenUrlHyperlinkInfo(match.match))

This seems to be what's causing file links to become "links". However, it happens when text is added to the console.

What we need to do instead is:

1) If CTRL is not pressed, don't do anything 2) On CTRL, take X last lines of the console, and replace them with the files linked. 3) On CTRL released, restore the last X lines.

I couldn't find anything related in the SDK, so far. Would be great if you had some ideas.