[TxMt] Re: PHP debug workflow suggestions
George McGinley Smith
george at gsgd.co.uk
Tue May 10 12:02:08 UTC 2016
Seems like https://github.com/brookhong/DBGPavim would be a good place to
start for a TM2 native version.
On 6 May 2016 at 17:15, feek <feekdiv at gmail.com> wrote:
> Hi,
>
> because I post via Nabble.com, I see that my TM-command did not show up in
> the e-mail:
>
> === Code
>
> #!/usr/bin/env bash
>
> [[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && .
> "${TM_SUPPORT_PATH}/lib/bash_init.sh"
>
> # Open current file on current line in VIM in a iTerm session
>
> osascript << END
> if application "iTerm" is running then
> -- iTerm is running
> if (count windows of application "iTerm") is 0 then
> -- NO window is found
> tell application "iTerm"
> set newWindow to (create window with default
> profile)
> tell current window
> tell current session
> write text "vi +$TM_LINE_NUMBER
> \"$TM_FILEPATH\""
> end tell
> end tell
> end tell
> else
> -- Window(s) Found
> tell application "iTerm"
> select first window
> tell current window
> set newTab to (create tab with default
> profile)
> tell current session
> write text "vi +$TM_LINE_NUMBER
> \"$TM_FILEPATH\""
> end tell
> end tell
> --set newWindow to (create window with default
> profile)
> end tell
> end if
> else
> -- iTerm is NOT running
> tell application "iTerm"
> activate
> tell current window
> tell current session
> write text "vi +$TM_LINE_NUMBER
> \"$TM_FILEPATH\""
> end tell
> end tell
> end tell
> end if
> END
>
> === END CODE
>
> also see
>
> http://textmate.1073791.n5.nabble.com/PHP-debug-workflow-suggestions-td29945.html
>
>
>
> --
> View this message in context:
> http://textmate.1073791.n5.nabble.com/PHP-debug-workflow-suggestions-tp29945p29969.html
> Sent from the textmate users mailing list archive at Nabble.com.
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
--
Kind regards,
George.
http://gsgd.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160510/248fc610/attachment.html>
More information about the textmate
mailing list