hawkins / Touchdown.vim

A Vim plugin for Markdown editing focused on To-Do lists, supporting GitHub Flavored Markdown
0 stars 1 forks source link

Folding unordered lists #6

Closed hawkins closed 6 years ago

hawkins commented 6 years ago

I would like to fold any N>1 depth list as follows:

\tf:

- Topic                   <--- Cursor here
  - Content 1
  - Content 2
     - Content 2.1

to

+ Topic

Note that N>1 means that we can't fold Content 1, but we can fold Content 2 or Topic.

Bonus: In the event we have * as the list marker, replace it with + still but go back to * when unfolded.

hawkins commented 6 years ago

Part of #5

hawkins commented 6 years ago

See http://learnvimscriptthehardway.stevelosh.com/chapters/49.html ?