Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options for opening files in common editors #3

Open
BronsonQuick opened this issue Dec 26, 2019 · 0 comments
Open

Add options for opening files in common editors #3

BronsonQuick opened this issue Dec 26, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@BronsonQuick
Copy link
Member

Whoops provides the ability to open files in some editors from the browser: https://github.com/filp/whoops/blob/d1f91d76dbcf379f2a4bd303080299e57135bea4/docs/Open%20Files%20In%20An%20Editor.md we should think about supporting this with something like:

use \Whoops\Handler\PrettyPageHandler;

$whoops = new \Whoops\Run;
$handler = new PrettyPageHandler;
$handler->setEditor('phpstorm');
$whoops->pushHandler($handler);
$whoops->register();

Ideally, we'd need to use the callback function in setEditor to change the links it would generate from: /vagrant/content/plugins/recipes/blocks/enqueue.php to /content/plugins/recipes/blocks/enqueue.php with a str_replace.

@BronsonQuick BronsonQuick added the enhancement New feature or request label Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant