Skip to content

Code folding for the Inkdrop Markdown editor, with a fold gutter and quick commands to toggle, fold all, and unfold all.

License

Notifications You must be signed in to change notification settings

Keisir/inkdrop-code-fold

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Fold

A lightweight way to fold Markdown sections and fenced code blocks right inside Inkdrop’s editor. Adds a fold gutter and commands so you can focus on the parts that matter.

Usage

  • Fold indicators are always visible in the left gutter. Click them to fold or unfold a block.
  • Or use the commands and default keybindings below. Commands are available using Telescope by searching for "Code Fold:"

Default keybindings

Commands and default keybindings

  • Ctrl+M Ctrl+L: Toggle fold at cursor (code-fold:toggle-fold)
  • Ctrl+M Ctrl+8: Fold all (code-fold:fold-all)
  • Ctrl+M Ctrl+9: Unfold all (code-fold:unfold-all)

Provided for compatibility with v1.x:

  • Ctrl+Shift+E / Cmd+Shift+E: Fold all (code-fold:fold-all)
  • Ctrl+Shift+R / Cmd+Shift+R: Unfold all (code-fold:unfold-all)

You can customize or add your own keybindings from Inkdrop's Preferences > Keybindings.

Changelog

2.0.0

  • Support Inkdrop v6
  • Migrated from CodeMirror v5 to v6

About

Code folding for the Inkdrop Markdown editor, with a fold gutter and quick commands to toggle, fold all, and unfold all.

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 100.0%