diff options
author | Andrew Fowlie <[email protected]> | 2019-01-16 15:11:59 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-26 15:07:22 +0200 |
commit | 8e7e455f4327317fe711f086fbf315698324df30 (patch) | |
tree | 807514c15528f614759fbf8f1a35f0e29187231d /plugins/snippets/data | |
parent | 670372615b0ffcd6aef09892e5df134580c3282c (diff) | |
download | pluma-8e7e455f4327317fe711f086fbf315698324df30.tar.bz2 pluma-8e7e455f4327317fe711f086fbf315698324df30.tar.xz |
add snippet to toggle comment/uncomment
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> |