MacDownApp / MacDownApp/macdown

list commands toggle when no content in item

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

Nobody has claimed this yet.

enhancement
Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Sometimes when I'm in a list I want to have a sub-item of another type. For example, I'm typing an ordered list and I want the subitem to be unordered (as below). It would be nice if the two list-item commands recognized when the row they're in had no content beyond the list marker and switched that marker to the selected type. Right now, they insert a new item marker at _the start_ of the line.

### Demo

1. Item 1
1. Item 2
- sub-item 1
1. item 3

Contributor guide

Open the contributing guide

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

Reproduce the Demo in the macOS editor and inspect the two list-item commands that handle ordered and unordered markers. Verify that selecting the other list type on an empty list row replaces the existing marker rather than inserting a new marker at the line start, while non-empty rows keep their current behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, markdown, objective-c
Domain
desktop
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.