Skip to content

Commit

Permalink
Merge pull request #59 from noahcoad/58-allow-disable-default-key-bin…
Browse files Browse the repository at this point in the history
…dings

Allow disable default key bindings
  • Loading branch information
kylebebak authored Oct 29, 2023
2 parents f801c7f + 09176cb commit 07993d9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
16 changes: 15 additions & 1 deletion Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
[{ "keys": ["ctrl+u"], "command": "open_url" }]
[
{
"keys": [
"ctrl+u"
],
"command": "open_url",
"context": [
{
"key": "setting.open_url.disable_default_key_bindings",
"operator": "not_equal",
"operand": true
}
]
}
]
16 changes: 15 additions & 1 deletion Default.sublime-keymap
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
// Linux and Windows
[{ "keys": ["ctrl+alt+u"], "command": "open_url" }]
[
{
"keys": [
"ctrl+alt+u"
],
"command": "open_url",
"context": [
{
"key": "setting.open_url.disable_default_key_bindings",
"operator": "not_equal",
"operand": true
}
]
}
]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ Some settings, especially the URL / path transforms like `aliases`, will probabl

Project-specific settings override default and user settings.

### Disable default key bindings

To do this, add `"open_url.disable_default_key_bindings": true` to `Preferences.sublime-settings`.

## Release Notes

[See Open URL's version history here](https://github.com/noahcoad/open-url/tree/master/messages).
Expand Down

0 comments on commit 07993d9

Please sign in to comment.