Text wrapping Python docstrings
Yannick Gingras <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwrite |
|---|---|
| Message-ID | <[email protected]> |
Hi everyone,
Is there an easy way to re-wrap paragraphs in Python docstrings to that
they indent to match the current block? Of example, if I have:
def foo():
""" Foo is a really cool function.
Something really long and verbose about foo() that I would type as
one really long line until I feel ready to move to the next paragraph.
"""
If I hit ALT-W, the text will re-wrap nicely, but the second line will
start at column 0. I would rather have it start at column 4 like this:
def foo():
""" Foo is a really cool function.
Something really long and verbose about foo() that I would type
as one really long line until I feel ready to move to the next
paragraph.
"""
If Kate does not support that directly, would an LSP pluggin be the
easiest approach to add this?
--
Yannick Gingras
http://ygingras.net
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEQBAbmQFumbsYmkRfiKQ8CLil3UMFAmH3bh0ACgkQiKQ8CLil 3UND+AwArru/nbCa5JO1MD+ucl3Ub3bZe946XvsDOZthjvQ9OQbPJO15n9lYZcx5 /t9a9oQYya0/Dz3dCxA8Wh5wfSaRCDfhW1EpNv5IIzUq5EilIbrPne/uwUL7K1Ia O0XuH8A+mF1tSb+MBFyYlyBHV9vPVzmNaJzAfV/BZEtmhqOkSZrFgQzLv9ro5ZRB 4qVXkRFvutIVYiIXZCFHJcGJBL3qVOE8Vf96UelduGQjDeB5dUqT8U/+65BJP1Hd 1n89ApORwBWWAHK41NvP+ugBqOGH8Frv426bw/zWo8RuTDt006B4L0UJht85/AcH VEQCdNLb4VMHZGzPQGNeXxf+f6/saESAEvLYCdYzEAofjBNk8Ct1co+4Xn1MKqWJ bcrxtEUUO0QF5XUFdW/5BOWGO6YaJul2wymYqrzYitc25Hi8sxG5dJ0c3lZygu7t Idik9jHED/B/8BAZSNEj4iJG/yHM5u92xY61FKjL7p0a33a/vcuqmwNTQKlr0aW1 9AMOXdw2 =r2Vp -----END PGP SIGNATURE-----