<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Thats great news. You mention that the commands could update the HTML view, would they also have access to the gutter (and/or tooltips)?</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">You’ve got a good point that the process should be killed when a user no longer wants it, for my use though I can’t imagine wanting to turn the linter service off while TextMate was still open. If there was a "application-will-close" event, bundles could be responsible for cleaning up after themselves. </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">This is all fresh, but I’m sure it would be possible to work within the limits of the HTML view, but I’d rather just have gutter.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Debouncing an event like this over 300ms would mean that the event doesn’t fire until 300ms have elapsed where the trigger wasn’t re-triggered. The idea being, as the user types the linters are off, but as soon as the user pauses for 300ms, the event is fired. 300ms is totally arbitrary in this case (IIRC its what Atom Linter does).</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Here’s a quick video (someone else made) demoing the Atom Linter. <a href="https://www.youtube.com/watch?v=w3M9OmB91Uo">https://www.youtube.com/watch?v=w3M9OmB91Uo</a></div> <br> <div id="bloop_sign_1472055058388144896" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">Thanks,</div><div style="font-family:helvetica,arial;font-size:13px"><br>Graham Heath<br><br></div></div> <br><p class="airmail_on">On August 24, 2016 at 2:41:16 AM, Allan Odgaard (<a href="mailto:mailinglist@textmate.org">mailinglist@textmate.org</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>On 22 Aug 2016, at 19:15, Graham Heath wrote:<br><br>> The way Atom appears to be doing this "on change" event is by <br>> debouncing it<br>> over 300ms. ESLint-d is a daemon implementation of ESLint. IIRC it is <br>> a<br>> rather simple wrapper around ESLint that keeps the linter open in a<br>> background process.<br><br>What does “debouncing it over 300ms” mean?<br><br>> If I could get the "on change" event, I’d be happy to setup a node <br>> script<br>> that either launches a background process ("TMHinter-d" perhaps) or<br>> attaches to the existing background process.<br><br>As Jacob quoted, a re-run of commands with HTML output is in the cards. <br>I initially had postponed the idea of “regular commands” because <br>here we lack a good way to start/stop them, e.g. for HTML output one can <br>run Show Markdown Preview (or similar) and this just keeps updating <br>until the window gets closed.<br><br>This is less transparent with a command that simply runs automatically <br>on changes without first being requested by the user, and with no way <br>for the user to tell the command to stop.<br><br>But since I’m reworking all of this command execution stuff these <br>days, I’ll try to find a model for this.<br><br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br><a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a></div></div></span></blockquote></body></html>