jamalsenouci / sublimetext-syntaxfold

Sublime Text Plugin that provides a configurable command and popup for folding code based on syntax
MIT License
40 stars 6 forks source link

Only Command Palette commands work #33

Open YourFutureHusband opened 6 years ago

YourFutureHusband commented 6 years ago

All the keybinds used to work perfectly. For whatever unknown reason they stopped working and now the folding only works by using the Command Palette.

Any solutions for this problem?

jayseweaver commented 6 years ago

The default keybinds have changed. Press each keybind twice (i.e. double tap 1 while holding alt), or change the keybind in the .sublime-keymap file.

Defaults, for reference:

// Fold all code blocks { "keys": ["alt+0", "alt+0"], "command": "fold_all" },

// Unfold all code blocks { "keys": ["alt+shift+0", "alt+shift+0"], "command": "unfold_all"},

// Toggle fold current code block { "keys": ["alt+1", "alt+1"], "command": "toggle_fold_current"},

AlLoud commented 6 years ago

You can define all of the keybindings through the main menu: Preferences > Package Settings > Syntax Fold >Key Bindings - User.