<div dir="ltr">Seems like <a href="https://github.com/brookhong/DBGPavim">https://github.com/brookhong/DBGPavim</a> would be a good place to start for a TM2 native version.</div><div class="gmail_extra"><br><div class="gmail_quote">On 6 May 2016 at 17:15, feek <span dir="ltr"><<a href="mailto:feekdiv@gmail.com" target="_blank">feekdiv@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
because I post via Nabble.com, I see that my TM-command did not show up in<br>
the e-mail:<br>
<br>
=== Code<br>
<br>
#!/usr/bin/env bash<br>
<br>
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && .<br>
"${TM_SUPPORT_PATH}/lib/bash_init.sh"<br>
<br>
# Open current file on current line in VIM in a iTerm session<br>
<br>
osascript << END<br>
if application "iTerm" is running then<br>
-- iTerm is running<br>
if (count windows of application "iTerm") is 0 then<br>
-- NO window is found<br>
tell application "iTerm"<br>
set newWindow to (create window with default profile)<br>
tell current window<br>
tell current session<br>
write text "vi +$TM_LINE_NUMBER \"$TM_FILEPATH\""<br>
end tell<br>
end tell<br>
end tell<br>
else<br>
-- Window(s) Found<br>
tell application "iTerm"<br>
select first window<br>
tell current window<br>
set newTab to (create tab with default profile)<br>
tell current session<br>
write text "vi +$TM_LINE_NUMBER \"$TM_FILEPATH\""<br>
end tell<br>
end tell<br>
--set newWindow to (create window with default profile)<br>
end tell<br>
end if<br>
else<br>
-- iTerm is NOT running<br>
tell application "iTerm"<br>
activate<br>
tell current window<br>
tell current session<br>
write text "vi +$TM_LINE_NUMBER \"$TM_FILEPATH\""<br>
end tell<br>
end tell<br>
end tell<br>
end if<br>
END<br>
<br>
=== END CODE<br>
<br>
also see<br>
<a href="http://textmate.1073791.n5.nabble.com/PHP-debug-workflow-suggestions-td29945.html" rel="noreferrer" target="_blank">http://textmate.1073791.n5.nabble.com/PHP-debug-workflow-suggestions-td29945.html</a><br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://textmate.1073791.n5.nabble.com/PHP-debug-workflow-suggestions-tp29945p29969.html" rel="noreferrer" target="_blank">http://textmate.1073791.n5.nabble.com/PHP-debug-workflow-suggestions-tp29945p29969.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the textmate users mailing list archive at Nabble.com.<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" rel="noreferrer" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Kind regards,</div><div>George.</div><div><br></div><a href="http://gsgd.co.uk" target="_blank">http://gsgd.co.uk</a></div></div>
</div>