Sublime Forum

Opening sidebar (⌘K, ⌘B) triggers build (⌘B)

#1

If I type the key chord “⌘K then ⌘B” to open the sidebar, the last key combination “⌘B” is also emitted by itself, triggering a build. I’m not sure if this is intended behaviour, but I assume not, because the default key bindings include these two shortcuts.

I’ve tried adding other custom shortcuts (e.g., ["super+J", "super+1"] for action 1 and ["super+1"] for action 2), and the same double-triggering behaviour occurs.

How am I meant to use key chords?
I’m using Sublime build 4126 on macOS.

0 Likes

#2

Does it happen in safe mode?

1 Like

#3

It behaves as expected is in safe mode, also with custom key chords. (That’s useful to know about, thanks!)

I discovered that the Text Pastry package is to blame. To fix it, you can disable that package, or tweak a line of the package source code, as described here.

0 Likes

#4

For the record, PackageResourceViewer: Extract Package is a hideously bad idea to use unless you are 100% cognizant of what it’s going to do, and even then it’s probably still not a good idea.

Unless Text Pastry is an abandoned package that is never going to be updated by it’s author again, those instructions are going to cause more problems than they actually solve.

0 Likes

#5

Problems other than my changes possibly being reverted after a package update? Doesn’t seem that bad of a hack…

0 Likes

#6

No, problems in that when you do it the package never updates ever… or rather, the files you extracted don’t update. So if the author updates the package, you don;t see it. If they update it in a way that adds new files, you now have an old package with random new files that may cause issues.

The appropriate thing to do is create a duplicate of only the file you want to modify and remove all of the others.

Of course, if the package is not going to ever update anyway, the point is moot. Still, PRV is exceedingly dangerous and has cause no end of problems for people, not the least of which is causing ST4 to not function at all after upgrading from ST3 because of packages that can’t ever update.

0 Likes