Skip to content

Commit

Permalink
Disable key bindings by default
Browse files Browse the repository at this point in the history
  • Loading branch information
eiskrenkov committed Mar 13, 2022
1 parent c246906 commit b678939
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 21 deletions.
12 changes: 6 additions & 6 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[
{
"keys": [
"ctrl+alt+c"
],
"command": "magic_comment_insert"
}
// {
// "keys": [
// "ctrl+alt+c"
// ],
// "command": "magic_comment_insert"
// }
]
12 changes: 6 additions & 6 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[
{
"keys": [
"super+ctrl+c"
],
"command": "magic_comment_insert"
}
// {
// "keys": [
// "super+ctrl+c"
// ],
// "command": "magic_comment_insert"
// }
]
12 changes: 6 additions & 6 deletions Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[
{
"keys": [
"ctrl+alt+c"
],
"command": "magic_comment_insert"
}
// {
// "keys": [
// "ctrl+alt+c"
// ],
// "command": "magic_comment_insert"
// }
]
8 changes: 8 additions & 0 deletions Main.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
"default": "{\n\t$0\n}\n"
}
},
{
"caption": "Key Bindings",
"command": "edit_settings",
"args": {
"base_file": "${packages}/MagicComment/Default (${platform}).sublime-keymap",
"default": "// Key Bindings - User\n[\n\t$0\n]\n"
}
},
{
"caption": "-"
},
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ Development is motivated by `frozen_string_literal` comment for Ruby files, but
- `git clone https://github.com/eiskrenkov/MagicComment.git`

## Usage
- **On file save** (enabled by default, can be disabled in settings)
- **Key Bindings** - Default binging is `CMD+CTRL+C` (can be reconfigured)
- **On file save** - Enabled by default, can be disabled in settings
- **Key Bindings** - Commented by default, can be configured to anything you want
- **Command Palette** - `CMD+P` and type `MagicComment` (or just `comment`) and select `MagicComment: Insert Comments`

> You can always configure key bindings at _Sublime Text menu_ -> _Preferences_ -> _Package Settings_ -> _MagicComment_ -> _Key Bindings_
## Default Configuration
Remember, that you can always reconfigure it, just open _Sublime Text menu_ -> _Preferences_ -> _Package Settings_ -> _MagicComment_ -> _Settings_
> Remember, that you can always reconfigure it, just open _Sublime Text menu_ -> _Preferences_ -> _Package Settings_ -> _MagicComment_ -> _Settings_
### General
- `run_on_save`
Expand Down

0 comments on commit b678939

Please sign in to comment.