Obsidian-Code-Styler icon indicating copy to clipboard operation
Obsidian-Code-Styler copied to clipboard

Bug: Editing Mode Folded Codeblock Issues

Open mayurankv opened this issue 1 year ago • 3 comments

Describe the bug

Folded codeblocks in editing mode have a number of issues including:

  • [ ] Selecting and replacing (drag across codeblock and type) causes the fold region to disappear (unless you cursor into it)
  • [ ] Typing or deleting fold parameter does not automatically update folding.

Completed:

  • [x] When changing from Live Preview to Source Mode, the folded codeblocks disappear
  • [x] Excluding or ignoring codeblocks which are folded makes the folded codeblock disappear
  • [x] Temporary unfold should be applied if either end of any selection is inside the region, not just both ends

Steps to reproduce

Described above

Environment

  • Plugin Version: 1.0.4
  • Obsidian Version: 1.3.7
  • Platform: Desktop
  • OS: macOS

Screenshots

Additional context

See #30

mayurankv avatar Aug 10 '23 12:08 mayurankv