mProjectsCode / mProjectsCode/obsidian-shiki-plugin
Feature: Add global 'EC defaults' setting for `hangingIndent=[int]`
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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