Skip to content

Commit

Permalink
Allow disable default key bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Bebak committed Oct 29, 2023
1 parent f801c7f commit 09176cb
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 09176cb

Please sign in to comment.