Sublime Forum

Sublime overrides my global mac system shortcut

#1

I have set global shortcut to bring up terminal window any time I want I by pressing cmd+shift+.

The problem is I can’t press that command when i’m sublime. Press it will not bring me terminal window.

0 Likes

#2

What do you mean by

Do you mean a terminal that would be in the same directory as you are now? There’s a plugin called Terminal that should do the job.

0 Likes

#3

If by Terminal you mean Console, you invoke it by View -> Show Console, or CTRL + (back-tick).
`

0 Likes

#4

this terminal

0 Likes

#5

I have that plugin, it will open a new window at current folder. I need to show the current terminal window only.

0 Likes

#6

I don’t know if this is possible… I’m not sure if it’s the same shortcut on mac, but on window, so change windows, if you press alt+tab, you’ll swap window.

1 Like

#7

I am not sure what you want, but I suggest that you read the instructions for the Terminal package which you have.
It may help you.

0 Likes

#8

I just updated the original post

1 Like

#9

It seems as if it is more of a Mac problem than a Sublime Text problem. Does the command work with other applications?
I cannot help you with Mac problems since I use Windows exclusively. If it only Sublime Text is affected, it may have something to do with the path, but I am not sure.

0 Likes

#10

the shortcut works with all applications except sublime.

0 Likes

#11

Sublime text blocks the shortcuts that it use (I think). It means that you have a command binded to cmd+shift+.. And it’s emmet:

{
    "keys": [
        "shift+super+."
    ], 
    "args": {
        "action": "select_next_item"
    }, 
    "command": "run_emmet_action", 
    "context": [
        {
            "key": "emmet_action_enabled.select_next_item"
        }
    ]
}, 

from the Default (OSX).sublime-keymap

So, it’s not a good solution, but it’s the only thing I have: edit this file, and remove/change this shortcut. Then it should work.

0 Likes

#12

My default key binding doesn’t have the following

{
    "keys": [
        "shift+super+."
    ], 
    "args": {
        "action": "select_next_item"
    }, 
    "command": "run_emmet_action", 
    "context": [
        {
            "key": "emmet_action_enabled.select_next_item"
        }
    ]
},

So, did you mean to suggest me to add that code to my default key binding??

0 Likes

#13

I just know there is package that has default key map that has the shortcut super+shift+.

So I guess that once overrides my global shortcut.

I tried to edit that shortcut to something else but sublime disabled editing in that file.

0 Likes

#14

Sorry for not being clear… :confused:

That’s weird, it doesn’t for me. But here’s a trick.

  1. Open the file
  2. Open the console (view -> show console)
  3. Type view.set_read_only(False)

And now, you can edit it.

0 Likes

#15

tried the console trick. not work. Here is what I see from the console

0 Likes

#16

Try this in my default sublime keymap:
`
{ “keys”: [“shift+super+.”], “command”: “None” },

`

0 Likes

#17

tried that too, it doesn’t work either.

0 Likes

#18

Sorry agoago, it’s view.set_read_only(False) (there’s the view. before)

0 Likes

#19

I can now edit the text but it is

0 Likes

#20

How did you opened this file? Using PackageResourveViewer: Open Resource? If it’s the case

  1. delete the folder Color Highlighter
  2. in the command palette PackageResourceViewer: extract Package
  3. Color Highlighter

And then, reopen this file (you can use PackageResourveViewer: Open Resource now, it doesn’t matter), and it should work.

0 Likes