MiniProfiler / rack-mini-profiler

Profiler for your development and production Ruby rack apps.
MIT License
3.69k stars 401 forks source link

Changing the hot key to show/hide mini profiler? #523

Closed kendallb closed 2 years ago

kendallb commented 2 years ago

I did not see this (perhaps I missed it), but is there a way to change what hot key is used to show/hide the mini profiler screen? By default that is Alt-P, but because I float between a Mac and Windows, for years I have used a common set of hot keys on both so Alt-P maps to Ctrl-P for me for printing stuff in the browser. So I would like to somehow remap it to another key I am not using.

OsamaSayegh commented 2 years ago

Yes, it's possible to change the keyboard shortcut, see the toggle_shortcut config in the README.

kendallb commented 2 years ago

Cool thanks. I don't see that in the readme though? Where is it documented so I can figure out how to change it?

OsamaSayegh commented 2 years ago

It's documented in the README under the "Configuration Options" section: https://github.com/MiniProfiler/rack-mini-profiler#configuration-options.

image

kendallb commented 2 years ago

Dang it! I posted this in the wrong one. I am using the DotNet version :). Gonna close this and repost there. I wonder if it's the same?