Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/checkboxes #4

Open
wants to merge 27 commits into
base: develop
Choose a base branch
from

Conversation

aboukirev
Copy link

Implements checkboxes and ratio/percent summary cookies reflecting how many child checkboxes are ticked relative to the total number of children of one level below the summary.

Operates on expanded summary cookies or placeholders ([/] or [%] respectively).

Checkboxes are tri-state: [ ] - unchecked, [x] or [X] - checked, [-] - undetermined.

List levels are detected by indent. Indent calculation accounts for tabs taking tab size from workspace configuration for the document and expanding tabs as necessary.

By default summary update is triggered by Ctrl+Alt+o # and checkbox toggle is triggered by Ctrl+Alt+o x key combinations.

src/checkboxes.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants