<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Allan, thanks for quick response. Well, here are my tasks:<div class=""><br class=""></div><div class="">before save the python document,</div><div class=""><br class=""></div><div class="">- run `isort` then (first)</div><div class="">- run `flake8` (second)</div><div class=""><br class=""></div><div class="">then do the save (textmate is handling this)</div><div class=""><br class=""></div><div class="">after save,</div><div class=""><br class=""></div><div class="">- run `flake8`</div><div class="">- run `pylint`</div><div class=""><br class=""></div><div class="">You can check the bundle here : <a href="https://github.com/vigo/textmate2-python-fmt" class="">https://github.com/vigo/textmate2-python-fmt</a></div><div class=""><br class=""></div><div class="">also; <a href="https://github.com/vigo/textmate2-python-fmt/blob/master/Support/python_helper.rb" class="">https://github.com/vigo/textmate2-python-fmt/blob/master/Support/python_helper.rb</a></div><div class=""><br class=""></div><div class="">currently I have 2 different commands, one is running on "will-save" other is running on "did-save". On "will-save" I'm calling a function which handles "black" and "isort" sequentially. I'm planning to seperate functions by using "will-save". I guess I can do it right now. or mine is already ok? Would be great if you can skim out the bundle...</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""><div class=""><div class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 13px;" class="">---</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 13px;" class="">Uğur "vigo" Özyılmazel</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 13px;" class=""><br class=""></div><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 13px;" class=""><span style="font-size: small;" class=""><a href="https://github.com/vigo" class="">https://github.com/vigo</a></span></div><div class=""><font size="2" class=""><a href="https://gitbook.com/@vigo" class="">https://gitbook.com/@vigo</a></font></div><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 13px;" class=""><a href="http://ugur.ozyilmazel.com" class="">http://ugur.ozyilmazel.com</a> | @vigobronx</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-size: small;" class=""><a href="http://devpod.org" class="">http://devpod.org</a> | @podcastmaster</span></div><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><font size="2" class=""><div class=""><a href="http://gelistiriciyiz.biz" class="">http://gelistiriciyiz.biz</a> | @gelistiriciyiz</div></font></div></div></div></div></div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 29 Nov 2018, at 12:46, Allan Odgaard <<a href="mailto:mailinglist@textmate.org" class="">mailinglist@textmate.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8" class="">
<div class="">
<div style="font-family:sans-serif" class=""><div style="white-space:normal" class=""><p dir="auto" class="">On 29 Nov 2018, at 14:24, Uğur Özyılmazel (vigo) wrote:</p>
</div>
<div style="white-space:normal" class=""><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px" class=""><p dir="auto" class="">Hi. Let's say I have 3 commands and they all use `callback.document.will-save` as semantic class. What is the order of execution? or How can I set the order?</p>
</blockquote></div>
<div style="white-space:normal" class=""><p dir="auto" class="">In practice TextMate keeps all items in an ordered container indexed by their semantic class.</p><p dir="auto" class="">So you should be able to add an alphanumeric suffix to the semantic class to affect sorting, e.g.:</p>
<ul class="">
<li class=""><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7" class="">callback.document.will-save.1</code></li>
<li class=""><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7" class="">callback.document.will-save.2</code></li>
<li class=""><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7" class="">callback.document.will-save.3</code></li>
</ul><p dir="auto" class="">Can you let me know what the 3 callbacks each do? Using the semantic class system for callbacks was a quick prototype that never evolved into a proper system, but I still have an open issue about it, so it would be good to add dependency requirement examples to this issue.</p>
</div>
</div>
</div>
<br class="">_______________________________________________<br class="">textmate mailing list<br class=""><a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a><br class="">https://lists.macromates.com/listinfo/textmate</div></blockquote></div><br class=""></div></div></div></body></html>