You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+69Lines changed: 69 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,74 @@ let g:bullets_renumber_on_change = 0
162
162
" 3. third existing bullet [ no renumbering so this bullet remained `3` ]
163
163
```
164
164
165
+
Enable/disable toggling parent and child checkboxes to indicate "completion" of child checkboxes:
166
+
167
+
```vim
168
+
let g:bullets_nested_checkboxes = 1 " default = 1
169
+
" Example:
170
+
" - [ ] first bullet
171
+
" - [ ] child bullet [ type <leader>x ]
172
+
" - [ ] sub-child
173
+
" - [ ] child bullet
174
+
"
175
+
" Result:
176
+
" - [o] first bullet [ <- indicates partial completion of sub-tasks ]
177
+
" - [X] child bullet
178
+
" - [X] sub-child [ <- children get checked when parents get checked ]
179
+
" - [ ] child bullet
180
+
```
181
+
182
+
Define the checkbox markers to use to indicate unchecked, checked, and "partially" checked. When only two marker characters are defined, the use of partial completion markers will be disabled. If more than two markers are defined, each character between the first and last characters will be used to indicate a percentage of the child checkboxes that are checked. Each marker corresponds to 1/n, where n is the number of partial completion markers. By default, there are three partial completion markers, `.`, `o`, and `O`, corresponding to 33%, 66%, and up to but less than 100%, respectively. Note that unchecked (`[ ]`) and checked (`[x]` or `[X]`) statuses using the default markers are always valid, even if you set custom markers for unchecked and checked.
183
+
184
+
```vim
185
+
let g:bullets_checkbox_markers = ' .oOX'
186
+
" Example:
187
+
" - [o] parent bullet [ <- `o` indicates 66% - 99% of children are checked ]
0 commit comments