[TxMt] About the reStructuredText bundle
Allan Odgaard
throw-away-1 at macromates.com
Mon Apr 30 00:18:20 UTC 2007
On 29. Apr 2007, at 00:20, Steve Lianoglou wrote:
>> The original was setting/using the value of the TM_PYTHON variable
>> instead.
> So .. I still think this is broken in the bundle.
>
> If I get it correct, then as the current "Validate Syntax" command
> stands, it sets TRST like so: `TRST=${TM_PYTHON:=rst2html.py}`
> which will set TRST to rst2html.py unless $TM_PYTHON is set.
Yes, this is clearly wrong. I checked in a fix.
>>> (2) I feel like the "Convert Document to HTML" command should
>>> have its output set to "Create New Document" instead of replacing
>>> the reST in the file w/ the HTML so you don't blow out the file
>>> you've been working on.
>> I think this follows the similar command in Markdown. I guess the
>> idea is that you would only want to use this command within a
>> bigger HTML document. i.e. you have an HTML document and want to
>> add something you've written in reST. Then you copy and paste it
>> in, then select it and convert it to HTML (It's rather unfortunate
>> that you have to select it again I guess).
> Ahh .. I see. I can see the use for that. I'll just keep my own
> command along side it to output to a new document for when I don't
> want that to happen.
Yeah, we had a thread about the issue for Markdown [1]. I think the
in-place conversion makes sense, but definitely not everyone does.
For now people will just have to locally change the output to “New
Window” :)
[1] http://lists.macromates.com/pipermail/textmate/2007-April/
018735.html
More information about the textmate
mailing list