mProjectsCode / mProjectsCode/obsidian-shiki-plugin

Feature: Add global 'EC defaults' setting for `hangingIndent=[int]`

Open Beginner friendly
#88 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

'EC defaults' contains the 'Wrap' setting which controls whether code block lines wrap by default. Expressive Code also supports specifying a Hanging Indent, defining a number of columns by which all wrapped lines should be indented.

Describe the solution you'd like
Add a 'Hanging Indent' option to 'EC defaults', allowing users to "define a number of columns by which all wrapped lines should be indented" as an integer value (positive or negative), with a default value of 0.

Additional context
Without a global plugin option, specifying a hanging indent must be done manually in the meta information of a code block, e.g.,

// some code

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 at the existing “EC defaults” configuration and the code-block hangingIndent metadata path described in the issue. Add an integer Hanging Indent option with a default of 0, supporting positive and negative values, and verify that the global setting applies while block-level metadata remains supported.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.