diff options
Diffstat (limited to 'plugins/snippets/data')
-rw-r--r-- | plugins/snippets/data/python.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/snippets/data/python.xml b/plugins/snippets/data/python.xml index 3829c3a0..14fc1b4e 100644 --- a/plugins/snippets/data/python.xml +++ b/plugins/snippets/data/python.xml @@ -109,4 +109,15 @@ $0]]></text> <description>main</description> <tag>main</tag> </snippet> + + <snippet id="Toggle comments"> + <text><![CDATA[$< +from snippets import toggle_lines +lines = $PLUMA_SELECTED_TEXT or $PLUMA_CURRENT_LINE +return toggle_lines(lines, comment="#", after_leading_space=True, comment_empty=False) +>]]></text> + <description>Toggle comment</description> + <accelerator><![CDATA[<Primary>m]]></accelerator> + </snippet> + </snippets> |