hackjutsu / Lepton

💻 Democratizing Snippet Management (macOS/Win/Linux)
https://hackjutsu.com/Lepton
MIT License
10.16k stars 471 forks source link

Can I customize my favorite keyboard shortcuts? #356

Closed godhelpjun closed 4 years ago

godhelpjun commented 5 years ago

The more we know about your system and use case, the more easily and likely we can help.

Environment info

Description of the problem / feature request / question:

ctrl + esc opens windows "start" menu, does not work as expecting closing editor

If possible, provide a sample gist or screenshot:

If possible, provide the log files

rijnhard commented 5 years ago

I too would like to customise my hotkeys. Primarily to make it match up with what I have setup on IntelliJ and Atom

jessycormier commented 5 years ago

+1 having the ability to match other IDE tools (vs code?) CTRL+SHIFT+P for a command pallet is my go to in apps without thinking now so having the ability to bring search or something up that's meaningful would be fantastic 👍

hackjutsu commented 5 years ago

I don't have a plan for it in the near future, but feel free to play with the code and send PRs if you have good solutions. A straightforward way is the add these customization in .leptonrc config.

Shortcuts logic in Lepton https://github.com/hackjutsu/Lepton/blob/master/main.js#L40-L48

.leptonrc logic in Lepton https://github.com/hackjutsu/Lepton/blob/master/main.js#L238-L250