Maniphest T68060

Text Editor Toggle Comment Behavior
Closed, ResolvedTO DO

Assigned To
Campbell Barton (campbellbarton)
Authored By
Campbell Barton (campbellbarton)
Aug 1 2019, 12:42 PM
Tags
  • Text Editor
Subscribers
Campbell Barton (campbellbarton)

Description

Currently the comment/uncomment logic could be improved.

Toggle-comment will un-prefix lines that begin with # but leave lines which don't.

This isn't good functionality because code blocks may already include some comments.

Instead it should only un-comment any lines if all non-blank lines begin with a comment character.

Revisions and Commits

rB Blender

Related Objects

Event Timeline

Campbell Barton (campbellbarton) created this task.Aug 1 2019, 12:42 PM
Campbell Barton (campbellbarton) updated the task description.
Campbell Barton (campbellbarton) mentioned this in T68061: Text Editor Module.
Campbell Barton (campbellbarton) lowered the priority of this task from 90 to Normal.Aug 1 2019, 12:45 PM
Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved by committing rB94dce826a9a7: Text: only un-comment blocks which are completely commented.Aug 5 2019, 8:04 AM
Campbell Barton (campbellbarton) claimed this task.
Campbell Barton (campbellbarton) added a commit: rB94dce826a9a7: Text: only un-comment blocks which are completely commented.