masukomi / masukomi/vim-markdown-folding

Folds open when adding dashed list items

Open
#45 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
257
Forks
44
PR merge metrics
No merged PRs in 30d

Description

When adding a new row to a dashed list, the sibling folds of the current fold open. I would expect folds to stay unchanged.

Here's a demo: https://www.loom.com/share/61c7cb4af99d46bf991322bd202db109. In the demo I'm just adding a new row (starting with `o` to add a new line, then just typing `- hi`).

Does anyone else have this problem or know how I can address it? Possibly it's interference with something else in my vimrc.

Here's the sample text from that demo:
```
# Level 0

## level 1

### level 2

lorem ipsum
- asdf
- hi

### more stuff

lorem ipsum

### more stuff

lorem ipsum
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in Vim with the sample Markdown and the described insertion sequence, checking whether the vimrc affects it. Trace the folding behavior triggered when adding a dashed list item and compare sibling folds before and after insertion. Done means adding the row leaves sibling folds unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.