Open malkoG opened 1 year ago
Abstracted implementation would be like this:
commentable node
that includes the range by accessing ancestors
Range(start_point: (row: line_number, col: end_of_line), end_point: (row: line_number, col: end_of_line))
toggle
command do not anything. do not continues to Step 4If we pass the range of line number to toggle command, we can do it with set's union operation.
This subcommand will toggle line comment labeled
[TODO]
to[DONE]
Usage of this would be integration with editor plugin (such as VSCode, Neovim)Example
balpan toggle models/post.py:100
balpan toggle models/post.py:100-200