Skip to content

Conversation

carlos-granados
Copy link
Contributor

In the same way that PHPStan or Rector do, allow setting an editorURL template that will be used to add links to paths when printing them on the terminal.

The editorURL can be any URL that any IDE recognises to open that specific file, One example is PhpStorm which accepts URLs like this one:

phpstorm://open?file={path}&line={line}

The template can use three different placeholders:

{absPath} : absolute path of the file
{relPath}: relative path of the file
{line}: line number in the file

Fixes #1596

Once this is merged I will add the corresponding documentation in Behat docs

@carlos-granados
Copy link
Contributor Author

Argh, bloody Windows dir separators, let me try to fix the tests

@carlos-granados carlos-granados force-pushed the editor-url branch 3 times, most recently from 29d363f to efc9d33 Compare May 12, 2025 17:26
@carlos-granados
Copy link
Contributor Author

Fixed 🎉

Copy link
Contributor

@acoulton acoulton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlos-granados this looks great and will be super helpful - just a couple of small observations

@carlos-granados carlos-granados requested a review from acoulton May 16, 2025 06:27
Copy link
Contributor

@acoulton acoulton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you :)

@carlos-granados carlos-granados merged commit 7081881 into Behat:master May 16, 2025
18 checks passed
@carlos-granados carlos-granados deleted the editor-url branch May 16, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add clickable links to CLI output
2 participants