Closed moia-sven-ole closed 4 years ago
Hey I really like the project! Great work! From my point, configuring the shortcuts were missing - so here we go.
I have added the possibility to override the shortcuts in the main.js by setting them in .leptonrc file. This would also work for partial overrides.
e.g. in your < homeDir >/.leptonrc
partial
{ "theme": "dark", ... "shortcuts": { "keyNewGist": "CMD+C", "keyDashboard": "CommandOrControl+D", "keyEditorExit": "CommandOrControl+Escape", "keySyncGists": "CommandOrControl+R" } }
full
{ "theme": "dark", ... "shortcuts": { "keyShortcutForSearch": "CMD+F", "keyNewGist": "CommandOrControl+N", "keyEditGist": "CommandOrControl+E", "keySubmitGist": "CommandOrControl+S", "keyImmersiveMode": "CommandOrControl+I", "keyAboutPage": "CommandOrControl+,", "keyDashboard": "CommandOrControl+D", "keyEditorExit": "CommandOrControl+Escape", "keySyncGists": "CommandOrControl+R" } }
Awesome PR - love me some configuration options! :) @hackjutsu can we help to make this happen?
Yes, let's merge it. Thanks!
Loving this addition! Thanks @moia-sven-ole
Hey I really like the project! Great work! From my point, configuring the shortcuts were missing - so here we go.
I have added the possibility to override the shortcuts in the main.js by setting them in .leptonrc file. This would also work for partial overrides.
e.g. in your < homeDir >/.leptonrc
partial
full