Lukasa / language-restructuredtext

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

Link snippet starts with newline, lacks space. #29

Closed bilderbuchi closed 8 years ago

bilderbuchi commented 8 years ago

If I add a link in running text using the snippet, e.g. My homepage is at lin<Tab>, there are several issues. First, the snippet starts with a newline, so it autofills to

My homepage is at 
`Title<http://link>`_

which does not look like it's desired.

Second, there is no space between Title and <, which apparently is illegal link markup, so when I fill out the link with bar<Tab>foo.com, my Sphinx complains with ERROR: Unknown target name: "bar<foo.com>". :-( Adding a space after bar fixes the issue, so this probably should be made part of the snippet?

Third, after filling the Title and URL, I would have expected another <Tab> to jump the cursor to after the snippet so that I can continue typing, but this only adds a tab-space after the URL. Am I using this wrong, or is this a bug?

This is with version 0.10.0, on Atom 1.3.0.

Lukasa commented 8 years ago

Thanks for the report!

Yeah, both of those are hilariously wrong. I've just pushed 0.11.0 which should fix this. Thanks! :sparkles: :cake: :sparkles:

bilderbuchi commented 8 years ago

hah, great! awesome response time, thanks!

Lukasa commented 8 years ago

;) My pleasure! You caught me in-between sessions of sitting with my head in my hands weeping softly about flow control and backpressure, so this was light relief in comparison. You have a great day now!

bilderbuchi commented 8 years ago

ah, nice. process engineer or something?

Lukasa commented 8 years ago

Networks: right now specifically HTTP/2 and Python.

bilderbuchi commented 8 years ago

ah ^^. you had me thinking about these.

Lukasa commented 8 years ago

Heh, flow control and back pressure are terms deliberately intended to be analogous to fluid flow.