mProjectsCode / mProjectsCode/obsidian-shiki-plugin

Add default style of collapsed sections globally

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
238
Forks
25
PR merge metrics
No merged PRs in 30d

Description

It annoys me that I have to reload the page or edit the code block if I collapsed a section and then want to re-collapse the section again.

Please add the option in the EC defaults settings to set the default style (github, collapsible-start, collapsible-end, or collapsible-auto) of the collapsed code.

Re-collapsible lines example

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 locating the EC defaults settings and the existing handling for collapsed code sections. Add a default-style option with github, collapsible-start, collapsible-end, and collapsible-auto choices, then verify that collapsing and re-collapsing sections uses the selected style without requiring a reload or code edit.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.