Hi,
i just checked if skim and the sync with skim works, but it does not. Is there a way to solve this?
Best -- Christian
-Because I'm the CEO, and I think it can be done.-
Steve Jobs, 2005
On Mon, Dec 19, 2011 at 5:22 PM, Christian Pleul chrisptex@googlemail.com wrote:
i just checked if skim and the sync with skim works, but it does not.
Works for me...
I have a strange issue with Skim + TextMate 2. When using the Skim -> TextMate syncTeX (i.e. Cmd-Shift-Click to show place in the TeX file), occasionally TM2 opens a new window with the TeX file in rather than switching to the window where it is already open (i.e. where it was compiled from). This happens intermittently. It seems that if I launch Skim before I launch TM2 this goes away though?
I have switched the settings in Skim to call a shell script which records the file path that Skim is requesting from TextMate. When running this command from a terminal, TM2 consistently opens the document in the correct window.
Anyone have a similar problem?
Thanks,
David.
OK, so I can get around this problem by getting Skim to run a python script, which I've named open_in_mate.py:
#!/usr/bin/env python
import urllib import os import sys
commandString = "open "txmt://open?url=file://%s&line=%s"" % (urllib.quote(sys.argv[1]), sys.argv[2])
os.system(commandString)
But when I swap back to using the mate command the inconsistency is still there, i.e.:
1) open_in_mate.py %file %line is set as Skim's command to fire when you Cmd+Shift+Click on somewhere 2) Test it, works fine - jumps to TM with the file open in the correct window 3) Swap Skim settings to use /usr/local/bin/mate -l %line "%file" 4) Test it, jumps to TM but the file is open in a different window
This appears to be a very peculiar bug with the mate terminal command - any comments Allan?
Thanks,
David.
Same problem here, although it always happens (not intermittently).
Could you solve it in the meantime David ?
Regards,
C.
On Tuesday, December 20, 2011 12:20:54 PM UTC+1, Charles Turner wrote:
On Mon, Dec 19, 2011 at 5:22 PM, Christian Pleul chrisptex@googlemail.com wrote:
i just checked if skim and the sync with skim works, but it does not.
Works for me...
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Yes, so if you use the script (http://pastie.textmate.org/3872987) as an intermediary between textmate and skim, then all seems to work fine.
You need to make sure that the txmt:// URL scheme is bound to TM2 and not TM1 (whenever you launch TM1 it claims the URL, for TM2 to claim it you need to open the Terminal tab in the preferences dialog).
In the Sync tab of the Skim preferences you need to set:
PDF-Tex Sync support: Preset: Custom Command: /Users/yourname/open_in_mate.py (or to wherever you save the script!) Arguments: "%file" %line
This seemed to fix the problem for me.
David.
On Mon, May 7, 2012 at 11:13 AM, Agnostic Otter agnostic.otter@gmail.comwrote:
Same problem here, although it always happens (not intermittently).
Could you solve it in the meantime David ?
Regards,
C.
On Tuesday, December 20, 2011 12:20:54 PM UTC+1, Charles Turner wrote:
On Mon, Dec 19, 2011 at 5:22 PM, Christian Pleul chrisptex@googlemail.com wrote:
i just checked if skim and the sync with skim works, but it does not.
Works for me...
______________________________**_________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/**listinfo/textmatehttp://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Thanks David!
It works like a charm.
Regards,
C.
On Mon, May 7, 2012 at 1:59 PM, David Howden dhowden@gmail.com wrote:
Yes, so if you use the script (http://pastie.textmate.org/3872987) as an intermediary between textmate and skim, then all seems to work fine.
You need to make sure that the txmt:// URL scheme is bound to TM2 and not TM1 (whenever you launch TM1 it claims the URL, for TM2 to claim it you need to open the Terminal tab in the preferences dialog).
In the Sync tab of the Skim preferences you need to set:
PDF-Tex Sync support: Preset: Custom Command: /Users/yourname/open_in_mate.py (or to wherever you save the script!) Arguments: "%file" %line
This seemed to fix the problem for me.
David.
On Mon, May 7, 2012 at 11:13 AM, Agnostic Otter agnostic.otter@gmail.comwrote:
Same problem here, although it always happens (not intermittently).
Could you solve it in the meantime David ?
Regards,
C.
On Tuesday, December 20, 2011 12:20:54 PM UTC+1, Charles Turner wrote:
On Mon, Dec 19, 2011 at 5:22 PM, Christian Pleul chrisptex@googlemail.com wrote:
i just checked if skim and the sync with skim works, but it does not.
Works for me...
______________________________**_________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/**listinfo/textmatehttp://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate