I use the error log a lot. While debugging I open the error log in a second window so I can use Alt+backtick to reach it quickly (linux). It would be really nice if, in the error log, I could tap a key combo to do a Refresh or Clear instead of having to grab the mouse to click a button. It would speed up my work flow quite a bit and make me like MODX even more. Thanks.
As far as I can tell, there are no keyboard shortcuts defined for those buttons in the code.
To refresh, you could just use F5 to reload the whole page in the browser.
Thanks for the reply.
I have been using F5 sometimes but mostly I click clear as well, so I have to grab the mouse for that.
Do you think I should put it in as a feature request?
Sure, you could open an issue for that on Github.
But I don’t know if someone will implement the change.
You might take a look at this.
Thanks for the suggestion. I did try that extra, and it is nice. But I don’t think it does what I would like which is basically just a key binding for clearing the error log.
I’d have to think about a key binding, I’m not sure it could be done in a way that would survive MODX updates. But with that extra, it only takes two quick clicks to clear the log.
Another option would be a menu option adding a small button to the Manager’s main menu that would just delete the error log using unlink(path/to/error/log)
. I think that would survive updates, but I could be wrong.
It could also be done with a widget. That would definitely survive updates, but I think it would be slower and more annoying than the the extra, because you’d have to launch the dashboard, then click a button in the widget.