2

I've been using Sublime Text for quite some time (both on OS X and Windows) and it's been working great. One of the features I like and use the most is "Expand Selection to Tag". On the Windows and OS X version, I put my cursor inside two HTML tags, and press the hotkey (ctrl+shift+a or cmd+shift+a) and it does this:

On Windows / OS X

Instead, when I try to do the same thing with that hotkey on Linux (Ubuntu 12.04), it does this:

On Ubuntu 12.04

Yet, the menu says that's the correct hotkey, but it's definitely not the right command.

When browsing the "Key Bindings - Default" preferences file, it's correctly bound:

{ "keys": ["ctrl+shift+a"], "command": "expand_selection", "args": {"to": "tag"} },

Yet it doesn't do what it's supposed to.

What's that command it's excecuting and how do I do to make that binding to do what's supposed to do?

8
  • Have you checked the Default (Linux).sublime-keymap file?
    – Sara
    Oct 11, 2012 at 16:24
  • @Sara Where can I check that? I tried the home folder and I didn't find it. In the Pristine Packages folder (where ST2 is installed), the file's empty (inside the User.sublime-package file)
    – AeroCross
    Oct 11, 2012 at 17:57
  • @Sara Is it in the root install folder? There's no such packages folder there :/
    – AeroCross
    Oct 11, 2012 at 20:35
  • For me (OS X) it's in Application Support -> Sublime Text 2 -> Packages -> User - I'm not sure what the Linux installation looks like, but presumably it's a similar structure? I also have Pristine Packages next to Packages.
    – Sara
    Oct 12, 2012 at 15:33
  • 1
    Do you have zencoding installed or something else taking over those hotkeys?
    – d_rail
    Oct 20, 2012 at 10:52

2 Answers 2

2

I’ve encountered such problems many times, but not anymore. Some enlightened person made a package to find key conflicts between packages: https://sublime.wbond.net/packages/FindKeyConflicts

1

As @d_rail pointed out, there was a conflict with a Package ― in specific, Zen Coding.

When I uninstalled the package, it started working again as it should have from the beggining. I will proceed to reinstall the package and configure the key bindings so they won't collide.

How could I not see that before!?

2
  • 1
    I couldn't figure what was going on, then I saw the answer to this question: superuser.com/questions/489879/… and then it clicked. Unfortunately, your predicament happens to me a lot, I install a bunch of plugins that look cool, then when something weird happens, I have no idea what is causing it.
    – d_rail
    Oct 26, 2012 at 21:07
  • Exactly what happened to me, and the link (and the comment inside the answer) describes exactly what happened.
    – AeroCross
    Oct 29, 2012 at 14:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.