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

The shortcut of revert command is conflicted with regex toggle in find menu. #24

Open
tzengyuxio opened this issue Feb 24, 2014 · 5 comments
Labels

Comments

@tzengyuxio
Copy link

Updated: fix my typo of the key bindings.


When hitting Ctrl+F, sublime text will open find menu in the bottom of window,
and user can hit Alt+R / Alt+C / Alt+W to toggle Regex / Case / WholeWord switches.

The key bindings of sublime-TortoiseSVN is conficted to those toggle-shortcuts,

Alt+C: toggle Case sensitive (default) <> Commit (sublime-tortoiseSVN)
Alt+R: toggle Regex (default) <> Revert (sublime-tortoiseSVN)

@tzengyuxio
Copy link
Author

add version and os info: Sublime 3 at Windows 7.

@dexbol
Copy link
Owner

dexbol commented Feb 24, 2014

It make me a little mystified. sublime-TortoiseSVN use [ALT] by default, not Ctrl.
And, you can change the key binding as needed in Preferences -> Package Settings -> TortoiseSVN -> Key Binding - User .

I hope this can help you.

@tzengyuxio
Copy link
Author

sorry, I just type wrong key binding.

Both sublime-TortoiseSVN and find-toggle-switches use [ALT] as the hotkey modifier.


I have tried change the key binding in Preferences -> Package Settings -> TortoiseSVN -> Key Binding - User, as follows:

{ "keys": ["alt+u"], "command": "svn_update" }
,{ "keys": ["alt+shift+c"], "command": "svn_commit" }
,{ "keys": ["alt+shift+r"], "command": "svn_revert" }

But the key [ALT+R] still bound to "svn_revert", not the original function of "toggle regexp"

@alereid
Copy link

alereid commented Jun 25, 2015

I am having the same problem as described by tzengyuxio.

On Windows alt+r toggles the regex search feature and alt+c toggles the case sensitivity in a search... but when I have sublime-TortoiseSVN installed these hotkeys are overridden by the sublime-TortoiseSVN default keybinding.

When I set user key bindings for sublime-TortoiseSVN it doesn't change the default bindings for the package.

My platform is Windows 7. I am running Sublime Text 3

Suggestion: Remove the default keybindings from the package installation and leave them as a comment suggesting keybindings.

@dexbol dexbol added the bug label Jul 1, 2015
@doneykoo
Copy link

doneykoo commented May 25, 2016

I've found a way of workaround by adding come overriding config into your
Preferences - Package Settings - TortoiseSVN - Keybindings User
like this:

    { "keys": ["alt+u"], "command": "unbound" },  
    { "keys": ["alt+c"], "command": "unbound" },  
    { "keys": ["alt+r"], "command": "unbound" },  
    { "keys": ["alt+c"], "command": "toggle_case_sensitive", "context":
        [
            { "key": "setting.is_widget", "operator": "equal", "operand": true }
        ]
    },  
    { "keys": ["alt+r"], "command": "toggle_regex", "context":
        [
            { "key": "setting.is_widget", "operator": "equal", "operand": true }
        ]
    },

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

No branches or pull requests

4 participants