Commit graph

7 commits

Author SHA1 Message Date
Oliver Davies f1e335a96d fix: cursor position is cached
Running the toggle command via a keymap multiple times within the same
file was always returning the first toggled line rather than updating
the cursor position and using the next line.
2022-08-08 21:20:36 -04:00
Oliver Davies 19bc23fc3e feat: allow for toggling checkboxes 2022-08-08 19:11:15 -04:00
Oliver Davies 760b74ee6e refactor: extract a function for writing a line 2022-08-08 18:45:22 -04:00
Oliver Davies 2a4c5b0682 feat: set the cursor to the original position 2022-08-08 18:29:55 -04:00
Oliver Davies c8da955004 feat: check or uncheck the current line 2022-08-08 18:27:19 -04:00
Oliver Davies 805aeab265 feat: determine if a line contains a checked box 2022-08-08 14:05:45 -04:00
Oliver Davies 6151b3c0e2 feat: check and uncheck checkboxes 2022-08-08 13:58:47 -04:00