Hi,
in TM1 it was possible to use "txmt://open?line=xx" to go to line xx of the front most document.
Now TM2 gives an error message that "url is missing" which is correct in my case because I want to link from an HTML window back to an unsaved/untitled document.
Is there any workaround or is this on the TODO list?
Thanks, --Hans
PS I like TM2 :)
By the way,
How do you set which version of Textmate opens with a txmt link, when you have both installed. I now use mainly TM2, but still keep TM1 "just for those cases". However, all txmt:// links open TM1, which annoys me a bit. I'm surely missing something too obvious, but I didn't manage to make the setting.
Thanks,
enas
On 17 Jan 2012, at 23:20, Hans-Jörg Bibiko wrote:
Hi,
in TM1 it was possible to use "txmt://open?line=xx" to go to line xx of the front most document.
Now TM2 gives an error message that "url is missing" which is correct in my case because I want to link from an HTML window back to an unsaved/untitled document.
Is there any workaround or is this on the TODO list?
Thanks, --Hans
PS I like TM2 :)
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Jan 19, 2012, at 3:35 PM, enas wrote:
By the way,
How do you set which version of Textmate opens with a txmt link, when you have both installed. I now use mainly TM2, but still keep TM1 "just for those cases". However, all txmt:// links open TM1, which annoys me a bit. I'm surely missing something too obvious, but I didn't manage to make the setting.
Only way I know (I'd be happy to find a quicker way):
- Download and install http://www.rubicode.com/Software/RCDefaultApp/ - Bring up system Preferences, "Default Apps" - Select the "Apps" tab (will take some time to load) - Find the entry for TextMate 2.0 - check "URLs" and "txmt" - click "Set as Default"
Unfortunately this isn't sticky. Simply launching TM1 may make that the default again.
Gerd
On 19 Jan 2012, at 21:52, Gerd Knops wrote:
On Jan 19, 2012, at 3:35 PM, enas wrote:
By the way,
How do you set which version of Textmate opens with a txmt link, when you have both installed. I now use mainly TM2, but still keep TM1 "just for those cases". However, all txmt:// links open TM1, which annoys me a bit. I'm surely missing something too obvious, but I didn't manage to make the setting.
Only way I know (I'd be happy to find a quicker way):
Thanks, but, as usual, I figured that out right after I sent my message...
- Download and install http://www.rubicode.com/Software/RCDefaultApp/
- Bring up system Preferences, "Default Apps"
- Select the "Apps" tab (will take some time to load)
- Find the entry for TextMate 2.0
- check "URLs" and "txmt"
- click "Set as Default"
It is, I reckon, a tiny bit simpler if you use the URLs tab, and go to the txmt entry.
Unfortunately this isn't sticky. Simply launching TM1 may make that the default again.
Damn, I didn't notice that. Yet another reason to force myself not to launch TM1 anymore :)
enas
On 20/01/2012, at 04.52, Gerd Knops wrote:
Unfortunately this isn't sticky. Simply launching TM1 may make that the default again.
TM 1.x registers itself as handler of txmt: when launched. I’ve been meaning to do an update that removes this code — it was added after other apps started to claim the URL scheme (which is problematic as we also used the URL scheme for extending trials, adding license key, and such).
2.0 will register itself as handler for the URL scheme if you go to Preferences → Terminal.