<div dir="ltr">Quick bug report:<div><br></div><div>The following seems to consistently crash for me:</div><div><br></div><div>1) Preview a markdown doc under version control</div><div>2) Make changes</div><div>3) Save</div><div>4) SCM Revert current file</div><div><br></div><div>Thanks,</div><div>George</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 29 Sep 2016 at 21:32 Graham Heath <<a href="mailto:graham.p.heath@gmail.com">graham.p.heath@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><div id="m_5939426199227378017bloop_customfont" style="margin:0px" class="gmail_msg">This is huge!</div><div id="m_5939426199227378017bloop_customfont" style="margin:0px" class="gmail_msg"><br class="gmail_msg"></div><div id="m_5939426199227378017bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto" class="gmail_msg">Thanks so much for this! I’ll be hopefully carving out a big chunk for this work this weekend!</div><div id="m_5939426199227378017bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto" class="gmail_msg"><br class="gmail_msg"></div><div id="m_5939426199227378017bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto" class="gmail_msg">I’ll be sure to keep you updated.</div> <br class="gmail_msg"> <div id="m_5939426199227378017bloop_sign_1475170267425325824" class="m_5939426199227378017bloop_sign gmail_msg"><div style="font-family:helvetica,arial;font-size:13px" class="gmail_msg">Thanks again,</div><div style="font-family:helvetica,arial;font-size:13px" class="gmail_msg"><br class="gmail_msg">Graham Heath<br class="gmail_msg"><br class="gmail_msg"></div></div></div><div style="word-wrap:break-word" class="gmail_msg"> <br class="gmail_msg"><p class="m_5939426199227378017airmail_on gmail_msg">On September 28, 2016 at 11:42:25 AM, Allan Odgaard (<a href="mailto:mailinglist@textmate.org" class="gmail_msg" target="_blank">mailinglist@textmate.org</a>) wrote:</p> <blockquote type="cite" class="m_5939426199227378017clean_bq gmail_msg"><span class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"></div><div class="gmail_msg">






