Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

There are a few issues still, obviously šŸ˜…

One has to do with the first heading in a file, when the file has no frontmatter, and no content before the heading. I think I have a fix/workaround for this.

The other one, sub-headings getting unfolded, is a little misleading, I think. It may depend on how you unfold it, and the content of the folded area.

Headings unfold automatically when the cursor moves into the folded content. If you fold a heading, and then press the left arrow key to move into the folded area (from the right side), you’re actually moving into last character of the folded content (which in that case is inside ### Heading... which is inside ## Bug?, so they all get unfolded at once).

If you double click the # heading prefix, or use a shortcut key to unfold the first heading only, or click the fold placeholder, I think you won’t see the recursive unfold you’re seeing now.

There’s some misleading behavior for unfolding as well, that I want to fix. If your cursor is after the fold marker, the unfold key won’t affect that line, but will if you use the command from before the fold marker.

I’m not super happy with that behavior overall, and want to change it in the future.

There’s another bug (that this exposed) where you may see two headings on a single line when using fold all. I think I have a fix for that one as well.

don’t you think that the shortcut to fold the current selection, should unfold the selection too

There’s a separate shortcut for that! … but not in the default bindings.

With emacs bindings, it’s C-x C-e, with vim it will be za. I need to add one for the default bindings as well, but haven’t decided on the key to use for it, that won’t interfere with default bindings, or come as a big surprise. By default, I don’t believe sublime (which the default bindings are based on) supports a fold-toggling key.

Thanks again!