Lukasa / language-restructuredtext

A ReStructuredText syntax package for Atom
MIT License
27 stars 15 forks source link

Dynamic-size underline for section snippets #7

Closed e2jk closed 7 years ago

e2jk commented 9 years ago

Follow up on #5:

Commit 7897d5b7983e862185179e739fe9e838db5a79ac replaced the non-working regexes with fixed-size underline, rendering these snippets more useful in the short term. However, ideally we would like to have the underlines be generated dynamically: the number of underline characters should be the same as the section name's length.

That would likely require a post-snippet-editing mechanism be added to the snippet package?

Alhadis commented 7 years ago

I added a command to resize underlines to fit their section names. Open the command palette and search for Language Restructuredtext: Fit Borders. That'll update the border that's currently under the cursor.