diff --git a/ROADMAP.md b/ROADMAP.md index 470867a5..c0bff674 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -567,7 +567,7 @@ Pretty much everything fold-related is blocked by [this issue](https://github.co | :white_check_mark: | zO | Open all folds under the cursor recursively. | | :white_check_mark: | zc | Close one fold under the cursor. When a count is given, that many folds deep are closed. | | :white_check_mark: | zC | Close all folds under the cursor recursively. | -| :arrow_down: | za | When on a closed fold: open it. When on an open fold: close it and set 'foldenable'. | +| :white_check_mark: | za | When on a closed fold: open it. When on an open fold: close it and set 'foldenable'. | | :arrow_down: | zA | When on a closed fold: open it recursively. When on an open fold: close it recursively and set 'foldenable'. | | :arrow_down: | zv | View cursor line: Open just enough folds to make the line in which the cursor is located not folded. | | :arrow_down: | zx | Update folds: Undo manually opened and closed folds: re-apply 'foldlevel', then do "zv": View cursor line. | diff --git a/src/actions/commands/actions.ts b/src/actions/commands/actions.ts index 44d463f3..82460e1d 100644 --- a/src/actions/commands/actions.ts +++ b/src/actions/commands/actions.ts @@ -2370,6 +2370,12 @@ abstract class CommandFold extends BaseCommand { } } +@RegisterAction +class CommandToggleFold extends CommandFold { + keys = ['z', 'a']; + commandName = 'editor.toggleFold'; +} + @RegisterAction class CommandCloseFold extends CommandFold { keys = ['z', 'c'];