├── .github └── workflows │ ├── build.yml │ └── release.yml ├── .gitignore ├── CHANGELOG.md ├── Keymap-macOS For All.pdf ├── LICENSE ├── NOTICE.txt ├── README.md ├── build.gradle.kts ├── gradle.properties ├── gradle ├── libs.versions.toml └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── settings.gradle.kts └── src └── main └── resources ├── META-INF ├── plugin.xml ├── pluginIcon.svg └── pluginIcon_dark.svg └── keymaps └── macOS For All.xml /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build 2 | on: 3 | # Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests) 4 | push: 5 | branches: [ master ] 6 | # Trigger the workflow on any pull request 7 | pull_request: 8 | 9 | concurrency: 10 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} 11 | cancel-in-progress: true 12 | 13 | jobs: 14 | 15 | # Prepare environment and build the plugin 16 | build: 17 | name: Build 18 | runs-on: ubuntu-latest 19 | outputs: 20 | version: ${{ steps.properties.outputs.version }} 21 | changelog: ${{ steps.properties.outputs.changelog }} 22 | pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }} 23 | steps: 24 | 25 | # Check out the current repository 26 | - name: Fetch Sources 27 | uses: actions/checkout@v4 28 | 29 | # Validate wrapper 30 | - name: Gradle Wrapper Validation 31 | uses: gradle/actions/wrapper-validation@v3 32 | 33 | # Set up Java environment for the next steps 34 | - name: Setup Java 35 | uses: actions/setup-java@v4 36 | with: 37 | distribution: zulu 38 | java-version: 17 39 | 40 | # Setup Gradle 41 | - name: Setup Gradle 42 | uses: gradle/actions/setup-gradle@v4 43 | 44 | # Set environment variables 45 | - name: Export Properties 46 | id: properties 47 | shell: bash 48 | run: | 49 | PROPERTIES="$(./gradlew properties --console=plain -q)" 50 | VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" 51 | CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)" 52 | 53 | echo "version=$VERSION" >> $GITHUB_OUTPUT 54 | echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT 55 | 56 | echo "changelog<> $GITHUB_OUTPUT 57 | echo "$CHANGELOG" >> $GITHUB_OUTPUT 58 | echo "EOF" >> $GITHUB_OUTPUT 59 | 60 | # Build plugin 61 | - name: Build plugin 62 | run: ./gradlew buildPlugin 63 | 64 | # Prepare plugin archive content for creating artifact 65 | - name: Prepare Plugin Artifact 66 | id: artifact 67 | shell: bash 68 | run: | 69 | cd ${{ github.workspace }}/build/distributions 70 | FILENAME=`ls *.zip` 71 | unzip "$FILENAME" -d content 72 | 73 | echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT 74 | 75 | # Store already-built plugin as an artifact for downloading 76 | - name: Upload artifact 77 | uses: actions/upload-artifact@v4 78 | with: 79 | name: ${{ steps.artifact.outputs.filename }} 80 | path: ./build/distributions/content/*/* 81 | 82 | # Run plugin structure verification along with IntelliJ Plugin Verifier 83 | verify: 84 | name: Verify plugin 85 | # This is pretty slow and doesn't really need to run for PRs 86 | if: github.event_name != 'pull_request' 87 | needs: [ build ] 88 | runs-on: ubuntu-latest 89 | steps: 90 | 91 | # Free GitHub Actions Environment Disk Space 92 | - name: Maximize Build Space 93 | uses: jlumbroso/free-disk-space@main 94 | with: 95 | tool-cache: false 96 | large-packages: false 97 | 98 | # Check out the current repository 99 | - name: Fetch Sources 100 | uses: actions/checkout@v4 101 | 102 | # Set up Java environment for the next steps 103 | - name: Setup Java 104 | uses: actions/setup-java@v4 105 | with: 106 | distribution: zulu 107 | java-version: 17 108 | 109 | # Setup Gradle 110 | - name: Setup Gradle 111 | uses: gradle/actions/setup-gradle@v4 112 | 113 | # Cache Plugin Verifier IDEs 114 | - name: Setup Plugin Verifier IDEs Cache 115 | uses: actions/cache@v4 116 | with: 117 | path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides 118 | key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }} 119 | 120 | # Run Verify Plugin task and IntelliJ Plugin Verifier tool 121 | - name: Run Plugin Verification tasks 122 | run: ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }} 123 | 124 | # Collect Plugin Verifier Result 125 | - name: Collect Plugin Verifier Result 126 | if: ${{ always() }} 127 | uses: actions/upload-artifact@v4 128 | with: 129 | name: pluginVerifier-result 130 | path: ${{ github.workspace }}/build/reports/pluginVerifier 131 | 132 | # Prepare a draft release for GitHub Releases page for the manual verification 133 | # If accepted and published, release workflow would be triggered 134 | releaseDraft: 135 | name: Release draft 136 | if: github.event_name != 'pull_request' 137 | needs: [ build, verify ] 138 | runs-on: ubuntu-latest 139 | permissions: 140 | contents: write 141 | steps: 142 | 143 | # Check out the current repository 144 | - name: Fetch Sources 145 | uses: actions/checkout@v4 146 | 147 | # Remove old release drafts by using the curl request for the available releases with a draft flag 148 | - name: Remove Old Release Drafts 149 | env: 150 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 151 | run: | 152 | gh api repos/{owner}/{repo}/releases \ 153 | --jq '.[] | select(.draft == true) | .id' \ 154 | | xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{} 155 | 156 | # Create a new release draft which is not publicly visible and requires manual acceptance 157 | - name: Create Release Draft 158 | env: 159 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 160 | run: | 161 | gh release create "v${{ needs.build.outputs.version }}" \ 162 | --draft \ 163 | --title "v${{ needs.build.outputs.version }}" \ 164 | --notes "$(cat << 'EOM' 165 | ${{ needs.build.outputs.changelog }} 166 | EOM 167 | )" 168 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | # GitHub Actions Workflow created for handling the release process based on the draft release prepared with the Build workflow. 2 | # Running the publishPlugin task requires all following secrets to be provided: PUBLISH_TOKEN, PRIVATE_KEY, PRIVATE_KEY_PASSWORD, CERTIFICATE_CHAIN. 3 | # See https://plugins.jetbrains.com/docs/intellij/plugin-signing.html for more information. 4 | 5 | name: Release 6 | on: 7 | release: 8 | types: [prereleased, released] 9 | 10 | jobs: 11 | 12 | # Prepare and publish the plugin to JetBrains Marketplace repository 13 | release: 14 | name: Publish Plugin 15 | runs-on: ubuntu-latest 16 | permissions: 17 | contents: write 18 | pull-requests: write 19 | steps: 20 | 21 | # Check out the current repository 22 | - name: Fetch Sources 23 | uses: actions/checkout@v4 24 | with: 25 | ref: ${{ github.event.release.tag_name }} 26 | 27 | # Set up Java environment for the next steps 28 | - name: Setup Java 29 | uses: actions/setup-java@v4 30 | with: 31 | distribution: zulu 32 | java-version: 17 33 | 34 | # Setup Gradle 35 | - name: Setup Gradle 36 | uses: gradle/actions/setup-gradle@v4 37 | 38 | # Set environment variables 39 | - name: Export Properties 40 | id: properties 41 | shell: bash 42 | run: | 43 | CHANGELOG="$(cat << 'EOM' | sed -e 's/^[[:space:]]*$//g' -e '/./,$!d' 44 | ${{ github.event.release.body }} 45 | EOM 46 | )" 47 | 48 | echo "changelog<> $GITHUB_OUTPUT 49 | echo "$CHANGELOG" >> $GITHUB_OUTPUT 50 | echo "EOF" >> $GITHUB_OUTPUT 51 | 52 | # Update the Unreleased section with the current release note 53 | - name: Patch Changelog 54 | if: ${{ steps.properties.outputs.changelog != '' }} 55 | env: 56 | CHANGELOG: ${{ steps.properties.outputs.changelog }} 57 | run: | 58 | ./gradlew patchChangelog --release-note="$CHANGELOG" 59 | 60 | # Publish the plugin to JetBrains Marketplace 61 | - name: Publish Plugin 62 | env: 63 | PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} 64 | CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }} 65 | PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} 66 | PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }} 67 | run: ./gradlew publishPlugin 68 | 69 | # Upload artifact as a release asset 70 | - name: Upload Release Asset 71 | env: 72 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 73 | run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/* 74 | 75 | # Create a pull request 76 | - name: Create Pull Request 77 | if: ${{ steps.properties.outputs.changelog != '' }} 78 | env: 79 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 80 | run: | 81 | VERSION="${{ github.event.release.tag_name }}" 82 | BRANCH="changelog-update-$VERSION" 83 | LABEL="release changelog" 84 | 85 | git config user.email "action@github.com" 86 | git config user.name "GitHub Action" 87 | 88 | git checkout -b $BRANCH 89 | git commit -am "Changelog update - $VERSION" 90 | git push --set-upstream origin $BRANCH 91 | 92 | gh label create "$LABEL" \ 93 | --description "Pull requests with release changelog update" \ 94 | --force \ 95 | || true 96 | 97 | gh pr create \ 98 | --title "Changelog update - \`$VERSION\`" \ 99 | --body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \ 100 | --label "$LABEL" \ 101 | --head $BRANCH 102 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | .idea 3 | .gradle 4 | .intellijPlatform 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [Unreleased] 4 | 5 | ## [3.0.0] - 2024-10-08 6 | 7 | ### Fixed 8 | 9 | - `ExportToTextFile` updated to `Ctrl+Alt+Shift+O`, making `Ctrl+Alt+O` work for `GoToFile` when the Find pane is open 10 | 11 | ### Changed 12 | 13 | - Updated to match latest keymap as of [c670a48](https://github.com/JetBrains/intellij-community/blob/c670a481d5bd8656469f41c3ff6924d4f0d73fcd/platform/platform-resources/src/keymaps/Mac%20OS%20X%2010.5%2B.xml) 14 | - `Back` updated to `Ctrl+Alt+←` 15 | - `Forward` updated to `Ctrl+Alt+→` 16 | - `NextSplitter` updated to `Ctrl+Alt+Shift+PageDown` 17 | - `PrevSplitter` updated to `Ctrl+Alt+Shift+PageUp` 18 | 19 | ### Removed 20 | 21 | - `GoToChangedFile` which was removed from _all_ JetBrains keymaps 22 | - `FindPrevWordAtCaret` which is explicitly unbound in the macOS keymap 23 | 24 | ## [2.0.0] - 2020-09-24 25 | 26 | ### Added 27 | 28 | - Updated to match latest keymap as of [367cd5f](https://github.com/JetBrains/intellij-community/blob/fb0eb45e7d27dffbb490030c623bcf65eb402aeb/platform/platform-resources/src/keymaps/Mac%20OS%20X%2010.5%2B.xml). 29 | - Support new commit tool window (`Alt-0` when commit is active) 30 | 31 | ### Removed 32 | 33 | - `ActivateTODOToolWindow` removed from keymap as of [b6eda](https://github.com/JetBrains/intellij-community/commit/24fe6c91cc91d51a2042737e9b7d01dd94305943#diff-8d8929a05e92b93072513b4727735c81) to make room for the Problems view. 34 | 35 | ### Fixed 36 | 37 | - Keymap range set to 2020.2.* and beyond (no `untilBuild`) 38 | - `NextSplitter` and `PrevSplitter` updated to prevent conflicts with Alt-Tab 39 | 40 | [Unreleased]: https://github.com/samvtran/jetbrains-macos-keybindings-for-all/compare/v3.0.0...HEAD 41 | [3.0.0]: https://github.com/samvtran/jetbrains-macos-keybindings-for-all/compare/v2.0.0...v3.0.0 42 | [2.0.0]: https://github.com/samvtran/jetbrains-macos-keybindings-for-all/commits/v2.0.0 43 | -------------------------------------------------------------------------------- /Keymap-macOS For All.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samvtran/jetbrains-macos-keybindings-for-all/0e8783452a0d01cb65b39c6d59ade89b9da4e653/Keymap-macOS For All.pdf -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /NOTICE.txt: -------------------------------------------------------------------------------- 1 | This software includes code from IntelliJ IDEA Community Edition 2 | Copyright (C) JetBrains s.r.o. 3 | https://www.jetbrains.com/idea/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JetBrains macOS Keymap for Windows and Linux 2 | 3 | [![JetBrains IntelliJ Plugins](https://img.shields.io/jetbrains/plugin/v/13968-macos-for-all?style=for-the-badge)](https://plugins.jetbrains.com/plugin/13968-macos-for-all) 4 | 5 | [Cheatsheet](Keymap-macOS%20For%20All.pdf) 6 | 7 | This plugin converts the macOS keymap (previously known as Mac OS X 10.5+) in JetBrains IDEs from 8 | macOS-specific shortcuts to shortcuts without the Command (⌘) key for use on Windows and Linux. 9 | 10 | While some keybindings are close to their original, others have more modifier keys or different 11 | bindings altogether to avoid conflicts. 12 | 13 | ## Build 14 | 15 | Follow JetBrains' [guide](https://www.jetbrains.org/intellij/sdk/docs/tutorials/build_system/prerequisites.html) for using Gradle for plugin development. 16 | 17 | ## Installation 18 | 19 | Install the plugin from the [plugin marketplace](https://plugins.jetbrains.com/plugin/13968-macos-for-all) or grab the zip file from the [latest release](https://github.com/samvtran/jetbrains-macos-keybindings-for-all/releases/latest) and install manually. 20 | 21 | ## Release 22 | 23 | For signing and releasing the plugin, this repo uses the environment variables outlined in the 24 | IntelliJ Platform Plugin Template [environment variables section](https://github.com/JetBrains/intellij-platform-plugin-template?tab=readme-ov-file#environment-variables): 25 | 26 | | Name | Description | 27 | |------------------------|-----------------------------------------------| 28 | | `PRIVATE_KEY` | Certificate private key for signing | 29 | | `PRIVATE_KEY_PASSWORD` | Password for private key | 30 | | `CERTIFICATE_CHAIN` | Certificate chain for signing | 31 | | `PUBLISH_TOKEN` | Token for publishing to JetBrains Marketplace | 32 | 33 | ## Issues 34 | 35 | If you notice any issues, please report 36 | them [here](https://github.com/samvtran/jetbrains-macos-keybindings-for-all/issues/new). 37 | 38 | ## Key Updates 39 | 40 | | Actions | macOS Keybindings | New Keybindings | 41 | |-------------------------------------:|-----------------------------------------------------------------------|-----------------------------------------------| 42 | | ActivateProjectToolWindow | `Command-1` | `Alt-1` | 43 | | ActivateBookmarksToolWindow | `Command-2` | `Alt-2` | 44 | | ActivateFindToolWindow | `Command-3` | `Alt-3` | 45 | | ActivateRunToolWindow | `Command-4` | `Alt-4` | 46 | | ActivateDebugToolWindow | `Command-5` | `Alt-5` | 47 | | ActivateProblemsViewToolWindow | `Command-6` | `Alt-6` | 48 | | ActivateStructureToolWindow | `Command-7` | `Alt-7` | 49 | | ActivateServicesToolWindow | `Command-8` | `Alt-8` | 50 | | ActivateVersionControlToolWindow | `Command-9` | `Alt-9` | 51 | | ActivateCommitToolWindow | `Command-0` | `Alt-0` | 52 | | Back | `Command-[`
`Command-Alt-Left` | `Control-[`
`Control-Alt-Left` | 53 | | ChangesView.Move | `Command-Shift-M` | `Control-Shift-M` | 54 | | ChooseDebugConfiguration | `Control-Alt-D` | `Control-Alt-Shift-D` | 55 | | ChooseRunConfiguration | `Control-Alt-R` | `Control-Alt-Shift-R` | 56 | | CloseContent | `Command-W` | `Control-W` | 57 | | ContextHelp | `Command-Shift-F1` | `Control-Shift-F1` | 58 | | Debug | `Control-D` | `Control-Alt-D` | 59 | | Diff.NextChange | `Command-Shift-]`
`Control-Right` | `Control-Shift-]` | 60 | | Diff.PrevChange | `Command-Shift-[`
`Control-Left` | `Control-Shift-[` | 61 | | EditorCodeBlockEnd | `Command-Alt-]` | `Control-Alt-]` | 62 | | EditorCodeBlockEndWithSelection | `Command-Alt-Shift-]` | `Control-Alt-Shift-]` | 63 | | EditorCodeBlockStart | `Command-Alt-[` | `Control-Alt-[` | 64 | | EditorCodeBlockStartWithSelection | `Command-Alt-Shift-[` | `Control-Alt-Shift-[` | 65 | | EditorDeleteLine | `Command-Backspace` | `Control-Backspace` | 66 | | EditorLineEnd | `Command-Right` | `Control-Right` | 67 | | EditorLineEndWithSelection | `Command-Shift-Right` | `Control-Shift-End` | 68 | | EditorLineStart | `Command-Left` | `Control-Left` | 69 | | EditorLineStartWithSelection | `Command-Shift-Left` | `Control-Shift-Home` | 70 | | EditorLookupDown | `Control-Down` | `Control-Alt-Down` | 71 | | EditorLookupUp | `Control-Up` | `Control-Alt-Up` | 72 | | EditorMatchBrace | `Control-M` | `Control-Alt-M` | 73 | | EditorToggleColumnMode | `Command-Shift-8` | `Control-Alt-Shift-8` | 74 | | EditSource | `Command-Down` | `Control-Down` | 75 | | EmojiAndSymbols | `Command-Control-Space` | `Control-Alt-Shift-Space` | 76 | | Exit | `Command-Q` | `Control-Q` | 77 | | ExpandAllToLevel1 | `Command-Alt-NumPad[*] + 1` | `Control-Alt-NumPad[*] + 1` | 78 | | ExpandAllToLevel2 | `Command-Alt-NumPad[*] + 2` | `Control-Alt-NumPad[*] + 2` | 79 | | ExpandAllToLevel3 | `Command-Alt-NumPad[*] + 3` | `Control-Alt-NumPad[*] + 3` | 80 | | ExpandAllToLevel4 | `Command-Alt-NumPad[*] + 4` | `Control-Alt-NumPad[*] + 4` | 81 | | ExpandAllToLevel5 | `Command-Alt-NumPad[*] + 5` | `Control-Alt-NumPad[*] + 5` | 82 | | ExportToTextFile | `Control-O` | `Control-Alt-Shift-O` | 83 | | FileChooser.TogglePathBar | `Command-P` | `Control-P` | 84 | | Find | `Command-F` | `Control-F` | 85 | | FindInPath | `Command-Shift-F` | `Control-Shift-F` | 86 | | FindNext | `Command-G` | `Control-Alt-G` | 87 | | FindPrevious | `Command-Shift-G` | `Alt-Shift-G` | 88 | | Forward | `Command-]`
`Command-Alt-Right` | `Control-]`
`Control-Alt-Right` | 89 | | Generate | `Command-N` | `Control-N` | 90 | | GotoClass | `Command-O` | `Control-O` | 91 | | GotoFile | `Command-Shift-O` | `Control-Shift-O` | 92 | | GotoLine | `Command-L` | `Control-L` | 93 | | GotoRelated | `Control-Meta-Up` | `Control-Alt-Home` | 94 | | GotoSymbol | `Command-Alt-O` | `Control-Alt-O` | 95 | | GotoTypeDeclaration | `Command-Shift-B`
`Control-Shift-B`
`Command-Shift-button1` | `Control-Shift-B`
`Control-Shift-button` | 96 | | MethodDown | `Control-Down` | `Control-Alt-Down` | 97 | | MethodUp | `Control-Up` | `Control-Alt-Up` | 98 | | MinimizeCurrentWindow | `Command-M` | `Control-M` | 99 | | NewElement | `Command-N` | `Control-N` | 100 | | NewScratchFile | `Command-Shift-N` | `Control-Shift-N` | 101 | | NextEditorTab | `Control-Shift-Right` | `Control-Alt-Shift-Right` | 102 | | NextProjectWindow | ``Command-Alt-` `` | ``Control-Alt-` `` | 103 | | NextSplitter | `Alt-Tab` | `Control-Alt-Shift-PageDown` | 104 | | NextTab | `Command-Shift-]`
`Control-Right` | `Control-Shift-]` | 105 | | OptimizeImports | `Control-Alt-O` | `Control-Alt-Shift-O` | 106 | | OverrideMethods | `Control-O` | `Alt-Shift-O` | 107 | | PreviousEditorTab | `Control-Shift-Left` | `Control-Alt-Shift-Left` | 108 | | PrevSplitter | `Alt-Shift-Tab` | `Control-Alt-Shift-PageUp` | 109 | | PreviousProjectWindow | ``Command-Alt-Shift-` `` | ``Control-Alt-Shift-` `` | 110 | | PreviousSplitter | `Alt-Shift-Tab` | `Control-Alt-Right` | 111 | | PreviousTab | `Command-Shift-[`
`Control-Left` | `Control-Shift-[` | 112 | | QuickImplementations | `Command-Y` | `Control-Y` | 113 | | Refresh | `Command-R` | `Control-R`
`Control-F5` | 114 | | ReplaceInPath | `Command-Shift-R` | `Control-Shift-R` | 115 | | Rerun | `Command-R` | `Control-R` | 116 | | Run | `Control-R` | `Control-Alt-R` | 117 | | RunClass | `Control-Shift-R` | `Control-Shift-C` | 118 | | ServiceView.ShowServices | `Command-Shift-T` | `Control-Shift-T` | 119 | | SafeDelete | `Command-Delete` | `Control-Delete` | 120 | | SearchEverywhere.NavigateToNextGroup | `Command-Down` | `Control-Down` | 121 | | SearchEverywhere.NavigateToPrevGroup | `Command-Up` | `Control-Up` | 122 | | SelectAllOccurrences | `Command-Control-G` | `Control-Alt-Shift-G` | 123 | | ShowBookmarks | `Command-F3` | `Control-F3` | 124 | | ShowContent | None | `Control-Shift-Down` | 125 | | ShowNavBar | `Command-Up` | `Control-Up` | 126 | | ShowProjectStructureSettings | `Command-;` | `Control-;` | 127 | | ShowSettings | `Command-,` | `Control-,` | 128 | | TestGestureAction | `Command-1` | `Control-Alt-1` | 129 | | ToggleFullScreen | `Command-Control-F` | `Control-Alt-Shift-F` | 130 | | Undo | `Command-Z` | `Control-Z` | 131 | | Vcs.MoveChangedLinesToChangelist | `Command-Shift-M` | `Control-Shift-M` | 132 | | Vcs.QuickListPopupAction | `Control-V` | `Control-Shift-V` | 133 | | Vcs.ShowMessageHistory | `Command-E` | `Control-E` | 134 | | Vcs.UpdateProject | `Command-T` | `Control-Alt-Shift-T` | 135 | | VcsHistory.ShowAllAffected | `Command-Control-A` | `Control-Alt-A` | 136 | | ZoomCurrentWindow | `Command-Control-=` | `Control-=` | 137 | 138 | ## Removed Keybindings 139 | 140 | | Actions | macOS Keybindings | Alternatives | 141 | |--------------------------------:|----------------------------------------|----------------------------| 142 | | $Delete | `Command-Backspace` | Just backspace | 143 | | CommentByBlockComment | `Command-Alt-/`
`Command-Shift-/` | `Control-Shift-/` | 144 | | EditorDown | `Control-N` | `Down` | 145 | | EditorLeft | `Control-B` | `Left` | 146 | | EditorLineEnd | `Control-E` | `Control-Right`
`End` | 147 | | EditorLineStart | `Control-A` | `Control-Left`
`Home` | 148 | | EditorPreviousWord | `Control-Alt-B` | `Alt-Left` | 149 | | EditorPreviousWordWithSelection | `Control-Alt-Shift-B` | `Alt-Shift-Left` | 150 | | EditorNextWord | `Control-Alt-F` | `Alt-Right` | 151 | | EditorNextWordWithSelection | `Control-Alt-Shift-F` | `Alt-Shift-Right` | 152 | | EditorRight | `Control-F` | `Right` | 153 | | EditorToggleColumnMode | `Command-Shift-NumPad[*]` | `Control-Alt-Shift-8` | 154 | | EditorUp | `Control-P` | `Up` | 155 | | FindNext | `Control-L` | `F3` | 156 | | FindPrevious | `Control-Shift-L` | `Shift-F3` | 157 | | RerunTests | `Command-Control-R` | `Alt-Shift-R` | 158 | | Resume | `Command-Alt-R` | `F9` | 159 | | Vcs.ShowMessageHistory | `Control-M` | `Control-E` | 160 | 161 | ## Default Implicit Keybindings 162 | 163 | These keybindings are set by the [ 164 | `$default`](https://github.com/JetBrains/intellij-community/blob/master/platform/platform-resources/src/keymaps/%24default.xml) 165 | keymap 166 | and are not currently included, even if the macOS keymap defines them explicitly. 167 | 168 | | Actions | macOS Keybindings | $default Keybindings | 169 | |---------------------------------:|-----------------------------------------------------------------------|----------------------------------| 170 | | ActivateNuGetToolWindow | `Command-Alt-7` | `Alt-Shift-7` | 171 | | ActivateUnitTestsToolWindow | `Command-Alt-8` | `Alt-Shift-8` | 172 | | ChangesView.GroupBy.Directory | `Control-P` | `Control-Alt-P` | 173 | | ChangesView.GroupBy.Module | `Control-M` | `Control-Alt-M` | 174 | | Diff.ApplyLeftSide | `Control-Shift-Right` | `Alt-Shift-Right` | 175 | | Diff.ApplyRightSide | `Control-Shift-Left` | `Alt-Shift-Left` | 176 | | ForceRefresh | `Command-Alt-Shift-R` | `Control-Shift-F5` | 177 | | GoToDeclaration | `Command-B`
`Command-click`
`Middle click`
Force touch | `Control-B`
`Control-click` | 178 | | RunToCursor | `Alt-F9`
Force touch | `Alt-F9` | 179 | | ServiceView.GroupByContributor | `Control-T` | `Control-Alt-T` | 180 | | ServiceView.GroupByServiceGroups | `Control-P` | `Control-Alt-P` | 181 | | TodoViewGroupByShowModules | `Control-M` | `Control-Alt-M` | 182 | | TodoViewGroupByShowPackages | `Control-P` | `Control-Alt-P` | 183 | | TodoViewGroupByFlattenPackage | `Control-F` | `Control-Alt-C` | 184 | | ToggleAmendCommitMode | `Control-Alt-M` | `Alt-M` | 185 | | ToggleFindInSelection | `Control-Alt-E` | `Control-Alt-E` | 186 | | UsageFiltering.ReadAccess | `Control-R` | `Control-R` | 187 | | UsageFiltering.WriteAccess | `Control-W` | `Control-W` | 188 | | UsageFiltering.Imports | `Control-I` | `Control-I` | 189 | | UsageGrouping.Module | `Control-M` | `Control-Alt-M` | 190 | | UsageGrouping.Directory | `Control-P` | `Control-Alt-P` | 191 | | UsageGrouping.UsageType | `Control-T` | `Control-Alt-T` | 192 | | UsageGrouping.FlattenModules | `Control-O` | `Control-Alt-O` | 193 | | UsageGrouping.FileStructure | `Control-F` | `Control-Alt-F` | 194 | | UsageGrouping.DirectoryStructure | `Control-D` | `Control-Alt-D` | 195 | 196 | ## Missing/no-op Keybindings 197 | 198 | This list may change over time. 199 | 200 | | Actions | Keybindings | Reason | 201 | |----------------------:|-------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| 202 | | PrevWindow/NextWindow | ``Command+Shift+` ``/``Command+` `` | Workaround for [platform-specific issues](https://youtrack.jetbrains.com/issue/IDEA-217613). For Linux, use ``Alt-`​`` in supported WMs. For Windows, try [AltBacktick](https://github.com/akiver/AltBacktick) or [window-switcher](https://github.com/sigoden/window-switcher). | 203 | | EmojiAndSymbols | `Command-Control-Space` | This is rebound to `Control-Alt-Shift-Space` but [does not function outside macOS](https://github.com/JetBrains/intellij-community/blob/b69a466631b01c408897e1b9f4159f6632470a0b/platform/platform-impl/src/com/intellij/ide/actions/MacEmojiAndSymbolsInputAction.java). For Windows, use `Super+;` or `Super+.` to activate the built-in emoji picker. | 204 | 205 | ## FAQ 206 | 207 | ### Can I add my own custom shortcuts? 208 | 209 | Yes, choose _Duplicate..._ from the Settings -> Keymap gear menu to create your own keymap based off 210 | this keymap. Your keymap will inherit all keybindings from this base keymap with your own changes 211 | applied on top. You can sync this user-defined keymap alongside the macOS For All keymap across all 212 | of your machines and IDEs. 213 | 214 | ### Oh no! My favorite shortcut changed after an update! What do I do? 215 | 216 | This project tries to follow the macOS keybindings (still called "Mac OS X 10.5+" in the JetBrains 217 | codebase) as closely as possible. 218 | 219 | As new UI elements and IDE features are added, JetBrains may add and remove keybindings to 220 | better match their evolving feature set. If you find that your muscle memory is getting in the way 221 | of a new binding, make a copy of this keymap for your own custom shortcuts. 222 | 223 | ### I just switched from macOS to Linux/Windows. What can I do to make the transition easier? 224 | 225 | If you don't use Caps Lock very often, try rebinding it to Command on macOS and Control on Windows 226 | and Linux for more consistent hand and finger positioning. 227 | 228 | Use a plugin like [Key Promoter X](https://plugins.jetbrains.com/plugin/9792-key-promoter-x) to help 229 | with learning new shortcuts. 230 | -------------------------------------------------------------------------------- /build.gradle.kts: -------------------------------------------------------------------------------- 1 | import org.jetbrains.changelog.Changelog 2 | import org.jetbrains.changelog.markdownToHTML 3 | 4 | plugins { 5 | java 6 | alias(libs.plugins.intelliJPlatform) 7 | alias(libs.plugins.changelog) 8 | } 9 | 10 | java { 11 | toolchain { 12 | languageVersion = JavaLanguageVersion.of(17) 13 | } 14 | } 15 | 16 | group = providers.gradleProperty("pluginGroup").get() 17 | version = providers.gradleProperty("pluginVersion").get() 18 | 19 | // Configure project's dependencies 20 | repositories { 21 | mavenCentral() 22 | 23 | // IntelliJ Platform Gradle Plugin Repositories Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-repositories-extension.html 24 | intellijPlatform { 25 | defaultRepositories() 26 | } 27 | } 28 | 29 | // Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog 30 | dependencies { 31 | // IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html 32 | intellijPlatform { 33 | create(providers.gradleProperty("platformType"), providers.gradleProperty("platformVersion")) 34 | 35 | // Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins. 36 | bundledPlugins(providers.gradleProperty("platformBundledPlugins").map { it.split(',') }) 37 | 38 | // Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file for plugin from JetBrains Marketplace. 39 | plugins(providers.gradleProperty("platformPlugins").map { it.split(',') }) 40 | instrumentationTools() 41 | pluginVerifier() 42 | zipSigner() 43 | } 44 | } 45 | 46 | // Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html 47 | intellijPlatform { 48 | buildSearchableOptions = false 49 | 50 | pluginConfiguration { 51 | version = providers.gradleProperty("pluginVersion") 52 | 53 | val changelog = project.changelog // local variable for configuration cache compatibility 54 | // Get the latest available change notes from the changelog file 55 | changeNotes = providers.gradleProperty("pluginVersion").map { pluginVersion -> 56 | with(changelog) { 57 | renderItem( 58 | (getOrNull(pluginVersion) ?: getUnreleased()) 59 | .withHeader(false) 60 | .withEmptySections(false), 61 | Changelog.OutputType.HTML, 62 | ) 63 | } 64 | } 65 | 66 | ideaVersion { 67 | sinceBuild = providers.gradleProperty("pluginSinceBuild") 68 | untilBuild = providers.gradleProperty("pluginUntilBuild") 69 | } 70 | } 71 | 72 | signing { 73 | certificateChain = providers.environmentVariable("CERTIFICATE_CHAIN") 74 | privateKey = providers.environmentVariable("PRIVATE_KEY") 75 | password = providers.environmentVariable("PRIVATE_KEY_PASSWORD") 76 | } 77 | 78 | publishing { 79 | token = providers.environmentVariable("PUBLISH_TOKEN") 80 | // The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3 81 | // Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more: 82 | // https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel 83 | channels = providers.gradleProperty("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) } 84 | } 85 | 86 | pluginVerification { 87 | ides { 88 | recommended() 89 | } 90 | } 91 | } 92 | 93 | // Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin 94 | changelog { 95 | groups.empty() 96 | repositoryUrl = providers.gradleProperty("pluginRepositoryUrl") 97 | } 98 | 99 | tasks { 100 | wrapper { 101 | gradleVersion = providers.gradleProperty("gradleVersion").get() 102 | } 103 | 104 | publishPlugin { 105 | dependsOn(patchChangelog) 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html 2 | pluginGroup = com.samvtran 3 | pluginName_ = macosforallkeymap 4 | pluginRepositoryUrl = https://github.com/samvtran/jetbrains-macos-keybindings-for-all 5 | pluginVersion = 3.0.0 6 | 7 | # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html 8 | pluginSinceBuild = 231 9 | 10 | # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension 11 | platformType = IC 12 | platformVersion = 2023.1 13 | 14 | # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html 15 | platformPlugins = 16 | platformBundledPlugins = 17 | 18 | # Gradle Releases -> https://github.com/gradle/gradle/releases 19 | gradleVersion = 8.10.2 20 | 21 | # Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib 22 | kotlin.stdlib.default.dependency = false 23 | 24 | # Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html 25 | org.gradle.configuration-cache = true 26 | 27 | # Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html 28 | org.gradle.caching = true 29 | -------------------------------------------------------------------------------- /gradle/libs.versions.toml: -------------------------------------------------------------------------------- 1 | [versions] 2 | changelog = "2.2.1" 3 | intelliJPlatform = "2.1.0" 4 | 5 | [libraries] 6 | 7 | [plugins] 8 | changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" } 9 | intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "intelliJPlatform" } 10 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samvtran/jetbrains-macos-keybindings-for-all/0e8783452a0d01cb65b39c6d59ade89b9da4e653/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- 1 | rootProject.name = "macosforallkeymap" 2 | 3 | plugins { 4 | id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" 5 | } 6 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | com.samvtran.plugins.macosforallkeymap 3 | macOS For All 4 | samvtran 5 | 6 | key updates table.

10 | If you notice any conflicting shortcuts or have a suggestion for a new keybinding, please 11 | open an issue on GitHub. 12 | ]]>
13 | 14 | com.intellij.modules.lang 15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/pluginIcon.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/pluginIcon_dark.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/resources/keymaps/macOS For All.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | --------------------------------------------------------------------------------