[TxMt] Re: problems with find_app (TextMate --> Skim sync)
FZiegler
fz.2009 at klacto.net
Fri Sep 21 05:00:19 UTC 2012
On Sep 20, 2012, at 9:45 PM, David Howden wrote:
> Hi Francois,
>
> So I've just played around with the default LaTeX bundle PDF Sync
> stuff, and it all seems to work nicely. The code you show below seems
> to be very old (and the command as it appears in the default bundle is
> quite different to the one you point to here). Is there a reason
> you're using this (older) version of the bundle?
Well, you could certainly chalk it up to laziness on my part. The fact is, I once customized (other parts of what was then) the stock bundle, so now I'm used to it and have a feeling that I know what it does. Soo... I never felt the need to switch and reimplement my customizations in the new bundle, which also felt slower when I once tried it. Nor was I ever clear what to choose between
https://github.com/textmate/latex.tmbundle
https://github.com/paulhagstrom/LaTeX.tmbundle
and other forks I may be missing. More seriously, I tried the above two this afternoon for syncing -- perhaps not hard enough, because unlike you, I wasn't successful in the TextMate --> Skim direction. Maybe it's a quirk of my setup? (I'm using 1.5.11 (1635) on OS X 10.6.8.) In any event, my "old" bundle is the only one I found a workaround in, perhaps because I understand its languages (shell and python) better than e.g. ruby.
Thanks anyway, and I'll take your word as encouragement to give a newer bundle another chance if/when I get around to it.
Francois
> Cheers,
>
> David.
>
> On 21 September 2012 10:22, FZiegler <fz.2009 at klacto.net> wrote:
>> Hello,
>>
>> I'm having trouble syncing LaTeX in the direction TextMate --> Skim. Specifically, I'm (still) using this script: http://ebundles.googlecode.com/svn/trunk/Bundles/Latex.tmbundle/Commands/Find%20in%20TeXniscope.plist
>>
>> and the following lines don't work for me:
>>
>> if [[ "$V" == Skim ]]; then
>> SCRIPT="$(find_app Skim.app)/Contents/Resources/displayline"
>> if [[ -x "$SCRIPT" ]]; then
>> "$SCRIPT" &>/dev/console "$TM_LINE_NUMBER" "$PDF" "$TM_FILEPATH"
>> else
>> echo "Unable to locate $V."
>> fi
>> fi
>>
>> I found a workaround which is to comment out and replace as follows
>>
>> if [[ "$V" == Skim ]]; then
>> SCRIPT="$(find_app Skim.app)/Contents/Resources/displayline"
>> # if [[ -x "$SCRIPT" ]]; then
>> /Volumes/Home/Applications/Skim.app/Contents/SharedSupport/displayline &>/dev/console "$TM_LINE_NUMBER" "$PDF" "$TM_FILEPATH"
>> # else
>> # echo "Unable to locate $V."
>> # fi
>> fi
>>
>> That said, I don't understand why I can't get it working in its original form, because find_app appears to work and displayline appears executable:
>>
>> FZs-MacBook:bin fz$ pwd
>> /Volumes/Home/Applications/TextMate.app/Contents/SharedSupport/Support/bin
>> FZs-MacBook:bin fz$ ./find_app Skim.app
>> /Volumes/Home/Applications/Skim.appFZs-MacBook:bin fz$ ls -l /Volumes/Home/Applications/Skim.app/Contents/SharedSupport/displayline
>> -rwxr-xr-x@ 1 fz staff 1735 Mar 12 2012 /Volumes/Home/Applications/Skim.app/Contents/SharedSupport/displayline
>> FZs-MacBook:bin fz$
>>
>> Can anyone suggest a better fix than my workaround?
>>
>> Thanks in advance,
>>
>> Francois
More information about the textmate
mailing list