https://github.com/filp/whoops/blob/master/docs/Open%20Files%20In%20An%20Editor.md
use Whoops\Handler\PrettyPageHandler;
$handler = new PrettyPageHandler;
$handler->setEditor('sublime');
as kirby option like this, backwards compatible with a check against being === false
to support array as value for whoops and not just current boolean value.
https://getkirby.com/docs/reference/system/options/whoops
return [
'whoops' => [
'enabled' => true,
'editor' => 'vscode',
],
];
This option is already there, just undocumented: 'editor' => 'sublime'
. See AppErrors.php#L95
thanks
for future reference its not inside the whoops namespace but like this…
return [
'whoops' => true, // which is the default
'editor' => 'vscode',
];