<div style="font-family:sans-serif" class="gmail_msg">
<div style="white-space:normal" class="gmail_msg">
<p dir="auto" class="gmail_msg">A few “typos” made it into my email.</p>
<p dir="auto" class="gmail_msg">The values should have been <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">onDocumentChange</code> and <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">onDocumentSave</code> rather than <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">documentDidChange</code> and <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">documentDidSave</code>. The latter though is what
they’ll likely be changed to.</p>
<p dir="auto" class="gmail_msg">And the environment variable present for successive
runs is <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">TM_REFRESH</code>.</p>
<p dir="auto" class="gmail_msg">Here’s an example which works with the current
nightly build: <a href="https://github.com/textmate/markdown.tmbundle/blob/live-preview/Commands/Markdown%20preview.plist" style="color:#3983c4" class="gmail_msg" target="_blank">https://github.com/textmate/markdown.tmbundle/blob/live-preview/Commands/Markdown%20preview.plist</a></p>
<p dir="auto" class="gmail_msg">On 28 Sep 2016, at 16:59, Allan Odgaard wrote:</p>
<p dir="auto" class="gmail_msg"></p>
</div>
<div style="white-space:pre-wrap" class="gmail_msg"></div>
<blockquote style="border-left:2px solid #777;color:#777;margin:0 0 5px;padding-left:5px" class="gmail_msg">
<div id="m_593942619922737801703612419-B798-43D2-B685-328E1894BBCC" class="gmail_msg">
<div style="font-family:sans-serif" class="gmail_msg">
<div style="white-space:normal" class="gmail_msg">
<p dir="auto" class="gmail_msg">On 24 Aug 2016, at 18:26, Graham Heath wrote:</p>
<p dir="auto" class="gmail_msg">Current test build has a preliminary implementation
of this feature.</p>
<p dir="auto" class="gmail_msg"></p>
</div>
<div style="white-space:pre-wrap" class="gmail_msg">
<blockquote style="border-left:2px solid #777;color:#777;margin:0 0 5px;padding-left:5px" class="gmail_msg">
<div dir="auto" class="gmail_msg">Thats great news. You mention that the commands
could update the HTML view,</div>
<div dir="auto" class="gmail_msg">would they also have access to the gutter (and/or
tooltips)?</div>
</blockquote>
</div>
<div style="white-space:normal" class="gmail_msg">
<p dir="auto" class="gmail_msg">You can access gutter via <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">$TM_MATE</code> and tool tips can be shown by
using <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">$DIALOG</code>.</p>
<p dir="auto" class="gmail_msg"></p>
</div>
<div style="white-space:pre-wrap" class="gmail_msg">
<blockquote style="border-left:2px solid #777;color:#777;margin:0 0 5px;padding-left:5px" class="gmail_msg">
<div dir="auto" class="gmail_msg">You’ve got a good point that the process should be
killed when a user no</div>
<div dir="auto" class="gmail_msg">longer wants it, for my use though I can’t imagine
wanting to turn the</div>
<div dir="auto" class="gmail_msg">linter service off while TextMate was still open.
If there was a</div>
<div dir="auto" class="gmail_msg">"application-will-close" event, bundles could be
responsible for cleaning</div>
<div dir="auto" class="gmail_msg">up after themselves.</div>
</blockquote>
</div>
<div style="white-space:normal" class="gmail_msg">
<p dir="auto" class="gmail_msg">Here is the preliminary documentation (I will likely
change the keys to match the semantic classes and also make it a
mask rather than either/or):</p>
<hr style="background:#333;background-image:linear-gradient(to right,#ccc,#333,#ccc);border:0;min-height:1px" height="1" class="gmail_msg">
<p dir="auto" class="gmail_msg">New <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">autoRefresh</code> key that can be set in
<code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">tmCommand</code>, value can be either:</p>
<ul class="gmail_msg">
<li class="gmail_msg"><code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">documentDidChange</code>: Re-run the command
after document has changed.</li>
<li class="gmail_msg"><code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">documentDidSave</code>: Re-run the command after
a file in the project has been saved (after delay to coalesce
multiple documents being saved).</li>
</ul>
<p dir="auto" class="gmail_msg">If a document has <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">autoRefresh</code> set to <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">onDocumentChange</code> it will stop running if
the document is closed. If there is a HTML output window, this
window will then also close.</p>
<p dir="auto" class="gmail_msg">If a command has HTML output, closing the HTML output
will stop running the command.</p>
<p dir="auto" class="gmail_msg">If the user runs a command with <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">autoRefresh</code> enabled for a second time, and
there is an open HTML output window associated with the command,
then it brings the window to front, otherwise it will stop the
first instance.</p>
<p dir="auto" class="gmail_msg">For successive command executions the <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">TM_REFREH</code> environment variable is present
and set to <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">YES</code>.</p>
<p dir="auto" class="gmail_msg">Planned: If the command’s title matches: <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">(\w+) / (\w+) (.+)</code> then it will show as
<code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">$1 $3</code> by default and <code style="background-color:#f7f7f7;border-radius:3px;margin:0;padding:0 0.4em" bgcolor="#F7F7F7" class="gmail_msg">$2 $3</code> when running. This means the command
can be named “Show / Hide Preview” and will appear as “Show
Preview” unless the preview is already showing, in which case it
becomes “Hide Preview”.</p>
<p dir="auto" class="gmail_msg"></p>
</div>
<div style="white-space:pre-wrap" class="gmail_msg">
<blockquote style="border-left:2px solid #777;color:#777;margin:0 0 5px;padding-left:5px" class="gmail_msg">
<div dir="auto" class="gmail_msg">Debouncing an event like this over 300ms would mean
that the event doesn’t</div>
<div dir="auto" class="gmail_msg">fire until 300ms have elapsed where the trigger
wasn’t re-triggered.</div>
</blockquote>
</div>
<div style="white-space:normal" class="gmail_msg">
<p dir="auto" class="gmail_msg">Such complicated terms for “when the user is idle”
:)</p>
</div>
</div>
</div>
</blockquote>
<div style="white-space:normal" class="gmail_msg">
<div dir="auto" class="gmail_msg"></div>
<blockquote style="border-left:2px solid #777;color:#777;margin:0 0 5px;padding-left:5px" class="gmail_msg">
<div dir="auto" class="gmail_msg"></div>
<div dir="auto" class="gmail_msg">
_______________________________________________</div>
<div dir="auto" class="gmail_msg">textmate mailing list</div>
<div dir="auto" class="gmail_msg"><a href="mailto:textmate@lists.macromates.com" class="gmail_msg" target="_blank">textmate@lists.macromates.com</a></div>
</blockquote>
</div>
<div style="white-space:normal" class="gmail_msg">
<blockquote style="border-left:2px solid #777;color:#777;margin:0 0 5px;padding-left:5px" class="gmail_msg">
<p dir="auto" class="gmail_msg"><a href="http://lists.macromates.com/listinfo/textmate" style="color:#777" class="gmail_msg" target="_blank">http://lists.macromates.com/listinfo/textmate</a></p>
</blockquote>
</div>
</div>



<br class="gmail_msg">_______________________________________________
<br class="gmail_msg">textmate mailing list
<br class="gmail_msg"><a href="mailto:textmate@lists.macromates.com" class="gmail_msg" target="_blank">textmate@lists.macromates.com</a>
<br class="gmail_msg"><a href="http://lists.macromates.com/listinfo/textmate" class="gmail_msg" target="_blank">http://lists.macromates.com/listinfo/textmate</a></div></div></span></blockquote></div>
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
textmate mailing list<br class="gmail_msg">
<a href="mailto:textmate@lists.macromates.com" class="gmail_msg" target="_blank">textmate@lists.macromates.com</a><br class="gmail_msg">
<a href="http://lists.macromates.com/listinfo/textmate" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.macromates.com/listinfo/textmate</a></blockquote></div>