Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support command (meta) #5

Open
xenoterracide opened this issue Feb 13, 2024 · 2 comments
Open

support command (meta) #5

xenoterracide opened this issue Feb 13, 2024 · 2 comments

Comments

@xenoterracide
Copy link

It'd be nice if this supported MacOS and comparable ctrl mappings. So META+C and CTRL+C both copy.

My rationale, I use linux and mac for dev. I also recently tried windows. I wouldn't necessarily want to use the same shortcut on all systems, but this especially makes it easy to make my own overrides on systems, instead of having a personal Ctrl variant and a separate actual MacOS variant.

@xenoterracide xenoterracide changed the title support command support command (meta) Feb 13, 2024
@samvtran
Copy link
Owner

Hello! Sorry for not getting back to you sooner. I've been thinking about this off and on for a few weeks.

This is definitely an interesting use case. I don't know if there's a good way to enable the normal Mac OS X 10.5+ shortcuts on macOS only with just the XML configs without creating a separate keymap variant altogether. I'll have to dig into the IntelliJ platform code a bit to see what's currently possible with the keymap API.

The ErgoKeys plugin does some sophisticated context-sensitive keymap management, so there are a lot of APIs to play with, but I suspect it could be complicated/interesting/worthwhile/fun enough to spin out into a more generic plugin for nuanced cross-platform shortcut management; e.g., setting the Run command to ctrl alt R on Win/Linux and meta alt shift R on macOS for specific/any keymaps.

@xenoterracide
Copy link
Author

It doesn't have to start based on the macOS or vice versa since it is just mapped to meta and whatever. The trickier thing is the sheer quantity of duplication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants