From listservs at mac.com Fri Feb 1 03:33:42 2008 From: listservs at mac.com (Chris) Date: Fri, 1 Feb 2008 03:33:42 +0000 (UTC) Subject: [TxMt] Excluding build directories from grep Message-ID: When I attempt to find within a project, grep searches within build directories even though they are excluded from the project in TextMate. Is there a way of restricting grep to the directories that you have included within your project? Thanks, cf From joepeck02 at gmail.com Fri Feb 1 03:44:56 2008 From: joepeck02 at gmail.com (Joseph Pecoraro) Date: Thu, 31 Jan 2008 22:44:56 -0500 Subject: [TxMt] Excluding build directories from grep In-Reply-To: References: Message-ID: Hey cf, TextMate has a built in "Find in Project" under Edit > Find > Find in Project, or hotkey F There is a regular expressions option as well. Joseph Pecoraro On Jan 31, 2008, at 10: 33PM, Chris wrote: > When I attempt to find within a project, grep searches within > build directories even though they are excluded from the project > in TextMate. Is there a way of restricting grep to the directories > that you have included within your project? > > Thanks, > cf > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From bibiko at eva.mpg.de Fri Feb 1 09:23:41 2008 From: bibiko at eva.mpg.de (=?ISO-8859-1?Q?Hans-J=F6rg_Bibiko?=) Date: Fri, 1 Feb 2008 10:23:41 +0100 Subject: [TxMt] New R Bundles for testing - II - Leopard In-Reply-To: <6C5906FC-0A2E-49A9-BB95-E6BC0F86DB62@eva.mpg.de> References: <6C5906FC-0A2E-49A9-BB95-E6BC0F86DB62@eva.mpg.de> Message-ID: <9DCE1142-0C94-497B-B699-4952DC4ED67E@eva.mpg.de> Hi, thanks for the first comments! One main problem occurred with Leopard X11. Leopard ships with the new X11R7 server and its behavior differs from Tiger. First the good news, X11 starts automatically if an application needs it. Thus I removed the code for starting X11 automatically. (For Tiger you have to do it manually) Then next issue is Tiger X11 needs the DISPLAY variable, Leopard not ? or better if it's set Leopard X11 crashes. Thus I have to distinguish between Tiger and Leopard in the source code ;( Anyway, in principal it works, but Leopard X11 is very buggy yet and in some cases very slow (try to run fix() with a matrix - the tk window will be refreshed and refreshed and refreshed and ...). Fine. The next item is that Rmate on Leopard (Intel) running R devel gives an error about popen3, i.e it does not run. (?) Then only thing I can say is that Rmate runs on Leopard (ppc) with the latest stable R version 2.6.1. Maybe someone could check this with an intel mac. (I read in the internet that some tiny Ruby code snippets wasn't compiled correctly for Leopard. And, R devel on Leopard should be taken with a pinch of salt yet) OK. Please go ahead to test the R stuff. (BTW next week I won't be able to check my mails) Cheers, Hans -------------- next part -------------- A non-text attachment was scrubbed... Name: R Console (Rdaemon).tmbundle.zip Type: application/zip Size: 72893 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: R.tmbundle.zip Type: application/zip Size: 75365 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: R Console (R_app).tmbundle.zip Type: application/zip Size: 11985 bytes Desc: not available URL: -------------- next part -------------- From mummer at whitefalls.org Fri Feb 1 11:37:40 2008 From: mummer at whitefalls.org (Michael Sheets) Date: Fri, 1 Feb 2008 05:37:40 -0600 Subject: [TxMt] New R Bundles for testing - II - Leopard In-Reply-To: <9DCE1142-0C94-497B-B699-4952DC4ED67E@eva.mpg.de> References: <6C5906FC-0A2E-49A9-BB95-E6BC0F86DB62@eva.mpg.de> <9DCE1142-0C94-497B-B699-4952DC4ED67E@eva.mpg.de> Message-ID: <59893051-A9B0-4EB9-8C2C-8BADA843EE12@whitefalls.org> On Feb 1, 2008, at 3:23 AM, Hans-J?rg Bibiko wrote: > OK. Please go ahead to test the R stuff. > (BTW next week I won't be able to check my mails) Is the plan to have three bundles or to figure out if people don't use the old type and merge two? Always best to combine if possible. :) From bibiko at eva.mpg.de Fri Feb 1 12:14:43 2008 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Fri, 1 Feb 2008 13:14:43 +0100 Subject: [TxMt] New R Bundles for testing - II - Leopard In-Reply-To: <59893051-A9B0-4EB9-8C2C-8BADA843EE12@whitefalls.org> References: <6C5906FC-0A2E-49A9-BB95-E6BC0F86DB62@eva.mpg.de> <9DCE1142-0C94-497B-B699-4952DC4ED67E@eva.mpg.de> <59893051-A9B0-4EB9-8C2C-8BADA843EE12@whitefalls.org> Message-ID: <4F57F10A-F53F-48C0-9FFC-280A26D7C01B@eva.mpg.de> On 1 Feb 2008, at 12:37, Michael Sheets wrote: > On Feb 1, 2008, at 3:23 AM, Hans-J?rg Bibiko wrote: > >> OK. Please go ahead to test the R stuff. >> (BTW next week I won't be able to check my mails) > > Is the plan to have three bundles or to figure out if people don't > use the old type and merge two? Always best to combine if possible. :) If I understood you correctly, you are only talking about the R.bundle. The normal R.bundle is standard for writing R code and the new one will replace the old R.bundle. Both other Console Bundles - by my opinion - are more or less extensions to the R.bundle. The question is whether there is a need to have the remote bundle for R.app. Well, by myself, I'm only using the Rdaemon, but I don't know if there are users who wants to have this R.app Console bundle. (And of course, I don't know whether Rdaemon could manage ALL R tasks) In order to avoid to mess up the user's bundle menu I subdivided the R stuff into three parts. By doing so each user can install that Console bundle which s/he wants to use. Cheers, Hans From jamal.johnson at gmail.com Fri Feb 1 17:42:03 2008 From: jamal.johnson at gmail.com (Jamal Johnson) Date: Fri, 1 Feb 2008 10:42:03 -0700 Subject: [TxMt] highlight all instances under cursor Message-ID: <4b980990802010942n7ed88ac5ydd9b72c966eafe42@mail.gmail.com> Howdy, I've been a Textmate user for years now but moved to Aptana for a while but now I'm back! :) Simply love Textmate. A feature I used constantly in Aptana however, I cannot seem to find or figure out a similar solution to in Textmate. I'd like to be able to put my cursor on a word (in a JS file let's say) and have that word highlighted _everywhere_ else in the document making it very easy to find / see where it is. Aptana also put a little yellow marker in one of it's gutters to show where the instances are vertically in the file too. Makes it _very_ quick to find things. Is this possible? Thank you very much! -- --------------- .: Jamal :. -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.stockman at gmail.com Fri Feb 1 17:59:09 2008 From: daniel.stockman at gmail.com (Daniel Stockman) Date: Fri, 1 Feb 2008 09:59:09 -0800 Subject: [TxMt] highlight all instances under cursor In-Reply-To: <4b980990802010942n7ed88ac5ydd9b72c966eafe42@mail.gmail.com> References: <4b980990802010942n7ed88ac5ydd9b72c966eafe42@mail.gmail.com> Message-ID: <94E5261E-91BF-4AE2-A76B-6D3FBBABAB0E@gmail.com> On Feb 1, 2008, at 9:42 AM, Jamal Johnson wrote: > I'd like to be able to put my cursor on a word (in a JS file let's > say) and have that word highlighted _everywhere_ else in the > document making it very easy to find / see where it is. [...] Is > this possible? I dislike the idea of making the mouse cursor integral to a function of a text editor, so here's how you could approximate the behaviour via the keyboard (with menu path parenthesized): 1. With the caret inside or bordering the target word, press Control + W (Edit > Select > Word). Alternately, double-click the word itself. 2. Command + E (Edit > Find > Use Selection for Find) 3. Command + G (Edit > Find > Find Next) Your selection will now jump to each instance of the desired word on each subsequent Command + G. It's not as whizbang as Aptana, but I often feel IDEs do a lot more than necessary for certain tasks. Hope this helps, and welcome back to the fold. ;) ~ Daniel From willb at cs.wisc.edu Fri Feb 1 18:49:14 2008 From: willb at cs.wisc.edu (William Benton) Date: Fri, 1 Feb 2008 12:49:14 -0600 Subject: [TxMt] svn keyword expansion Message-ID: Hi all, I've noticed that my subversion keywords don't get expanded/updated when I commit from TextMate (they do when I commit from the command line). Is there a workaround? (Sorry if I've missed something obvious -- I did google.) thanks, wb From bibiko at eva.mpg.de Fri Feb 1 18:49:31 2008 From: bibiko at eva.mpg.de (=?ISO-8859-1?Q?Hans-J=F6rg_Bibiko?=) Date: Fri, 1 Feb 2008 19:49:31 +0100 Subject: [TxMt] highlight all instances under cursor In-Reply-To: <94E5261E-91BF-4AE2-A76B-6D3FBBABAB0E@gmail.com> References: <4b980990802010942n7ed88ac5ydd9b72c966eafe42@mail.gmail.com> <94E5261E-91BF-4AE2-A76B-6D3FBBABAB0E@gmail.com> Message-ID: <27CB0AE6-6FB1-415F-A577-25108B275C70@eva.mpg.de> On 01.02.2008, at 18:59, Daniel Stockman wrote: > On Feb 1, 2008, at 9:42 AM, Jamal Johnson wrote: >> I'd like to be able to put my cursor on a word (in a JS file let's >> say) and have that word highlighted _everywhere_ else in the >> document making it very easy to find / see where it is. [...] Is >> this possible? > > I dislike the idea of making the mouse cursor integral to a > function of a text editor, so here's how you could approximate the > behaviour via the keyboard (with menu path parenthesized): > > 1. With the caret inside or bordering the target word, press > Control + W (Edit > Select > Word). Alternately, double-click the > word itself. > > 2. Command + E (Edit > Find > Use Selection for Find) > > 3. Command + G (Edit > Find > Find Next) > > Your selection will now jump to each instance of the desired word > on each subsequent Command + G. It's not as whizbang as Aptana, but > I often feel IDEs do a lot more than necessary for certain tasks. I agree with Daniel. But as a short note: By using TMTOOLS (an 'unofficial' hacker tool ;) one could do this. see my mail: http://comox.textdrive.com/pipermail/textmate/2007- October/022827.html Cheers, Hans From eli at markelikalderon.com Fri Feb 1 19:22:09 2008 From: eli at markelikalderon.com (Mark Eli Kalderon) Date: Fri, 1 Feb 2008 19:22:09 +0000 Subject: [TxMt] svn keyword expansion In-Reply-To: References: Message-ID: <60CFF541-4B1E-47C1-A280-07662F405E10@markelikalderon.com> If TextMate moves out of focus, then when it regains focus the keywords are expanded/updated. A bit annoying, but there it is. Best, Mark On Feb 1 2008, at 18:49, William Benton wrote: > Hi all, > > I've noticed that my subversion keywords don't get expanded/updated > when I commit from TextMate (they do when I commit from the command > line). Is there a workaround? (Sorry if I've missed something > obvious -- I did google.) > > > thanks, > wb > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From willb at cs.wisc.edu Fri Feb 1 19:30:49 2008 From: willb at cs.wisc.edu (William Benton) Date: Fri, 1 Feb 2008 13:30:49 -0600 Subject: [TxMt] svn keyword expansion In-Reply-To: <60CFF541-4B1E-47C1-A280-07662F405E10@markelikalderon.com> References: <60CFF541-4B1E-47C1-A280-07662F405E10@markelikalderon.com> Message-ID: <242DB2AA-2327-46C3-A52B-5A78C6E63402@cs.wisc.edu> On Feb 1, 2008, at 1:22 PM, Mark Eli Kalderon wrote: > A bit annoying, but there it is. Best, Mark Not at all, thanks! best, wb From cowan.pd at gmail.com Fri Feb 1 22:29:14 2008 From: cowan.pd at gmail.com (Peter Cowan) Date: Fri, 1 Feb 2008 14:29:14 -0800 Subject: [TxMt] New R Bundles for testing - II - Leopard In-Reply-To: <4F57F10A-F53F-48C0-9FFC-280A26D7C01B@eva.mpg.de> References: <6C5906FC-0A2E-49A9-BB95-E6BC0F86DB62@eva.mpg.de> <9DCE1142-0C94-497B-B699-4952DC4ED67E@eva.mpg.de> <59893051-A9B0-4EB9-8C2C-8BADA843EE12@whitefalls.org> <4F57F10A-F53F-48C0-9FFC-280A26D7C01B@eva.mpg.de> Message-ID: Hans, The new package is great. Rmate in particular is greatly improved! As for the R.app console, I didn't use it very much and find the daemon much nicer to work with. Using this version of the bundle when I use "send selection to R.app" I get the following error: 115:116: syntax error: Expected end of line, etc. but found """. (-2741) The version you uploaded a few days ago, worked fine. On another note, I thought the shortcut for that command used to be shift-command-R. It's hard to remember this changed and I find the new one very difficult to type. Thanks Peter On Feb 1, 2008 4:14 AM, Hans-Joerg Bibiko wrote: > > On 1 Feb 2008, at 12:37, Michael Sheets wrote: > > > On Feb 1, 2008, at 3:23 AM, Hans-J?rg Bibiko wrote: > > > >> OK. Please go ahead to test the R stuff. > >> (BTW next week I won't be able to check my mails) > > > > Is the plan to have three bundles or to figure out if people don't > > use the old type and merge two? Always best to combine if possible. :) > > If I understood you correctly, you are only talking about the R.bundle. > The normal R.bundle is standard for writing R code and the new one > will replace the old R.bundle. > > > > Both other Console Bundles - by my opinion - are more or less > extensions to the R.bundle. > > The question is whether there is a need to have the remote bundle for > R.app. > Well, by myself, I'm only using the Rdaemon, but I don't know if > there are users who wants to have this R.app Console bundle. > (And of course, I don't know whether Rdaemon could manage ALL R tasks) > > In order to avoid to mess up the user's bundle menu I subdivided the > R stuff into three parts. By doing so each user can install that > Console bundle which s/he wants to use. > > > Cheers, > > Hans > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > From bibiko at eva.mpg.de Sat Feb 2 07:55:52 2008 From: bibiko at eva.mpg.de (=?ISO-8859-1?Q?Hans-J=F6rg_Bibiko?=) Date: Sat, 2 Feb 2008 08:55:52 +0100 Subject: [TxMt] New R Bundles for testing - II - Leopard In-Reply-To: References: <6C5906FC-0A2E-49A9-BB95-E6BC0F86DB62@eva.mpg.de> <9DCE1142-0C94-497B-B699-4952DC4ED67E@eva.mpg.de> <59893051-A9B0-4EB9-8C2C-8BADA843EE12@whitefalls.org> <4F57F10A-F53F-48C0-9FFC-280A26D7C01B@eva.mpg.de> Message-ID: On 01.02.2008, at 23:29, Peter Cowan wrote: > As for the R.app console, I didn't use it very much and find the > daemon much nicer to work with. OK > Using this version of the bundle when I use "send selection to R.app" > I get the following error: > > 115:116: syntax error: Expected end of line, etc. but found """. > (-2741) See R.bundle help > Troubleshooting > On another note, I thought the shortcut for that command used to be > shift-command-R. It's hard to remember this changed and I find the > new one very difficult to type. OK --Hans From cowan.pd at gmail.com Sat Feb 2 09:41:52 2008 From: cowan.pd at gmail.com (Peter Cowan) Date: Sat, 2 Feb 2008 01:41:52 -0800 Subject: [TxMt] New R Bundles for testing - II - Leopard In-Reply-To: References: <6C5906FC-0A2E-49A9-BB95-E6BC0F86DB62@eva.mpg.de> <9DCE1142-0C94-497B-B699-4952DC4ED67E@eva.mpg.de> <59893051-A9B0-4EB9-8C2C-8BADA843EE12@whitefalls.org> <4F57F10A-F53F-48C0-9FFC-280A26D7C01B@eva.mpg.de> Message-ID: > > 115:116: syntax error: Expected end of line, etc. but found """. > > (-2741) > See R.bundle help > Troubleshooting Ah, yes. I should have seen this. Thanks again for the all the improvements. Peter From sgharms at stevengharms.com Sat Feb 2 18:55:12 2008 From: sgharms at stevengharms.com (Steven Harms) Date: Sat, 2 Feb 2008 12:55:12 -0600 Subject: [TxMt] [Blogging bundle] Request specific post by ID Message-ID: <5D5681DC-C6BE-4871-8B8C-83BF45DF41D9@stevengharms.com> I love the blogging bundle, and the primary 'fetch' use case would be to fetch within the last n-many posts, in the Blogging bundle, the value of n is a nice and sensible 20. BUT What if I decided that I wanted to go back and edit something from a *long time* ago. Could I somehow retrieve the post via the bundle either by slug or by unique ID? Steven From guido at itee.uq.edu.au Sat Feb 2 20:27:29 2008 From: guido at itee.uq.edu.au (Guido Governatori) Date: Sun, 3 Feb 2008 06:27:29 +1000 Subject: [TxMt] LaTeX sub/superscript snippet Message-ID: I'm trying to define a "smart" snippet for LaTeX sub/superscript. What I would like to achieve is a snippet (1) triggered by _ (or ^ for superscripts) (2) curly braces are inserted only when there are least two characters after _ Thus, if I type _a, then I get _a if I type _ab then I get _{ab} My current attempt is as follows: _${1/(.{2,})|./(?1:{)/}$1${1/(.{2,})|./(?1:})/}$0 However, the above has a major shortcoming: When I type _ as the second character after the first _, then the caret is in the wrong place. Thus, _a_ produces -{a|_} and the caret is between a and _ instead of being after the second _ Any suggestions? Guido -- Dr Guido Governatori School of Information Technology and Electrical Engineering The University of Queensland Brisbane, Queensland, 4072, Australia Phone: +61-(0)7-336 52907 Fax: +61-(0)7-336 54999 http://www.governatori.net/TextMate/ http://www.governatori.net/TextMate/LaTeXExtension.tmbundle.zip http://www.defeasible.org From jamal.johnson at gmail.com Sat Feb 2 22:49:24 2008 From: jamal.johnson at gmail.com (Jamal Johnson) Date: Sat, 2 Feb 2008 15:49:24 -0700 Subject: [TxMt] highlight all instances under cursor In-Reply-To: <4b980990802020825w58af7f0i46c0b5dfa6118f23@mail.gmail.com> References: <4b980990802010942n7ed88ac5ydd9b72c966eafe42@mail.gmail.com> <94E5261E-91BF-4AE2-A76B-6D3FBBABAB0E@gmail.com> <27CB0AE6-6FB1-415F-A577-25108B275C70@eva.mpg.de> <4b980990802020825w58af7f0i46c0b5dfa6118f23@mail.gmail.com> Message-ID: <4b980990802021449q3497b9f5n47e2cd3e3dbc9111@mail.gmail.com> Something like Autotext is def what I'm looking for. I have a problem and a question however. Question: is there a way to integrate this so it's globally accessible so I don't have to change the language of a Java or Javascript file in order to use it? My problem is I'm receiving an error and it's not working. I've attached a screenshot. I looked through the files for Autotext and don't see where (or even what) the problem might be, maybe someone can help? Thanks again for all your ideas and help... On Feb 1, 2008 11:49 AM, Hans-J?rg Bibiko wrote: > > On 01.02.2008, at 18:59, Daniel Stockman wrote: > > > On Feb 1, 2008, at 9:42 AM, Jamal Johnson wrote: > >> I'd like to be able to put my cursor on a word (in a JS file let's > >> say) and have that word highlighted _everywhere_ else in the > >> document making it very easy to find / see where it is. [...] Is > >> this possible? > > > > I dislike the idea of making the mouse cursor integral to a > > function of a text editor, so here's how you could approximate the > > behaviour via the keyboard (with menu path parenthesized): > > > > 1. With the caret inside or bordering the target word, press > > Control + W (Edit > Select > Word). Alternately, double-click the > > word itself. > > > > 2. Command + E (Edit > Find > Use Selection for Find) > > > > 3. Command + G (Edit > Find > Find Next) > > > > Your selection will now jump to each instance of the desired word > > on each subsequent Command + G. It's not as whizbang as Aptana, but > > I often feel IDEs do a lot more than necessary for certain tasks. > > I agree with Daniel. > > > But as a short note: By using TMTOOLS (an 'unofficial' hacker tool ;) > one could do this. > see my mail: http://comox.textdrive.com/pipermail/textmate/2007- > October/022827.html > > Cheers, > > Hans > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -- --------------- .: Jamal :. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedGraphic.png Type: image/png Size: 12781 bytes Desc: not available URL: From pierodancona at gmail.com Sun Feb 3 10:54:07 2008 From: pierodancona at gmail.com (Piero D'Ancona) Date: Sun, 3 Feb 2008 10:54:07 +0000 (UTC) Subject: [TxMt] Latex bundle: small bug & request Message-ID: Hi Haris, when I use the Show Label as Tool Tip command on a non-existing label (say, on \eqref{ZZZ} when no \label{ZZZ} exists), instead of the expected Not Found message I get inserted into the file undefined method `context' for nil:NilClass so I guess you might add a check on the nillness of context in your script. If you find the time to work on it, maybe you might also consider this small request (I see that some infrastructure is already in place in LaTeXUtils): a similar command to work on citations, i.e. when invoked on a \cite, the tooltip shows the corresponding bibitem, possibly finding it into the .bbl file. I guess the two things (for labels and citations) could happily coexist in the same script. Thank you for your work, Piero From throw-away-2 at macromates.com Sun Feb 3 11:43:28 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 12:43:28 +0100 Subject: [TxMt] Perl language definition: switch, case? In-Reply-To: References: Message-ID: <636EC464-B7EA-40C8-ADB4-3E15BAC0AF72@macromates.com> On 1 Jan 2008, at 15:39, Andy Armstrong wrote: > [...] > Is there a compelling reason not to remove switch, case and move > select to the functions list? The switch/case might be the result of initially basing the grammar on the C grammar. So presumably it should be removed. > Also, because I'm a TM language definition newbie, does anyone have > any tips about how to handle the // (defined or) operator? In some > contexts // is an empty regex; in others it's an operator In the Ruby grammar we have a list of functions that take regexp arguments to solve the division/regexp ambiguity -- something similar could be done for perl wrt the split case. From throw-away-2 at macromates.com Sun Feb 3 11:43:59 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 12:43:59 +0100 Subject: [TxMt] scope question/problem In-Reply-To: <51ABC47B-29DB-4AD7-B859-28379972E179@eva.mpg.de> References: <51ABC47B-29DB-4AD7-B859-28379972E179@eva.mpg.de> Message-ID: On 3 Jan 2008, at 09:58, Hans-Joerg Bibiko wrote: > I just figured out that I have NOT to exclude the scope if I have > two commands (no macros) which are bound to the same key for the > scopes 'source.r' and 'source.rd-console' (?) > > Does the behaviour of macros differ? No, the code that resolves this is the same, so there must be some other difference. From throw-away-2 at macromates.com Sun Feb 3 11:46:50 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 12:46:50 +0100 Subject: [TxMt] User defined symbols and folding In-Reply-To: References: Message-ID: On 6 Jan 2008, at 13:06, Carsten Hoever wrote: > I am using comments like > > % > = > = > = > = > = > = > = > = > = > = > ====================================================================== > % Doing something... > % > = > = > = > = > = > = > = > = > = > = > ====================================================================== > > [...] > to structure the code inside my MATLAB files. For easier navigation > I would like to use these comments as folding markers and symbols > (for the "Go to symbol" command). I know that I have to play around > with the language grammar to do so, but alas my more than limited > knowledge of regular expressions has prevented me from succeeding. > Maybe one of the language grammar/regex experts here has a quick tip > for me? It is not entirely trivial. For the symbol pop-up you need the grammar to identify the lines, you can either do the simple pattern that just matched: ?^% ([A-Z]\w+.*)$? -- i.e. all commented lines that start with an uppercase letter, and then scope the text so that it can be selected by the symbol pop-up preference -- another approach is using begin/end rules to only match lines surrounded by: ?% =+?. As for foldings, this is likely not possible because of the current rule about clearly defined start and end markers and only allowing matches to look at one line. From throw-away-2 at macromates.com Sun Feb 3 11:47:24 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 12:47:24 +0100 Subject: [TxMt] Highlight line, works, Highlight Paragraph? In-Reply-To: <14622061.post@talk.nabble.com> References: <14622061.post@talk.nabble.com> Message-ID: On 5 Jan 2008, at 23:02, Alamar wrote: > [...] > I was wondering if it was possible, and easy (for a non technical > person > such as myself) to not only have line highlighting, but also have the > current paragraph highlighted as well [...] Not currently possible. It is not entirely unlikely that it might be possible in a future release. From throw-away-2 at macromates.com Sun Feb 3 11:51:18 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 12:51:18 +0100 Subject: [TxMt] Making '*.html.erb' files have the rhtml icon in the project drawer? In-Reply-To: <321a2ee60801070147q1b21dc9al7eadbfb8cd0926dc@mail.gmail.com> References: <321a2ee60801070147q1b21dc9al7eadbfb8cd0926dc@mail.gmail.com> Message-ID: <80588457-0332-4F13-995A-EA216DAC4B16@macromates.com> On 7 Jan 2008, at 10:47, Shanti Braford wrote: > [...] opened up an existing rails project, but the 'index.html.erb' > for example, still showed the generic TextMate icon in the project > drawer, not the tiny blue globe one that 'rhtml' files use. (I > really like the way it strikes the eye... what can I say?) The file type ? icon association is in the file TextMate.app/Contents/ Resources/File Icons/Bindings.plist. However, I am quite sure that it will not work for double-extensions, but should be an easy change, so I can probably improve that for next build. From throw-away-2 at macromates.com Sun Feb 3 11:56:02 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 12:56:02 +0100 Subject: [TxMt] Objective-C Bundle In-Reply-To: <60841.212.209.194.26.1199710405.squirrel@webmail.chalmers.se> References: <384959a50801021859i52adbd1fr47c905563ccb7405@mail.gmail.com> <53338.212.209.194.26.1199444340.squirrel@webmail.chalmers.se> <384959a50801050617k7fd0260dlaa37f45fad0fbcb@mail.gmail.com> <384959a50801051758k3ec4c971j4d383cf185092771@mail.gmail.com> <60841.212.209.194.26.1199710405.squirrel@webmail.chalmers.se> Message-ID: <9256083A-4562-4A37-B55C-F36ABA077B18@macromates.com> On 7 Jan 2008, at 13:53, Joachim M?rtensson wrote: >> [...] >> - Why does the Singleton template create an Objective-C++ >> implementation file - file extension is .mm? Because I always need C++ in my Objective-C code :) >> Also it might be preferable to use Apple's "recommended" singleton >> implementation: >> http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_10.html#/ >> /apple_ref/doc/uid/TP40002974-CH4-SW32 > To the best of my knowledge I have made any changes to this, I do > not personally use the templates. Perhaps someone else can reply? I don?t think Apple had a recommended one when I did the template. I?ll look into updating it. >> [...] >> - "Reformat Method Call" is a really good tool for keeping code >> tidy, but >> there are some problems with indenting [...] > I do not think messing with the indent/dedent patterns are going to > help. > I actually had a conversation with Allan about this a few months ago > since > it annoys me as well, he had a few ideas for 2.0 if I recall > correctly. A > command to do this would involve both code and adding scopes to the > syntax > grammar (unless I am mistaken about the auto-indent behaviour). Yeah, too complex to solve for 1.x. Should be better in 2.0. From throw-away-2 at macromates.com Sun Feb 3 11:56:55 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 12:56:55 +0100 Subject: [TxMt] Broken pastie since Adium upgrade (SS included) In-Reply-To: References: Message-ID: On 8 Jan 2008, at 17:31, Steve Finkelstein wrote: > I'm not sure if this is pure coincidence since I've upgraded Adium > to the > newest version, but attached is a screenshot which displays an error > when I > try to use the pastie command bundled into TextMate [...] Adium 1.2 broke backwards AS compatibility, but latest cutting edge (Preferences ? Software Update) should contain an updated pasting command that works with latest Adium. From throw-away-2 at macromates.com Sun Feb 3 11:58:50 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 12:58:50 +0100 Subject: [TxMt] Changing language for a specific file In-Reply-To: <14695880.post@talk.nabble.com> References: <14630274.post@talk.nabble.com> <20C96993-AF0F-48A7-8CF9-C9FA468A86C6@gmail.com> <14637906.post@talk.nabble.com> <83B349D1-21CD-43FD-B69F-62659C7B552D@eva.mpg.de> <14695880.post@talk.nabble.com> Message-ID: On 8 Jan 2008, at 19:38, Nate Cavanaugh wrote: > [...] > Quick question, do you know if this is possible with TabMate *without* > modelines? I'm working on a huge code base with multiple users and > strict > coding standards and the modelines aren't allowed to sit in SVN, > which means > I have to copy the mode lines every time I edit the file, in which > case, I > might as well just manually change the language. > > Anyone know of a work around (even if it's a work around in SVN)? TextMate will get the file type either from the first line of the file or the extension. The recommended solution is to use double-extensions when it is important that different file types have the same ?final? extension, e.g. ?foo.css.php?, ?foo.js.php?, ?foo.php? -- here all files are php, but TextMate can assign different grammars to them based on the secondary extension. From throw-away-2 at macromates.com Sun Feb 3 11:59:21 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 12:59:21 +0100 Subject: [TxMt] Is there a way to search against directory name in "Go to file"? In-Reply-To: <14701043.post@talk.nabble.com> References: <14701043.post@talk.nabble.com> Message-ID: <9AA56DE5-249E-4220-9A20-59F436FBA3DC@macromates.com> On 9 Jan 2008, at 00:00, Nate Cavanaugh wrote: > [...] > In Go To File, which I love, is there a way to have the pattern match > against the directory name and the file name? Only the file name -- common request, but needs bigger changes before it will be possible. From throw-away-2 at macromates.com Sun Feb 3 11:59:52 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 12:59:52 +0100 Subject: [TxMt] Slowdown of TextMate when handling LaTeX files In-Reply-To: <02184178-3098-44BD-862E-0AE16A6E2A77@gmx.de> References: <3F2EF44E-FFA9-4942-BCAD-0BA9C9E8537F@gmail.com> <02184178-3098-44BD-862E-0AE16A6E2A77@gmx.de> Message-ID: On 9 Jan 2008, at 22:03, Nicolas Schmidt wrote: > [...] > Thank you, Turning of spell-checking helped a lot! I have extracted > a short sample of the file for you. Could it be you use a third party spell checker? I know Aspell has been reported to be really slow. From throw-away-2 at macromates.com Sun Feb 3 12:00:50 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:00:50 +0100 Subject: [TxMt] Question on Shell Variables after installing a new revision In-Reply-To: <30667DBB-54E9-4AC6-B0B3-5200D0F4396B@eva.mpg.de> References: <30667DBB-54E9-4AC6-B0B3-5200D0F4396B@eva.mpg.de> Message-ID: <75107274-BE6D-4793-A80A-8FE2165B4EB5@macromates.com> On 10 Jan 2008, at 12:28, Hans-Joerg Bibiko wrote: > If I set some self-defined shell variables and TM installs a new > revision (cutting-edge) it seems to me that all my self-defined > shell variables are gone. Is this correct? If yes, is there a way to > avoid it? I don?t know what ?self-defined shell variables? means, but quite sure the answer is no, TM does not alter anything outside the TextMate application bundle when being updated. From throw-away-2 at macromates.com Sun Feb 3 12:01:23 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:01:23 +0100 Subject: [TxMt] foldingStartMarker foldingStopMarker Question In-Reply-To: <35B5C9EB-65FC-44DA-896A-8BC6E76BEA00@eva.mpg.de> References: <35B5C9EB-65FC-44DA-896A-8BC6E76BEA00@eva.mpg.de> Message-ID: On 11 Jan 2008, at 17:26, Hans-J?rg Bibiko wrote: > [...] > I'm writing a Language and I want to include TM's folding feature. > > foldingStartMarker := > each line which begins with '>' AND the next line does not begin > with '>' > > foldingStopMarker := > each line which does not begin with '>' AND the next line begins > with '>' Folding marker matches only look at one line at a time, so this is not possible, sorry. From throw-away-2 at macromates.com Sun Feb 3 12:01:47 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:01:47 +0100 Subject: [TxMt] blogging: Wrong content-type: No postts available In-Reply-To: <4787EC2B.4030205@vreer.net> References: <4787EC2B.4030205@vreer.net> Message-ID: <16F3C80D-073B-4BFC-BBC1-333EAC104C1B@macromates.com> On 11 Jan 2008, at 23:22, vreer wrote: > [...] > For some non understandable reason I destoryed my blog setup and now > I am f*cked. When enterning in the > com.macromates.textmate.blogging.text file the items $blgname $blog- > url, I receive a "Received excepttion. Wrong content-type: No blogs > are availble".Wwhich is of course utterly untrue :/ > > So how to fix this? Try give the URL to your blog and the settings you used. From throw-away-2 at macromates.com Sun Feb 3 12:02:38 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:02:38 +0100 Subject: Re[TxMt] peated TM crashes when typing in an HTML document In-Reply-To: <14894420.post@talk.nabble.com> References: <14894420.post@talk.nabble.com> Message-ID: <091B6EF5-7B68-4E5D-A7E9-7043562E4856@macromates.com> On 16 Jan 2008, at 21:54, dzurn wrote: > I had this crash about 5 times previously, but I finally got sick of > it and > captured the Apple report here. > > http://www.nabble.com/file/p14894420/crashlog.txt crashlog.txt Unfortunately 10.4.11 ships with a broken WebKit. Only workaround is to downgrade to 10.4.10 or upgrade to 10.5 :/ From throw-away-2 at macromates.com Sun Feb 3 12:03:10 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:03:10 +0100 Subject: [TxMt] [PATCH] Re: Git bundle: sh: line 2: git: command not found /tmp/temp_textmate.j2NZhz:4 In-Reply-To: References: Message-ID: <673F8E78-F403-4D79-97A2-A5452C739D94@macromates.com> On 18 Jan 2008, at 22:49, Michael Melanson wrote: > Alain Ravet wrote: >> On Dec 12, 2007 9:45 PM, Michael Sheets >> wrote: >> > See: http://macromates.com/textmate/manual/shell_commands#search_path >> > Especially the part past "Important". >> It worked fine. Thanks Michael. >> Alain > > I ran into this problem too, because I have git in a non-standard > location. > > I found that while it can be overridden in SCM::Git with the TM_GIT > variable, the "Commit...", "Show Log" and "Revert" commands don't > use this value. > > Below is a patch that makes these commands use the value of @git in > SCM::Git. If it seems good, please let me know what I should do to > get this applied to the tree. Thanks, I have committed the patch. From throw-away-2 at macromates.com Sun Feb 3 12:05:18 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:05:18 +0100 Subject: [TxMt] Exception in thread "main" java.lang.NumberFormatException: null In-Reply-To: <7AF6E594-7CF1-4C03-AF50-27C5509DC548@ldaley.com> References: <14BB9B0D-5D71-4B91-9755-ED58973D78CB@worldonline.co.za> <7AF6E594-7CF1-4C03-AF50-27C5509DC548@ldaley.com> Message-ID: <074E73F4-C4E3-47EB-8409-D653C1D2B3D3@macromates.com> On 19 Jan 2008, at 03:28, Luke Daley wrote: >> [...] >> This is the same command as "Compile & Run Single File" with some >> commented and uncommented lines for running your program in >> terminal after the compilation. > Why don't we include this alternative permanently? Also, it really > should be bound to Apple + R, and the alternative (Run in Terminal) > could be Apple + Option + R. Initially I used ?B for ?Build? commands, but we have since moved to ?R for all but the bundles that have both a Build + Run and a separate Build, so please go ahead and make the change. Also placing the ?Run in Terminal? on ??R sounds fine. From throw-away-2 at macromates.com Sun Feb 3 12:13:05 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:13:05 +0100 Subject: [TxMt] Back from vacation Message-ID: My absence through January was caused by a longer trip to the southern part of Africa (South Africa, Botswana, Zimbabwe, and a short day-trip to Zambia). I?ll be going through mailing list letters chronologically the next couple of days and hopefully reply to most unanswered questions etc. From throw-away-2 at macromates.com Sun Feb 3 12:19:55 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:19:55 +0100 Subject: [TxMt] Blogging Bundle & WordPress Time Stamps In-Reply-To: References: <793C0054-3F2E-4DFA-A4C9-3D177380F102@steamermedia.com> Message-ID: On 20 Jan 2008, at 21:58, Dr. Drang wrote: > [...] > The TM wiki has an entry about time problems with WP and the blogging > bundle, but it talks about older versions of both WP and Ruby [...] It ends with: [...] the next version of WordPress will revert its date handling to before 2.2 and so, after that release, dates will again use the wrong offset. The problem is that TM sends the date in GMT (w/o time zone info, as the standard does not allow that). But now WP will interpret it as being in the time zone of the server. So the workaround is to set the server to GMT. WordPress 2.3 has introduced a new header to receive dates in GMT which the blogging bundle could be updated to use if anybody feels like creating a patch :) From andy at hexten.net Sun Feb 3 12:24:32 2008 From: andy at hexten.net (Andy Armstrong) Date: Sun, 3 Feb 2008 12:24:32 +0000 Subject: [TxMt] Perl language definition: switch, case? In-Reply-To: <636EC464-B7EA-40C8-ADB4-3E15BAC0AF72@macromates.com> References: <636EC464-B7EA-40C8-ADB4-3E15BAC0AF72@macromates.com> Message-ID: <6937B74F-3522-45E0-8286-28D32517B90A@hexten.net> On 3 Feb 2008, at 11:43, Allan Odgaard wrote: > The switch/case might be the result of initially basing the grammar > on the C grammar. So presumably it should be removed. > >> Also, because I'm a TM language definition newbie, does anyone have >> any tips about how to handle the // (defined or) operator? In some >> contexts // is an empty regex; in others it's an operator > > In the Ruby grammar we have a list of functions that take regexp > arguments to solve the division/regexp ambiguity -- something > similar could be done for perl wrt the split case. I should have been more explicit. In Perl 5.10.0 // could be an empty regex or the new 'defined or' operator: my $foo = $bar // 'not defined'; # new defined-or operator my @f = split //, $baz; # empty regex And yes, "only perl can parse Perl" :) -- Andy Armstrong, Hexten From throw-away-2 at macromates.com Sun Feb 3 12:38:44 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:38:44 +0100 Subject: [TxMt] Subversion bundle problem In-Reply-To: <15074820.post@talk.nabble.com> References: <8A8343F1-EF6E-496D-ACAD-59F1A8845F39@walkingdog.net> <41ECC5DA-31F1-4BBD-B4F6-618BE69B128A@macromates.com> <2119FE71-8406-4445-8678-EF3127E6232F@walkingdog.net> <4AC805B9-B6C6-42C5-A795-30DA43348DDA@macromates.com> <8D6098EC-A4A4-48F7-B4D0-6F04EA62BAE0@walkingdog.net> <306A4BB5-1CF6-473F-868E-4FC8831335BF@macromates.com> <15074820.post@talk.nabble.com> Message-ID: <097E89E3-3103-4A04-8E8C-F0FAB73EC509@macromates.com> On 24 Jan 2008, at 21:59, dave.myron wrote: >> [...] the default values for the above should become: >> >> svn log --xml --limit 15 -vr HEAD:1 \ >> ?file? 2>&1 | ruby -- "${TM_BUNDLE_SUPPORT}/format_log_xml.rb" >> > Digging up an old thread here, but I'm getting these same problems > with the > latest TextMate and the latest Subversion bundle. > > When I run the second command above (the parsed one with defaults) > [1] I get > the same REXML error [2]. So you can reproduce the error outside TextMate? > However, if I change it to this (two-liner) it > works just fine (of course, it doesn't show in TM...): > [...] > The error with the rescue block uncommented: > /opt/local/lib/ruby/1.8/rexml/source.rb:226:in `pos': Illegal seek > (Errno::ESPIPE) It would appear the REXML parser treats the IO object as more than just a pipe (i.e. it tries to seek). Try instead of using ?&1? to ?2>/dev/null? in the version that fails for you in Terminal. From throw-away-2 at macromates.com Sun Feb 3 12:49:15 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:49:15 +0100 Subject: [TxMt] Ruby file tries to compiles as Xcode In-Reply-To: <8b109c50801281938w1a97a03dm96ebd5206749f4ea@mail.gmail.com> References: <8b109c50801281938w1a97a03dm96ebd5206749f4ea@mail.gmail.com> Message-ID: <2D4D7126-0F82-4866-A370-EE33849F55EE@macromates.com> On 29 Jan 2008, at 04:38, jeff emminger wrote: > I've noticed this happening if the cursor is inside a string > interpolation, e.g. if the cursor was between 'do' and 'stuff': > foo = "bar_#{do.stuff}_baz" > > I just have to remember to move the cursor out of such a place before > hitting CMD+R For the records, we plan to fix this :) From throw-away-2 at macromates.com Sun Feb 3 12:58:53 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sun, 3 Feb 2008 13:58:53 +0100 Subject: [TxMt] Unexpected behavior with different keyboard layout. In-Reply-To: <28FDB82B-F0F1-4EF3-90AF-209BCDD73E48@gmail.com> References: <3e0597570801310320t6294a75p1e8bff51ebb189a8@mail.gmail.com> <28FDB82B-F0F1-4EF3-90AF-209BCDD73E48@gmail.com> Message-ID: On 31 Jan 2008, at 12:36, Fred B wrote: > On 31 Jan 2008, at 12:20, Alexandre Soares wrote: > >> I use the Dvorak-Qwerty-Cmd keyboard layout and some key >> combinations don't work as they should. >> (...) >> So if anyone has anything to say about that, I'd appreciate. > I can't help you but I was sure I saw something about this a while > back and found this thread[1] in the archives. > > [1]:http://lists.macromates.com/pipermail/textmate/2005-August/005238.html There is new API on Leopard that allows me to almost handle this correctly, though I won?t be updating 1.x for this, so for now there is no fix, sorry. From ajross at cs.pdx.edu Mon Feb 4 05:50:38 2008 From: ajross at cs.pdx.edu (Alex Ross) Date: Sun, 3 Feb 2008 21:50:38 -0800 Subject: [TxMt] Back from vacation In-Reply-To: References: Message-ID: > My absence through January was caused by a longer trip to the > southern part of Africa (South Africa, Botswana, Zimbabwe, and a > short day-trip to Zambia). Awesome! Welcome back Allan, we missed you! From mummer at whitefalls.org Mon Feb 4 08:42:24 2008 From: mummer at whitefalls.org (Michael Sheets) Date: Mon, 4 Feb 2008 02:42:24 -0600 Subject: [TxMt] Perl language definition: switch, case? In-Reply-To: <6937B74F-3522-45E0-8286-28D32517B90A@hexten.net> References: <636EC464-B7EA-40C8-ADB4-3E15BAC0AF72@macromates.com> <6937B74F-3522-45E0-8286-28D32517B90A@hexten.net> Message-ID: On Feb 3, 2008, at 6:24 AM, Andy Armstrong wrote: > I should have been more explicit. In Perl 5.10.0 // could be an > empty regex or the new 'defined or' operator: > > my $foo = $bar // 'not defined'; # new defined-or operator > my @f = split //, $baz; # empty regex The relevant bit from the ruby grammar: http://pastie.textmate.org/private/zuh0beeg1ciwdqbqlovmaa Basically we define a list of items a regex can follow, anything else and it's a division operator. What you can do is the same expect only with empty regexes. Match // that follows words that regexes can follow, anything not caught will be caught by the lower // operator match. It's not perfect in Ruby but it's pretty close. From nilcolor at gmail.com Mon Feb 4 08:57:38 2008 From: nilcolor at gmail.com (Alexey Blinov) Date: Mon, 4 Feb 2008 11:57:38 +0300 Subject: [TxMt] Unexpected behavior with different keyboard layout. In-Reply-To: References: <3e0597570801310320t6294a75p1e8bff51ebb189a8@mail.gmail.com> <28FDB82B-F0F1-4EF3-90AF-209BCDD73E48@gmail.com> Message-ID: <61450f630802040057y114bfe8du8bde45ac15c2fde1@mail.gmail.com> Any clues on TM 2.0?1st/2nd half of the 2008? :) On Feb 3, 2008 3:58 PM, Allan Odgaard wrote: > On 31 Jan 2008, at 12:36, Fred B wrote: > > > On 31 Jan 2008, at 12:20, Alexandre Soares wrote: > > > >> I use the Dvorak-Qwerty-Cmd keyboard layout and some key > >> combinations don't work as they should. > >> (...) > >> So if anyone has anything to say about that, I'd appreciate. > > I can't help you but I was sure I saw something about this a while > > back and found this thread[1] in the archives. > > > > [1]: > http://lists.macromates.com/pipermail/textmate/2005-August/005238.html > > There is new API on Leopard that allows me to almost handle this > correctly, though I won't be updating 1.x for this, so for now there > is no fix, sorry. > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xolela at mac.com Mon Feb 4 22:30:41 2008 From: xolela at mac.com (xolela at mac.com) Date: Tue, 5 Feb 2008 01:30:41 +0300 Subject: [TxMt] New R Bundles for testing In-Reply-To: <6C5906FC-0A2E-49A9-BB95-E6BC0F86DB62@eva.mpg.de> References: <6C5906FC-0A2E-49A9-BB95-E6BC0F86DB62@eva.mpg.de> Message-ID: Hans-Joerg, Thanks for the work on this.. After having installed the 30th jan version of the 3 R programs as instructed below... Within the R bundle (which is my default work environment), when I have a function of a loaded library, & try the "execute & insert in text" I get the following error: library(Epi) hvgfupb<-read.csv(file="hvgfupbBackup.csv",header=TRUE) stat.table(hvgfupb$maritalcat) Error: could not find function "stat.table" Execution halted Yet the result of the function call shows up in the "show in tooltip" version of the same command. Also, it runs in R.app when executed in that version.. Any ideas of reasons for this behavour? I am running Tiger (10.4.11) on an intel mac, R version 2.5.0 RC (2007-04-18 r41228) Thanks in advance.. danstan On Jan 30, 2008, at 1:42 PM, Hans-Joerg Bibiko wrote: > Dear R users, > > in the last weeks I've looked for a better R integration into TM. > > Finally I came up with these three bundles: > > 1) R > In principal I rewrote all commands to be more flexible and to > avoid to call R to get some > > 2) R Console (Rdaemon) > I > > 3) R Console (R.app) > In that bundle you will find all commands to remote the standard > R.app. > rt is to read the help file and have a look at the bundle menus. > > !!VERY IMPORTANT!! > Before installing these bundles please backup the 'old' R bundle > (maybe, what I did is a flop ;) and delete the bundles R and - if > it exists - Rdaemon; quit TM; start TM; and then install the new > bundles. > > > All these bundles have beta status. Thus I would be very > appreciated if someone could test them and give me any feedback > regarding: > -what doesn't work > -what is illogical or unclear > -bad arrangement or key binding > -what's missing/wrong/unclear in the help file > ... > > plus what Mac OSX version, ppc or intel, which R version > > > If Allan is back I will upload the new R bundle to the repository > and both Console bundles to the test repository. > > Cheers, > > Hans > > (R_app).tmbundle.zip> > > > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From shfriedrich at gmail.com Tue Feb 5 05:05:30 2008 From: shfriedrich at gmail.com (Sebastian Friedrich) Date: Mon, 4 Feb 2008 23:05:30 -0600 Subject: [TxMt] Re: Problems with Rails Bundle and RakeMate References: Message-ID: On 2008-01-26 14:27:39 -0600, Sebastian said: > Lately, i've been experiencing various issues with the Rails Bundle: > > - none of the generator tasks (controllers, models, migrations etc.) > work anymore. I just get an empty confirmation window and the tasks are > not run. > > - when running any rake tasks, i get "stack level too deep" errors:. > For insatnce, here's the output from "Migrate to current" command: > > RakeMate r6193 > > rake aborted! stack level too deep (See full trace by running task with > --trace) (in /Library/WebServer/railsapps/sparkle) > Done > > Rake tasks and generator tasks work perfectly fine from the command line. > > I'm using current Rails Bundle from trunk, but also tried the one that > came with the lastest TM release. I'm running on Leopard, Ruby 1.8.6; > projects are Rails 2.0.2, but it also seems to happen with Rails 1.2 > projects. > > Any ideas? Thanks. > > Sebastian UPDATE: It is still not working, but it actually seems to only affect Rails 2.0 projects. Has nobody else experienced any problems with generator and rake tasks under Rails 2.0.2 projects? And just to confirrm that the reverse is actually true, could somebody confirm if you are running RakeMate tasks in the Rails bundle with 2.0 projects without any trouble? Thanks. BTW, i also now switched to the new git branch[1] that Dr. Nic is maintaining, and same issues there. Cheers, Sebastian [1] http://drnicwilliams.com/2008/01/31/get-ready-for-the-textmate-trundle-to-rails-20-bundle/ From timcharper at gmail.com Tue Feb 5 17:14:25 2008 From: timcharper at gmail.com (Tim Harper) Date: Tue, 5 Feb 2008 10:14:25 -0700 Subject: [TxMt] [PATCH] Re: Git bundle: sh: line 2: git: command not found /tmp/temp_textmate.j2NZhz:4 In-Reply-To: <673F8E78-F403-4D79-97A2-A5452C739D94@macromates.com> References: <673F8E78-F403-4D79-97A2-A5452C739D94@macromates.com> Message-ID: Once again, just a reminder for anyone who would like to use it: I have added quite a few new features on my clone of the repository, like show specific revision, git stash/clear/apply/show, show changes, and the likes. I've also improved upon the git commit dialog to behave in a much more natural fashion. Now, I know noone needs to use it, but it's there, and if you'd like to clone it, this command should do it: git clone git at gitorious.org:git-tmbundle/mainline.git You'll need to rename the folder it creates to "Git.tmbundle" Tim On Feb 3, 2008, at 5:03 AM, Allan Odgaard wrote: > On 18 Jan 2008, at 22:49, Michael Melanson wrote: > >> Alain Ravet wrote: >>> On Dec 12, 2007 9:45 PM, Michael Sheets >>> wrote: >>> > See: http://macromates.com/textmate/manual/shell_commands#search_path >>> > Especially the part past "Important". >>> It worked fine. Thanks Michael. >>> Alain >> >> I ran into this problem too, because I have git in a non-standard >> location. >> >> I found that while it can be overridden in SCM::Git with the TM_GIT >> variable, the "Commit...", "Show Log" and "Revert" commands don't >> use this value. >> >> Below is a patch that makes these commands use the value of @git in >> SCM::Git. If it seems good, please let me know what I should do to >> get this applied to the tree. > > Thanks, I have committed the patch. > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From jlaudun at mac.com Tue Feb 5 19:14:46 2008 From: jlaudun at mac.com (John Laudun) Date: Tue, 5 Feb 2008 13:14:46 -0600 Subject: [TxMt] Problems printing with line numbers using TextMate bundle In-Reply-To: <20080205120015.2D15665D1@comox.textdrive.com> References: <20080205120015.2D15665D1@comox.textdrive.com> Message-ID: <1A86844C-BBB5-4DF5-8A2A-7F66E60B7B54@mac.com> I'm trying to teach myself the basics of programming -- I'm working with Python -- and one of the things I'm doing is going over extant scripts that I find useful to see how they do what they do. One of the scripts I'm interested in is pwyky, and so I wanted to print out the file but I need line numbers to help me keep track of where I am. No problem. Textmate has that in its eponymous bundle! But when I run it, I get the following dialogue error in the preview window: sh: ps: command not found Received exception:TextMate::AppPathNotFoundException I checked the first level code in the Bundle Editor, but this has to be somewhere in one of the Ruby scripts, but I am shy about digging in there. Any help would be appreciated. john From martinstromlists at gmail.com Tue Feb 5 23:47:43 2008 From: martinstromlists at gmail.com (=?ISO-8859-1?Q?Martin_Str=F6m?=) Date: Wed, 6 Feb 2008 00:47:43 +0100 Subject: [TxMt] [PATCH] Re: Git bundle: sh: line 2: git: command not found /tmp/temp_textmate.j2NZhz:4 In-Reply-To: References: <673F8E78-F403-4D79-97A2-A5452C739D94@macromates.com> Message-ID: I would love to try it but the git repo is asking me for a password when cloning: > Initialized empty Git repository in /Library/Application Support/TextMate/mainline/.git/ > git at gitorious.org's password: Thanks Martin On 05/02/2008, Tim Harper wrote: > Once again, just a reminder for anyone who would like to use it: > > I have added quite a few new features on my clone of the repository, > like show specific revision, git stash/clear/apply/show, show changes, > and the likes. I've also improved upon the git commit dialog to > behave in a much more natural fashion. > > Now, I know noone needs to use it, but it's there, and if you'd like > to clone it, this command should do it: > > git clone git at gitorious.org:git-tmbundle/mainline.git > > You'll need to rename the folder it creates to "Git.tmbundle" > > Tim > > On Feb 3, 2008, at 5:03 AM, Allan Odgaard wrote: > > > On 18 Jan 2008, at 22:49, Michael Melanson wrote: > > > >> Alain Ravet wrote: > >>> On Dec 12, 2007 9:45 PM, Michael Sheets > >>> wrote: > >>> > See: http://macromates.com/textmate/manual/shell_commands#search_path > >>> > Especially the part past "Important". > >>> It worked fine. Thanks Michael. > >>> Alain > >> > >> I ran into this problem too, because I have git in a non-standard > >> location. > >> > >> I found that while it can be overridden in SCM::Git with the TM_GIT > >> variable, the "Commit...", "Show Log" and "Revert" commands don't > >> use this value. > >> > >> Below is a patch that makes these commands use the value of @git in > >> SCM::Git. If it seems good, please let me know what I should do to > >> get this applied to the tree. > > > > Thanks, I have committed the patch. > > > > > > ______________________________________________________________________ > > For new threads USE THIS: textmate at lists.macromates.com > > (threading gets destroyed and the universe will collapse if you don't) > > http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -- burnfield.com/martin From timcharper at gmail.com Wed Feb 6 00:56:17 2008 From: timcharper at gmail.com (Tim Harper) Date: Tue, 5 Feb 2008 17:56:17 -0700 Subject: [TxMt] [PATCH] Re: Git bundle: sh: line 2: git: command not found /tmp/temp_textmate.j2NZhz:4 In-Reply-To: References: <673F8E78-F403-4D79-97A2-A5452C739D94@macromates.com> Message-ID: Martin, Try cloning with this url: git://gitorious.org/git-tmbundle/mainline.git Tim On Feb 5, 2008, at 4:47 PM, Martin Str?m wrote: > I would love to try it but the git repo is asking me for a password > when cloning: > >> Initialized empty Git repository in /Library/Application Support/ >> TextMate/mainline/.git/ >> git at gitorious.org's password: > > Thanks > Martin > > > On 05/02/2008, Tim Harper wrote: >> Once again, just a reminder for anyone who would like to use it: >> >> I have added quite a few new features on my clone of the repository, >> like show specific revision, git stash/clear/apply/show, show >> changes, >> and the likes. I've also improved upon the git commit dialog to >> behave in a much more natural fashion. >> >> Now, I know noone needs to use it, but it's there, and if you'd like >> to clone it, this command should do it: >> >> git clone git at gitorious.org:git-tmbundle/mainline.git >> >> You'll need to rename the folder it creates to "Git.tmbundle" >> >> Tim >> >> On Feb 3, 2008, at 5:03 AM, Allan Odgaard wrote: >> >>> On 18 Jan 2008, at 22:49, Michael Melanson wrote: >>> >>>> Alain Ravet wrote: >>>>> On Dec 12, 2007 9:45 PM, Michael Sheets >>>>> wrote: >>>>>> See: http://macromates.com/textmate/manual/shell_commands#search_path >>>>>> Especially the part past "Important". >>>>> It worked fine. Thanks Michael. >>>>> Alain >>>> >>>> I ran into this problem too, because I have git in a non-standard >>>> location. >>>> >>>> I found that while it can be overridden in SCM::Git with the TM_GIT >>>> variable, the "Commit...", "Show Log" and "Revert" commands don't >>>> use this value. >>>> >>>> Below is a patch that makes these commands use the value of @git in >>>> SCM::Git. If it seems good, please let me know what I should do to >>>> get this applied to the tree. >>> >>> Thanks, I have committed the patch. >>> >>> >>> ______________________________________________________________________ >>> For new threads USE THIS: textmate at lists.macromates.com >>> (threading gets destroyed and the universe will collapse if you >>> don't) >>> http://lists.macromates.com/mailman/listinfo/textmate >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate >> > > > -- > burnfield.com/martin > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From textmate_dharland at trashmail.net Wed Feb 6 03:45:08 2008 From: textmate_dharland at trashmail.net (textmate_dharland) Date: Wed, 6 Feb 2008 04:45:08 +0100 (CET) Subject: [TxMt] Python Bundle: Bug/Feature in Run Script (PyMate) Message-ID: <20080206034508.B78274FB3567C@trashmail.net> * I'm currently experimenting with TextMate as an alternative to xemacs and have encountered a problem in the python bundle. * The problem is that PyMate is providing its own sitecustomize.py to hook various functions. * This conflicts with our company's production/testing platforms. They also uses sitecustomize to make site-specific customizations (such as hooking the logging module handlers etc). * I'm sure our approach isn't unusual. Unfortunately TextMate's usage of it for *application* specific reasons prevents our own site customisations from loading. * Is a possible alternative for TextMate to use a launcher script approach? eg something that - hooks the desired functions as currently - hacks sys.argv and execfiles into the target file, such as # remove us from the argument list, set __file__ to be the script to run then exec it del sys.argv[0] __file__ = sys.argv[0] execfile(sys.argv[0]) This should have the same effect and ensure that a platforms sitecustomize is loaded. I'm happy to work on and submit a patch to the appropriate people if desired (not sure who that would be) derek. -- E-Mail sent with anti-spam site TrashMail.net! Free disposable email addresses: http://www.trashmail.net/ From ajross at cs.pdx.edu Wed Feb 6 06:45:59 2008 From: ajross at cs.pdx.edu (Alex Ross) Date: Tue, 5 Feb 2008 22:45:59 -0800 Subject: [TxMt] Python Bundle: Bug/Feature in Run Script (PyMate) In-Reply-To: <20080206034508.B78274FB3567C@trashmail.net> References: <20080206034508.B78274FB3567C@trashmail.net> Message-ID: <52C52243-8365-45F8-9401-66A5A78087DE@cs.pdx.edu> > * I'm currently experimenting with TextMate as an alternative to > xemacs and have encountered a problem in the python bundle. > * The problem is that PyMate is providing its own sitecustomize.py > to hook various functions. > * This conflicts with our company's production/testing platforms. > They also uses sitecustomize to make site-specific customizations > (such as hooking the logging module handlers etc). > * I'm sure our approach isn't unusual. Unfortunately TextMate's > usage of it for *application* specific reasons prevents our own site > customisations from loading. > * Is a possible alternative for TextMate to use a launcher script > approach? eg something that > - hooks the desired functions as currently > - hacks sys.argv and execfiles into the target file, such as > > # remove us from the argument list, set __file__ to be the > script to run then exec it > del sys.argv[0] > __file__ = sys.argv[0] > execfile(sys.argv[0]) > > This should have the same effect and ensure that a platforms > sitecustomize is loaded. I'm happy to work on and submit a patch to > the appropriate people if desired (not sure who that would be) Derek. I have implemented what you've suggested here in svn. You can either update the Python bundle yourself, or wait until the next Cutting-Edge Textmate. If the new implementation of PyMate causes any problems for anyone, I'd like to hear about it! ? Alex From martinstromlists at gmail.com Wed Feb 6 08:10:59 2008 From: martinstromlists at gmail.com (=?ISO-8859-1?Q?Martin_Str=F6m?=) Date: Wed, 6 Feb 2008 09:10:59 +0100 Subject: [TxMt] [PATCH] Re: Git bundle: sh: line 2: git: command not found /tmp/temp_textmate.j2NZhz:4 In-Reply-To: References: <673F8E78-F403-4D79-97A2-A5452C739D94@macromates.com> Message-ID: Works, thanks! On 06/02/2008, Tim Harper wrote: > Martin, > > Try cloning with this url: > > git://gitorious.org/git-tmbundle/mainline.git > > Tim > > > On Feb 5, 2008, at 4:47 PM, Martin Str?m wrote: > > > I would love to try it but the git repo is asking me for a password > > when cloning: > > > >> Initialized empty Git repository in /Library/Application Support/ > >> TextMate/mainline/.git/ > >> git at gitorious.org's password: > > > > Thanks > > Martin > > > > > > On 05/02/2008, Tim Harper wrote: > >> Once again, just a reminder for anyone who would like to use it: > >> > >> I have added quite a few new features on my clone of the repository, > >> like show specific revision, git stash/clear/apply/show, show > >> changes, > >> and the likes. I've also improved upon the git commit dialog to > >> behave in a much more natural fashion. > >> > >> Now, I know noone needs to use it, but it's there, and if you'd like > >> to clone it, this command should do it: > >> > >> git clone git at gitorious.org:git-tmbundle/mainline.git > >> > >> You'll need to rename the folder it creates to "Git.tmbundle" > >> > >> Tim > >> > >> On Feb 3, 2008, at 5:03 AM, Allan Odgaard wrote: > >> > >>> On 18 Jan 2008, at 22:49, Michael Melanson wrote: > >>> > >>>> Alain Ravet wrote: > >>>>> On Dec 12, 2007 9:45 PM, Michael Sheets > >>>>> wrote: > >>>>>> See: http://macromates.com/textmate/manual/shell_commands#search_path > >>>>>> Especially the part past "Important". > >>>>> It worked fine. Thanks Michael. > >>>>> Alain > >>>> > >>>> I ran into this problem too, because I have git in a non-standard > >>>> location. > >>>> > >>>> I found that while it can be overridden in SCM::Git with the TM_GIT > >>>> variable, the "Commit...", "Show Log" and "Revert" commands don't > >>>> use this value. > >>>> > >>>> Below is a patch that makes these commands use the value of @git in > >>>> SCM::Git. If it seems good, please let me know what I should do to > >>>> get this applied to the tree. > >>> > >>> Thanks, I have committed the patch. > >>> > >>> > >>> ______________________________________________________________________ > >>> For new threads USE THIS: textmate at lists.macromates.com > >>> (threading gets destroyed and the universe will collapse if you > >>> don't) > >>> http://lists.macromates.com/mailman/listinfo/textmate > >> > >> > >> ______________________________________________________________________ > >> For new threads USE THIS: textmate at lists.macromates.com > >> (threading gets destroyed and the universe will collapse if you > >> don't) > >> http://lists.macromates.com/mailman/listinfo/textmate > >> > > > > > > -- > > burnfield.com/martin > > > > ______________________________________________________________________ > > For new threads USE THIS: textmate at lists.macromates.com > > (threading gets destroyed and the universe will collapse if you don't) > > http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -- burnfield.com/martin From cristi.baluta at gmail.com Wed Feb 6 10:27:46 2008 From: cristi.baluta at gmail.com (Baluta Cristian) Date: Wed, 6 Feb 2008 12:27:46 +0200 Subject: [TxMt] Problems printing with line numbers using TextMate bundle In-Reply-To: <1A86844C-BBB5-4DF5-8A2A-7F66E60B7B54@mac.com> References: <20080205120015.2D15665D1@comox.textdrive.com> <1A86844C-BBB5-4DF5-8A2A-7F66E60B7B54@mac.com> Message-ID: <7285de060802060227o1c19defet676a8ce3c84884e@mail.gmail.com> did you tried to export to html? from textmate bundle, then print the html. On Feb 5, 2008 9:14 PM, John Laudun wrote: > > I'm trying to teach myself the basics of programming -- I'm working > with Python -- and one of the things I'm doing is going over extant > scripts that I find useful to see how they do what they do. One of the > scripts I'm interested in is pwyky, and so I wanted to print out the > file but I need line numbers to help me keep track of where I am. No > problem. Textmate has that in its eponymous bundle! But when I run it, > I get the following dialogue error in the preview window: > > sh: ps: command not found > Received exception:TextMate::AppPathNotFoundException > > I checked the first level code in the Bundle Editor, but this has to > be somewhere in one of the Ruby scripts, but I am shy about digging in > there. Any help would be appreciated. > > john > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -- Cristi www.ralcr.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gkv at Princeton.EDU Wed Feb 6 13:56:49 2008 From: gkv at Princeton.EDU (Geoff Vallis) Date: Wed, 6 Feb 2008 08:56:49 -0500 Subject: [TxMt] LaTeX Bundle question Message-ID: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> Hello, I'm new to TextMate so please forgive my ignorance. My question is: is it possible to, or would it be possible to make, TextMate work well with xdvi? Even though part of the world is trending toward using PDF to display on the Mac, e.g. with Skim, there are still some advantages to xdvi, in particular that the display and updating are very fast, and it is much faster to latex a long document than to pdflatex it. There are two things that would be needed. 1. When using latex as the engine, it seems that TextMate also invokes dvips to create a PDF file. This should be turned off. (Perhaps there is already an option for this?) Also, one would need to invoke latex with src-specials turned on (latex -src-specials). 2. One would like to be able to synchronize from TextMate to xdvi. This can be done with a command like: xdvi -sourceposition lineno$texfile $dvifile for example xdvi -sourceposition 50myfile.tex mymasterfile.dvi Syncing from xdvi to TextMate is already relatively easy. I'm guessing all this may be easy for those who are familiar with bundle editing (not me!), or even perhaps has been done already? Thanks Geoff Vallis From bonelake at gmail.com Wed Feb 6 15:39:07 2008 From: bonelake at gmail.com (Brad Miller) Date: Wed, 6 Feb 2008 09:39:07 -0600 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> Message-ID: <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> Geoff, Using the following directive at the top of your latex file %!TEX TS- program = mytex.sh Then, write your own shell script to typeset the document in latex with your own options and own viewer. Here's what I wrote up as a quick test: ---------- snip and save to mytex.sh ------------- #!/bin/bash FILE="${TM_LATEX_MASTER:-$TM_FILEPATH}" latex -src-specials -interaction=nonstopmode -file-line-error $@ # "$FILE" #&& dvips -t a4 "${FILE%.tex}.dvi" && ps2pdf "${FILE.tex}.ps" xdvi -sourceposition $TM_LINE_NUMBER\$$FILE "${FILE%.tex}.dvi" ----------------------------------------- Save the above to /usr/local/bin or some other directory on your path and you are good to go. Make sure to uncheck automatically open pdf in the latex preferences window. On Feb 6, 2008, at 7:56 AM, Geoff Vallis wrote: > Hello, > > I'm new to TextMate so please forgive my ignorance. My question is: > is it possible to, or would it be possible to make, TextMate work > well with xdvi? Even though part of the world is trending toward > using PDF to display on the Mac, e.g. with Skim, there are still > some advantages to xdvi, in particular that the display and updating > are very fast, and it is much faster to latex a long document than > to pdflatex it. > > There are two things that would be needed. > > 1. When using latex as the engine, it seems that TextMate also > invokes dvips to create a PDF file. This should be turned off. > (Perhaps there is already an option for this?) Also, one would need > to invoke latex with src-specials turned on (latex -src-specials). > > 2. One would like to be able to synchronize from TextMate to xdvi. > This can be done with a command like: > xdvi -sourceposition lineno$texfile $dvifile > for example > xdvi -sourceposition 50myfile.tex mymasterfile.dvi > > Syncing from xdvi to TextMate is already relatively easy. > > I'm guessing all this may be easy for those who are familiar with > bundle editing (not me!), or even perhaps has been done already? > > Thanks > Geoff Vallis > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From gkv at Princeton.EDU Wed Feb 6 17:00:00 2008 From: gkv at Princeton.EDU (Geoff Vallis) Date: Wed, 6 Feb 2008 12:00:00 -0500 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> Message-ID: <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> Brad, Thanks very much. Your script works as advertised. I'd like now to be able to sync from the source document in TextMate to the xdvi window. I presume that I need to add some command in the Latex bundle that is analogous to the existing command 'show in PDF viewer (pdfsync)'. When I look at that command in the bundle editor it is not very informative as to how to do this. Any suggestions? Geoff On Feb 6, 2008, at 10:39 AM, Brad Miller wrote: > Geoff, > > Using the following directive at the top of your latex file %!TEX > TS-program = mytex.sh > > > Then, write your own shell script to typeset the document in latex > with your own options and own viewer. Here's what I wrote up as a > quick test: > > ---------- snip and save to mytex.sh ------------- > > #!/bin/bash > > > FILE="${TM_LATEX_MASTER:-$TM_FILEPATH}" > > > latex -src-specials -interaction=nonstopmode -file-line-error $@ # > "$FILE" #&& dvips -t a4 "${FILE%.tex}.dvi" && ps2pdf "${FILE.tex}.ps" > > xdvi -sourceposition $TM_LINE_NUMBER\$$FILE "${FILE%.tex}.dvi" > > > ----------------------------------------- > > Save the above to /usr/local/bin or some other directory on your > path and you are good to go. > > > Make sure to uncheck automatically open pdf in the latex preferences > window. > > On Feb 6, 2008, at 7:56 AM, Geoff Vallis wrote: > >> Hello, >> >> I'm new to TextMate so please forgive my ignorance. My question is: >> is it possible to, or would it be possible to make, TextMate work >> well with xdvi? Even though part of the world is trending toward >> using PDF to display on the Mac, e.g. with Skim, there are still >> some advantages to xdvi, in particular that the display and >> updating are very fast, and it is much faster to latex a long >> document than to pdflatex it. >> >> There are two things that would be needed. >> >> 1. When using latex as the engine, it seems that TextMate also >> invokes dvips to create a PDF file. This should be turned off. >> (Perhaps there is already an option for this?) Also, one would need >> to invoke latex with src-specials turned on (latex -src-specials). >> >> 2. One would like to be able to synchronize from TextMate to xdvi. >> This can be done with a command like: >> xdvi -sourceposition lineno$texfile $dvifile >> for example >> xdvi -sourceposition 50myfile.tex mymasterfile.dvi >> >> Syncing from xdvi to TextMate is already relatively easy. >> >> I'm guessing all this may be easy for those who are familiar with >> bundle editing (not me!), or even perhaps has been done already? >> >> Thanks >> Geoff Vallis >> >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From bonelake at gmail.com Wed Feb 6 18:43:00 2008 From: bonelake at gmail.com (Brad Miller) Date: Wed, 6 Feb 2008 12:43:00 -0600 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> Message-ID: Geoff, The pdfsync commands rely on the applescript capability of the viewers like Skim. I don't think that is going to be possible with xdvi. Brad On Feb 6, 2008, at 11:00 AM, Geoff Vallis wrote: > Brad, > > Thanks very much. Your script works as advertised. > > I'd like now to be able to sync from the source document in TextMate > to the xdvi window. I presume that I need to add some command in the > Latex bundle that is analogous to the existing command 'show in PDF > viewer (pdfsync)'. When I look at that command in the bundle editor > it is not very informative as to how to do this. Any suggestions? > > Geoff > > > > > > On Feb 6, 2008, at 10:39 AM, Brad Miller wrote: > >> Geoff, >> >> Using the following directive at the top of your latex file %!TEX >> TS-program = mytex.sh >> >> >> Then, write your own shell script to typeset the document in latex >> with your own options and own viewer. Here's what I wrote up as a >> quick test: >> >> ---------- snip and save to mytex.sh ------------- >> >> #!/bin/bash >> >> >> FILE="${TM_LATEX_MASTER:-$TM_FILEPATH}" >> >> >> latex -src-specials -interaction=nonstopmode -file-line-error $@ # >> "$FILE" #&& dvips -t a4 "${FILE%.tex}.dvi" && ps2pdf "${FILE.tex}.ps" >> >> xdvi -sourceposition $TM_LINE_NUMBER\$$FILE "${FILE%.tex}.dvi" >> >> >> ----------------------------------------- >> >> Save the above to /usr/local/bin or some other directory on your >> path and you are good to go. >> >> >> Make sure to uncheck automatically open pdf in the latex >> preferences window. >> >> On Feb 6, 2008, at 7:56 AM, Geoff Vallis wrote: >> >>> Hello, >>> >>> I'm new to TextMate so please forgive my ignorance. My question >>> is: is it possible to, or would it be possible to make, TextMate >>> work well with xdvi? Even though part of the world is trending >>> toward using PDF to display on the Mac, e.g. with Skim, there are >>> still some advantages to xdvi, in particular that the display and >>> updating are very fast, and it is much faster to latex a long >>> document than to pdflatex it. >>> >>> There are two things that would be needed. >>> >>> 1. When using latex as the engine, it seems that TextMate also >>> invokes dvips to create a PDF file. This should be turned off. >>> (Perhaps there is already an option for this?) Also, one would >>> need to invoke latex with src-specials turned on (latex -src- >>> specials). >>> >>> 2. One would like to be able to synchronize from TextMate to xdvi. >>> This can be done with a command like: >>> xdvi -sourceposition lineno$texfile $dvifile >>> for example >>> xdvi -sourceposition 50myfile.tex mymasterfile.dvi >>> >>> Syncing from xdvi to TextMate is already relatively easy. >>> >>> I'm guessing all this may be easy for those who are familiar with >>> bundle editing (not me!), or even perhaps has been done already? >>> >>> Thanks >>> Geoff Vallis >>> >>> >>> >>> ______________________________________________________________________ >>> For new threads USE THIS: textmate at lists.macromates.com >>> (threading gets destroyed and the universe will collapse if you >>> don't) >>> http://lists.macromates.com/mailman/listinfo/textmate >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From gkv at Princeton.EDU Wed Feb 6 19:13:12 2008 From: gkv at Princeton.EDU (Geoff Vallis) Date: Wed, 6 Feb 2008 14:13:12 -0500 Subject: [TxMt] LaTeX Bundle question In-Reply-To: References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> Message-ID: <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> Brad, That's too bad if so, and seems a bit odd, to me at least. After all, an applescript can call a shell script, which could be used to call xdvi, presuming that the parameters like line number and file name could be passed on to the shell script. And I thought that Textmate could in any case invoke shell commands directly, which is all one would need along with the file name and line number. I am presumably missing something! Geoff On Feb 6, 2008, at 1:43 PM, Brad Miller wrote: > Geoff, > > The pdfsync commands rely on the applescript capability of the > viewers like Skim. I don't think that is going to be possible with > xdvi. > > Brad > > On Feb 6, 2008, at 11:00 AM, Geoff Vallis wrote: > >> Brad, >> >> Thanks very much. Your script works as advertised. >> >> I'd like now to be able to sync from the source document in >> TextMate to the xdvi window. I presume that I need to add some >> command in the Latex bundle that is analogous to the existing >> command 'show in PDF viewer (pdfsync)'. When I look at that command >> in the bundle editor it is not very informative as to how to do >> this. Any suggestions? >> >> Geoff >> >> >> >> >> >> On Feb 6, 2008, at 10:39 AM, Brad Miller wrote: >> >>> Geoff, >>> >>> Using the following directive at the top of your latex file %!TEX >>> TS-program = mytex.sh >>> >>> >>> Then, write your own shell script to typeset the document in >>> latex with your own options and own viewer. Here's what I wrote >>> up as a quick test: >>> >>> ---------- snip and save to mytex.sh ------------- >>> >>> #!/bin/bash >>> >>> >>> FILE="${TM_LATEX_MASTER:-$TM_FILEPATH}" >>> >>> >>> latex -src-specials -interaction=nonstopmode -file-line-error $@ # >>> "$FILE" #&& dvips -t a4 "${FILE%.tex}.dvi" && ps2pdf "$ >>> {FILE.tex}.ps" >>> >>> xdvi -sourceposition $TM_LINE_NUMBER\$$FILE "${FILE%.tex}.dvi" >>> >>> >>> ----------------------------------------- >>> >>> Save the above to /usr/local/bin or some other directory on your >>> path and you are good to go. >>> >>> >>> Make sure to uncheck automatically open pdf in the latex >>> preferences window. >>> >>> On Feb 6, 2008, at 7:56 AM, Geoff Vallis wrote: >>> >>>> Hello, >>>> >>>> I'm new to TextMate so please forgive my ignorance. My question >>>> is: is it possible to, or would it be possible to make, TextMate >>>> work well with xdvi? Even though part of the world is trending >>>> toward using PDF to display on the Mac, e.g. with Skim, there are >>>> still some advantages to xdvi, in particular that the display and >>>> updating are very fast, and it is much faster to latex a long >>>> document than to pdflatex it. >>>> >>>> There are two things that would be needed. >>>> >>>> 1. When using latex as the engine, it seems that TextMate also >>>> invokes dvips to create a PDF file. This should be turned off. >>>> (Perhaps there is already an option for this?) Also, one would >>>> need to invoke latex with src-specials turned on (latex -src- >>>> specials). >>>> >>>> 2. One would like to be able to synchronize from TextMate to >>>> xdvi. This can be done with a command like: >>>> xdvi -sourceposition lineno$texfile $dvifile >>>> for example >>>> xdvi -sourceposition 50myfile.tex mymasterfile.dvi >>>> >>>> Syncing from xdvi to TextMate is already relatively easy. >>>> >>>> I'm guessing all this may be easy for those who are familiar with >>>> bundle editing (not me!), or even perhaps has been done already? >>>> >>>> Thanks >>>> Geoff Vallis >>>> >>>> >>>> >>>> ______________________________________________________________________ >>>> For new threads USE THIS: textmate at lists.macromates.com >>>> (threading gets destroyed and the universe will collapse if you >>>> don't) >>>> http://lists.macromates.com/mailman/listinfo/textmate >>> >>> >>> ______________________________________________________________________ >>> For new threads USE THIS: textmate at lists.macromates.com >>> (threading gets destroyed and the universe will collapse if you >>> don't) >>> http://lists.macromates.com/mailman/listinfo/textmate >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From jeroen at je-ju.net Wed Feb 6 19:55:30 2008 From: jeroen at je-ju.net (Jeroen van der Ham) Date: Wed, 06 Feb 2008 20:55:30 +0100 Subject: [TxMt] LaTeX Bundle question In-Reply-To: References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> Message-ID: <47AA10B2.9050702@je-ju.net> Brad Miller wrote: > The pdfsync commands rely on the applescript capability of the viewers > like Skim. I don't think that is going to be possible with xdvi. That, and the inclusion of the package pdfsync, so that the pdf contains pointers to the original lines. So I don't think you'll have much luck trying to get something like that to work with xdvi. If the processing time of pdflatex is the issue for you, then I'd suggest you cut up your source file into pieces, and run it on the pieces. In my experience Skim is pretty damn fast in updating pdfs. Jeroen. From gkv at Princeton.EDU Wed Feb 6 20:37:49 2008 From: gkv at Princeton.EDU (Geoff Vallis) Date: Wed, 6 Feb 2008 15:37:49 -0500 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <47AA10B2.9050702@je-ju.net> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <47AA10B2.9050702@je-ju.net> Message-ID: <309308C7-D8F7-47E0-8EF4-35CF15D4BD8B@princeton.edu> > >> The pdfsync commands rely on the applescript capability of the >> viewers like Skim. I don't think that is going to be possible with >> xdvi. > > That, and the inclusion of the package pdfsync, so that the pdf > contains pointers to the original lines. > So I don't think you'll have much luck trying to get something like > that to work with xdvi. No - two-way syncing does work properly with xdvi, and in fact did so for a long time before pdfsync. The required information is embedded in the dvi file, and, for example, both BBEdit and emacs are able to easily synchronize both ways with xdvi. You just need to call xdvi with the line number and file names as arguments (i.e., xdvi - sourceposition lineno$texfile $dvifile), and xdvi goes to the right page with a marker at the appropriate location. And if you set the 'XEDITOR' environment to 'mate -line %l %f' then clicking on xdvi takes you to the right line in TextMate. > If the processing time of pdflatex is the issue for you, then I'd > suggest you cut up your source file into pieces, and run it on the > pieces. Thats a fair enough point. It is just that recently I've been working on a very long document that doesn't split conveniently into chunks less than 50 pages, more in places, and it needs to be repeatedly typeset because I make lots of errors when typing math equations (duh). But perhaps more than that, it does seem that one _should_ be able to make syncing work between TextMate and xdvi, given TextMate's vaunted flexibility and power.... Perhaps someone can point me to the code that enables syncing from TextMate to Skim, and tell me what it means, and I can try to hack it to work with xdvi? Geoff From n.kobschaetzki at googlemail.com Wed Feb 6 21:13:23 2008 From: n.kobschaetzki at googlemail.com (Niels Kobschaetzki) Date: Wed, 6 Feb 2008 22:13:23 +0100 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <309308C7-D8F7-47E0-8EF4-35CF15D4BD8B@princeton.edu> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <47AA10B2.9050702@je-ju.net> <309308C7-D8F7-47E0-8EF4-35CF15D4BD8B@princeton.edu> Message-ID: On Feb 6, 2008 9:37 PM, Geoff Vallis wrote: > But perhaps more than that, it does seem that one _should_ be able to > make syncing work between TextMate and xdvi, given TextMate's vaunted > flexibility and power.... Perhaps someone can point me to the code > that enables syncing from TextMate to Skim, and tell me what it means, > and I can try to hack it to work with xdvi? The "Show in PDF Viewer"-command says "texMate.py sync 1" (you can see that in the Bundle Editor) and locate tells me that texMate.py is located in "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py" and a search in TextMate in that file says that the stuff you are searching for starts propably at line 109? Niels From bonelake at gmail.com Wed Feb 6 21:33:58 2008 From: bonelake at gmail.com (Brad Miller) Date: Wed, 6 Feb 2008 15:33:58 -0600 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> Message-ID: <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> On Feb 6, 2008, at 1:13 PM, Geoff Vallis wrote: > Brad, > > That's too bad if so, and seems a bit odd, to me at least. After > all, an applescript can call a shell script, which could be used to > call xdvi, presuming that the parameters like line number and file > name could be passed on to the shell script. And I thought that > Textmate could in any case invoke shell commands directly, which is > all one would need along with the file name and line number. > > I am presumably missing something! > You are probably right. I didn't think about it very carefully, and I don't really know anything about xdvi anymore as I've been very happily using pdf for several years now. I would presume that if it can all be done in a shell script then using the TM_ variables would give you enough info to put together a script. In fact this script could simply be the body of a TextMate bundle command. Brad > Geoff > > > On Feb 6, 2008, at 1:43 PM, Brad Miller wrote: > >> Geoff, >> >> The pdfsync commands rely on the applescript capability of the >> viewers like Skim. I don't think that is going to be possible with >> xdvi. >> >> Brad >> >> On Feb 6, 2008, at 11:00 AM, Geoff Vallis wrote: >> >>> Brad, >>> >>> Thanks very much. Your script works as advertised. >>> >>> I'd like now to be able to sync from the source document in >>> TextMate to the xdvi window. I presume that I need to add some >>> command in the Latex bundle that is analogous to the existing >>> command 'show in PDF viewer (pdfsync)'. When I look at that >>> command in the bundle editor it is not very informative as to how >>> to do this. Any suggestions? >>> >>> Geoff >>> >>> >>> >>> >>> >>> On Feb 6, 2008, at 10:39 AM, Brad Miller wrote: >>> >>>> Geoff, >>>> >>>> Using the following directive at the top of your latex file %! >>>> TEX TS-program = mytex.sh >>>> >>>> >>>> Then, write your own shell script to typeset the document in >>>> latex with your own options and own viewer. Here's what I wrote >>>> up as a quick test: >>>> >>>> ---------- snip and save to mytex.sh ------------- >>>> >>>> #!/bin/bash >>>> >>>> >>>> FILE="${TM_LATEX_MASTER:-$TM_FILEPATH}" >>>> >>>> >>>> latex -src-specials -interaction=nonstopmode -file-line-error $@ >>>> # "$FILE" #&& dvips -t a4 "${FILE%.tex}.dvi" && ps2pdf "$ >>>> {FILE.tex}.ps" >>>> >>>> xdvi -sourceposition $TM_LINE_NUMBER\$$FILE "${FILE%.tex}.dvi" >>>> >>>> >>>> ----------------------------------------- >>>> >>>> Save the above to /usr/local/bin or some other directory on your >>>> path and you are good to go. >>>> >>>> >>>> Make sure to uncheck automatically open pdf in the latex >>>> preferences window. >>>> >>>> On Feb 6, 2008, at 7:56 AM, Geoff Vallis wrote: >>>> >>>>> Hello, >>>>> >>>>> I'm new to TextMate so please forgive my ignorance. My question >>>>> is: is it possible to, or would it be possible to make, TextMate >>>>> work well with xdvi? Even though part of the world is trending >>>>> toward using PDF to display on the Mac, e.g. with Skim, there >>>>> are still some advantages to xdvi, in particular that the >>>>> display and updating are very fast, and it is much faster to >>>>> latex a long document than to pdflatex it. >>>>> >>>>> There are two things that would be needed. >>>>> >>>>> 1. When using latex as the engine, it seems that TextMate also >>>>> invokes dvips to create a PDF file. This should be turned off. >>>>> (Perhaps there is already an option for this?) Also, one would >>>>> need to invoke latex with src-specials turned on (latex -src- >>>>> specials). >>>>> >>>>> 2. One would like to be able to synchronize from TextMate to >>>>> xdvi. This can be done with a command like: >>>>> xdvi -sourceposition lineno$texfile $dvifile >>>>> for example >>>>> xdvi -sourceposition 50myfile.tex mymasterfile.dvi >>>>> >>>>> Syncing from xdvi to TextMate is already relatively easy. >>>>> >>>>> I'm guessing all this may be easy for those who are familiar >>>>> with bundle editing (not me!), or even perhaps has been done >>>>> already? >>>>> >>>>> Thanks >>>>> Geoff Vallis >>>>> >>>>> >>>>> >>>>> ______________________________________________________________________ >>>>> For new threads USE THIS: textmate at lists.macromates.com >>>>> (threading gets destroyed and the universe will collapse if you >>>>> don't) >>>>> http://lists.macromates.com/mailman/listinfo/textmate >>>> >>>> >>>> ______________________________________________________________________ >>>> For new threads USE THIS: textmate at lists.macromates.com >>>> (threading gets destroyed and the universe will collapse if you >>>> don't) >>>> http://lists.macromates.com/mailman/listinfo/textmate >>> >>> >>> ______________________________________________________________________ >>> For new threads USE THIS: textmate at lists.macromates.com >>> (threading gets destroyed and the universe will collapse if you >>> don't) >>> http://lists.macromates.com/mailman/listinfo/textmate >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From gkv at Princeton.EDU Wed Feb 6 21:53:45 2008 From: gkv at Princeton.EDU (Geoff Vallis) Date: Wed, 6 Feb 2008 16:53:45 -0500 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> Message-ID: <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> Replying to Brad and Niels in one go: On Feb 6, 2008, at 4:13 PM, Niels Kobschaetzki wrote: > > The "Show in PDF Viewer"-command says "texMate.py sync 1" (you can see > that in the Bundle Editor) > and locate tells me that texMate.py is located in > "/Applications/TextMate.app/Contents/SharedSupport/Bundles/ > Latex.tmbundle/Support/bin/texMate.py" > > and a search in TextMate in that file says that the stuff you are > searching for starts propably at line 109? On Feb 6, 2008, at 4:33 PM, Brad Miller wrote: > >> Brad, >> >> That's too bad if so, and seems a bit odd, to me at least. After >> all, an applescript can call a shell script, which could be used to >> call xdvi, presuming that the parameters like line number and file >> name could be passed on to the shell script. And I thought that >> Textmate could in any case invoke shell commands directly, which is >> all one would need along with the file name and line number. >> >> I am presumably missing something! >> > > You are probably right. I didn't think about it very carefully, and > I don't really know anything about xdvi anymore as I've been very > happily using pdf for several years now. > > I would presume that if it can all be done in a shell script then > using the TM_ variables would give you enough info to put together a > script. In fact this script could simply be the body of a TextMate > bundle command. > > Brad Thanks to both of you. Looking at texMate.py, it seems that in order to forward sync, TextMate calls the scripts that are provided by the PDF viewers, such as forward-search.sh in TeXniscope. On the face of it, it seems that one might be able to substitute a call to xdvi for one of these scripts, as the functionality and calling parameters are very similar. I guess I'll give it a shot -- unless someone who actually knows what they are doing wants to do it? I suspect it is a piece of cake in that case, and I'd be happy to provide any knowledge of xdvi that might be needed. (Unfortunately, I barely know what a 'bundle' is...) Geoff From robin.houston at gmail.com Wed Feb 6 22:25:27 2008 From: robin.houston at gmail.com (Robin Houston) Date: Wed, 6 Feb 2008 22:25:27 +0000 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> Message-ID: <1b795e7b0802061425m2d1163a4lf78f73c88335e06c@mail.gmail.com> Geoff, The "Watch document" command should attempt to use gv as the previewer, in latex mode. (I haven't tried this for a while, but it used to work and could easily be fixed if it's accidentally been broken.) That's much faster than generating a PDF. As you've probably noticed, converting PostScript to PDF is actually the slowest part of the process, for a long or complicated document. "Watch document" also caches the processed version of the document preamble, so you should find it significantly faster to update when making incremental changes. Robin From gkv at Princeton.EDU Wed Feb 6 22:42:03 2008 From: gkv at Princeton.EDU (Geoff Vallis) Date: Wed, 6 Feb 2008 17:42:03 -0500 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <1b795e7b0802061425m2d1163a4lf78f73c88335e06c@mail.gmail.com> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> <1b795e7b0802061425m2d1163a4lf78f73c88335e06c@mail.gmail.com> Message-ID: <739AEC60-CC4E-42CC-9763-37FA8BF6E490@princeton.edu> Robin Yes - 'Watch' still seems to work okay. The problem with gv is that no synchronization is possible: for speed and synchronization I've found xdvi hard to beat -- at least when using an editor that supports it :-) Texniscope used to have a very nice feature that one could typeset in latex mode, and then Texniscope would convert to PDF for displaying, using dvipdfmx, but it would only convert the page that one was viewing and the few pages on either side. This made it quite fast, almost as fast as xdvi and with nicer viewing quality, but alas the feature doesn't seem to have been inherited by Skim, and Texniscope, also alas, is no longer supported. Geoff On Feb 6, 2008, at 5:25 PM, Robin Houston wrote: > Geoff, > > The "Watch document" command should attempt to use gv as the > previewer, in latex mode. (I haven't tried this for a while, but it > used to work and could easily be fixed if it's accidentally been > broken.) > > That's much faster than generating a PDF. As you've probably noticed, > converting PostScript to PDF is actually the slowest part of the > process, for a long or complicated document. > > "Watch document" also caches the processed version of the document > preamble, so you should find it significantly faster to update when > making incremental changes. > > Robin > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From bonelake at gmail.com Thu Feb 7 02:47:52 2008 From: bonelake at gmail.com (Brad Miller) Date: Wed, 6 Feb 2008 20:47:52 -0600 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> Message-ID: <82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com> Geoff, How do you tell a running version of xdvi to change its position/page from the shell? If it can be done from the shell I'll look at adding it. If xdvi is to be an officially supported viewer then its going to take me a bit of time to make it work with the rest of the bundle options in texMate.py. All of the viewing commands assumed that pdf was the format that was going to be viewed so its not a trivial change. You are the first person to request support for xdvi. I'm curious if others would want xdvi supported as well. If it is a short shell script then it really would be very easy for you to add your own bundle command. type ctrl-opt-cmd-b to bring up the bundle editor You should see a bundle with your own name, or you can add the command to the latex bundle. click add new command in the lower left corner. Give your new command a name: dvisync Save: Nothing Command(s) Whatever shell script tells xdvi to update itself. The two variables you may want are: TM_LINE_NUMBER and TM_FILEPATH or TM_FILENAME Input: None Output: discard key equivalent: your choice Scope Selector: text.tex.latex Brad Close the bundle editor, and you've made your first TextMate command. On Feb 6, 2008, at 3:53 PM, Geoff Vallis wrote: > Replying to Brad and Niels in one go: > > > On Feb 6, 2008, at 4:13 PM, Niels Kobschaetzki wrote: >> >> The "Show in PDF Viewer"-command says "texMate.py sync 1" (you can >> see >> that in the Bundle Editor) >> and locate tells me that texMate.py is located in >> "/Applications/TextMate.app/Contents/SharedSupport/Bundles/ >> Latex.tmbundle/Support/bin/texMate.py" >> >> and a search in TextMate in that file says that the stuff you are >> searching for starts propably at line 109? > > On Feb 6, 2008, at 4:33 PM, Brad Miller wrote: >> >>> Brad, >>> >>> That's too bad if so, and seems a bit odd, to me at least. After >>> all, an applescript can call a shell script, which could be used >>> to call xdvi, presuming that the parameters like line number and >>> file name could be passed on to the shell script. And I thought >>> that Textmate could in any case invoke shell commands directly, >>> which is all one would need along with the file name and line >>> number. >>> >>> I am presumably missing something! >>> >> >> You are probably right. I didn't think about it very carefully, >> and I don't really know anything about xdvi anymore as I've been >> very happily using pdf for several years now. >> >> I would presume that if it can all be done in a shell script then >> using the TM_ variables would give you enough info to put together >> a script. In fact this script could simply be the body of a >> TextMate bundle command. >> >> Brad > > > > Thanks to both of you. Looking at texMate.py, it seems that in order > to forward sync, TextMate calls the scripts that are provided by the > PDF viewers, such as forward-search.sh in TeXniscope. On the face of > it, it seems that one might be able to substitute a call to xdvi for > one of these scripts, as the functionality and calling parameters > are very similar. I guess I'll give it a shot -- unless someone who > actually knows what they are doing wants to do it? I suspect it is a > piece of cake in that case, and I'd be happy to provide any > knowledge of xdvi that might be needed. (Unfortunately, I barely > know what a 'bundle' is...) > > Geoff > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From alain.matthes at mac.com Thu Feb 7 06:17:02 2008 From: alain.matthes at mac.com (Alain Matthes) Date: Thu, 7 Feb 2008 07:17:02 +0100 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> <82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com> Message-ID: <553AD325-9B32-4ECF-8E97-04723E4F5966@mac.com> Le 7 f?vr. 08 ? 03:47, Brad Miller a ?crit : > Geoff, > > How do you tell a running version of xdvi to change its position/ > page from the shell? If it can be done from the shell I'll look at > adding it. If xdvi is to be an officially supported viewer then its > going to take me a bit of time to make it work with the rest of the > bundle options in texMate.py. All of the viewing commands assumed > that pdf was the format that was going to be viewed so its not a > trivial change. You are the first person to request support for > xdvi. I'm curious if others would want xdvi supported as well. NO ! dvi is not necessary because I work only with pdflatex and pgf(instead pf pstricks) to get directly PDF files. Currently DVI is not a very convenient format to exchange Best Regards Alain Matthes From n.kobschaetzki at googlemail.com Thu Feb 7 06:36:21 2008 From: n.kobschaetzki at googlemail.com (Niels Kobschaetzki) Date: Thu, 7 Feb 2008 07:36:21 +0100 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <553AD325-9B32-4ECF-8E97-04723E4F5966@mac.com> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> <82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com> <553AD325-9B32-4ECF-8E97-04723E4F5966@mac.com> Message-ID: On Feb 7, 2008 7:17 AM, Alain Matthes wrote: > > Le 7 f?vr. 08 ? 03:47, Brad Miller a ?crit : > > > Geoff, > > > > How do you tell a running version of xdvi to change its position/ > > page from the shell? If it can be done from the shell I'll look at > > adding it. If xdvi is to be an officially supported viewer then its > > going to take me a bit of time to make it work with the rest of the > > bundle options in texMate.py. All of the viewing commands assumed > > that pdf was the format that was going to be viewed so its not a > > trivial change. You are the first person to request support for > > xdvi. I'm curious if others would want xdvi supported as well. > > NO ! > > dvi is not necessary because I work only with pdflatex and > pgf(instead pf pstricks) to get directly PDF files. > > Currently DVI is not a very convenient format to exchange I do not need it either. DVI was never (even in my *nix-starting times 10 years ago) a convenient or comfortable format for me. Niels From peter.haza at gmail.com Thu Feb 7 08:18:32 2008 From: peter.haza at gmail.com (Peter Haza) Date: Thu, 7 Feb 2008 09:18:32 +0100 Subject: [TxMt] Insert CSS Import drag command Message-ID: <8E15FE69-EED5-49F9-A8DB-40C772D7CA96@gmail.com> Hi I've made a drag command for dragging css files into other css files. The current behavior when you drag a css file onto another is to paste the content of the dragged css into the other css. This command will rather insert an @import url("relative/path/to/css"); The import rule for css is specified here: http://www.w3.org/TR/REC-CSS2/cascade.html#at-import ph -------------- next part -------------- A non-text attachment was scrubbed... Name: Insert CSS Import.tmDragCommand Type: application/octet-stream Size: 673 bytes Desc: not available URL: -------------- next part -------------- From ceyrich at gmx.net Thu Feb 7 09:15:42 2008 From: ceyrich at gmx.net (Christoph Eyrich) Date: Thu, 7 Feb 2008 10:15:42 +0100 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> <82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com> Message-ID: On Feb 7, 2008, at 3:47 AM, Brad Miller wrote: > I'm curious if others would want xdvi supported as well. me too, also for the sake of speed. i agree that it's not very convenient (rendering of colorboxes doesn't work properly, pstricks doesn't work, etc.) but there are a lot of situations where speed matters :-) christoph From peter.haza at gmail.com Thu Feb 7 09:19:37 2008 From: peter.haza at gmail.com (Peter Haza) Date: Thu, 7 Feb 2008 10:19:37 +0100 Subject: [TxMt] New CSS language grammar to match media-types in @import directive Message-ID: <66EDB145-13C4-48EA-B39F-FEF71C29DB25@gmail.com> This language grammar will match the media-types specified in in @import: @import url("some.css") screen, projection, tty; ph From peter.haza at gmail.com Thu Feb 7 10:31:23 2008 From: peter.haza at gmail.com (Peter Haza) Date: Thu, 7 Feb 2008 11:31:23 +0100 Subject: [TxMt] Re: New CSS language grammar to match media-types in @import directive In-Reply-To: <66EDB145-13C4-48EA-B39F-FEF71C29DB25@gmail.com> References: <66EDB145-13C4-48EA-B39F-FEF71C29DB25@gmail.com> Message-ID: <7CA6F83C-28D6-4AAA-8EB2-20167AA858F7@gmail.com> And for those actually interested in the file... -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: css_grammar.txt URL: -------------- next part -------------- On Feb 7, 2008, at 10:19 AM, Peter Haza wrote: > This language grammar will match the media-types specified in in > @import: > > @import url("some.css") screen, projection, tty; > > ph From jeroen at je-ju.net Thu Feb 7 11:59:47 2008 From: jeroen at je-ju.net (Jeroen van der Ham) Date: Thu, 07 Feb 2008 12:59:47 +0100 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <309308C7-D8F7-47E0-8EF4-35CF15D4BD8B@princeton.edu> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <47AA10B2.9050702@je-ju.net> <309308C7-D8F7-47E0-8EF4-35CF15D4BD8B@princeton.edu> Message-ID: <47AAF2B3.6000402@je-ju.net> Geoff Vallis wrote: > Thats a fair enough point. It is just that recently I've been working on > a very long document that doesn't split conveniently into chunks less > than 50 pages, more in places, and it needs to be repeatedly typeset > because I make lots of errors when typing math equations (duh). In that case, why not try LaTeXiT ? I ran across it last night, never really used it, but its description sounds like just the thing you need: > LaTeXiT is a little utility designed to quickly typeset LaTeX equations and drag'n drop them into other applications. Its included service also allows to type and transform equations directly in most text editors. Jeroen. From jeroen at je-ju.net Thu Feb 7 13:18:07 2008 From: jeroen at je-ju.net (Jeroen van der Ham) Date: Thu, 07 Feb 2008 14:18:07 +0100 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <47AAF2B3.6000402@je-ju.net> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <47AA10B2.9050702@je-ju.net> <309308C7-D8F7-47E0-8EF4-35CF15D4BD8B@princeton.edu> <47AAF2B3.6000402@je-ju.net> Message-ID: <47AB050F.9000909@je-ju.net> Forgot to paste the URL: http://ktd.club.fr/programmation/latexit_en.php Jeroen van der Ham wrote: > Geoff Vallis wrote: >> Thats a fair enough point. It is just that recently I've been working >> on a very long document that doesn't split conveniently into chunks >> less than 50 pages, more in places, and it needs to be repeatedly >> typeset because I make lots of errors when typing math equations (duh). > > In that case, why not try LaTeXiT ? > > I ran across it last night, never really used it, but its description > sounds like just the thing you need: > >> LaTeXiT is a little utility designed to quickly typeset LaTeX >> equations and drag'n drop them into other applications. Its included >> service also allows to type and transform equations directly in most >> text editors. > > Jeroen. > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From gkv at Princeton.EDU Thu Feb 7 13:38:28 2008 From: gkv at Princeton.EDU (Geoff Vallis) Date: Thu, 7 Feb 2008 08:38:28 -0500 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> <82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com> Message-ID: <5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu> Brad, On Feb 6, 2008, at 9:47 PM, Brad Miller wrote: > How do you tell a running version of xdvi to change its position/ > page from the shell? If it can be done from the shell I'll look at > adding it. The command to update xdvi is the same whether or not xdvi is already running. It is just: xdvi -sourceposition Lineno[:Column]Filename Masterfile[.dvi] with, I hope, obvious notation, and of course this command can be embedded in a shell script. The Column parameter is optional. If xdvi is already running, showing masterfile, this call will just bring the xdvi window to the front and switch positions accordingly. If not, the command will open an xdvi window with Masterfile showing. There are a million other options that you can see with a 'man xdvi' or 'xdvi --help'. Generally, you first open an xdvi window with the size and options you want, and then the syncing just uses that open window. > If it is a short shell script then it really would be very easy for > you to add your own bundle command. > > type ctrl-opt-cmd-b to bring up the bundle editor > You should see a bundle with your own name, or you can add the > command to the latex bundle. > click add new command in the lower left corner. > Give your new command a name: dvisync > Save: Nothing > Command(s) Whatever shell script tells xdvi to update itself. The > two variables you may want are: > TM_LINE_NUMBER and TM_FILEPATH or TM_FILENAME > Input: None > Output: discard > key equivalent: your choice > Scope Selector: text.tex.latex > > Brad > > > Close the bundle editor, and you've made your first TextMate command. Thanks, I'll give this a shot, whether or not you decide to support xdvi. To be absolutely clear, can you say what the Textmate variables are that correspond to: linenumber of the file being edited where the cursor is at; column of the cursor of the file being edited (if available; filename of the file being edited; masterfilename (which will be the name of the dvi file). Regards Geoff From gkv at Princeton.EDU Thu Feb 7 14:06:37 2008 From: gkv at Princeton.EDU (Geoff Vallis) Date: Thu, 7 Feb 2008 09:06:37 -0500 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <47AAF2B3.6000402@je-ju.net> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <47AA10B2.9050702@je-ju.net> <309308C7-D8F7-47E0-8EF4-35CF15D4BD8B@princeton.edu> <47AAF2B3.6000402@je-ju.net> Message-ID: Jeroen, LaTeXiT is great, and I use it a lot, mainly in order to import LaTeX equations into keynote presentations, which I think is what it was originally designed for. I guess you could go back and forth between LaTeXit and TextMate to check formatting etc. I'll give it a try, although it seems a bit awkward. Also, unfortunately, LaTeXit does not currently work properly with Leopard (a known issue). Geoff On Feb 7, 2008, at 6:59 AM, Jeroen van der Ham wrote: > Geoff Vallis wrote: >> Thats a fair enough point. It is just that recently I've been >> working on a very long document that doesn't split conveniently >> into chunks less than 50 pages, more in places, and it needs to be >> repeatedly typeset because I make lots of errors when typing math >> equations (duh). > > In that case, why not try LaTeXiT ? > > I ran across it last night, never really used it, but its > description sounds like just the thing you need: > >> LaTeXiT is a little utility designed to quickly typeset LaTeX >> equations and drag'n drop them into other applications. Its >> included service also allows to type and transform equations >> directly in most text editors. > > Jeroen. > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From gerti-textmate at bitart.com Thu Feb 7 17:35:46 2008 From: gerti-textmate at bitart.com (Gerd Knops) Date: Thu, 7 Feb 2008 11:35:46 -0600 Subject: [TxMt] Xcode output source file links, groups Message-ID: <80520171-B5E1-459C-89F0-D169D25D2587@bitart.com> Hi, When generating log messages in my Cocoa projects I make heavy use of TM's ability to convert output in the format 'SourceFile.m:lineNo:' to links. This does not work for grouped files if the 'Path Type' in Xcode is set to 'Relative to Enclosing Group'. Changing it to 'Relative to Project' fixes it. Not sure if that is new with Xcode 3 or if it can be fixed (Xcode.tmbundle/Support/bin/run_xcode_target.rb, path_for_basename()), my ruby/.xcodeproj fu is not up to speed... Gerd From gerti-textmate at bitart.com Thu Feb 7 17:38:00 2008 From: gerti-textmate at bitart.com (Gerd Knops) Date: Thu, 7 Feb 2008 11:38:00 -0600 Subject: [TxMt] Objective-C 'magic brackets' Message-ID: <25EC065C-137E-4DC3-B0D9-1CD79A89343F@bitart.com> I love the feature that automatically inserts the opening square bracket. However one case that it always seems to get wrong: if(!aString isEqualToString:anotherString When typing the closing bracket, the opening brackte is inserted before the '!' instead of behind. Gerd From gerti-textmate at bitart.com Thu Feb 7 19:01:01 2008 From: gerti-textmate at bitart.com (Gerd Knops) Date: Thu, 7 Feb 2008 13:01:01 -0600 Subject: [TxMt] punctuation.whitespace.function-call.leading.c Message-ID: I take exception to the C syntax gobbling up whitespace at the beginning of a line. It screws up my tab guides, as seen in the example below (before EXCEPTION). Gerd -------------- next part -------------- A non-text attachment was scrubbed... Name: pastedGraphic.png Type: image/png Size: 17211 bytes Desc: not available URL: -------------- next part -------------- From bonelake at gmail.com Thu Feb 7 19:45:55 2008 From: bonelake at gmail.com (Brad Miller) Date: Thu, 7 Feb 2008 13:45:55 -0600 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> <82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com> <5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu> Message-ID: <9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com> On Feb 7, 2008, at 7:38 AM, Geoff Vallis wrote: > Brad, > > On Feb 6, 2008, at 9:47 PM, Brad Miller wrote: >> How do you tell a running version of xdvi to change its position/ >> page from the shell? If it can be done from the shell I'll look at >> adding it. > > The command to update xdvi is the same whether or not xdvi is > already running. It is just: > xdvi -sourceposition Lineno[:Column]Filename Masterfile[.dvi] > with, I hope, obvious notation, and of course this command can be > embedded in a shell script. The Column parameter is optional. If > xdvi is already running, showing masterfile, this call will just > bring the xdvi window to the front and switch positions accordingly. > If not, the command will open an xdvi window with Masterfile showing. That is very easy. I've just never found X to be very pleasant on the mac so I've mostly forgotten everything I used to know. > > > There are a million other options that you can see with a 'man xdvi' > or 'xdvi --help'. Generally, you first open an xdvi window with the > size and options you want, and then the syncing just uses that open > window. > > >> If it is a short shell script then it really would be very easy for >> you to add your own bundle command. >> >> type ctrl-opt-cmd-b to bring up the bundle editor >> You should see a bundle with your own name, or you can add the >> command to the latex bundle. >> click add new command in the lower left corner. >> Give your new command a name: dvisync >> Save: Nothing >> Command(s) Whatever shell script tells xdvi to update itself. The >> two variables you may want are: >> TM_LINE_NUMBER and TM_FILEPATH or TM_FILENAME >> Input: None >> Output: discard >> key equivalent: your choice >> Scope Selector: text.tex.latex >> >> Brad >> >> >> Close the bundle editor, and you've made your first TextMate command. > > > Thanks, I'll give this a shot, whether or not you decide to support > xdvi. To be absolutely clear, can you say what the Textmate > variables are that correspond to: > > linenumber of the file being edited where the cursor is at; > column of the cursor of the file being edited (if available; > filename of the file being edited; > masterfilename (which will be the name of the dvi file). > Geoff, You can see all of the environment variables exported by TM by running the command Bundles --> Bundle Development --> Show TM_* variables. linenumber is TM_LINE_NUMBER columnnumber is TM_COLUMN_NUMBER filename of the file being edited: TM_FILENAME -- is the filename without any path information TM_FILEPATH -- is the filename with full path ${TM_FILENAME%.tex}.dvi will give you the name of the dvi file without path ${TM_FILEPATH%.tex}.dvi will give you the name of the dvi file with the path Brad > > Regards > Geoff > > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From gkv at Princeton.EDU Thu Feb 7 21:04:05 2008 From: gkv at Princeton.EDU (Geoff Vallis) Date: Thu, 7 Feb 2008 16:04:05 -0500 Subject: [TxMt] LaTeX Bundle question In-Reply-To: <9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com> References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu> <445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com> <65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu> <26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu> <2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com> <9CC167CA-741F-4115-800C-598FA850C802@princeton.edu> <82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com> <5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu> <9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com> Message-ID: Brad This is working now for files for files that do not have a master or root file. But if there is a master file, the name of the dvi file is not the same as the name of the file being edited, but is the name of the master file, or the tex root. I don't see the name of this in the Show TM_* variables list. What is it, including the full path? Geoff On Feb 7, 2008, at 2:45 PM, Brad Miller wrote: > > On Feb 7, 2008, at 7:38 AM, Geoff Vallis wrote: > >> Brad, >> >> On Feb 6, 2008, at 9:47 PM, Brad Miller wrote: >>> How do you tell a running version of xdvi to change its position/ >>> page from the shell? If it can be done from the shell I'll look >>> at adding it. >> >> The command to update xdvi is the same whether or not xdvi is >> already running. It is just: >> xdvi -sourceposition Lineno[:Column]Filename Masterfile[.dvi] >> with, I hope, obvious notation, and of course this command can be >> embedded in a shell script. The Column parameter is optional. If >> xdvi is already running, showing masterfile, this call will just >> bring the xdvi window to the front and switch positions >> accordingly. If not, the command will open an xdvi window with >> Masterfile showing. > > That is very easy. I've just never found X to be very pleasant on > the mac so I've mostly forgotten everything I used to know. > >> >> >> There are a million other options that you can see with a 'man >> xdvi' or 'xdvi --help'. Generally, you first open an xdvi window >> with the size and options you want, and then the syncing just uses >> that open window. >> >> >>> If it is a short shell script then it really would be very easy >>> for you to add your own bundle command. >>> >>> type ctrl-opt-cmd-b to bring up the bundle editor >>> You should see a bundle with your own name, or you can add the >>> command to the latex bundle. >>> click add new command in the lower left corner. >>> Give your new command a name: dvisync >>> Save: Nothing >>> Command(s) Whatever shell script tells xdvi to update itself. >>> The two variables you may want are: >>> TM_LINE_NUMBER and TM_FILEPATH or TM_FILENAME >>> Input: None >>> Output: discard >>> key equivalent: your choice >>> Scope Selector: text.tex.latex >>> >>> Brad >>> >>> >>> Close the bundle editor, and you've made your first TextMate >>> command. >> >> >> Thanks, I'll give this a shot, whether or not you decide to support >> xdvi. To be absolutely clear, can you say what the Textmate >> variables are that correspond to: >> >> linenumber of the file being edited where the cursor is at; >> column of the cursor of the file being edited (if available; >> filename of the file being edited; >> masterfilename (which will be the name of the dvi file). >> > > Geoff, > > You can see all of the environment variables exported by TM by > running the command Bundles --> Bundle Development --> Show TM_* > variables. > > linenumber is TM_LINE_NUMBER > columnnumber is TM_COLUMN_NUMBER > filename of the file being edited: > TM_FILENAME -- is the filename without any path information > TM_FILEPATH -- is the filename with full path > ${TM_FILENAME%.tex}.dvi will give you the name of the dvi file > without path > ${TM_FILEPATH%.tex}.dvi will give you the name of the dvi file with > the path > > Brad > >> >> Regards >> Geoff >> >> >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From mojca.miklavec.lists at gmail.com Thu Feb 7 21:17:26 2008 From: mojca.miklavec.lists at gmail.com (Mojca Miklavec) Date: Thu, 7 Feb 2008 22:17:26 +0100 Subject: [TxMt] how to scroll down the page/log when "compiling"? Message-ID: <6faad9f00802071317j5df5c7d0mf337151e6a353bbb@mail.gmail.com> Hello, I'm using a ConTeXt bundle (similar to LaTeX) from http://wiki.contextgarden.net/TextMate http://dl.contextgarden.net/support/context-tmbundle.dmg When "building" with ?+R an extra window with "html" content opens with a long log of the run. My question is: is it possible to scroll down to the bottom of that window automatically as the log is written to it? The command which creates that window looks approximately like that: ############################################## #!/usr/bin/env ruby $:.unshift "#{ENV['TM_SUPPORT_PATH']}/lib" $:.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'scriptmate' require "parse_texexec_output" @file=File.basename(ENV['TM_FILEPATH']) @dir=File.dirname(ENV['TM_FILEPATH']) $cmd="texmfstart texexec #{xetex} --pass=\\'-halt-on-error -file-line-error\\' #{@file}" class CommandMate def emit_header puts html_head(:window_title=>"texexec", :page_title=>"typeset" , :sub_title=>"#{$cmd}") puts "
"
  end
end

cmd_mate($cmd)
##############################################

Thanks a lot,
    Mojca

From gkv at Princeton.EDU  Thu Feb  7 22:33:09 2008
From: gkv at Princeton.EDU (Geoff Vallis)
Date: Thu, 7 Feb 2008 17:33:09 -0500
Subject: [TxMt] LaTeX Bundle question
In-Reply-To: 
References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu>
	<445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com>
	<65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu>
	
	<26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu>
	<2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com>
	<9CC167CA-741F-4115-800C-598FA850C802@princeton.edu>
	<82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com>
	<5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu>
	<9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com>
	
Message-ID: <3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>

Brad

Following up with a slightly more explicit description. My bundle(s)  
works, but not elegantly or well. I have a short script call  
dvisync.sh that looks like the following:


#!/bin/tcsh
/usr/texbin/xdvi -sourceposition $1$2 $3



and then I have two(!) bundles, called dvisync1 and dvisync2 that look  
like:

/pathto/dvisync.sh $TM_LINE_NUMBER $TM_FILEPATH ${TM_FILEPATH%.tex}.dvi

and

/pathto/dvisync.sh $TM_LINE_NUMBER $TM_FILEPATH ${TM_LATEX_MASTER%.tex}


The first works if and only if there is no master file, and the second  
works if and only if there is one. I can't seem to get a single bundle  
to work in both cases, and also TextMate doesn't seem to reset the  
master file correctly all the time when I change the files I am editing.

Any suggestions would be appreciated.

Geoff






> On Feb 7, 2008, at 2:45 PM, Brad Miller wrote:
>
>>
>> On Feb 7, 2008, at 7:38 AM, Geoff Vallis wrote:
>>
>>> Brad,
>>>
>>> On Feb 6, 2008, at 9:47 PM, Brad Miller wrote:
>>>> How do you tell a running version of xdvi to change its position/ 
>>>> page from the shell?  If it can be done from the shell I'll look  
>>>> at adding it.
>>>
>>> The command to update xdvi is the same whether or not xdvi is  
>>> already running. It is just:
>>> xdvi -sourceposition Lineno[:Column]Filename Masterfile[.dvi]
>>> with, I hope, obvious notation, and of course this command can be  
>>> embedded in a shell script. The Column parameter is optional. If  
>>> xdvi is already running, showing masterfile, this call will just  
>>> bring the xdvi window to the front and switch positions  
>>> accordingly. If not, the command will open an xdvi window with  
>>> Masterfile showing.
>>
>> That is very easy.  I've just never found X to be very pleasant on  
>> the mac so I've mostly forgotten everything I used to know.
>>
>>>
>>>
>>> There are a million other options that you can see with a 'man  
>>> xdvi' or 'xdvi --help'.  Generally, you first open an xdvi window  
>>> with the size and options you want, and then the syncing just uses  
>>> that open window.
>>>
>>>
>>>> If it is a short shell script then it really would be very easy  
>>>> for you to add your own bundle command.
>>>>
>>>> type ctrl-opt-cmd-b to bring up the bundle editor
>>>> You should see a bundle with your own name, or you can add the  
>>>> command to the latex bundle.
>>>> click add new command in the lower left corner.
>>>> Give your new command a name:  dvisync
>>>> Save: Nothing
>>>> Command(s)  Whatever shell script tells xdvi to update itself.   
>>>> The two variables you may want are:
>>>> TM_LINE_NUMBER  and TM_FILEPATH  or TM_FILENAME
>>>> Input:  None
>>>> Output: discard
>>>> key equivalent:  your choice
>>>> Scope Selector:  text.tex.latex
>>>>
>>>> Brad
>>>>
>>>>
>>>> Close the bundle editor, and you've made your first TextMate  
>>>> command.
>>>
>>>
>>> Thanks, I'll give this a shot, whether or not you decide to  
>>> support xdvi. To be absolutely clear, can you say what the  
>>> Textmate variables are that correspond to:
>>>
>>> linenumber of the file being edited where the cursor is at;
>>> column of the cursor of the file being edited (if available;
>>> filename of the file being edited;
>>> masterfilename (which will be the name of the dvi file).
>>>
>>
>> Geoff,
>>
>> You can see all of the environment variables exported by TM by  
>> running the command  Bundles --> Bundle Development --> Show TM_*  
>> variables.
>>
>> linenumber is TM_LINE_NUMBER
>> columnnumber is TM_COLUMN_NUMBER
>> filename of the file being edited:
>> TM_FILENAME  -- is the filename without any path information
>> TM_FILEPATH -- is the filename with full path
>> ${TM_FILENAME%.tex}.dvi  will give you the name of the dvi file  
>> without path
>> ${TM_FILEPATH%.tex}.dvi  will give you the name of the dvi file  
>> with the path
>>
>> Brad
>>
>>>
>>> Regards
>>> Geoff
>>>
>>>
>>>
>>>
>>> ______________________________________________________________________
>>> For new threads USE THIS: textmate at lists.macromates.com
>>> (threading gets destroyed and the universe will collapse if you  
>>> don't)
>>> http://lists.macromates.com/mailman/listinfo/textmate
>>
>>
>> ______________________________________________________________________
>> For new threads USE THIS: textmate at lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you  
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate



From bonelake at gmail.com  Thu Feb  7 23:48:27 2008
From: bonelake at gmail.com (Brad Miller)
Date: Thu, 7 Feb 2008 17:48:27 -0600
Subject: [TxMt] LaTeX Bundle question
In-Reply-To: <3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>
References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu>
	<445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com>
	<65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu>
	
	<26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu>
	<2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com>
	<9CC167CA-741F-4115-800C-598FA850C802@princeton.edu>
	<82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com>
	<5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu>
	<9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com>
	
	<3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>
Message-ID: 


On Feb 7, 2008, at 4:33 PM, Geoff Vallis wrote:

> Brad
>
> Following up with a slightly more explicit description. My bundle(s)  
> works, but not elegantly or well. I have a short script call  
> dvisync.sh that looks like the following:
>
>
> #!/bin/tcsh
> /usr/texbin/xdvi -sourceposition $1$2 $3
>
>
>
> and then I have two(!) bundles, called dvisync1 and dvisync2 that  
> look like:
>
> /pathto/dvisync.sh $TM_LINE_NUMBER $TM_FILEPATH ${TM_FILEPATH 
> %.tex}.dvi
>
> and
>
> /pathto/dvisync.sh $TM_LINE_NUMBER $TM_FILEPATH ${TM_LATEX_MASTER 
> %.tex}
>
>
You should add a line something like this:

DVIFILE=${TM_LATEX_MASTER:-$TM_FILEPATH}

Then use ${DVIFILE%.tex}.dvi  on the /path/dvisync......  command


> The first works if and only if there is no master file, and the  
> second works if and only if there is one. I can't seem to get a  
> single bundle to work in both cases, and also TextMate doesn't seem  
> to reset the master file correctly all the time when I change the  
> files I am editing.
>

That will depend on how and where you are setting TM_LATEX_MASTER.   
This variable is around only for backward compatibility with previous  
versions of the latex bundle.   The preferred method for setting the  
master file is to put

%!TEX root = /path/to/root  in your tex file.    BUT  that will not  
help you in your situation.  I thought you said you were working with  
one giant file.


Brad


> Any suggestions would be appreciated.
>
> Geoff
>
>
>
>
>
>
>> On Feb 7, 2008, at 2:45 PM, Brad Miller wrote:
>>
>>>
>>> On Feb 7, 2008, at 7:38 AM, Geoff Vallis wrote:
>>>
>>>> Brad,
>>>>
>>>> On Feb 6, 2008, at 9:47 PM, Brad Miller wrote:
>>>>> How do you tell a running version of xdvi to change its position/ 
>>>>> page from the shell?  If it can be done from the shell I'll look  
>>>>> at adding it.
>>>>
>>>> The command to update xdvi is the same whether or not xdvi is  
>>>> already running. It is just:
>>>> xdvi -sourceposition Lineno[:Column]Filename Masterfile[.dvi]
>>>> with, I hope, obvious notation, and of course this command can be  
>>>> embedded in a shell script. The Column parameter is optional. If  
>>>> xdvi is already running, showing masterfile, this call will just  
>>>> bring the xdvi window to the front and switch positions  
>>>> accordingly. If not, the command will open an xdvi window with  
>>>> Masterfile showing.
>>>
>>> That is very easy.  I've just never found X to be very pleasant on  
>>> the mac so I've mostly forgotten everything I used to know.
>>>
>>>>
>>>>
>>>> There are a million other options that you can see with a 'man  
>>>> xdvi' or 'xdvi --help'.  Generally, you first open an xdvi window  
>>>> with the size and options you want, and then the syncing just  
>>>> uses that open window.
>>>>
>>>>
>>>>> If it is a short shell script then it really would be very easy  
>>>>> for you to add your own bundle command.
>>>>>
>>>>> type ctrl-opt-cmd-b to bring up the bundle editor
>>>>> You should see a bundle with your own name, or you can add the  
>>>>> command to the latex bundle.
>>>>> click add new command in the lower left corner.
>>>>> Give your new command a name:  dvisync
>>>>> Save: Nothing
>>>>> Command(s)  Whatever shell script tells xdvi to update itself.   
>>>>> The two variables you may want are:
>>>>> TM_LINE_NUMBER  and TM_FILEPATH  or TM_FILENAME
>>>>> Input:  None
>>>>> Output: discard
>>>>> key equivalent:  your choice
>>>>> Scope Selector:  text.tex.latex
>>>>>
>>>>> Brad
>>>>>
>>>>>
>>>>> Close the bundle editor, and you've made your first TextMate  
>>>>> command.
>>>>
>>>>
>>>> Thanks, I'll give this a shot, whether or not you decide to  
>>>> support xdvi. To be absolutely clear, can you say what the  
>>>> Textmate variables are that correspond to:
>>>>
>>>> linenumber of the file being edited where the cursor is at;
>>>> column of the cursor of the file being edited (if available;
>>>> filename of the file being edited;
>>>> masterfilename (which will be the name of the dvi file).
>>>>
>>>
>>> Geoff,
>>>
>>> You can see all of the environment variables exported by TM by  
>>> running the command  Bundles --> Bundle Development --> Show TM_*  
>>> variables.
>>>
>>> linenumber is TM_LINE_NUMBER
>>> columnnumber is TM_COLUMN_NUMBER
>>> filename of the file being edited:
>>> TM_FILENAME  -- is the filename without any path information
>>> TM_FILEPATH -- is the filename with full path
>>> ${TM_FILENAME%.tex}.dvi  will give you the name of the dvi file  
>>> without path
>>> ${TM_FILEPATH%.tex}.dvi  will give you the name of the dvi file  
>>> with the path
>>>
>>> Brad
>>>
>>>>
>>>> Regards
>>>> Geoff
>>>>
>>>>
>>>>
>>>>
>>>> ______________________________________________________________________
>>>> For new threads USE THIS: textmate at lists.macromates.com
>>>> (threading gets destroyed and the universe will collapse if you  
>>>> don't)
>>>> http://lists.macromates.com/mailman/listinfo/textmate
>>>
>>>
>>> ______________________________________________________________________
>>> For new threads USE THIS: textmate at lists.macromates.com
>>> (threading gets destroyed and the universe will collapse if you  
>>> don't)
>>> http://lists.macromates.com/mailman/listinfo/textmate
>>
>>
>> ______________________________________________________________________
>> For new threads USE THIS: textmate at lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you  
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate



From gkv at Princeton.EDU  Fri Feb  8 01:06:37 2008
From: gkv at Princeton.EDU (Geoff Vallis)
Date: Thu, 7 Feb 2008 20:06:37 -0500
Subject: [TxMt] LaTeX Bundle question
In-Reply-To: 
References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu>
	<445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com>
	<65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu>
	
	<26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu>
	<2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com>
	<9CC167CA-741F-4115-800C-598FA850C802@princeton.edu>
	<82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com>
	<5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu>
	<9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com>
	
	<3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>
	
Message-ID: <3625FE88-884E-48D2-B7FD-881A8F1A05F1@princeton.edu>


>> You should add a line something like this:
>
> DVIFILE=${TM_LATEX_MASTER:-$TM_FILEPATH}
>
> Then use ${DVIFILE%.tex}.dvi  on the /path/dvisync......  command
>
>
> That will depend on how and where you are setting TM_LATEX_MASTER.   
> This variable is around only for backward compatibility with  
> previous versions of the latex bundle.   The preferred method for  
> setting the master file is to put
>
> %!TEX root = /path/to/root  in your tex file.    BUT  that will not  
> help you in your situation.  I thought you said you were working  
> with one giant file.


In fact I have files that are stand-alone, and others that sit under a  
root file. And I do use the %!TEX root method of setting the master  
file, not any other - it seems similar to what texshop and bbedit use.

I've tried using DVIFILE=${TM_LATEX_MASTER:-$TM_FILEPATH} in my  
bundle, and it kind of works. But if I go from editing and latexing a  
collection of files which has a master file, to editing a stand-alone  
file, then textmate still tries to use the previous master file when  
dvi-syncing the stand-alone file, which obviously doesn't work. I can  
work around it with two bundles, or restarting textmate, but that  
seems very clunky.

But thanks for your input. I realize that there's not a whole lot of  
folk using xdvi with textmate.

Geoff



From bonelake at gmail.com  Fri Feb  8 01:17:30 2008
From: bonelake at gmail.com (Brad Miller)
Date: Thu, 7 Feb 2008 19:17:30 -0600
Subject: [TxMt] LaTeX Bundle question
In-Reply-To: <3625FE88-884E-48D2-B7FD-881A8F1A05F1@princeton.edu>
References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu>
	<445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com>
	<65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu>
	
	<26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu>
	<2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com>
	<9CC167CA-741F-4115-800C-598FA850C802@princeton.edu>
	<82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com>
	<5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu>
	<9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com>
	
	<3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>
	
	<3625FE88-884E-48D2-B7FD-881A8F1A05F1@princeton.edu>
Message-ID: <0227D429-4D32-48BE-819B-72FF7FE1A8CA@gmail.com>

It sounds to me like you must have TM_LATEX_MASTER set in  a project  
file or in .textmate_init in a project or something.
The latex bundle does not set TM_LATEX_MASTER, it only uses the  
variable if its set.  Are you sure it is always the previous master  
file?

Try typing this into a latex file and then pressing ctrl-r  This will  
tell you what the environment variable is set to without running any  
latex commands.  If it does not return a blank line then you need to  
hunt through your environment and see where it is set.

echo $TM_LATEX_MASTER


Brad

On Feb 7, 2008, at 7:06 PM, Geoff Vallis wrote:

>
>>> You should add a line something like this:
>>
>> DVIFILE=${TM_LATEX_MASTER:-$TM_FILEPATH}
>>
>> Then use ${DVIFILE%.tex}.dvi  on the /path/dvisync......  command
>>
>>
>> That will depend on how and where you are setting TM_LATEX_MASTER.   
>> This variable is around only for backward compatibility with  
>> previous versions of the latex bundle.   The preferred method for  
>> setting the master file is to put
>>
>> %!TEX root = /path/to/root  in your tex file.    BUT  that will not  
>> help you in your situation.  I thought you said you were working  
>> with one giant file.
>
>
> In fact I have files that are stand-alone, and others that sit under  
> a root file. And I do use the %!TEX root method of setting the  
> master file, not any other - it seems similar to what texshop and  
> bbedit use.
>
> I've tried using DVIFILE=${TM_LATEX_MASTER:-$TM_FILEPATH} in my  
> bundle, and it kind of works. But if I go from editing and latexing  
> a collection of files which has a master file, to editing a stand- 
> alone file, then textmate still tries to use the previous master  
> file when dvi-syncing the stand-alone file, which obviously doesn't  
> work. I can work around it with two bundles, or restarting textmate,  
> but that seems very clunky.
>
> But thanks for your input. I realize that there's not a whole lot of  
> folk using xdvi with textmate.
>
> Geoff
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate



From cskiadas at gmail.com  Fri Feb  8 02:52:25 2008
From: cskiadas at gmail.com (Charilaos Skiadas)
Date: Thu, 7 Feb 2008 21:52:25 -0500
Subject: [TxMt] LaTeX Bundle question
In-Reply-To: <0227D429-4D32-48BE-819B-72FF7FE1A8CA@gmail.com>
References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu>
	<445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com>
	<65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu>
	
	<26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu>
	<2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com>
	<9CC167CA-741F-4115-800C-598FA850C802@princeton.edu>
	<82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com>
	<5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu>
	<9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com>
	
	<3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>
	
	<3625FE88-884E-48D2-B7FD-881A8F1A05F1@princeton.edu>
	<0227D429-4D32-48BE-819B-72FF7FE1A8CA@gmail.com>
Message-ID: <70455D9F-062D-437D-A217-636A499C475D@gmail.com>

Geoff are you by any chance setting the TM_LATEX_MASTER variable  
under TextMate -> Preferences -> Advanced? Then TM will always use that.
But perhaps I've missed some part of this conversation.

I don't use xdvi for the very simple reason that by this point in  
time I don't feel the need to look at the output, simply looking at  
the code tells me all I need to know about how the output is going to  
be like, for the most part. And usually I don't have X11 running.

I'm a bit confused though. Do you still go through texMate.py,  
calling the existing compile command, or do you use your own command  
(command \equiv bundle item)? If it's the latter, then I don't see  
how the %!TEX directive will work, unless you do something special in  
your command. TextMate by itself does not do anything with the file,  
it just calls your command directly. In texMate,py, we have a lot of  
code whose job is exactly to locate the root file, if any, and use  
that, and that's what the built in compilation command uses.

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College

On Feb 7, 2008, at 8:17 PM, Brad Miller wrote:

> It sounds to me like you must have TM_LATEX_MASTER set in  a  
> project file or in .textmate_init in a project or something.
> The latex bundle does not set TM_LATEX_MASTER, it only uses the  
> variable if its set.  Are you sure it is always the previous master  
> file?
>
> Try typing this into a latex file and then pressing ctrl-r  This  
> will tell you what the environment variable is set to without  
> running any latex commands.  If it does not return a blank line  
> then you need to hunt through your environment and see where it is  
> set.
>
> echo $TM_LATEX_MASTER
>
>
> Brad
>
> On Feb 7, 2008, at 7:06 PM, Geoff Vallis wrote:
>
>>
>>>> You should add a line something like this:
>>>
>>> DVIFILE=${TM_LATEX_MASTER:-$TM_FILEPATH}
>>>
>>> Then use ${DVIFILE%.tex}.dvi  on the /path/dvisync......  command
>>>
>>>
>>> That will depend on how and where you are setting  
>>> TM_LATEX_MASTER.  This variable is around only for backward  
>>> compatibility with previous versions of the latex bundle.   The  
>>> preferred method for setting the master file is to put
>>>
>>> %!TEX root = /path/to/root  in your tex file.    BUT  that will  
>>> not help you in your situation.  I thought you said you were  
>>> working with one giant file.
>>
>>
>> In fact I have files that are stand-alone, and others that sit  
>> under a root file. And I do use the %!TEX root method of setting  
>> the master file, not any other - it seems similar to what texshop  
>> and bbedit use.
>>
>> I've tried using DVIFILE=${TM_LATEX_MASTER:-$TM_FILEPATH} in my  
>> bundle, and it kind of works. But if I go from editing and  
>> latexing a collection of files which has a master file, to editing  
>> a stand-alone file, then textmate still tries to use the previous  
>> master file when dvi-syncing the stand-alone file, which obviously  
>> doesn't work. I can work around it with two bundles, or restarting  
>> textmate, but that seems very clunky.
>>
>> But thanks for your input. I realize that there's not a whole lot  
>> of folk using xdvi with textmate.
>>
>> Geoff
>>







From gkv at Princeton.EDU  Fri Feb  8 17:43:29 2008
From: gkv at Princeton.EDU (Geoff Vallis)
Date: Fri, 8 Feb 2008 12:43:29 -0500
Subject: [TxMt] LaTeX Bundle question
In-Reply-To: <70455D9F-062D-437D-A217-636A499C475D@gmail.com>
References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu>
	<445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com>
	<65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu>
	
	<26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu>
	<2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com>
	<9CC167CA-741F-4115-800C-598FA850C802@princeton.edu>
	<82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com>
	<5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu>
	<9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com>
	
	<3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>
	
	<3625FE88-884E-48D2-B7FD-881A8F1A05F1@princeton.edu>
	<0227D429-4D32-48BE-819B-72FF7FE1A8CA@gmail.com>
	<70455D9F-062D-437D-A217-636A499C475D@gmail.com>
Message-ID: <0E3201E6-FED4-43F2-8537-452EF0A8EE8D@princeton.edu>


With help from Brad in setting the root file correctly, I finally got  
a working bundle for syncing with xdvi. It is very short, and I listed  
it below. It doesn't go through texMate.py. I do think that it would  
be nice eventually to incorporate xdvi syncing into texMate.py, but at  
least for now this does the trick.  Note that syncing requires that  
latex be called with the option '-src' so that source specials are  
included.

Relatedly, would be be possible to create a command 'Typeset (DVI)'  
that is analogous to 'Typeset and View (PDF)', that calls the latex  
(dvi) engine (but not dvips), that goes through texMate.py, and that  
one can call with a keyboard shortcut without either changing one's  
latex preferences and without adding a special TS-program line at the  
top of the file?

Thanks to all for their comments.

Geoff

--------------------------

divsync bundle:

TM_LATEX_MASTER=`${TM_RUBY:-ruby} <<"RUBY"
require "#{ENV['TM_SUPPORT_PATH']}/lib/escape.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/LaTeXUtils.rb"

master = LaTeX.master(ENV['TM_LATEX_MASTER'] || ENV['TM_FILEPATH'])
puts master
RUBY`

DVIFILE=${TM_LATEX_MASTER:-$TM_FILEPATH}

/pathto/dvisync.sh $TM_LINE_NUMBER $TM_FILENAME ${DVIFILE%.tex}.dvi

---------------------------

dvisync.sh:  (shell script)

#!/bin/tcsh
/usr/texbin/xdvi -sourceposition $1$2 $3

---------------------------



On Feb 7, 2008, at 9:52 PM, Charilaos Skiadas wrote:

> Geoff are you by any chance setting the TM_LATEX_MASTER variable  
> under TextMate -> Preferences -> Advanced? Then TM will always use  
> that.
> But perhaps I've missed some part of this conversation.
>
> I don't use xdvi for the very simple reason that by this point in  
> time I don't feel the need to look at the output, simply looking at  
> the code tells me all I need to know about how the output is going  
> to be like, for the most part. And usually I don't have X11 running.
>
> I'm a bit confused though. Do you still go through texMate.py,  
> calling the existing compile command, or do you use your own command  
> (command \equiv bundle item)? If it's the latter, then I don't see  
> how the %!TEX directive will work, unless you do something special  
> in your command. TextMate by itself does not do anything with the  
> file, it just calls your command directly. In texMate,py, we have a  
> lot of code whose job is exactly to locate the root file, if any,  
> and use that, and that's what the built in compilation command uses.
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
>
>



From joachimm at etek.chalmers.se  Fri Feb  8 18:23:52 2008
From: joachimm at etek.chalmers.se (Joachim =?iso-8859-1?Q?M=E5rtensson?=)
Date: Fri, 8 Feb 2008 19:23:52 +0100 (CET)
Subject: [TxMt] punctuation.whitespace.function-call.leading.c
In-Reply-To: 
References: 
Message-ID: <56225.85.224.226.63.1202495032.squirrel@webmail.chalmers.se>

So I guess I should explain why I added the leading spaces scope to the
grammar.

TextMate syntax parser works as follows,

for each line there will be a bunch of rules (the regexes in the language
files), that needs to be tested, these rules vary depending on scope and
other stuff.

the way that textmate knows which rule "wins" depends on the following,

first the start position if there is a tie the order in which the rules
are defined, determines the winner.

So how does this affect the C grammar?
the way that I differentiate between function definitions and function
calls in the C grammar, is that I start a new Scope when I encounter
{...}, inside the braces rule I place an identical rule to the function
definition matcher. Since these rules are identical there will be a tie
when looking at just the start postion of the match, so order will
determine. Outside of {...} the function-call rule will not win since it
isn't even defined there.

So what is the problem?
In short C++, there are a few constructs in C++ that looks like this

void foo(){
	std::string myString("hello world");
}

Since we want to differentiate between function-calls and variable
initialization such as the one above, we need a rule that matches those,
for technical reasons that rule needs to match the leading spaces. Trouble
is, this will make the rule win over the function-call rule, as the
leading spaces will ensure a "headstart". It does not matter that it has
lower precedence than the function-call rule.

Hopefully this explains things, If anyone can think of a better solution
please mail ideas.

To Hans and everyone interested:
Hans, I assume that you have defined a "super" grammar that includes the C
and Objective-C ones, in that case the problem is that your additional
rules gets included at the root level, and that is included after the
function-call matching inside {...}, this will probably be solvable once
Allan adds injections. Anyway perhaps you could send your grammar file and
we can decide on a format so that leading spaces will get scoped
uniformly.

Joachim M?rtensson



From gerti-textmate at bitart.com  Fri Feb  8 19:35:02 2008
From: gerti-textmate at bitart.com (Gerd Knops)
Date: Fri, 8 Feb 2008 13:35:02 -0600
Subject: [TxMt] punctuation.whitespace.function-call.leading.c
In-Reply-To: <56225.85.224.226.63.1202495032.squirrel@webmail.chalmers.se>
References: 
	<56225.85.224.226.63.1202495032.squirrel@webmail.chalmers.se>
Message-ID: 

I get that. However could the same not be achieved without actually  
consuming the whitespace, eg with lookahead/lookbehind?

Gerd

On Feb 8, 2008, at 12:23 PM, Joachim M?rtensson wrote:

> So I guess I should explain why I added the leading spaces scope to  
> the
> grammar.
>
> TextMate syntax parser works as follows,
>
> for each line there will be a bunch of rules (the regexes in the  
> language
> files), that needs to be tested, these rules vary depending on scope  
> and
> other stuff.
>
> the way that textmate knows which rule "wins" depends on the  
> following,
>
> first the start position if there is a tie the order in which the  
> rules
> are defined, determines the winner.
>
> So how does this affect the C grammar?
> the way that I differentiate between function definitions and function
> calls in the C grammar, is that I start a new Scope when I encounter
> {...}, inside the braces rule I place an identical rule to the  
> function
> definition matcher. Since these rules are identical there will be a  
> tie
> when looking at just the start postion of the match, so order will
> determine. Outside of {...} the function-call rule will not win  
> since it
> isn't even defined there.
>
> So what is the problem?
> In short C++, there are a few constructs in C++ that looks like this
>
> void foo(){
> 	std::string myString("hello world");
> }
>
> Since we want to differentiate between function-calls and variable
> initialization such as the one above, we need a rule that matches  
> those,
> for technical reasons that rule needs to match the leading spaces.  
> Trouble
> is, this will make the rule win over the function-call rule, as the
> leading spaces will ensure a "headstart". It does not matter that it  
> has
> lower precedence than the function-call rule.
>
> Hopefully this explains things, If anyone can think of a better  
> solution
> please mail ideas.
>
> To Hans and everyone interested:
> Hans, I assume that you have defined a "super" grammar that includes  
> the C
> and Objective-C ones, in that case the problem is that your additional
> rules gets included at the root level, and that is included after the
> function-call matching inside {...}, this will probably be solvable  
> once
> Allan adds injections. Anyway perhaps you could send your grammar  
> file and
> we can decide on a format so that leading spaces will get scoped
> uniformly.
>
> Joachim M?rtensson
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate



From bonelake at gmail.com  Fri Feb  8 19:38:04 2008
From: bonelake at gmail.com (Brad Miller)
Date: Fri, 8 Feb 2008 13:38:04 -0600
Subject: [TxMt] LaTeX Bundle question
In-Reply-To: <0E3201E6-FED4-43F2-8537-452EF0A8EE8D@princeton.edu>
References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu>
	<445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com>
	<65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu>
	
	<26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu>
	<2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com>
	<9CC167CA-741F-4115-800C-598FA850C802@princeton.edu>
	<82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com>
	<5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu>
	<9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com>
	
	<3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>
	
	<3625FE88-884E-48D2-B7FD-881A8F1A05F1@princeton.edu>
	<0227D429-4D32-48BE-819B-72FF7FE1A8CA@gmail.com>
	<70455D9F-062D-437D-A217-636A499C475D@gmail.com>
	<0E3201E6-FED4-43F2-8537-452EF0A8EE8D@princeton.edu>
Message-ID: <5B6FC49B-1405-4DF1-B0F1-B1B081BC75CF@gmail.com>


On Feb 8, 2008, at 11:43 AM, Geoff Vallis wrote:

>
> With help from Brad in setting the root file correctly, I finally  
> got a working bundle for syncing with xdvi. It is very short, and I  
> listed it below. It doesn't go through texMate.py. I do think that  
> it would be nice eventually to incorporate xdvi syncing into  
> texMate.py, but at least for now this does the trick.  Note that  
> syncing requires that latex be called with the option '-src' so that  
> source specials are included.
>
> Relatedly, would be be possible to create a command 'Typeset (DVI)'  
> that is analogous to 'Typeset and View (PDF)', that calls the latex  
> (dvi) engine (but not dvips), that goes through texMate.py, and that  
> one can call with a keyboard shortcut without either changing one's  
> latex preferences and without adding a special TS-program line at  
> the top of the file?
>

I've put xdvi support on my todo list for a future texMate.py  
release.  I think I would prefer to make texMate smart enough that if  
xdvi is the viewer the dvips step is skipped.  That would keep all the  
other options and preferences intact without creating another shortcut.

My one concern about this path going forward is that latex itself  
seems more and more insistent on producing pdf output.  I tried a  
couple of old documents yesterday  and even using the -output- 
format=dvi option latex still created a pdf file for me.

Brad

> Thanks to all for their comments.
>
> Geoff
>
> --------------------------
>
> divsync bundle:
>
> TM_LATEX_MASTER=`${TM_RUBY:-ruby} <<"RUBY"
> require "#{ENV['TM_SUPPORT_PATH']}/lib/escape.rb"
> require "#{ENV['TM_SUPPORT_PATH']}/lib/LaTeXUtils.rb"
>
> master = LaTeX.master(ENV['TM_LATEX_MASTER'] || ENV['TM_FILEPATH'])
> puts master
> RUBY`
>
> DVIFILE=${TM_LATEX_MASTER:-$TM_FILEPATH}
>
> /pathto/dvisync.sh $TM_LINE_NUMBER $TM_FILENAME ${DVIFILE%.tex}.dvi
>
> ---------------------------
>
> dvisync.sh:  (shell script)
>
> #!/bin/tcsh
> /usr/texbin/xdvi -sourceposition $1$2 $3
>
> ---------------------------
>
>
>
> On Feb 7, 2008, at 9:52 PM, Charilaos Skiadas wrote:
>
>> Geoff are you by any chance setting the TM_LATEX_MASTER variable  
>> under TextMate -> Preferences -> Advanced? Then TM will always use  
>> that.
>> But perhaps I've missed some part of this conversation.
>>
>> I don't use xdvi for the very simple reason that by this point in  
>> time I don't feel the need to look at the output, simply looking at  
>> the code tells me all I need to know about how the output is going  
>> to be like, for the most part. And usually I don't have X11 running.
>>
>> I'm a bit confused though. Do you still go through texMate.py,  
>> calling the existing compile command, or do you use your own  
>> command (command \equiv bundle item)? If it's the latter, then I  
>> don't see how the %!TEX directive will work, unless you do  
>> something special in your command. TextMate by itself does not do  
>> anything with the file, it just calls your command directly. In  
>> texMate,py, we have a lot of code whose job is exactly to locate  
>> the root file, if any, and use that, and that's what the built in  
>> compilation command uses.
>>
>> Haris Skiadas
>> Department of Mathematics and Computer Science
>> Hanover College
>>
>>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate



From gkv at Princeton.EDU  Fri Feb  8 20:22:01 2008
From: gkv at Princeton.EDU (Geoff Vallis)
Date: Fri, 8 Feb 2008 15:22:01 -0500
Subject: [TxMt] LaTeX Bundle question
In-Reply-To: <5B6FC49B-1405-4DF1-B0F1-B1B081BC75CF@gmail.com>
References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu>
	<445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com>
	<65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu>
	
	<26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu>
	<2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com>
	<9CC167CA-741F-4115-800C-598FA850C802@princeton.edu>
	<82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com>
	<5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu>
	<9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com>
	
	<3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>
	
	<3625FE88-884E-48D2-B7FD-881A8F1A05F1@princeton.edu>
	<0227D429-4D32-48BE-819B-72FF7FE1A8CA@gmail.com>
	<70455D9F-062D-437D-A217-636A499C475D@gmail.com>
	<0E3201E6-FED4-43F2-8537-452EF0A8EE8D@princeton.edu>
	<5B6FC49B-1405-4DF1-B0F1-B1B081BC75CF@gmail.com>
Message-ID: 


On Feb 8, 2008, at 2:38 PM, Brad Miller wrote:
>
> I've put xdvi support on my todo list for a future texMate.py  
> release.  I think I would prefer to make texMate smart enough that  
> if xdvi is the viewer the dvips step is skipped.  That would keep  
> all the other options and preferences intact without creating  
> another shortcut.
>
> My one concern about this path going forward is that latex itself  
> seems more and more insistent on producing pdf output.  I tried a  
> couple of old documents yesterday  and even using the -output- 
> format=dvi option latex still created a pdf file for me.

I agree that PDF is more common, and may be the way forward, at least  
on the Mac. However, xdvi is actually a nice piece of software.

But I'm surprised that you get pdf output when using 'latex'. Under  
texlive 2007, latex and pdflatex are both symbolic links to pdftex,  
and pdftex parses the calling command to decide whether a dvi or pdf  
file is produced, unless overruled by 'output-format'. In the past, a  
line at the top of the file like %pdflatex was sometimes used to  
indicate the format output, and it might be causing trouble if still  
there.

Geoff





From joachimm at etek.chalmers.se  Fri Feb  8 20:49:27 2008
From: joachimm at etek.chalmers.se (Joachim =?iso-8859-1?Q?M=E5rtensson?=)
Date: Fri, 8 Feb 2008 21:49:27 +0100 (CET)
Subject: [TxMt] punctuation.whitespace.function-call.leading.c
In-Reply-To: 
References: 
	<56225.85.224.226.63.1202495032.squirrel@webmail.chalmers.se>
	
Message-ID: <57406.85.224.226.63.1202503767.squirrel@webmail.chalmers.se>

> I get that. However could the same not be achieved without actually
> consuming the whitespace, eg with lookahead/lookbehind?
>
> Gerd
>
Unfortunately lookbehinds can not be variable length. And since we want to
allow arbitrary amount of spaces between "tokens" this is the solution we
need to adopt. I can not see a good reason for why say [a-z]* should not
be able to be used in a lookbehind but that is the case.

Sorry for calling you Hans by the way, for some reason I assumed you were
Hans-J?rg Bibiko.

Joachim M?rtensson



From mummer at whitefalls.org  Fri Feb  8 21:21:20 2008
From: mummer at whitefalls.org (Michael Sheets)
Date: Fri, 8 Feb 2008 15:21:20 -0600
Subject: [TxMt] punctuation.whitespace.function-call.leading.c
In-Reply-To: 
References: 
Message-ID: 

On Feb 7, 2008, at 1:01 PM, Gerd Knops wrote:

> I take exception to the C syntax gobbling up whitespace at the  
> beginning of a line. It screws up my tab guides, as seen in the  
> example below (before EXCEPTION).

I'll just echo here what Joachim has said? Sometimes matching entire  
lines is necessary grammar wise. It'd be great if it wasn't but I  
think that's not really feasible for all cases.

I've also talked with SubtleGradient a lot about this as he wants the  
same in the main Javascript and CSS grammars. I think it's a bad  
precident to set because once you start adding it to one official  
grammar it becomes a standard feature that people will end up wanting  
elsewhere. Scope wise I think it's tends to be bad because it can  
easily double or even triple the number of scopes in a document. Of  
course that probably sounds hollow as I've been responsible for adding  
tons of scopes? but it still seems bad to add so many just for a  
single feature.

I don't know where allan's stance is, but my view is that this should  
be a TextMate level feature, built into the editor and completely  
separated from the grammars. It would then work everywhere, even when  
an entire line is matched. If it was tied into the folding perhaps  
even allow better coloring as you could the entire clock for a color,  
something like XCode.

From textmate at khiltd.com  Fri Feb  8 21:33:30 2008
From: textmate at khiltd.com (Nathan Duran)
Date: Fri, 8 Feb 2008 13:33:30 -0800
Subject: [TxMt] PHP tag on first line of file trips up HTML bundle
Message-ID: <0EF92EDE-661D-44C8-94EC-5495DE66EE82@khiltd.com>

I've been wrestling with this one for a bit and I can't seem to find  
the right combination of bundle edits to make things work the way I  
think they should.

When using PHP, it is oftentimes necessary to place a "
References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu>
	<445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com>
	<65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu>
	
	<26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu>
	<2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com>
	<9CC167CA-741F-4115-800C-598FA850C802@princeton.edu>
	<82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com>
	<5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu>
	<9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com>
	
	<3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>
	
	<3625FE88-884E-48D2-B7FD-881A8F1A05F1@princeton.edu>
	<0227D429-4D32-48BE-819B-72FF7FE1A8CA@gmail.com>
	<70455D9F-062D-437D-A217-636A499C475D@gmail.com>
	<0E3201E6-FED4-43F2-8537-452EF0A8EE8D@princeton.edu>
	<5B6FC49B-1405-4DF1-B0F1-B1B081BC75CF@gmail.com>
	
Message-ID: 

On Feb 8, 2008, at 3:22 PM, Geoff Vallis wrote:

>
> On Feb 8, 2008, at 2:38 PM, Brad Miller wrote:
>>
>> I've put xdvi support on my todo list for a future texMate.py  
>> release.  I think I would prefer to make texMate smart enough that  
>> if xdvi is the viewer the dvips step is skipped.  That would keep  
>> all the other options and preferences intact without creating  
>> another shortcut.
>>
>> My one concern about this path going forward is that latex itself  
>> seems more and more insistent on producing pdf output.  I tried a  
>> couple of old documents yesterday  and even using the -output- 
>> format=dvi option latex still created a pdf file for me.
>
> I agree that PDF is more common, and may be the way forward, at  
> least on the Mac. However, xdvi is actually a nice piece of software.
>
> But I'm surprised that you get pdf output when using 'latex'. Under  
> texlive 2007, latex and pdflatex are both symbolic links to pdftex,  
> and pdftex parses the calling command to decide whether a dvi or  
> pdf file is produced, unless overruled by 'output-format'. In the  
> past, a line at the top of the file like %pdflatex was sometimes  
> used to indicate the format output, and it might be causing trouble  
> if still there.
>

Brad, to what extent would it be possible to have texMate.py be  
something that people can use as a library? I.e. you would, say,  
import it, and then you could do something like "get_master_filename 
()" etc. So that custom commands could easily take advantage of what  
it can do. Or is this already possible?

> Geoff

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College






From bapt_4510 at yahoo.fr  Sat Feb  9 12:56:09 2008
From: bapt_4510 at yahoo.fr (baptiste auguie)
Date: Sat, 9 Feb 2008 13:56:09 +0100 (CET)
Subject: [TxMt] RE : tooltip preview of LaTeX equations
In-Reply-To: <20071211120034.6FFBAB726@comox.textdrive.com>
Message-ID: <733924.17867.qm@web26213.mail.ukl.yahoo.com>

A while ago i submitted to the list this idea of using
jsMath to get an instant preview of LaTeX formulas in
the form of html tooltips. I'm not a programmer so i
won't be able to do it myself, but i reckon there is
some interest on such a tool, and it looks easily
doable if you know TM's syntax (which, sadly, i
don't).

http://www.math.union.edu/~dpvc/jsmath/

Best wishes,

baptiste

> 
> > De: Allan Odgaard 
> ?: TextMate users 
> Date: Tue, 11 Dec 2007 07:42:38 +0100
> Objet: Re: [TxMt] LaTeX equation tooltip preview
> 
> On 9 Dec 2007, at 12:17, baptiste auguie wrote:
> 
> > I've always been slightly jealous of emacs' auctex
> > mode with previewing of images and equations in a
> TeX
> > document. I understand the issue of dealing with
> fancy
> > fonts in a source editor, but would it be possible
> to
> > create a preview of parts of the code in the form
> of
> > tooltips?
> 
> The Dialog 2, presently in the WIP branch at the
> repository, allows  
> you to show HTML tool tips, so this would make it
> possible.
> 
> And the idea indeed sounds very good.
> 
>


      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr


From bonelake at gmail.com  Sat Feb  9 17:05:18 2008
From: bonelake at gmail.com (Brad Miller)
Date: Sat, 9 Feb 2008 11:05:18 -0600
Subject: [TxMt] LaTeX Bundle question
In-Reply-To: 
References: <4CD419ED-58DB-4587-85A4-2659B1B76DFD@princeton.edu>
	<445AB20B-498C-4FB2-9DE2-460E60B2CD7C@gmail.com>
	<65C2FB4C-6936-4D13-8043-7381876EC06D@princeton.edu>
	
	<26089BCD-7E62-4676-817E-5D45F3D6D072@princeton.edu>
	<2CF0B475-9C72-428C-874F-8E7D864F7CD1@gmail.com>
	<9CC167CA-741F-4115-800C-598FA850C802@princeton.edu>
	<82C0CBB8-ABEF-48BD-81CD-473C798D6A07@gmail.com>
	<5E3068D4-304E-49DB-AB0B-847C98D02EC3@princeton.edu>
	<9D0BFD09-D345-427D-8D51-F315ADEF3234@gmail.com>
	
	<3E551427-5E0B-4F4C-99F6-72E9E317AF02@princeton.edu>
	
	<3625FE88-884E-48D2-B7FD-881A8F1A05F1@princeton.edu>
	<0227D429-4D32-48BE-819B-72FF7FE1A8CA@gmail.com>
	<70455D9F-062D-437D-A217-636A499C475D@gmail.com>
	<0E3201E6-FED4-43F2-8537-452EF0A8EE8D@princeton.edu>
	<5B6FC49B-1405-4DF1-B0F1-B1B081BC75CF@gmail.com>
	
	
Message-ID: 


On Feb 8, 2008, at 8:58 PM, Charilaos Skiadas wrote:

> On Feb 8, 2008, at 3:22 PM, Geoff Vallis wrote:
>
>>
>> On Feb 8, 2008, at 2:38 PM, Brad Miller wrote:
>>>
>>> I've put xdvi support on my todo list for a future texMate.py  
>>> release.  I think I would prefer to make texMate smart enough that  
>>> if xdvi is the viewer the dvips step is skipped.  That would keep  
>>> all the other options and preferences intact without creating  
>>> another shortcut.
>>>
>>> My one concern about this path going forward is that latex itself  
>>> seems more and more insistent on producing pdf output.  I tried a  
>>> couple of old documents yesterday  and even using the -output- 
>>> format=dvi option latex still created a pdf file for me.
>>
>> I agree that PDF is more common, and may be the way forward, at  
>> least on the Mac. However, xdvi is actually a nice piece of software.
>>
>> But I'm surprised that you get pdf output when using 'latex'. Under  
>> texlive 2007, latex and pdflatex are both symbolic links to pdftex,  
>> and pdftex parses the calling command to decide whether a dvi or  
>> pdf file is produced, unless overruled by 'output-format'. In the  
>> past, a line at the top of the file like %pdflatex was sometimes  
>> used to indicate the format output, and it might be causing trouble  
>> if still there.
>>
>
> Brad, to what extent would it be possible to have texMate.py be  
> something that people can use as a library? I.e. you would, say,  
> import it, and then you could do something like  
> "get_master_filename()" etc. So that custom commands could easily  
> take advantage of what it can do. Or is this already possible?
>


Haris,

My goal for texMate.py was to make a single python command that could  
be used in many different bundle commands.  So we have:

texMate.py latex 1
texMate.py sync 1
texMate.py bibtex 1

etc.   (yeah, the 1 is a hack to tell whether the script is run as a  
TM command or from one of the javascript buttons in the window)

At the time of the big rewrite I was more or less following the  
philosophy of the dialog and other TM utilities.

Of course it would certainly be possible to do some refactoring to  
achieve both.
1.  A library of Python functions useful for working with LaTex
2.  A simple texMate.py command that uses the library.

The benefit of moving this direction is that it would be simpler for  
others to add their own custom commands building on the library.


Brad

>> Geoff
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
>
>
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate



From dennis at screenlabor.de  Sat Feb  9 19:01:28 2008
From: dennis at screenlabor.de (Dennis Amrouche)
Date: Sat, 9 Feb 2008 20:01:28 +0100
Subject: [TxMt] bug // self-closing tags
In-Reply-To: 
References: 
Message-ID: <841CE79B-7126-4B2B-B0A9-703900BAF17B@screenlabor.de>

>

Hi there,

first post: wanna say hello and excuse (in advance) for beeing nOOby :0)


1.) bug - self-closing tags:

^ + <  ?for opening/closing tags this key-command does work fine, but  
not for self-closing tags like  or 
space and slash is missing, it just closes the tag normally. Is this a bug? 2.) I have found some tutorial, but w'd like to know if there's somebody out with a link-ressource to share with me (mostly Im interested in HTML/CSS to start with) ThnXS Dennis From paul.denlinger at gmail.com Sun Feb 10 02:27:03 2008 From: paul.denlinger at gmail.com (pdenlinger) Date: Sat, 9 Feb 2008 18:27:03 -0800 (PST) Subject: [TxMt] Can't install Edit in Textmate package Message-ID: <15392164.post@talk.nabble.com> I have just tried to install the "Edit in Textmate" package. When I tried and failed, I got an error message which reads: sh: tail: command not found Error The input manager (/Contents/Resources/Edit in Textmate) was not found in the Textmate application bundle. You may need a newer version of Textmate. I don't understand why this happens; I have just downloaded and paid for Textmate recently. I'm also having trouble setting up the terminal command so that I can open Textmate using the "mate" command; the default links do not show up in the Enhanced Terminal Usage wizard box. If I were to navigate to the /usr/bin directory, which directories should I link to in order to set it up? Thanks in advance. -- View this message in context: http://www.nabble.com/Can%27t-install-Edit-in-Textmate-package-tp15392164p15392164.html Sent from the textmate users mailing list archive at Nabble.com. From mcsticky at gmail.com Sun Feb 10 02:43:46 2008 From: mcsticky at gmail.com (Ian Potter) Date: Sat, 9 Feb 2008 21:43:46 -0500 Subject: [TxMt] Can't install Edit in Textmate package In-Reply-To: <15392164.post@talk.nabble.com> References: <15392164.post@talk.nabble.com> Message-ID: <8AF65A95-19EA-4478-8E95-8AE54BB1BF92@gmail.com> Edit in TextMate for Leopard http://blog.macromates.com/2007/inputmanagers-on-leopard/ mate command http://macromates.com/textmate/manual/using_textmate_from_terminal Hope that helps. On Feb 9, 2008, at 9:27 PM, pdenlinger wrote: > > I have just tried to install the "Edit in Textmate" package. > > When I tried and failed, I got an error message which reads: > > sh: tail: command not found > > Error > > The input manager (/Contents/Resources/Edit in Textmate) was not > found in > the Textmate application bundle. > > You may need a newer version of Textmate. > > I don't understand why this happens; I have just downloaded and paid > for > Textmate recently. > > I'm also having trouble setting up the terminal command so that I > can open > Textmate using the "mate" command; the default links do not show up > in the > Enhanced Terminal Usage wizard box. If I were to navigate to the / > usr/bin > directory, which directories should I link to in order to set it up? > > Thanks in advance. > -- > View this message in context: http://www.nabble.com/Can%27t-install-Edit-in-Textmate-package-tp15392164p15392164.html > Sent from the textmate users mailing list archive at Nabble.com. > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From akos at tamasiek.hu Sun Feb 10 08:32:22 2008 From: akos at tamasiek.hu (=?ISO-8859-1?Q?Tam=E1si_=C1kos?=) Date: Sun, 10 Feb 2008 09:32:22 +0100 Subject: [TxMt] bug // self-closing tags In-Reply-To: <841CE79B-7126-4B2B-B0A9-703900BAF17B@screenlabor.de> References: <841CE79B-7126-4B2B-B0A9-703900BAF17B@screenlabor.de> Message-ID: <00C4D2CF-7E10-45D9-945C-103FAB52DC70@tamasiek.hu> Hi Dennis, From TextMate help: If you want tags with an EMPTY content model to use the minimized (XHTML) form (that is
instead of
) then in Preferences ? Advanced create a new variable named TM_XHTML and set it to ? /? (the value of this variable will be inserted before the > in the generated tags with EMPTY content model). ---- Akos On Feb 9, 2008, at 8:01 PM, Dennis Amrouche wrote: > 1.) bug - self-closing tags: > > ^ + < ?for opening/closing tags this key-command does work fine, > but not for self-closing tags like or
> > space and slash is missing, it just closes the tag normally. > > Is this a bug? From kaevee at gmail.com Sun Feb 10 09:18:12 2008 From: kaevee at gmail.com (Venkatesh K) Date: Sun, 10 Feb 2008 14:48:12 +0530 Subject: [TxMt] Problem with undo Message-ID: Hi, I am new to wonderful textmate and facing a problem. I am not sure where I am going wrong. When I try to "undo" using keyboard shortcut (command + z) I get something like this on screen. ---------------------------------------------------------------------------------------------------------------- File: /Users/venkatesh/Documents/test.php Word: Hi as posted yesterday Im new to Textmate. So like any other 'beginner' I stuck to the screencasts first, trying to adopt what is shown there. Yesterday I posted that self-closing tags wont be done by the key- command [crtl] + < Akos kindly answered today I have to set a new variable for this action. This has not been shown in the screencast. Now Im trying to autocomplete the insertion of a doctype, but again no shortcut will bring what is shown in the screencast. A.) Have features changed since the screencasts have been recorded? This is kind of confusing ... because screencasts are meant to beginners. B.) Is it possible to have more screencasts in general to bring the folks into stuff? That woud be great, so learning by watching is quite more confortable and faster. (And I guess its even faster for the authors to record a screencast on certain issues rather than writing about them) Thnx in advance! ------------------ Dennis From paul.mccann at adelaide.edu.au Sun Feb 10 13:37:41 2008 From: paul.mccann at adelaide.edu.au (Paul McCann) Date: Mon, 11 Feb 2008 00:07:41 +1030 Subject: [TxMt] screencasts // missing shown features In-Reply-To: <1D564387-496A-40A3-9B1D-17B0FD7B3C0B@screenlabor.de> References: <1D564387-496A-40A3-9B1D-17B0FD7B3C0B@screenlabor.de> Message-ID: Dennis Amrouche wrote: > Now Im trying to autocomplete the insertion of a doctype, but again no > shortcut will bring what is shown in the screencast. Not sure what you've seen here, but the (to me) relatively "guessable" approach worked perfectly: set the language to "html" (control-option-shift-h) if it's not already, type "doctype", and hit the tab button. You can then select the doctype you want using either the mouse or the numeric equivalents shown. > (And I guess its even faster for the authors to record a screencast on > certain issues rather than writing about them) I would guess that you guess incorrectly! (Based on my attempts at (non-TextMate) screencasts. It's harder than you might imagine!) Cheers, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From akos at tamasiek.hu Sun Feb 10 13:44:37 2008 From: akos at tamasiek.hu (=?ISO-8859-1?Q?Tam=E1si_=C1kos?=) Date: Sun, 10 Feb 2008 14:44:37 +0100 Subject: [TxMt] screencasts // missing shown features In-Reply-To: <1D564387-496A-40A3-9B1D-17B0FD7B3C0B@screenlabor.de> References: <1D564387-496A-40A3-9B1D-17B0FD7B3C0B@screenlabor.de> Message-ID: You must set the Language Assocation the new file to HTML or save the file with .hml extension and the HTML bundle will works fine... IMHO use the New from template command! ---- Akos On Feb 10, 2008, at 2:20 PM, Dennis Amrouche wrote: > Now Im trying to autocomplete the insertion of a doctype, but again > no shortcut will bring what is shown in the screencast. From dennis at screenlabor.de Sun Feb 10 14:16:21 2008 From: dennis at screenlabor.de (Dennis Amrouche) Date: Sun, 10 Feb 2008 15:16:21 +0100 Subject: [TxMt] screencasts // missing shown features In-Reply-To: References: <1D564387-496A-40A3-9B1D-17B0FD7B3C0B@screenlabor.de> Message-ID: <39F0CC59-9A91-4BD9-A8D4-507A4394D8BC@screenlabor.de> Am 10.02.2008 um 14:37 schrieb Paul McCann: > ... type "doctype", and hit the tab button. You can then select the > doctype you want using either the mouse or the numeric equivalents > shown. Thanks Paul, this took me to the right direction... >> (And I guess its even faster for the authors to record a screencast >> on >> certain issues rather than writing about them) > > I would guess that you guess incorrectly! (Based on my attempts at > (non-TextMate) screencasts. It's harder than you might imagine!) . Video-Tutorials wont substitute proper documentation, but they could explain quite well and straight forward the handling of ie. software. Whats the struggle to record snippets of 4min of free speach and flowing action with the software you like the most? (could be fun too, if you take it more as a simple show-case than a strict informational document) But I admit ;) ... I never did a screencast so far .... Thnx again Paul! Dennis > Cheers, > Paul From textmate at subtleGradient.com Sun Feb 10 15:22:41 2008 From: textmate at subtleGradient.com (Thomas Aylott - subtleGradient) Date: Sun, 10 Feb 2008 10:22:41 -0500 Subject: [TxMt] punctuation.whitespace.function-call.leading.c In-Reply-To: References: Message-ID: <7A2B8956-B277-4A95-BC4F-957FBA858EAA@subtleGradient.com> On Feb 8, 2008, at 4:21 PM, Michael Sheets wrote: > I don't know where allan's stance is, but my view is that this > should be a TextMate level feature, built into the editor and > completely separated from the grammars. It would then work > everywhere, even when an entire line is matched. If it was tied into > the folding perhaps even allow better coloring as you could the > entire clock for a color, something like XCode. I totally agree that this sort of thing should be a TextMate level feature. I hate repeating the same code in multiple grammars. But, if a feature is possible to implement with the current system, and the pros outweigh the cons, then I'd say let's do it. On this feature in particular, it's extremely handy to have the leading space scopes available in HTML, Javascript, Ruby and almost every other language on earth. Mostly just for theme support. But what are the downsides? Adding too many irrelevant scopes to the document. When converting the scopes to HTML you get a giant glob of carp at the beginning of every line. That could be averted with a simple blacklist of scopes that should be ignored from the conversion process. Other than that, what's other downsides are there? ?Thomas Aylott ? subtleGradient? From Steven_Rowat at sunshine.net Sun Feb 10 17:29:05 2008 From: Steven_Rowat at sunshine.net (Steven Rowat) Date: Sun, 10 Feb 2008 09:29:05 -0800 Subject: [TxMt] bug - TM's Web Preview won't update from linked Css stylesheet In-Reply-To: <20080210120028.779AF7F4D@comox.textdrive.com> References: <20080210120028.779AF7F4D@comox.textdrive.com> Message-ID: Greetings, I've been using TextMate for several months, and I'm now starting my first multi-file project using the TextMate project interface. I've encountered what appears to me as a substantial bug (see title). I opened a ticket with a full description last week, but have received no reply so far. Here's the "Summary" from the start of that ticket: "Summary: At first, TM's Web Preview reads linked css stylesheet in the HTML header correctly, but then will not update when the stylesheet is changed. Browsers don't have this problem and show the new data as expected. (TM Web Preview seems to get 'stuck' using its original cached value, even when those values no longer exist in the css file. ) " Here's the full description, including my Troubleshooting attempts and exact steps to reproduce the bug: http://macromates.com/ticket/show?ticket_id=79950679 In addition I'm puzzled by the fact that I've found an exact description of the bug reported in this list in 2006. And there are no replies to that report either! Strange. Doesn't anyone besides me need to use the (wonderful) Live Web Preview with linked external style sheets? Or am I missing some hidden command or path configuration that will allow this to work? Best Regards, Steven Rowat -------------- next part -------------- An HTML attachment was scrubbed... URL: From bibiko at eva.mpg.de Sun Feb 10 18:39:08 2008 From: bibiko at eva.mpg.de (=?ISO-8859-1?Q?Hans-J=F6rg_Bibiko?=) Date: Sun, 10 Feb 2008 19:39:08 +0100 Subject: [TxMt] New R Bundles for testing In-Reply-To: References: <6C5906FC-0A2E-49A9-BB95-E6BC0F86DB62@eva.mpg.de> Message-ID: Hi, sorry for the delay. On 04.02.2008, at 23:30, xolela at mac.com wrote: > Thanks for the work on this.. After having installed the 30th jan > version of the 3 R programs as instructed below... Within the R > bundle (which is my default work environment), when I have a > function of a loaded library, & try the "execute & insert in > text" I get the following error: Is this true for ALL functions loaded e.g.: library("lattice") Depth <- equal.count(quakes$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes) or only for > library(Epi) > hvgfupb<-read.csv(file="hvgfupbBackup.csv",header=TRUE) > stat.table(hvgfupb$maritalcat) ? I only have R 2.6.1. If I run library(Epi) data(warpbreaks) stat.table(tension,list(count(),mean(breaks)),data=warpbreaks) everything works fine. The error message says that the library(Epi) was not found. What does happen if you run > library(Epi) > hvgfupb<-read.csv(file="hvgfupbBackup.csv",header=TRUE) > stat.table(hvgfupb$maritalcat) in the Terminal running R? Cheers, Hans From mcsticky at gmail.com Sun Feb 10 20:49:34 2008 From: mcsticky at gmail.com (Ian Potter) Date: Sun, 10 Feb 2008 15:49:34 -0500 Subject: [TxMt] bug - TM's Web Preview won't update from linked Css stylesheet In-Reply-To: References: <20080210120028.779AF7F4D@comox.textdrive.com> Message-ID: <615429AB-BBB8-475E-8603-92BBFE74488F@gmail.com> Here's what I was able to reproduce in 10.5.1 on an Intel Mac: Changing the linked CSS file doesn't force a refresh in the Live Web Preview, but clicking the refresh button gets the changes correctly. Changing the name of the linked stylesheet in the HTML header removes styles as expected. It seems to get the newest version of the stylesheet file when it is changed back, though. My guess is that the Live Preview Window can't automatically update when you change the CSS file because it's only watching for changes to the HTML file. Hope this gives you some clues. itp On Feb 10, 2008, at 12:29 PM, Steven Rowat wrote: > Greetings, > > I've been using TextMate for several months, and I'm now starting my > first multi-file project using the TextMate project interface. > > I've encountered what appears to me as a substantial bug (see > title). I opened a ticket with a full description last week, but > have received no reply so far. Here's the "Summary" from the start > of that ticket: > > "Summary: > At first, TM's Web Preview reads linked css stylesheet in the HTML > header correctly, but then will not update when the stylesheet is > changed. Browsers don't have this problem and show the new data as > expected. (TM Web Preview seems to get 'stuck' using its original > cached value, even when those values no longer exist in the css > file. ) " > > Here's the full description, including my Troubleshooting attempts > and exact steps to reproduce the bug: > > http://macromates.com/ticket/show?ticket_id=79950679 > > > In addition I'm puzzled by the fact that I've found an exact > description of the bug reported in this list in 2006. And there are > no replies to that report either! Strange. > > Doesn't anyone besides me need to use the (wonderful) Live Web > Preview with linked external style sheets? > > Or am I missing some hidden command or path configuration that will > allow this to work? > > > Best Regards, > > Steven Rowat > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate -------------- next part -------------- An HTML attachment was scrubbed... URL: From C.Brewster at dcs.shef.ac.uk Sun Feb 10 21:03:42 2008 From: C.Brewster at dcs.shef.ac.uk (Christopher Brewster) Date: Sun, 10 Feb 2008 21:03:42 +0000 Subject: [TxMt] repeated problems with Latex Message-ID: I love textmate and the integration with latex but again and again it just stops working. Current incarnation of the problems is the following: 1. In a multifile document (thesis) I edit one sub-document and recompile (ctrl-r) and the message I get is: "Latexmk: All targets (ClassicThesis2.pdf) are up-to-date" - I have tried compiling from the master document - same result. - I have tried 'trash aux files' and same result 2. Separate problem (earlier on): I am using skim, and in the past when I would compile in Textmate, it would pop into focus. Now all it does is bounce in the dock. Also again and again the window comes up asking if it should automatically update the file. Any suggestions appreciated. Christopher Brewster ***************************************************** Department of Computer Science, University of Sheffield From bonelake at gmail.com Sun Feb 10 21:12:14 2008 From: bonelake at gmail.com (Brad Miller) Date: Sun, 10 Feb 2008 15:12:14 -0600 Subject: [TxMt] repeated problems with Latex In-Reply-To: References: Message-ID: Christopher: What version of TextMate are you using? Are you using Latex from the subversion repository or the version that came pre-installed with TextMate? On Feb 10, 2008, at 3:03 PM, Christopher Brewster wrote: > I love textmate and the integration with latex but again and again > it just stops working. > Current incarnation of the problems is the following: > 1. In a multifile document (thesis) I edit one sub-document and > recompile (ctrl-r) and the message I get is: "Latexmk: All targets > (ClassicThesis2.pdf) are up-to-date" > - I have tried compiling from the master document - same result. > - I have tried 'trash aux files' and same result Latexmk is a third party latex compiler that I just use as part of the bundle. I'm not sure why you are having problems with it. What version of latexmk does latexmk claim to be? If you uncheck latexmk in the preferences dialog does it compile correctly from your sub- document? How are you setting your master file? > > > 2. Separate problem (earlier on): I am using skim, and in the past > when I would compile in Textmate, it would pop into focus. Now all > it does is bounce in the dock. > Also again and again the window comes up asking if it should > automatically update the file. > You need to go into Skim preferences and uncheck the box that tells skim to look for updates. TextMate will tell skim when to update, and under those conditions it should also raise Skim to be the frontmost window. Although this seems to be somewhat dependent upon OS versions, Skim Versions, and the direction of the wind. :-( Brad > Any suggestions appreciated. > > Christopher Brewster > ***************************************************** > Department of Computer Science, University of Sheffield > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From C.Brewster at dcs.shef.ac.uk Sun Feb 10 21:23:43 2008 From: C.Brewster at dcs.shef.ac.uk (Christopher Brewster) Date: Sun, 10 Feb 2008 21:23:43 +0000 Subject: [TxMt] repeated problems with Latex In-Reply-To: References: Message-ID: <413EA0C1-68AF-42E9-B4EF-44CFAF25F6C0@dcs.shef.ac.uk> On 10 Feb 2008, at 21:12, Brad Miller wrote: > Christopher: > > What version of TextMate are you using? Are you using Latex from > the subversion repository or the version that came pre-installed > with TextMate? > Version 1.5.7 (1455) with nothing taken from the repository, only what came with the installation. > On Feb 10, 2008, at 3:03 PM, Christopher Brewster wrote: > >> I love textmate and the integration with latex but again and again >> it just stops working. >> Current incarnation of the problems is the following: >> 1. In a multifile document (thesis) I edit one sub-document and >> recompile (ctrl-r) and the message I get is: "Latexmk: All targets >> (ClassicThesis2.pdf) are up-to-date" >> - I have tried compiling from the master document - same result. >> - I have tried 'trash aux files' and same result > > Latexmk is a third party latex compiler that I just use as part of > the bundle. I'm not sure why you are having problems with it. What > version of latexmk does latexmk claim to be? If you uncheck latexmk > in the preferences dialog does it compile correctly from your sub- > document? How are you setting your master file? > Problems has been solved (for the moment). It appears there was some characters (actually white space) that Latex did not like and generated lots of error messages for this and so no new pdf. However, this complaint did not feed back to TextMate for some reason (even though I had it on verbose). All very weird. >> >> >> 2. Separate problem (earlier on): I am using skim, and in the past >> when I would compile in Textmate, it would pop into focus. Now all >> it does is bounce in the dock. >> Also again and again the window comes up asking if it should >> automatically update the file. >> > You need to go into Skim preferences and uncheck the box that tells > skim to look for updates. TextMate will tell skim when to update, > and under those conditions it should also raise Skim to be the > frontmost window. Although this seems to be somewhat dependent upon > OS versions, Skim Versions, and the direction of the wind. :-( > Thanks that seems to have done the trick. Christopher > > Brad > > >> Any suggestions appreciated. >> >> Christopher Brewster >> ***************************************************** >> Department of Computer Science, University of Sheffield >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From throw-away-2 at macromates.com Mon Feb 11 01:37:12 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Mon, 11 Feb 2008 02:37:12 +0100 Subject: [TxMt] [Blogging bundle] Request specific post by ID In-Reply-To: <5D5681DC-C6BE-4871-8B8C-83BF45DF41D9@stevengharms.com> References: <5D5681DC-C6BE-4871-8B8C-83BF45DF41D9@stevengharms.com> Message-ID: <2F345388-1C20-4A7F-BB53-38E8072E959A@macromates.com> On 2 Feb 2008, at 19:55, Steven Harms wrote: > [...] > What if I decided that I wanted to go back and edit something from a > *long time* ago. Could I somehow retrieve the post via the bundle > either by slug or by unique ID? Presently not. I personally edited the bundle to fetch the last 50 posts instead of only the last 20. IDeally of course it should fetch all titles. From throw-away-2 at macromates.com Mon Feb 11 01:40:44 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Mon, 11 Feb 2008 02:40:44 +0100 Subject: [TxMt] Problems printing with line numbers using TextMate bundle In-Reply-To: <1A86844C-BBB5-4DF5-8A2A-7F66E60B7B54@mac.com> References: <20080205120015.2D15665D1@comox.textdrive.com> <1A86844C-BBB5-4DF5-8A2A-7F66E60B7B54@mac.com> Message-ID: <9548D0E3-CA4C-4DEA-AD81-06D59AD26FEB@macromates.com> On 5 Feb 2008, at 20:14, John Laudun wrote: > [...] But when I run it, I get the following dialogue error in the > preview window: > > sh: ps: command not found > Received exception:TextMate::AppPathNotFoundException This indicates that your PATH is wrong or your system is messed up. The missing command (ps) is in /bin on a standard system and /bin is in the PATH by default on a standard system. See http://wiki.macromates.com/Troubleshooting/101 for troubleshooting advice. From throw-away-2 at macromates.com Mon Feb 11 01:42:12 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Mon, 11 Feb 2008 02:42:12 +0100 Subject: [TxMt] how to scroll down the page/log when "compiling"? In-Reply-To: <6faad9f00802071317j5df5c7d0mf337151e6a353bbb@mail.gmail.com> References: <6faad9f00802071317j5df5c7d0mf337151e6a353bbb@mail.gmail.com> Message-ID: On 7 Feb 2008, at 22:17, Mojca Miklavec wrote: > [...] > When "building" with > ?+R > an extra window with "html" content opens with a long log of the run. > My question is: is it possible to scroll down to the bottom of that > window automatically as the log is written to it? Yes, see http://lists.macromates.com/pipermail/textmate/2007-August/021961.html for how to set it up. From throw-away-2 at macromates.com Mon Feb 11 01:43:54 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Mon, 11 Feb 2008 02:43:54 +0100 Subject: [TxMt] PHP tag on first line of file trips up HTML bundle In-Reply-To: <0EF92EDE-661D-44C8-94EC-5495DE66EE82@khiltd.com> References: <0EF92EDE-661D-44C8-94EC-5495DE66EE82@khiltd.com> Message-ID: On 8 Feb 2008, at 22:33, Nathan Duran wrote: > When using PHP, it is oftentimes necessary to place a " right at the beginning of the file, as any leading whitespace will > render the header() function useless. Unfortunately, whenever I open > such a file in TextMate, it is not recognized as HTML. There's no > syntax highlighting, no autocompletion, nothing. Getting rid of the > opening PHP block, or simply inserting a space in front of it sets > everything right, but then the script obviously stops working. Can you attach a (html) file where TM shows this problem? Also see http://wiki.macromates.com/Troubleshooting/RevertToDefaultBundles -- it sounds like you might have some local (bad) changes. From throw-away-2 at macromates.com Mon Feb 11 01:45:04 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Mon, 11 Feb 2008 02:45:04 +0100 Subject: [TxMt] Can't install Edit in Textmate package In-Reply-To: <15392164.post@talk.nabble.com> References: <15392164.post@talk.nabble.com> Message-ID: <36C25156-F91D-46BE-BC36-C79AE395C41B@macromates.com> On 10 Feb 2008, at 03:27, pdenlinger wrote: > I have just tried to install the "Edit in Textmate" package. > > When I tried and failed, I got an error message which reads: > > sh: tail: command not found > > [...] I think this applies here as well: http://lists.macromates.com/pipermail/textmate/2008-February/024372.html From throw-away-2 at macromates.com Mon Feb 11 01:46:04 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Mon, 11 Feb 2008 02:46:04 +0100 Subject: [TxMt] Problem with undo In-Reply-To: References: Message-ID: On 10 Feb 2008, at 10:18, Venkatesh K wrote: > [...] > When I try to "undo" using keyboard shortcut (command + z) I get > something like this on screen [...] You likely bound some action to ?Z. See http://wiki.macromates.com/Troubleshooting/KeyBindings From throw-away-2 at macromates.com Mon Feb 11 01:49:24 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Mon, 11 Feb 2008 02:49:24 +0100 Subject: [TxMt] screencasts // missing shown features In-Reply-To: <39F0CC59-9A91-4BD9-A8D4-507A4394D8BC@screenlabor.de> References: <1D564387-496A-40A3-9B1D-17B0FD7B3C0B@screenlabor.de> <39F0CC59-9A91-4BD9-A8D4-507A4394D8BC@screenlabor.de> Message-ID: <3AF07DC2-ED9E-4DC4-B564-AFAEB41406E0@macromates.com> On 10 Feb 2008, at 15:16, Dennis Amrouche wrote: > [...] >>> (And I guess its even faster for the authors to record a >>> screencast on >>> certain issues rather than writing about them) >> I would guess that you guess incorrectly! (Based on my attempts at >> (non-TextMate) screencasts. It's harder than you might imagine!) > Video-Tutorials wont substitute proper documentation, but they could > explain quite well and straight forward the handling of ie. software. > > Whats the struggle to record snippets of 4min of free speach and > flowing action with the software you like the most? Well, try it for yourself :) Coming up with good stuff to show and actually recording it is much much harder than it looks. Also, even if we did 100+ new screencasts, what is the chance of us recording one showing exactly the stuff you needed (like the doctype snippet, which I actually think is featured in at least one screencast)? Not to mistake the above for me not wanting more screencast, I love them, but just don?t underrestimate the effort that goes into them, and also, recording dozens of 4 minute ?trivial? screencasts will IMO devalue the concept. From throw-away-2 at macromates.com Mon Feb 11 01:52:17 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Mon, 11 Feb 2008 02:52:17 +0100 Subject: [TxMt] bug - TM's Web Preview won't update from linked Css stylesheet In-Reply-To: <615429AB-BBB8-475E-8603-92BBFE74488F@gmail.com> References: <20080210120028.779AF7F4D@comox.textdrive.com> <615429AB-BBB8-475E-8603-92BBFE74488F@gmail.com> Message-ID: On 10 Feb 2008, at 21:49, Ian Potter wrote: > [...] > My guess is that the Live Preview Window can't automatically update > when you change the CSS file because it's only watching for changes > to the HTML file. Yeah, it is only watching the actual buffer, not referenced resources like style sheets, scripts, images, a.s.o. From kaevee at gmail.com Mon Feb 11 02:16:41 2008 From: kaevee at gmail.com (Venkatesh K) Date: Mon, 11 Feb 2008 07:46:41 +0530 Subject: [TxMt] Problem with undo In-Reply-To: References: Message-ID: I have not customized textmate. All other applicaitons are behaving normally and undo works with command + z key. I am newbie to textmate. How do I find out whether it is bound to some action? Thanks, Venkatesh K On Feb 11, 2008 7:16 AM, Allan Odgaard wrote: > On 10 Feb 2008, at 10:18, Venkatesh K wrote: > > > [...] > > When I try to "undo" using keyboard shortcut (command + z) I get > > something like this on screen [...] > > You likely bound some action to ?Z. > > See http://wiki.macromates.com/Troubleshooting/KeyBindings > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -- Venkatesh. K From james at grayproductions.net Mon Feb 11 04:10:14 2008 From: james at grayproductions.net (James Gray) Date: Sun, 10 Feb 2008 22:10:14 -0600 Subject: [TxMt] screencasts // missing shown features In-Reply-To: <3AF07DC2-ED9E-4DC4-B564-AFAEB41406E0@macromates.com> References: <1D564387-496A-40A3-9B1D-17B0FD7B3C0B@screenlabor.de> <39F0CC59-9A91-4BD9-A8D4-507A4394D8BC@screenlabor.de> <3AF07DC2-ED9E-4DC4-B564-AFAEB41406E0@macromates.com> Message-ID: <77431C8A-6ECE-41E0-B784-A7A5A2135001@grayproductions.net> On Feb 10, 2008, at 7:49 PM, Allan Odgaard wrote: > ?and also, recording dozens of 4 minute ?trivial? screencasts will > IMO devalue the concept. I'm not so sure about that. I follow Railscasts which now has 90 episodes. They are usually about seven minutes focused on a single topic. In my opinion, it's an excellent podcast. You're right that it's a lot of work though. Making just one surprised the heck out of me with how hard it was. James Edward Gray II From paul.mccann at adelaide.edu.au Mon Feb 11 07:02:38 2008 From: paul.mccann at adelaide.edu.au (Paul McCann) Date: Mon, 11 Feb 2008 17:32:38 +1030 Subject: [TxMt] Problem with undo In-Reply-To: References: Message-ID: Hi Venkatesh, I am newbie to textmate. How do I find out whether it is bound to some > action? Hit control-command-t : in the resulting dialog click on the triangle near the magnifying glass and select "key equivalent". Then enter the command you're trying to find the binding for (in this case command-z). It should show you the command in the bundle that is currently intercepting your attempt to undo changes. To eliminate this key binding open the bundle editor (control-option-command-b) and navigate to the offending item. Just remove the entry in the activation section. Good luck, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From mojca.miklavec.lists at gmail.com Mon Feb 11 07:14:04 2008 From: mojca.miklavec.lists at gmail.com (Mojca Miklavec) Date: Mon, 11 Feb 2008 08:14:04 +0100 Subject: [TxMt] how to scroll down the page/log when "compiling"? In-Reply-To: References: <6faad9f00802071317j5df5c7d0mf337151e6a353bbb@mail.gmail.com> Message-ID: <6faad9f00802102314g5f38ea5v522e4fc0bd601bca@mail.gmail.com> On Feb 11, 2008 2:42 AM, Allan Odgaard wrote: > On 7 Feb 2008, at 22:17, Mojca Miklavec wrote: > > > [...] > > When "building" with > > ?+R > > an extra window with "html" content opens with a long log of the run. > > My question is: is it possible to scroll down to the bottom of that > > window automatically as the log is written to it? > > Yes, see http://lists.macromates.com/pipermail/textmate/2007-August/021961.html > for how to set it up. Wow! Thanks a lot. It worked (Is there any place besides the mailing list archive to put this hint on?) Mojca From mummer at whitefalls.org Mon Feb 11 08:43:28 2008 From: mummer at whitefalls.org (Michael Sheets) Date: Mon, 11 Feb 2008 02:43:28 -0600 Subject: [TxMt] punctuation.whitespace.function-call.leading.c In-Reply-To: <7A2B8956-B277-4A95-BC4F-957FBA858EAA@subtleGradient.com> References: <7A2B8956-B277-4A95-BC4F-957FBA858EAA@subtleGradient.com> Message-ID: On Feb 10, 2008, at 9:22 AM, Thomas Aylott - subtleGradient wrote: > But what are the downsides? > Adding too many irrelevant scopes to the document. > When converting the scopes to HTML you get a giant glob of carp at > the beginning of every line. > That could be averted with a simple blacklist of scopes that > should be ignored from the conversion process. > > Other than that, what's other downsides are there? Well for Javascript this isn't a downside, since it doesn't have any line-based scopes. But most grammars match entire lines at some point, adding tab scopes to each of those would get very messy quite fast. Depending how many tabs you allow that's 5+ captures, double it if you have a different scope for spaces over tabs like your current version does for each rule. Speed-wise I'm not sure what kind of hit it takes from assigning the tab scopes, allan could perhaps answer this. -- Another thing to ask here is how it could be implemented as a TextMate level feature. I see two approaches, one is basically what you do. Have some dynamic scopes added for each leading tab/soft-tab, can color these in themes. Logistically pretty simple I'd imagine, not much to figure out. The second is what people have pointed out here before as cool, the more XCode like coloring: http://skitch.com/infininight/gdfw/nstextview-edit-in-textmate.mm Where it colors blocks not really the tabs themselves. A bit niftier perhaps? But logistically harder perhaps. Are they no longer based on tabs at all, or are they simply anything foldable gets a new 'level'? If they are still tab based what do you do about something like a two- line item when the second line is indented, you wouldn't want it made a new 'level'. The limitation here is the places where the folding system isn't ideal, but then that's something that will hopefully improve so tieing them together might make it easy. Any other ways this could be done? From kaevee at gmail.com Mon Feb 11 11:51:24 2008 From: kaevee at gmail.com (Venkatesh K) Date: Mon, 11 Feb 2008 17:21:24 +0530 Subject: [TxMt] Problem with undo In-Reply-To: References: Message-ID: On Feb 11, 2008 12:32 PM, Paul McCann wrote: > Hi Venkatesh, > > > > I am newbie to textmate. How do I find out whether it is bound to some > action? > > > Hit control-command-t : in the resulting dialog click on the triangle near > the magnifying glass and select "key equivalent". Then enter the command > you're trying to find the binding for (in this case command-z). It should > show you the command in the bundle that is currently intercepting your > attempt to undo changes. > > To eliminate this key binding open the bundle editor > (control-option-command-b) and navigate to the offending item. Just remove > the entry in the activation section. > > Good luck, > Paul Thanks for the tip. I was able to fix the problem and in the process I ended up deleting php bundle. How do i get it back? Regards, Venkatesh K Venkatesh. K From paul.mccann at adelaide.edu.au Mon Feb 11 12:55:56 2008 From: paul.mccann at adelaide.edu.au (Paul McCann) Date: Mon, 11 Feb 2008 23:25:56 +1030 Subject: [TxMt] Problem with undo In-Reply-To: References: Message-ID: Hi again, Thanks for the tip. I was able to fix the problem and in the process I > ended up deleting php bundle. How do i get it back? I hope that wasn't part of the tip: how did you delete the PHP bundle? I can think of two scenarios... (1) You just unticked it in the "Filter Bundles..." list, in which case you can just re-enable it in the same way (ie click "Filter List..." in the Bundle editor and reselect "PHP" in the resulting dialog. (2) You selected "PHP" in the left column and clicked the "-" sign (and then ignored the rather stern warning that stated "If you delete the "PHP" bundle you will not be able to get back the items it contains. Do you want to continue?"). If this is the situation then I think the easiest way is to just download TextMate again and install over the top of the existing copy. Any modifications/additions you've made to bundles will be preserved, and the PHP bundle will be "inside" of the new copy of TextMate (but according to my test it still won't be visible within the Bundle Editor's list of available bundles). To actually have it available for use you can execute the following command in a terminal window. open /Applications/TextMate.app/Contents/SharedSupport/Bundles Then simply double click on "PHP.tmbundle" in the resulting listing. Have fun, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From textmate at subtleGradient.com Mon Feb 11 13:43:26 2008 From: textmate at subtleGradient.com (Thomas Aylott - subtleGradient) Date: Mon, 11 Feb 2008 08:43:26 -0500 Subject: [TxMt] punctuation.whitespace.function-call.leading.c In-Reply-To: References: <7A2B8956-B277-4A95-BC4F-957FBA858EAA@subtleGradient.com> Message-ID: On Feb 11, 2008, at 3:43 AM, Michael Sheets wrote: > On Feb 10, 2008, at 9:22 AM, Thomas Aylott - subtleGradient wrote: > >> But what are the downsides? >> Adding too many irrelevant scopes to the document. >> When converting the scopes to HTML you get a giant glob of carp at >> the beginning of every line. >> That could be averted with a simple blacklist of scopes that >> should be ignored from the conversion process. >> >> Other than that, what's other downsides are there? > > Well for Javascript this isn't a downside, since it doesn't have any > line-based scopes. But most grammars match entire lines at some > point, adding tab scopes to each of those would get very messy quite > fast. Depending how many tabs you allow that's 5+ captures, double > it if you have a different scope for spaces over tabs like your > current version does for each rule. There are a few places where I've had to capture the leading space, but you just have to include the #leading-space thing and you're good to go. Obviously wouldn't work if that space was taken in a different way though. > Speed-wise I'm not sure what kind of hit it takes from assigning the > tab scopes, allan could perhaps answer this. That is definitely something to consider. Unfortunately it's currently impossible to run tests on a language grammar. I'd like to see that as a feature sometime in the future. Maybe hook into the mate function to test any tmlanguage file against any text file and get some statistics or something useful. Maybe a breakdown of what scopes are taking how long so that you can focus your energies on fixing that stuff. I know there are a million different ways of doing a regex, and some ways are much more betterer than others. So anything that can help me see which of my regex look to be written by rabid lemurs would be useful. > -- > > Another thing to ask here is how it could be implemented as a > TextMate level feature. > > I see two approaches, Actually, I think it actually makes good sense to make it 2 separate features. Style the leading space dynamically AND Xcode-esque dynamic nested group coloring. > one is basically what you do. Have some dynamic scopes added for > each leading tab/soft-tab, can color these in themes. Logistically > pretty simple I'd imagine, not much to figure out. I think it could be like we currently have "Highlight current line" as a preference checkbox and a hardcoded theme color. If we just standardize on odd-tab coloring checkbox+theme color. Then it's very simple. That way the textmate level implementation of it is really none of our business, Allan can make it happen however he likes without polluting the scope structure with otherwise worthless scopes. > The second is what people have pointed out here before as cool, the > more XCode like coloring: > > http://skitch.com/infininight/gdfw/nstextview-edit-in-textmate.mm > Where it colors blocks not really the tabs themselves. A bit niftier > perhaps? But logistically harder perhaps. Are they no longer based > on tabs at all, or are they simply anything foldable gets a new > 'level'? If they are still tab based what do you do about something > like a two-line item when the second line is indented, you wouldn't > want it made a new 'level'. The limitation here is the places where > the folding system isn't ideal, but then that's something that will > hopefully improve so tieing them together might make it easy. This is really a completely different feature. I love how Xcode has it built into the folding system. It also solves the issue for themes where too many nested groups can become unmanageable. In my current implementation I have to manually add each group with its background color hard coded. Themes could instead have 3?4 background colors that are manually set, or else textmate will fallback to some sort of default. And then have a checkbox in the prefs like "Highlight current line" I'd also like the option of activating the coloring based on caret position instead of having to mouse over the gutter like in Xcode. So, yes. Based on folding is probably the best option for this feature. I also REALLY like the way xcode folds code into a single character instead of folding into a single line like textmate currently does. > Any other ways this could be done? From kaevee at gmail.com Mon Feb 11 14:13:21 2008 From: kaevee at gmail.com (Venkatesh K) Date: Mon, 11 Feb 2008 19:43:21 +0530 Subject: [TxMt] Problem with undo In-Reply-To: References: Message-ID: On Feb 11, 2008 6:25 PM, Paul McCann wrote: > Hi again, > > > > > > > > Thanks for the tip. I was able to fix the problem and in the process I > > ended up deleting php bundle. How do i get it back? > > I hope that wasn't part of the tip: how did you delete the PHP bundle? I > can think of two scenarios... I am so sorry. Of course it was not part of tip. It was partly my impatience and partly my carelessness. > > (1) You just unticked it in the "Filter Bundles..." list, in which case you > can just re-enable it in the same way (ie click "Filter List..." in the > Bundle editor and reselect "PHP" in the resulting dialog. > > (2) You selected "PHP" in the left column and clicked the "-" sign (and then > ignored the rather stern warning that stated "If you delete the "PHP" bundle > you will not be able to get back the items it contains. Do you want to > continue?"). If this is the situation then I think the easiest way is to > just download TextMate again and install over the top of the existing copy. > I did the second one. > Any modifications/additions you've made to bundles will be preserved, and > the PHP bundle will be "inside" of the new copy of TextMate (but according > to my test it still won't be visible within the Bundle Editor's list of > available bundles). To actually have it available for use you can execute > the following command in a terminal window. > > open /Applications/TextMate.app/Contents/SharedSupport/Bundles > > Then simply double click on "PHP.tmbundle" in the resulting listing. > In fact, before you wrote, went all the way to Bundles in finder. Did not know the double click part :) Paul, tons of thanks. Venkatesh. K From textmate at subtleGradient.com Mon Feb 11 14:39:38 2008 From: textmate at subtleGradient.com (Thomas Aylott - subtleGradient) Date: Mon, 11 Feb 2008 09:39:38 -0500 Subject: [TxMt] bug - TM's Web Preview won't update from linked Css stylesheet In-Reply-To: References: <20080210120028.779AF7F4D@comox.textdrive.com> Message-ID: <806521FE-7C6D-4D17-929F-93F5EF140A24@subtleGradient.com> On Feb 10, 2008, at 12:29 PM, Steven Rowat wrote: > Or am I missing some hidden command or path configuration that will > allow this to work? I think I've mentioned it before, but I use my own little omni-preview passthrough script available here: http://textmate.svn.subtlegradient.com/Bundles/tAylott_subtleGradient.tmbundle/Support/bin/42_TextMate_live_preview.rb Be warned it's extremely janky and lame. But it works really well for me for what it does. For HTML If you have a TM_PROJECT_SITEURL env var set it'll change the base of your html doc to use that. It makes all external Javascript and CSS urls unique to avoid caching. It converts markup and textile on the fly. It also has some stuff in there for previewing Ruby on Rails rhtml files somehow, but I forget how that works. It also has my blog template hardcoded so I can preview a blog post as it would look on my blog. for general source files it'll do a live diff between your unsaved document and your saved document. Clicking on a line will take you to that line in your source. For Javascript it'll run the script and catch and write out any errors in execution. Doesn't work very well. It's all just based on the current scope, so you should be able to just set up the filter once and forget about it. This is really old code, so I'm really not sure what half of it does anymore, but I find it to be EXTREMELY handy. ?Thomas Aylott ? subtleGradient? From Steven_Rowat at sunshine.net Mon Feb 11 16:52:22 2008 From: Steven_Rowat at sunshine.net (Steven Rowat) Date: Mon, 11 Feb 2008 08:52:22 -0800 Subject: [TxMt] bug - TM's Web Preview won't update from linked Css stylesheet In-Reply-To: References: <20080210120028.779AF7F4D@comox.textdrive.com> <615429AB-BBB8-475E-8603-92BBFE74488F@gmail.com> Message-ID: Hi, >On 10 Feb 2008, at 21:49, Ian Potter wrote: > >>[...] >>My guess is that the Live Preview Window can't automatically update when you change the CSS file because it's only watching for changes to the HTML file. Allan wrote: >Yeah, it is only watching the actual buffer, not referenced resources like style sheets, scripts, images, a.s.o. Aha, thanks, I hadn't even noticed the (cleverly disguised?) recycle button in the upper right of the Web Preview Page. That works! All that bug reporting for nothing... :-) But: OTOH, the Refresh button in the side panel doesn't update the external css changes. So the "Refresh" button is different from the 'recycle' button in some way - I guess the "Refresh" won't reload the buffer unless there's an HTML change, while the "recycle" is a forced reload regardless? Steven Rowat From textmate at skurfer.com Mon Feb 11 20:00:47 2008 From: textmate at skurfer.com (Rob McBroom) Date: Mon, 11 Feb 2008 15:00:47 -0500 Subject: Re[TxMt] mote editing of projects In-Reply-To: <15053548.post@talk.nabble.com> References: <15053548.post@talk.nabble.com> Message-ID: On Jan 23, 2008, at 5:32 PM, dakarp wrote: > I am currently a user of BBEdit. I'd like to be able to use TextMate > if I > could find a combination of an SFTP client and TextMate that would > allow me > to edit multiple files remotely as a project (grouped in the same > window, > with the drawer). Is there a combination of programs that will > allow this? Sorry for the late reply. I wanted to do the same thing, so I created a bundle that helps me do everything locally, but easily keep a remote copy up to date for server-side testing. If you use subversion: svn checkout 'http://projects.skurfer.com/svn/Remote Project.tmbundle' Otherwise, you can get the bundle from: The bundle includes a help file that will tell you more. Rob From nate at shift22.com Mon Feb 11 20:46:49 2008 From: nate at shift22.com (Nate Cavanaugh) Date: Mon, 11 Feb 2008 12:46:49 -0800 (PST) Subject: [TxMt] Changing language for a specific file In-Reply-To: References: <14630274.post@talk.nabble.com> <20C96993-AF0F-48A7-8CF9-C9FA468A86C6@gmail.com> <14637906.post@talk.nabble.com> <83B349D1-21CD-43FD-B69F-62659C7B552D@eva.mpg.de> <14695880.post@talk.nabble.com> Message-ID: <15420248.post@talk.nabble.com> Hi Alan, Thanks for the reply, but I'm now trying to get this to work, and for some reason, it's still treating each of the files identically. Is there some special method for changing the language that I should be using? For instance, I have css_cached.jsp. I copied that file and have css_cached.css.jsp. Whenever I change the language type it does it for all jsp's, like before. Any suggestions? Thanks Alan, Allan Odgaard-3 wrote: > > On 8 Jan 2008, at 19:38, Nate Cavanaugh wrote: > >> [...] >> Quick question, do you know if this is possible with TabMate *without* >> modelines? I'm working on a huge code base with multiple users and >> strict >> coding standards and the modelines aren't allowed to sit in SVN, >> which means >> I have to copy the mode lines every time I edit the file, in which >> case, I >> might as well just manually change the language. >> >> Anyone know of a work around (even if it's a work around in SVN)? > > TextMate will get the file type either from the first line of the file > or the extension. The recommended solution is to use double-extensions > when it is important that different file types have the same ?final? > extension, e.g. ?foo.css.php?, ?foo.js.php?, ?foo.php? -- here all > files are php, but TextMate can assign different grammars to them > based on the secondary extension. > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > > -- View this message in context: http://www.nabble.com/Changing-language-for-a-specific-file-tp14630274p15420248.html Sent from the textmate users mailing list archive at Nabble.com. From jlaudun at mac.com Mon Feb 11 21:20:16 2008 From: jlaudun at mac.com (John Laudun) Date: Mon, 11 Feb 2008 15:20:16 -0600 Subject: [TxMt] Multimarkdown preview a bit flakey Message-ID: <8E098F62-75A3-46DD-BD76-C916ADBD64D2@mac.com> To be honest, I can't tell if the failure to apply a style sheet is something odd in my TM set up or something flakey going on with my hosted set up. Would someone mind reminding how to make the call to a local style sheet so that I can test what's going on? Is it "file:///path/to/file.css" or is it "http://localhost/path/to/file.css " -- and with the latter I assume I have to have the built in web server running, yes? john From jlaudun at mac.com Mon Feb 11 22:21:23 2008 From: jlaudun at mac.com (John Laudun) Date: Mon, 11 Feb 2008 16:21:23 -0600 Subject: [TxMt] Re: Multimarkdown preview a bit flakey References: <8E098F62-75A3-46DD-BD76-C916ADBD64D2@mac.com> Message-ID: <21DF645A-9F3C-4CEF-8F18-673B18473757@mac.com> Never mind. My hosted account is the fault. With web sharing turned on, "http://localhost..." worked just fine. Sorry to clutter the list with now two messages. > To be honest, I can't tell if the failure to apply a style sheet is > something odd in my TM set up or something flakey going on with my > hosted set up. Would someone mind reminding how to make the call to > a local style sheet so that I can test what's going on? > > Is it "file:///path/to/file.css" or is it "http://localhost/path/to/file.css > " -- and with the latter I assume I have to have the built in web > server running, yes? > > john > From simon at helvector.org Tue Feb 12 00:24:39 2008 From: simon at helvector.org (Simon Gregory) Date: Tue, 12 Feb 2008 00:24:39 +0000 Subject: [TxMt] [ANN] Ant Bundle Message-ID: I uploaded an Ant bundle to the review's section of the bundle repository a couple of months ago. There have been a few tweaks but it's now stable. I'm looking to getting it bumped up to the main repository so am canvasing here for some feedback. On top of the obvious build and run commands it's main features are integrated help, auto completion, document validation, and - the handiest for me - build target selection from a dialog pop-up, bound to ??B. As Ant's a build system, and therefore language independent, you will have to configure the commands by adding the scope/s of your languages of choice, alongside possibly setting up an environmental variable to target your build.xml file of choice. Anything that helps/improves/patches, is more than welcome. Cheers, Simon From sf at stevefink.net Tue Feb 12 04:04:36 2008 From: sf at stevefink.net (Steve Finkelstein) Date: Mon, 11 Feb 2008 23:04:36 -0500 Subject: [TxMt] Xdebug bundle Message-ID: Hi all, Would anyone happen to be working on an Xdebug bundle? I'm thirsty for a PHP debugging environment as an extension in TextMate. Was just curious if something is available or if someone is in progress with this effort before I attempt to reinvent the wheel. Cheers! /sf From mummer at whitefalls.org Tue Feb 12 06:31:54 2008 From: mummer at whitefalls.org (Michael Sheets) Date: Tue, 12 Feb 2008 00:31:54 -0600 Subject: [TxMt] [ANN] Ant Bundle In-Reply-To: References: Message-ID: On Feb 11, 2008, at 6:24 PM, Simon Gregory wrote: > I uploaded an Ant bundle to the review's section of the bundle > repository a couple of months ago. There have been a few tweaks but > it's now stable. I'm looking to getting it bumped up to the main > repository so am canvasing here for some feedback. Looks good to me, just a few small notes I saw when I looked back through it. - Installation section of the help file mentions that the version on the Tiger dev tools is outdated. I have the current version under Leopard (I presume from dev-tools), might want to update it to mention that. - Help file refers to the "Build Target" command which isn't named that in the menu. Might be a better name anyhow though. ;) - Might be a good idea to tell about the trick to having the Ant language selected by default. (foo.ant.xml) - The Build (target) command doesn't use the pre filter from the standard library, the other commands already are. I'll give a few days for some feedback to come through, but I'd say it's ready for promotion, good work. :) From mummer at whitefalls.org Tue Feb 12 06:58:41 2008 From: mummer at whitefalls.org (Michael Sheets) Date: Tue, 12 Feb 2008 00:58:41 -0600 Subject: [TxMt] punctuation.whitespace.function-call.leading.c In-Reply-To: References: <7A2B8956-B277-4A95-BC4F-957FBA858EAA@subtleGradient.com> Message-ID: <4AEDCEB6-C24E-43DF-BE5D-0C7C177D66EF@whitefalls.org> On Feb 11, 2008, at 7:43 AM, Thomas Aylott - subtleGradient wrote: >> Well for Javascript this isn't a downside, since it doesn't have >> any line-based scopes. But most grammars match entire lines at some >> point, adding tab scopes to each of those would get very messy >> quite fast. Depending how many tabs you allow that's 5+ captures, >> double it if you have a different scope for spaces over tabs like >> your current version does for each rule. > > There are a few places where I've had to capture the leading space, > but you just have to include the #leading-space thing and you're > good to go. Obviously wouldn't work if that space was taken in a > different way though. Most of the line-based scopes capture "^\s*foo" as the begin, I guess you could a look-ahead to get into the patterns immediately but then your into making it more complicated which was my point. ;) > I'd also like the option of activating the coloring based on caret > position instead of having to mouse over the gutter like in Xcode. You can do this in XCode, View ? Folding ? Focus follows selection. Took me forever to figure out how to take that screenshot. ;) From bibiko at eva.mpg.de Tue Feb 12 09:38:20 2008 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Tue, 12 Feb 2008 10:38:20 +0100 Subject: [TxMt] highlight all instances under cursor In-Reply-To: <4b980990802021449q3497b9f5n47e2cd3e3dbc9111@mail.gmail.com> References: <4b980990802010942n7ed88ac5ydd9b72c966eafe42@mail.gmail.com> <94E5261E-91BF-4AE2-A76B-6D3FBBABAB0E@gmail.com> <27CB0AE6-6FB1-415F-A577-25108B275C70@eva.mpg.de> <4b980990802020825w58af7f0i46c0b5dfa6118f23@mail.gmail.com> <4b980990802021449q3497b9f5n47e2cd3e3dbc9111@mail.gmail.com> Message-ID: On 2 Feb 2008, at 23:49, Jamal Johnson wrote: > Something like Autotext is def what I'm looking for. I have a > problem and a question however. > > > My problem is I'm receiving an error and it's not working. I've > attached a screenshot. I looked through the files for Autotext and > don't see where (or even what) the problem might be, maybe someone > can help? You need to install the TMTOOLS plug-in in beforehand. http://email.eva.mpg.de/~bibiko/downloads/textmate/ > Question: is there a way to integrate this so it's globally > accessible so I don't have to change the language of a Java or > Javascript file in order to use it? In principal: NO. There would be a way to change the syntax highlighting at runtime, i.e. find the tmlanguage file, rewrite it, reload all bundles, etc. but this is really an hack and it only works at your computer. A interim and more general solution would be to use the 'Create HTML From Document / Selection With Line Numbers' approach. Before the text is send to 'doctohtml.rb' enclose your search pattern by a unique start and end tag; change 'doctohtml.rb' in such a way that these start and end tags are replaced by e.g. and . By doing so one should be able to see all instances of the search pattern and if one clicks at an instance one jumps to it. Or if one only is interested to visualise all lines in an HTML window one could use my Hypersearch approach. It's based on the front end written by Henrik Nyh but instead of using grep it uses my onigrep (pure utf-8 Oniguruma regexp engine). Please note: onigrep and the Hyperserach bundle are still under construction! Here two screenshots: -------------- next part -------------- A non-text attachment was scrubbed... Name: hyp1.tiff Type: image/tiff Size: 32914 bytes Desc: not available URL: -------------- next part -------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: hyp2.tiff Type: image/tiff Size: 138990 bytes Desc: not available URL: -------------- next part -------------- One can download it here: http://email.eva.mpg.de/~bibiko/downloads/ textmate/ Cheers, Hans From ok at ryotic.de Tue Feb 12 09:46:21 2008 From: ok at ryotic.de (Oktay Acikalin) Date: Tue, 12 Feb 2008 10:46:21 +0100 Subject: [TxMt] Xdebug bundle In-Reply-To: References: Message-ID: <33795781-E863-4A9B-9E4A-264D3AC7CC71@ryotic.de> Am 12.02.2008 um 05:04 schrieb Steve Finkelstein: > Hi all, > > Would anyone happen to be working on an Xdebug bundle? I'm thirsty for > a PHP debugging environment as an extension in TextMate. Was just > curious if something is available or if someone is in progress with > this effort before I attempt to reinvent the wheel. and i would like to be a beta-tester for that :) regards, oktay. From bibiko at eva.mpg.de Tue Feb 12 10:53:51 2008 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Tue, 12 Feb 2008 11:53:51 +0100 Subject: [TxMt] TextMate crashes within the Find Dialog after pressing TAB Message-ID: <7C3D78E9-CE6C-4D1A-B374-74FD005F6255@eva.mpg.de> Hi, OK, this is a very tricky crash. I try to describe it as precise as possible: -TM runs for hours -I open the Find Dialog; regular expression is checked -I type something into the search textfield containing among others '\t' -I selected something '(.*?)' within the search textfield -I copy the selection apple+C -I move the caret to an other position within the search textfield -I paste the pasteboard content apple+V -I type something else and then I press TAB to move the focus to the replace textfield. TM crashes immediately. I tried several times to reproduce the crash but without success. It happens very sporadically and VERY VERY infrequently (up to now three four times). As attachment I send the crash report. -------------- next part -------------- A non-text attachment was scrubbed... Name: crash.txt.zip Type: application/zip Size: 5566 bytes Desc: not available URL: -------------- next part -------------- Hopefully this report can help. G5 ppc, Mac OS 10.4.11, US keyboard, English environment, Input Method 'U.S.', TM 1.5.7 rev1455 Thanks, Hans From bibiko at eva.mpg.de Tue Feb 12 14:09:07 2008 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Tue, 12 Feb 2008 15:09:07 +0100 Subject: [TxMt] Question on tm_dialog: NIB as table editor Message-ID: <40C9B52C-5102-43CA-890A-9FBB85106E94@eva.mpg.de> Hi, I have a general question. Would it be possible to create a single NIB (without external Xcode) as a table editor? Given is a file containing TAB delimited data. These data should be sent to a tm_dialog NIB as plist. In principal this should work but the number of columns and rows can differ(?) The NIB file should contain an editable NSTableView and two buttons 'Cancel' and 'Save'. By pressing the button 'Save' the current content of the NSTableView should be outputted as plist. Is this possible? Many thanks for any hint in advance. Hans From xcambar at gmail.com Tue Feb 12 14:29:54 2008 From: xcambar at gmail.com (Xavier Cambar) Date: Tue, 12 Feb 2008 15:29:54 +0100 Subject: [TxMt] [YAML] tabs -> spaces Message-ID: <76C28D63-6F18-4F8B-8F70-91659EC9352C@gmail.com> Hello everyone, I have a probably silly question for you concerning tabulations: Yaml can't stand tabulations, it says it requires spaces instead. How can I get TextMate to insert spaces instead of tabs? Regards, Xavier From chris at feedmechocolate.com Tue Feb 12 14:39:50 2008 From: chris at feedmechocolate.com (Chris Mear) Date: Tue, 12 Feb 2008 14:39:50 +0000 Subject: [TxMt] [YAML] tabs -> spaces In-Reply-To: <76C28D63-6F18-4F8B-8F70-91659EC9352C@gmail.com> References: <76C28D63-6F18-4F8B-8F70-91659EC9352C@gmail.com> Message-ID: <68af9cd10802120639g1afc6b2el3252278017d9bae@mail.gmail.com> On 12/02/2008, Xavier Cambar wrote: > I have a probably silly question for you concerning tabulations: > > Yaml can't stand tabulations, it says it requires spaces instead. How > can I get TextMate to insert spaces instead of tabs? >From the pop-up menu at the bottom of the window, choose 'Soft Tabs'. Chris From eli at markelikalderon.com Tue Feb 12 14:41:23 2008 From: eli at markelikalderon.com (Mark Eli Kalderon) Date: Tue, 12 Feb 2008 14:41:23 +0000 Subject: [TxMt] [YAML] tabs -> spaces In-Reply-To: <76C28D63-6F18-4F8B-8F70-91659EC9352C@gmail.com> Message-ID: <1XzxTAEJ.1202827283.5603950.kalderon@chilco.textdrive.com> Two useful things to know: Text --> Convert --> Tabs to Spaces Click on the Tab Size button on the status bar (bottom of the window) and select Soft Tabs. Hope this helps. Best, Mark On 2/12/2008, "Xavier Cambar" wrote: >Hello everyone, >I have a probably silly question for you concerning tabulations: > >Yaml can't stand tabulations, it says it requires spaces instead. How >can I get TextMate to insert spaces instead of tabs? > > >Regards, >Xavier > >______________________________________________________________________ >For new threads USE THIS: textmate at lists.macromates.com >(threading gets destroyed and the universe will collapse if you don't) >http://lists.macromates.com/mailman/listinfo/textmate From tyoshida at mac.com Tue Feb 12 16:56:10 2008 From: tyoshida at mac.com (Takashi Yoshida) Date: Wed, 13 Feb 2008 00:56:10 +0800 Subject: [TxMt] Blogging Bundle and WordPress 2.3.3 Message-ID: <09C9FFA9-AAA0-4539-8F30-F260268368C5@mac.com> Hi all, I'm using a TextMate to post to my blog based on WordPress 2.3.3. Before I upgraded to WordPress 2.3.3, I was able to upload my post using Blogging Bundle. But after updating to the WordPress 2.3.3, I cannot do so. Whenever I try to upload a post, I get the following message at the top. Received exception:HTTP-Error: 412 Precondition Failed Type: Blog Post (Markdown) Is anyone having the same issue? I know I can try downgrading my WordPress installation, but since it fixes some XML-RPC related security issue, I'd like to keep it. Are there any workaround for this issue? Thank you and regards, -- Takashi Yoshida tyoshida [at] mac [dot] com From kridgway at gmail.com Tue Feb 12 17:15:45 2008 From: kridgway at gmail.com (Kevin Ridgway) Date: Tue, 12 Feb 2008 12:15:45 -0500 Subject: [TxMt] Xdebug bundle In-Reply-To: References: Message-ID: <75eada5b0802120915s70e2afacne849fd7f127a989a@mail.gmail.com> I hope someone is/will work on that. It would be very helpful. The only thing I came across regarding this was this article: http://www.thinkingphp.org/2007/09/21/setting-up-xdebug-on-mac-os-x-or-win32-linux/ If someone could integrate Xdebug with Textmate that would be fantastic. Also for those debugging JS, this is a great bundle: http://doctyper.com/archives/200703/firebug-bundle-for-textmate/ -Kevin On Feb 11, 2008 11:04 PM, Steve Finkelstein wrote: > Hi all, > > Would anyone happen to be working on an Xdebug bundle? I'm thirsty for > a PHP debugging environment as an extension in TextMate. Was just > curious if something is available or if someone is in progress with > this effort before I attempt to reinvent the wheel. > > Cheers! > > /sf > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > From sf at stevefink.net Tue Feb 12 17:24:44 2008 From: sf at stevefink.net (Steve Finkelstein) Date: Tue, 12 Feb 2008 12:24:44 -0500 Subject: [TxMt] Xdebug bundle In-Reply-To: <75eada5b0802120915s70e2afacne849fd7f127a989a@mail.gmail.com> References: <75eada5b0802120915s70e2afacne849fd7f127a989a@mail.gmail.com> Message-ID: Wonderful, I was not aware of a Firebug bundle! I'll keep my eye on this thread -- I hear ciaran from FreeNode IRC might be working on some Xdebug extension to TextMate. /sf On 2/12/08, Kevin Ridgway wrote: > I hope someone is/will work on that. It would be very helpful. The > only thing I came across regarding this was this article: > http://www.thinkingphp.org/2007/09/21/setting-up-xdebug-on-mac-os-x-or-win32-linux/ > > If someone could integrate Xdebug with Textmate that would be fantastic. > > Also for those debugging JS, this is a great bundle: > http://doctyper.com/archives/200703/firebug-bundle-for-textmate/ > > -Kevin > > On Feb 11, 2008 11:04 PM, Steve Finkelstein wrote: > > Hi all, > > > > Would anyone happen to be working on an Xdebug bundle? I'm thirsty for > > a PHP debugging environment as an extension in TextMate. Was just > > curious if something is available or if someone is in progress with > > this effort before I attempt to reinvent the wheel. > > > > Cheers! > > > > /sf > > > > ______________________________________________________________________ > > For new threads USE THIS: textmate at lists.macromates.com > > (threading gets destroyed and the universe will collapse if you don't) > > http://lists.macromates.com/mailman/listinfo/textmate > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > From chris at cjack.com Tue Feb 12 19:12:31 2008 From: chris at cjack.com (Chris Thomas) Date: Tue, 12 Feb 2008 14:12:31 -0500 Subject: [TxMt] Question on tm_dialog: NIB as table editor In-Reply-To: <40C9B52C-5102-43CA-890A-9FBB85106E94@eva.mpg.de> References: <40C9B52C-5102-43CA-890A-9FBB85106E94@eva.mpg.de> Message-ID: I don't think there's a way to set the number of columns in an NSTableView via bindings. If you can live with a static number of columns, the rest is easy. You'll need to rewrite the tab-delimited data as entries in an array of dictionaries for the plist: {nameOfColumn1 => row1valueForColumn1 ... nameOfColumnN => row1valueForColumnN}, {nameOfColumn1 => row2valueForColumn1 ... nameOfColumnN => row2valueForColumnN}... And, in IB, bind the columns individually to "controller.nameOfColumnN". Chris On Feb 12, 2008, at 9:09 AM, Hans-Joerg Bibiko wrote: > Hi, > > I have a general question. Would it be possible to create a single > NIB (without external Xcode) as a table editor? > Given is a file containing TAB delimited data. These data should be > sent to a tm_dialog NIB as plist. In principal this should work but > the number of columns and rows can differ(?) > The NIB file should contain an editable NSTableView and two buttons > 'Cancel' and 'Save'. By pressing the button 'Save' the current > content of the NSTableView should be outputted as plist. > Is this possible? > > Many thanks for any hint in advance. > > Hans > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > From xcambar at gmail.com Tue Feb 12 19:12:38 2008 From: xcambar at gmail.com (Xavier Cambar) Date: Tue, 12 Feb 2008 20:12:38 +0100 Subject: [TxMt] [YAML] tabs -> spaces In-Reply-To: <1XzxTAEJ.1202827283.5603950.kalderon@chilco.textdrive.com> References: <1XzxTAEJ.1202827283.5603950.kalderon@chilco.textdrive.com> Message-ID: <2AA0DC02-38A5-4846-A6F4-D5EEBFA53936@gmail.com> Definitively a silly question... Thanks to both of you for answering, Xavier From alaric at snell-pym.org.uk Tue Feb 12 19:28:09 2008 From: alaric at snell-pym.org.uk (Alaric Snell-Pym) Date: Tue, 12 Feb 2008 19:28:09 +0000 Subject: [TxMt] [YAML] tabs -> spaces In-Reply-To: <2AA0DC02-38A5-4846-A6F4-D5EEBFA53936@gmail.com> References: <1XzxTAEJ.1202827283.5603950.kalderon@chilco.textdrive.com> <2AA0DC02-38A5-4846-A6F4-D5EEBFA53936@gmail.com> Message-ID: <7C397E7B-ED11-450F-920A-2557FE9BFF2D@snell-pym.org.uk> On a related note, most people I work with use tabs for indentation, so I generally have Textmate set up to do so (with a tab size of about two characters), but then when editing YAML files, I have to manually adjust this. And remember to set it back afterwards. Some way of YAML files automatically banning tabs and just using spaces would be really nice. And having the option of doing the same for Python source would rock, too :-) ABS -- Alaric Snell-Pym Work: http://www.snell-systems.co.uk/ Play: http://www.snell-pym.org.uk/alaric/ Blog: http://www.snell-pym.org.uk/?author=4 From dennis at screenlabor.de Tue Feb 12 19:33:11 2008 From: dennis at screenlabor.de (Dennis Amrouche) Date: Tue, 12 Feb 2008 20:33:11 +0100 Subject: [TxMt] [YAML] tabs -> spaces In-Reply-To: <2AA0DC02-38A5-4846-A6F4-D5EEBFA53936@gmail.com> References: <1XzxTAEJ.1202827283.5603950.kalderon@chilco.textdrive.com> <2AA0DC02-38A5-4846-A6F4-D5EEBFA53936@gmail.com> Message-ID: <9679F241-767D-457A-80FD-F8597FDE556E@screenlabor.de> Am 12.02.2008 um 20:12 schrieb Xavier Cambar: > Definitively a silly question... we had sesamstreet of BBC in germany. Credo always was: Aint no stupid questions but for sure stupid answers :0) well, well, well, ... If ya dont support the nOObs, they will multiply :0) ------------------------------------------ sincere Dennis - TextMate-nOOb From alex.j.ross at gmail.com Tue Feb 12 20:09:48 2008 From: alex.j.ross at gmail.com (Alexander Ross) Date: Tue, 12 Feb 2008 12:09:48 -0800 Subject: [TxMt] [YAML] tabs -> spaces In-Reply-To: <7C397E7B-ED11-450F-920A-2557FE9BFF2D@snell-pym.org.uk> References: <1XzxTAEJ.1202827283.5603950.kalderon@chilco.textdrive.com> <2AA0DC02-38A5-4846-A6F4-D5EEBFA53936@gmail.com> <7C397E7B-ED11-450F-920A-2557FE9BFF2D@snell-pym.org.uk> Message-ID: > On a related note, most people I work with use tabs for indentation, > so I generally have Textmate set up to do so (with a tab size of > about two characters), but then when editing YAML files, I have to > manually adjust this. And remember to set it back afterwards. > > Some way of YAML files automatically banning tabs and just using > spaces would be really nice. > > And having the option of doing the same for Python source would rock, > too :-) AFAIK, Textmate should remember your tab settings on a per-language basis... From textmate at subtleGradient.com Tue Feb 12 20:11:03 2008 From: textmate at subtleGradient.com (Thomas Aylott - subtleGradient) Date: Tue, 12 Feb 2008 15:11:03 -0500 Subject: [TxMt] punctuation.whitespace.function-call.leading.c In-Reply-To: <4AEDCEB6-C24E-43DF-BE5D-0C7C177D66EF@whitefalls.org> References: <7A2B8956-B277-4A95-BC4F-957FBA858EAA@subtleGradient.com> <4AEDCEB6-C24E-43DF-BE5D-0C7C177D66EF@whitefalls.org> Message-ID: On Feb 12, 2008, at 1:58 AM, Michael Sheets wrote: > On Feb 11, 2008, at 7:43 AM, Thomas Aylott - subtleGradient wrote: > >>> Well for Javascript this isn't a downside, since it doesn't have >>> any line-based scopes. But most grammars match entire lines at >>> some point, adding tab scopes to each of those would get very >>> messy quite fast. Depending how many tabs you allow that's 5+ >>> captures, double it if you have a different scope for spaces over >>> tabs like your current version does for each rule. >> >> There are a few places where I've had to capture the leading space, >> but you just have to include the #leading-space thing and you're >> good to go. Obviously wouldn't work if that space was taken in a >> different way though. > > Most of the line-based scopes capture "^\s*foo" as the begin, I > guess you could a look-ahead to get into the patterns immediately > but then your into making it more complicated which was my point. ;) Well then, um? yeah >> I'd also like the option of activating the coloring based on caret >> position instead of having to mouse over the gutter like in Xcode. > > You can do this in XCode, View ? Folding ? Focus follows > selection. Took me forever to figure out how to take that > screenshot. ;) I look forward to using that soon. ?Thomas Aylott ? subtleGradient? From simon at helvector.org Tue Feb 12 22:54:52 2008 From: simon at helvector.org (Simon Gregory) Date: Tue, 12 Feb 2008 22:54:52 +0000 Subject: [TxMt] [ANN] Ant Bundle In-Reply-To: References: Message-ID: Thanks for the feedback! On 12 Feb 2008, at 06:31, Michael Sheets wrote: > - The Build (target) command doesn't use the pre filter from the > standard library, the other commands already are. This was the only point I've not remedied.... because I'm not exactly sure what you mean? From throw-away-2 at macromates.com Wed Feb 13 02:57:32 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 13 Feb 2008 03:57:32 +0100 Subject: [TxMt] Blogging Bundle and WordPress 2.3.3 In-Reply-To: <09C9FFA9-AAA0-4539-8F30-F260268368C5@mac.com> References: <09C9FFA9-AAA0-4539-8F30-F260268368C5@mac.com> Message-ID: <7C1F36B7-81AD-497E-A206-BFEB0A7751CD@macromates.com> On 12 Feb 2008, at 17:56, Takashi Yoshida wrote: > [...] > Whenever I try to upload a post, I get the following message at the > top. > > Received exception:HTTP-Error: 412 Precondition Failed > Type: Blog Post (Markdown) While I have yet to post after the 2.3.3 upgrade, I think you?ll find your answer in this recent reply: http://lists.macromates.com/pipermail/textmate/2008-January/024204.html From throw-away-2 at macromates.com Wed Feb 13 03:00:37 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 13 Feb 2008 04:00:37 +0100 Subject: [TxMt] TextMate crashes within the Find Dialog after pressing TAB In-Reply-To: <7C3D78E9-CE6C-4D1A-B374-74FD005F6255@eva.mpg.de> References: <7C3D78E9-CE6C-4D1A-B374-74FD005F6255@eva.mpg.de> Message-ID: <59E3E506-D22F-48DD-B4FB-B8542693964C@macromates.com> On 12 Feb 2008, at 11:53, Hans-Joerg Bibiko wrote: > [...] > OK, this is a very tricky crash. I try to describe it as precise as > possible: This is unfortunately a common problem for some, see [1]. So far though I have not had a single report from a Leopard system, so there is a good chance that it has been fixed for Leopard (where the controls have undergone some changes). [1]: http://macromates.com/textmate/manual/expert_preferences#oakfindpaneldisablehistory From throw-away-2 at macromates.com Wed Feb 13 03:06:17 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 13 Feb 2008 04:06:17 +0100 Subject: [TxMt] Multimarkdown preview a bit flakey In-Reply-To: <8E098F62-75A3-46DD-BD76-C916ADBD64D2@mac.com> References: <8E098F62-75A3-46DD-BD76-C916ADBD64D2@mac.com> Message-ID: On 11 Feb 2008, at 22:20, John Laudun wrote: > To be honest, I can't tell if the failure to apply a style sheet is > something odd in my TM set up or something flakey going on with my > hosted set up. Would someone mind reminding how to make the call to > a local style sheet so that I can test what's going on? > > Is it "file:///path/to/file.css" or is it "http://localhost/path/to/file.css > " -- and with the latter I assume I have to have the built in web > server running, yes? If you use the regular method [1] for adding a style sheet, then the path will be inserted in the meta header as you type it, so you probably want to use a relative path, since no-one other than you can access the files on localhost. [1]: http://fletcherpenney.net/MultiMarkdown_Syntax_Guide#css From throw-away-2 at macromates.com Wed Feb 13 03:07:42 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 13 Feb 2008 04:07:42 +0100 Subject: [TxMt] Changing language for a specific file In-Reply-To: <15420248.post@talk.nabble.com> References: <14630274.post@talk.nabble.com> <20C96993-AF0F-48A7-8CF9-C9FA468A86C6@gmail.com> <14637906.post@talk.nabble.com> <83B349D1-21CD-43FD-B69F-62659C7B552D@eva.mpg.de> <14695880.post@talk.nabble.com> <15420248.post@talk.nabble.com> Message-ID: <28DB081D-88D9-4573-B909-4CC285EB73E7@macromates.com> On 11 Feb 2008, at 21:46, Nate Cavanaugh wrote: > Thanks for the reply, but I'm now trying to get this to work, and > for some > reason, it's still treating each of the files identically. > > Is there some special method for changing the language that I should > be > using? > > For instance, I have css_cached.jsp. I copied that file and have > css_cached.css.jsp. Whenever I change the language type it does it > for all > jsp's, like before. > > Any suggestions? If you use double-extensions, you will need to edit the fileTypes array in the grammar, as TM is not smart enough to automatically learn about these. See e.g. http://blog.macromates.com/2007/file-type-detection-rspec-rails/ > Allan Odgaard-3 wrote: >> >> On 8 Jan 2008, at 19:38, Nate Cavanaugh wrote: >> >>> [...] >>> Quick question, do you know if this is possible with TabMate >>> *without* >>> modelines? I'm working on a huge code base with multiple users and >>> strict >>> coding standards and the modelines aren't allowed to sit in SVN, >>> which means >>> I have to copy the mode lines every time I edit the file, in which >>> case, I >>> might as well just manually change the language. >>> >>> Anyone know of a work around (even if it's a work around in SVN)? >> >> TextMate will get the file type either from the first line of the >> file >> or the extension. The recommended solution is to use double- >> extensions >> when it is important that different file types have the same ?final? >> extension, e.g. ?foo.css.php?, ?foo.js.php?, ?foo.php? -- here all >> files are php, but TextMate can assign different grammars to them >> based on the secondary extension. >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate >> >> > > -- > View this message in context: http://www.nabble.com/Changing-language-for-a-specific-file-tp14630274p15420248.html > Sent from the textmate users mailing list archive at Nabble.com. > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From throw-away-2 at macromates.com Wed Feb 13 03:08:43 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 13 Feb 2008 04:08:43 +0100 Subject: [TxMt] Problem with undo In-Reply-To: References: Message-ID: <8AEC9BC3-ACA6-4266-B239-FB38EDBFA690@macromates.com> On 11 Feb 2008, at 12:51, Venkatesh K wrote: > [...] > Thanks for the tip. I was able to fix the problem and in the process I > ended up deleting php bundle. How do i get it back? See http://macromates.com/textmate/manual/bundles#deleting_default_bundles_items From throw-away-2 at macromates.com Wed Feb 13 03:09:44 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 13 Feb 2008 04:09:44 +0100 Subject: [TxMt] how to scroll down the page/log when "compiling"? In-Reply-To: <6faad9f00802102314g5f38ea5v522e4fc0bd601bca@mail.gmail.com> References: <6faad9f00802071317j5df5c7d0mf337151e6a353bbb@mail.gmail.com> <6faad9f00802102314g5f38ea5v522e4fc0bd601bca@mail.gmail.com> Message-ID: <8C1132B6-4D96-4EB5-B319-ECC5C5B49E1D@macromates.com> On 11 Feb 2008, at 08:14, Mojca Miklavec wrote: >> [...] >> Yes, see http://lists.macromates.com/pipermail/textmate/2007-August/021961.html >> for how to set it up. > > Wow! Thanks a lot. It worked > > (Is there any place besides the mailing list archive to put this > hint on?) It should probably be added to the manual, as 1.x is unlikely to see a GUI setting for the option. From throw-away-2 at macromates.com Wed Feb 13 03:13:07 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 13 Feb 2008 04:13:07 +0100 Subject: [TxMt] Subversion Hangs When I Try to Commit In-Reply-To: References: Message-ID: <75F18CAA-44B3-4148-88F5-628CEE4A75AD@macromates.com> On 31 Jan 2008, at 17:21, Steve Chanin wrote: > When I do a Status using the Subversion Bundle, it correctly shows > what has changed. > > However, when I try to do a commit from the subversion popup page, > the spinning dial starts up and never stops. After waiting a while, > I killed the svn process at the command line. Once I did that, TM > poped up a window asking for my SVN password. > [...] > After I type my comments and hit commit, in the status window the > following appears: > Authentication realm: PAC Is this really the status window (from which you can commit) or do you select Subversion ? Commit?? > [...] but I can?t see any place that I can type to supply my > credentials. > > I don't think it's a problem with our subversion repository because > the developer sitting next to me is able to commit from TextMate > with no problems. The Subversion bundle calls the svn shell command, we do our best to capture any password prompting that it might do, but I am sure there are a dozen situations in which it will fail. So definitely it?s best to ensure that svn can commit w/o prompting the user for password. From tyoshida at mac.com Wed Feb 13 04:59:43 2008 From: tyoshida at mac.com (Takashi Yoshida) Date: Wed, 13 Feb 2008 12:59:43 +0800 Subject: [TxMt] Blogging Bundle and WordPress 2.3.3 In-Reply-To: <7C1F36B7-81AD-497E-A206-BFEB0A7751CD@macromates.com> References: <09C9FFA9-AAA0-4539-8F30-F260268368C5@mac.com> <7C1F36B7-81AD-497E-A206-BFEB0A7751CD@macromates.com> Message-ID: <0354D624-AAC6-4DC7-837C-F58CBDA0A5C0@mac.com> Thanks a lot. I'll take a look at the mod_security later. On 13-Feb-08, at 10:57, Allan Odgaard wrote: > On 12 Feb 2008, at 17:56, Takashi Yoshida wrote: > >> [...] >> Whenever I try to upload a post, I get the following message at the >> top. >> >> Received exception:HTTP-Error: 412 Precondition Failed >> Type: Blog Post (Markdown) > > While I have yet to post after the 2.3.3 upgrade, I think you?ll fin > d your answer in this recent reply: http://lists.macromates.com/pipermail/textmate/2008-January/024204.html > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From armon.dadgar at gmail.com Wed Feb 13 08:56:33 2008 From: armon.dadgar at gmail.com (Armon Dadgar) Date: Wed, 13 Feb 2008 00:56:33 -0800 Subject: [TxMt] "Find" doesn't work when searching Java API docs Message-ID: Does anyone else experience problems when searching the java api? Here is an example of what happens: 1. Press Control-H to open API 2. Apple-F to open find window 3. Type "String" 4. Goes to "AttributedString" in the side panel 5. Pressing the next button or Apple-G does nothing. I have tried the Regular Expressions option, Ignore Case, and Wrap Around. None of them seem to work. Very frustrating to need to continuously scroll down. Anyone have a solution, or experience the same thing? From daz-macromates at zzzurn.com Wed Feb 13 12:16:07 2008 From: daz-macromates at zzzurn.com (dzurn) Date: Wed, 13 Feb 2008 04:16:07 -0800 (PST) Subject: [TxMt] TextMate crashes within the Find Dialog after pressing TAB In-Reply-To: <7C3D78E9-CE6C-4D1A-B374-74FD005F6255@eva.mpg.de> References: <7C3D78E9-CE6C-4D1A-B374-74FD005F6255@eva.mpg.de> Message-ID: <15456843.post@talk.nabble.com> I ran into this also, and had this solution (from my Dec 20 message) Here's what I did to avoid the issue: I edit the com.macromates.textmate.plist file to remove several odd strings in findHistory and replaceHistory. Once I did that (removing 8 of the 10 strings in each entry) then my Find/Replace didn't crash when I used a tab. -- View this message in context: http://www.nabble.com/TextMate-crashes-within-the-Find-Dialog-after-pressing-TAB-tp15430922p15456843.html Sent from the textmate users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bibiko at eva.mpg.de Wed Feb 13 12:25:26 2008 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Wed, 13 Feb 2008 13:25:26 +0100 Subject: [TxMt] TextMate crashes within the Find Dialog after pressing TAB In-Reply-To: <15456843.post@talk.nabble.com> References: <7C3D78E9-CE6C-4D1A-B374-74FD005F6255@eva.mpg.de> <15456843.post@talk.nabble.com> Message-ID: <28C8AFE1-2893-472C-9F1C-49DAF57099DE@eva.mpg.de> > On 13 Feb 2008, at 04:00, Allan Odgaard wrote: >> This is unfortunately a common problem for some, see [1]. >> >> So far though I have not had a single report from a Leopard >> system, so there is a good chance that it has been fixed for >> Leopard (where the controls have undergone some changes). >> >> [1]: http://macromates.com/textmate/manual/ >> expert_preferences#oakfindpaneldisablehistory Thanks. As I mentioned for me it happens very very infrequent. That's why I avoid to use oakfindpaneldisablehistory because I use that history quite often. On 13 Feb 2008, at 13:16, dzurn wrote: > Here's what I did to avoid the issue: I edit the > com.macromates.textmate.plist file to remove several odd strings in > findHistory and replaceHistory. Once I did that (removing 8 of the > 10 strings in each entry) then my Find/Replace didn't crash when I > used a tab. Are you doing this all the time? My question would be what kind of oddity of strings in findHistory and replaceHistory triggers that crash? Hans From bibiko at eva.mpg.de Wed Feb 13 12:32:11 2008 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Wed, 13 Feb 2008 13:32:11 +0100 Subject: [TxMt] Question on tm_dialog: NIB as table editor In-Reply-To: References: <40C9B52C-5102-43CA-890A-9FBB85106E94@eva.mpg.de> Message-ID: <29F8C8D9-3412-4B5C-A363-30DDF0DAB3B1@eva.mpg.de> On 12 Feb 2008, at 20:12, Chris Thomas wrote: > I don't think there's a way to set the number of columns in an > NSTableView via bindings. If you can live with a static number of > columns, the rest is easy. You'll need to rewrite the tab-delimited > data as entries in an array of dictionaries for the plist: > > {nameOfColumn1 => row1valueForColumn1 > ... > nameOfColumnN => row1valueForColumnN}, > {nameOfColumn1 => row2valueForColumn1 > ... > nameOfColumnN => row2valueForColumnN}... > > And, in IB, bind the columns individually to > "controller.nameOfColumnN". Many thanks for the hint. My concern was whether this is possible in general ;) Regarding to the static numbers of columns, I could live with it, but a nib file contains three 'simple' plist files. Maybe it would be possible to modify these files at runtime. I don't know whether it works but at least I'll try it ;-O Thanks, Hans From cskiadas at gmail.com Wed Feb 13 12:53:50 2008 From: cskiadas at gmail.com (Charilaos Skiadas) Date: Wed, 13 Feb 2008 07:53:50 -0500 Subject: [TxMt] Question on tm_dialog: NIB as table editor In-Reply-To: <29F8C8D9-3412-4B5C-A363-30DDF0DAB3B1@eva.mpg.de> References: <40C9B52C-5102-43CA-890A-9FBB85106E94@eva.mpg.de> <29F8C8D9-3412-4B5C-A363-30DDF0DAB3B1@eva.mpg.de> Message-ID: On Feb 13, 2008, at 7:32 AM, Hans-Joerg Bibiko wrote: > On 12 Feb 2008, at 20:12, Chris Thomas wrote: >> I don't think there's a way to set the number of columns in an >> NSTableView via bindings. If you can live with a static number of >> columns, the rest is easy. You'll need to rewrite the tab- >> delimited data as entries in an array of dictionaries for the plist: >> >> {nameOfColumn1 => row1valueForColumn1 >> ... >> nameOfColumnN => row1valueForColumnN}, >> {nameOfColumn1 => row2valueForColumn1 >> ... >> nameOfColumnN => row2valueForColumnN}... >> >> And, in IB, bind the columns individually to >> "controller.nameOfColumnN". > Many thanks for the hint. My concern was whether this is possible > in general ;) > Regarding to the static numbers of columns, I could live with it, > but a nib file contains three 'simple' plist files. Maybe it would > be possible to modify these files at runtime. I don't know whether > it works but at least I'll try it ;-O I would expect that once the NIB is in memory, changing those files won't have a direct effect. However, you can make the change, close the nib and load it again, and thus give the illusion of a variable number of columns (presumably the user would have to ask to add a column via a button or something? Then you can do this work in the callback) Just guessing, but is this for basic data entry for the R bundle? > Thanks, > > Hans Haris Skiadas Department of Mathematics and Computer Science Hanover College From rick.denatale at gmail.com Wed Feb 13 13:16:30 2008 From: rick.denatale at gmail.com (Rick DeNatale) Date: Wed, 13 Feb 2008 08:16:30 -0500 Subject: [TxMt] Changing language for a specific file In-Reply-To: <28DB081D-88D9-4573-B909-4CC285EB73E7@macromates.com> References: <14630274.post@talk.nabble.com> <20C96993-AF0F-48A7-8CF9-C9FA468A86C6@gmail.com> <14637906.post@talk.nabble.com> <83B349D1-21CD-43FD-B69F-62659C7B552D@eva.mpg.de> <14695880.post@talk.nabble.com> <15420248.post@talk.nabble.com> <28DB081D-88D9-4573-B909-4CC285EB73E7@macromates.com> Message-ID: On 2/12/08, Allan Odgaard wrote: > If you use double-extensions, you will need to edit the fileTypes > array in the grammar, as TM is not smart enough to automatically learn > about these. > > See e.g. http://blog.macromates.com/2007/file-type-detection-rspec-rails/ Allan, thanks for pointing out this article. I've just tuned things up a bit, including adding builder as a suffix for ruby-on-rails. I'm thinking though that I'm going to have to keep on top of this, since it seems that whenever the ruby bundle get's updated it's going to add the rb suffix back to it's language definition. Any thoughts towards either: 1. Allow some precedence to be set between bundle language definition, so that you could set up the ruby-on-rails bundle to take precedence over the ruby bundle when determining the language. 2. Making the language selection project specific, so that I could set a project to be either a ruby or ruby on rails project 3. Really inventing here. Somehow 'automatically' detect the type of project from it's contents. For example you might detect a rails project for looking for one or more telltale files like script/generate and/or config/environment.rb or config/routes.rb Of course this would have to be specifiable in the bundle/language description, rather than being hardcoded into TM. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ From bibiko at eva.mpg.de Wed Feb 13 13:23:02 2008 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Wed, 13 Feb 2008 14:23:02 +0100 Subject: [TxMt] Question on tm_dialog: NIB as table editor In-Reply-To: References: <40C9B52C-5102-43CA-890A-9FBB85106E94@eva.mpg.de> <29F8C8D9-3412-4B5C-A363-30DDF0DAB3B1@eva.mpg.de> Message-ID: <28126105-4079-44BA-8F14-BCEBA6C6244E@eva.mpg.de> On 13 Feb 2008, at 13:53, Charilaos Skiadas wrote: > On Feb 13, 2008, at 7:32 AM, Hans-Joerg Bibiko wrote: > >> On 12 Feb 2008, at 20:12, Chris Thomas wrote: >>> I don't think there's a way to set the number of columns in an >>> NSTableView via bindings. If you can live with a static number of >>> columns, the rest is easy. You'll need to rewrite the tab- >>> delimited data as entries in an array of dictionaries for the plist: >>> >>> {nameOfColumn1 => row1valueForColumn1 >>> ... >>> Many thanks for the hint. My concern was whether this is possible >>> in general ;) >> Regarding to the static numbers of columns, I could live with it, >> but a nib file contains three 'simple' plist files. Maybe it would >> be possible to modify these files at runtime. I don't know whether >> it works but at least I'll try it ;-O > > I would expect that once the NIB is in memory, changing those files > won't have a direct effect. However, you can make the change, close > the nib and load it again, and thus give the illusion of a variable > number of columns (presumably the user would have to ask to add a > column via a button or something? Then you can do this work in the > callback) With 'at runtime' I mean that I try to change the nib files BEFORE I load it with tm_dialog. The number of columns will be calculated by looking into the data file. > > Just guessing, but is this for basic data entry for the R bundle? ;) Yes - as matrix/vector/data frame editor. But it could also be good for other purposes. Within the current Rdaemon bundle one can find a solution (marked by ?) using an HTML form as table editor which works quite good, but for large matrices it is too slow. --Hans From daryl.spitzer at gmail.com Wed Feb 13 15:41:33 2008 From: daryl.spitzer at gmail.com (Daryl Spitzer) Date: Wed, 13 Feb 2008 07:41:33 -0800 Subject: [TxMt] Including values of static variables in others? In-Reply-To: <3B7BE90F-877C-4193-A5F7-AD71188645E0@macromates.com> References: <3B7BE90F-877C-4193-A5F7-AD71188645E0@macromates.com> Message-ID: Allan writes: > That is not possible -- in the future it will be possible to use > format strings for variable values (which can refer other values), but > in your example the variable you want to use is from the same list, > and that won't be possible (i.e. it would have to track dependencies > between the variables to resolve them in the proper order for that to > work. What if one could determine the order of the variable definitions? Then it wouldn't be necessary to track dependencies, as long as the dependencies are always on variables defined previously in the list. Sorry it took me so long to reply. (I'm finally making time to work towards the bottom of my inbox.) -- Daryl On Nov 10, 2007 11:44 PM, Allan Odgaard wrote: > > On 8 Nov 2007, at 17:43, Daryl Spitzer wrote: > > > When defining "static variables" in Preferences->Advanced->Shell > > Variables, is it possible to include the values of static variables in > > the values of others? > > > > For example, I tried defining: > > > > P1 /some/path > > P2 $P1/subdir > > > > But the value of P2 is "$P1/subdir", not "/some/path/subdir" as I > > wish. > > That is not possible -- in the future it will be possible to use > format strings for variable values (which can refer other values), but > in your example the variable you want to use is from the same list, > and that won't be possible (i.e. it would have to track dependencies > between the variables to resolve them in the proper order for that to > work. > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > From Steven_Rowat at sunshine.net Wed Feb 13 16:50:59 2008 From: Steven_Rowat at sunshine.net (Steven Rowat) Date: Wed, 13 Feb 2008 08:50:59 -0800 Subject: [TxMt] Question/Suggestion: move selected file name into project tab? Message-ID: Greetings, I'm working in a TM project with dozens of files, and there are only room for about 5 or 6 names in the tabs across the top of the project window. This is creating an interface problem for me - if I select one of the files that's not across the top, by using the ">>" symbol to get to the list, I'm expecting it to move into the tab window (as the last item), but it doesn't. It stays invisible (i.e., no tab). So I'm working on a file that doesn't have its tab at the top. It's a small issue, but I've repeatedly found it confusing and/or frustrating to have to go to the ">>" window to see which file I'm currently working in, rather than just looking at the top and seeing which one is the 'clear white' tab. Is there any way around this? Or if not, can it be added as a future feature (that selecting a file would automatically make it visible as the last tab to the right, replacing whichever one is there)? Thanks Steven Rowat From chris at bubblescope.net Wed Feb 13 17:19:54 2008 From: chris at bubblescope.net (Chris Jefferson) Date: Wed, 13 Feb 2008 17:19:54 +0000 Subject: [TxMt] Bug with comments and indentation in C++ Message-ID: <5cc6b04e0802130919gfe3f032uac64068f26b4f39@mail.gmail.com> A 'pattern' I use frequently seems to be confusing textmate's indentation of C++ code. The problem comes from writing things like: { // Comment If you simply write into textmate, you get something like: { { // Comment foo(); } } If I try to select and indent the code, I end up with: { { // Comment foo(); } } Now the problem is the other way! I tried looking at the how the indentation works, but it was some way beyond me I'm afraid. Any suggestions? Chris From daz-macromates at zzzurn.com Wed Feb 13 18:05:28 2008 From: daz-macromates at zzzurn.com (dzurn) Date: Wed, 13 Feb 2008 10:05:28 -0800 (PST) Subject: [TxMt] TextMate crashes within the Find Dialog after pressing TAB In-Reply-To: <28C8AFE1-2893-472C-9F1C-49DAF57099DE@eva.mpg.de> References: <7C3D78E9-CE6C-4D1A-B374-74FD005F6255@eva.mpg.de> <15456843.post@talk.nabble.com> <28C8AFE1-2893-472C-9F1C-49DAF57099DE@eva.mpg.de> Message-ID: <15461733.post@talk.nabble.com> It has happened once or twice for me. The most recent occurrence might have been due to some odd regular expressions (aren't they all?) with several Unicode characters (as I recall). Next time it happens, I'll try to delete one history element at a time, so I can find out what causes it. OR I'll just wait for TM 2.0, whichever comes first ;) Darryl Hans-J?rg Bibiko wrote: > > > > Thanks. As I mentioned for me it happens very very infrequent. That's > why I avoid to use oakfindpaneldisablehistory because I use that > history quite often. > > On 13 Feb 2008, at 13:16, dzurn wrote: >> Here's what I did to avoid the issue: I edit the >> com.macromates.textmate.plist file to remove several odd strings in >> findHistory and replaceHistory. Once I did that (removing 8 of the >> 10 strings in each entry) then my Find/Replace didn't crash when I >> used a tab. > > Are you doing this all the time? My question would be what kind of > oddity of strings in findHistory and replaceHistory triggers that crash? > > Hans > > -- View this message in context: http://www.nabble.com/TextMate-crashes-within-the-Find-Dialog-after-pressing-TAB-tp15430922p15461733.html Sent from the textmate users mailing list archive at Nabble.com. From peeter at kraai.nu Wed Feb 13 19:24:04 2008 From: peeter at kraai.nu (=?ISO-8859-1?Q?Peeter_S=E4llstr=F6m_Randsalu?=) Date: Wed, 13 Feb 2008 20:24:04 +0100 Subject: [TxMt] bibtex in textmate problem and tentative solution Message-ID: <6DBB43FE-9DF5-488B-BD49-8AFA769D465D@kraai.nu> Hi! I had the same problem as described in a post from Sebastian on 2007-11-11 (http://thread.gmane.org/gmane.editors.textmate.general/ 23160). Here is my error output: Running bibtex on Exjobb (ny).tex Traceback (most recent call last): File "/Users/peeter/Peeterprogram/ TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/ texMate.py", line 457, in texStatus, isFatal, numErrs, numWarns = run_bibtex(texfile=fileName) File "/Users/peeter/Peeterprogram/ TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/ texMate.py", line 71, in run_bibtex return stat,fatal,err,warn UnboundLocalError: local variable 'stat' referenced before assignment It seems that it had to do with the parentheses in my filename messing up the regexes. My solution was to change lines 71 and 72 in Textmate.app/Contents/ SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py as follows: # auxfiles = [f for f in os.listdir('.') if re.search('.aux $',f) > 0] # auxfiles = [f for f in auxfiles if re.match(r'('+ basename + r'\.aux|bu\d+\.aux)',f)] auxfiles = [f for f in os.listdir('.') if re.search('.aux$',f) > 0 and (f.startswith(basename) or re.match(r'bu\d+\.aux', f))] This works, at least for me. Or have I messed something else up in the process? /Peeter From bonelake at gmail.com Wed Feb 13 20:02:04 2008 From: bonelake at gmail.com (Brad Miller) Date: Wed, 13 Feb 2008 14:02:04 -0600 Subject: [TxMt] bibtex in textmate problem and tentative solution In-Reply-To: <6DBB43FE-9DF5-488B-BD49-8AFA769D465D@kraai.nu> References: <6DBB43FE-9DF5-488B-BD49-8AFA769D465D@kraai.nu> Message-ID: <5D33470A-24B3-4987-A3B0-4083CB0D0045@gmail.com> That problem should already be fixed in the Latex bundle in the subversion repository. If you are using the latest and still getting that error please let me know! Thanks, Brad On Feb 13, 2008, at 1:24 PM, Peeter S?llstr?m Randsalu wrote: > Hi! > I had the same problem as described in a post from Sebastian on > 2007-11-11 (http://thread.gmane.org/gmane.editors.textmate.general/23160 > ). > > Here is my error output: > > Running bibtex on Exjobb (ny).tex > Traceback (most recent call last): File "/Users/peeter/Peeterprogram/ > TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/ > bin/texMate.py", line 457, in texStatus, isFatal, numErrs, numWarns > = run_bibtex(texfile=fileName) File "/Users/peeter/Peeterprogram/ > TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/ > bin/texMate.py", line 71, in run_bibtex return stat,fatal,err,warn > UnboundLocalError: local variable 'stat' referenced before assignment > > It seems that it had to do with the parentheses in my filename > messing up the regexes. > My solution was to change lines 71 and 72 in Textmate.app/Contents/ > SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py as > follows: > > # auxfiles = [f for f in os.listdir('.') if re.search('.aux > $',f) > 0] > # auxfiles = [f for f in auxfiles if re.match(r'('+ basename > + r'\.aux|bu\d+\.aux)',f)] > auxfiles = [f for f in os.listdir('.') if re.search('.aux$',f) > > 0 and (f.startswith(basename) or re.match(r'bu\d+\.aux', f))] > > This works, at least for me. > Or have I messed something else up in the process? > /Peeter > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From timothy.c.bates at gmail.com Wed Feb 13 21:28:50 2008 From: timothy.c.bates at gmail.com (Timothy Bates) Date: Wed, 13 Feb 2008 21:28:50 +0000 Subject: [TxMt] TextMate crashes within the Find Dialog after pressing TAB In-Reply-To: <59E3E506-D22F-48DD-B4FB-B8542693964C@macromates.com> References: <7C3D78E9-CE6C-4D1A-B374-74FD005F6255@eva.mpg.de> <59E3E506-D22F-48DD-B4FB-B8542693964C@macromates.com> Message-ID: <40E79CB3-E0A9-4D7A-9F76-34C252FF5B79@gmail.com> It looks fixed for leopard, i have not had a crash and now routinely tab in the find box without fear... So my new daily nag is tm not being able to keep track of files that are moved in the finder :-( On 13 Feb 2008, at 3:00 AM, Allan Odgaard wrote: > On 12 Feb 2008, at 11:53, Hans-Joerg Bibiko wrote: > >> [...] >> OK, this is a very tricky crash. I try to describe it as precise as >> possible: > > This is unfortunately a common problem for some, see [1]. > > So far though I have not had a single report from a Leopard system, > so there is a good chance that it has been fixed for Leopard (where > the controls have undergone some changes). > > [1]: http://macromates.com/textmate/manual/expert_preferences#oakfindpaneldisablehistory > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From erik at myemma.com Wed Feb 13 23:37:42 2008 From: erik at myemma.com (Erik Jones) Date: Wed, 13 Feb 2008 17:37:42 -0600 Subject: [TxMt] GetBundle won't install or update Message-ID: <4CC2D4E9-A4A7-4AD7-8F6A-BDD8E989A13C@myemma.com> Hi, A couple weeks ago GetBundle stopped both Installing and Updating bundles. I can list installed bundles and view the bundles in the repository but when I try to install or update I see the dialogue come up that say "This may take a while..." which then just disappears with no error whatsoever. I've tried removing all of the bundles that I'd previously installed via GetBundle as well as removing and reinstalling GetBundle itself. Any ideas? Erik Jones DBA | Emma? erik at myemma.com 800.595.4401 or 615.292.5888 615.292.0777 (fax) Emma helps organizations everywhere communicate & market in style. Visit us online at http://www.myemma.com From daniel.stockman at gmail.com Thu Feb 14 00:04:14 2008 From: daniel.stockman at gmail.com (Daniel Stockman) Date: Wed, 13 Feb 2008 16:04:14 -0800 Subject: [TxMt] Question/Suggestion: move selected file name into project tab? In-Reply-To: References: Message-ID: <9D712277-AD3D-4812-A3CA-3BBEC4588F64@gmail.com> > go to the ">>" window to see which file I'm currently working in, > rather than just looking at the top and seeing which one is the > 'clear white' tab. Unless I'm living in a parallel dimension, the name of the currently viewed file is always at the very top of the window, next to the file icon above the tab bar. Is this not the case? Command + T (Go To File) is also your friend, as is Command + Option + (L/R) Arrow (Go to Previous/Next Tab, respectively). ~ Daniel From jschult at neom.com Thu Feb 14 11:59:52 2008 From: jschult at neom.com (schulty) Date: Thu, 14 Feb 2008 03:59:52 -0800 (PST) Subject: [TxMt] Problems with Rails Bundle and RakeMate Message-ID: <15413098.post@talk.nabble.com> timetrap-2 wrote: > > > On 2008-01-26 14:27:39 -0600, Sebastian said: > And just to confirm that the reverse is actually true, could somebody > confirm if you are running RakeMate tasks in the Rails bundle with 2.0 > projects without any trouble? Thanks. > I have the same setup as you do, Rails 2.0.2, Rake 0.8.1 and RakeMate r6193 and it works fine. A colleague has the same setup on his mac and he gets the error you do. Go figure... -- View this message in context: http://www.nabble.com/Problems-with-Rails-Bundle-and-RakeMate-tp15112223p15413098.html Sent from the textmate users mailing list archive at Nabble.com. From erik at myemma.com Thu Feb 14 16:32:48 2008 From: erik at myemma.com (Erik Jones) Date: Thu, 14 Feb 2008 10:32:48 -0600 Subject: [TxMt] GetBundle won't install or update In-Reply-To: <4CC2D4E9-A4A7-4AD7-8F6A-BDD8E989A13C@myemma.com> References: <4CC2D4E9-A4A7-4AD7-8F6A-BDD8E989A13C@myemma.com> Message-ID: <2466FC99-8CA6-4EE9-A3AE-42E44FD6F598@myemma.com> FWIW, I've spoken with a co-worker and he seems to be having the same problem. Is this a known issue? On Feb 13, 2008, at 5:37 PM, Erik Jones wrote: > Hi, > > A couple weeks ago GetBundle stopped both Installing and Updating > bundles. I can list installed bundles and view the bundles in the > repository but when I try to install or update I see the dialogue > come up that say "This may take a while..." which then just > disappears with no error whatsoever. I've tried removing all of > the bundles that I'd previously installed via GetBundle as well as > removing and reinstalling GetBundle itself. Any ideas? > > Erik Jones > > DBA | Emma? > erik at myemma.com > 800.595.4401 or 615.292.5888 > 615.292.0777 (fax) > > Emma helps organizations everywhere communicate & market in style. > Visit us online at http://www.myemma.com > > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate Erik Jones DBA | Emma? erik at myemma.com 800.595.4401 or 615.292.5888 615.292.0777 (fax) Emma helps organizations everywhere communicate & market in style. Visit us online at http://www.myemma.com From mcsticky at gmail.com Thu Feb 14 17:40:02 2008 From: mcsticky at gmail.com (Ian Potter) Date: Thu, 14 Feb 2008 12:40:02 -0500 Subject: [TxMt] GetBundle won't install or update In-Reply-To: <2466FC99-8CA6-4EE9-A3AE-42E44FD6F598@myemma.com> References: <4CC2D4E9-A4A7-4AD7-8F6A-BDD8E989A13C@myemma.com> <2466FC99-8CA6-4EE9-A3AE-42E44FD6F598@myemma.com> Message-ID: Mine appears to be doing the same thing, but I noted the smallest flash of an error on the screen before it closed and said it was done. I actually had to make a video of the update to be able to read it. The error message reads "Syntax error in revision argument '8749M'" itp On Feb 14, 2008, at 11:32 AM, Erik Jones wrote: > FWIW, I've spoken with a co-worker and he seems to be having the > same problem. Is this a known issue? > > On Feb 13, 2008, at 5:37 PM, Erik Jones wrote: > >> Hi, >> >> A couple weeks ago GetBundle stopped both Installing and Updating >> bundles. I can list installed bundles and view the bundles in the >> repository but when I try to install or update I see the dialogue >> come up that say "This may take a while..." which then just >> disappears with no error whatsoever. I've tried removing all of >> the bundles that I'd previously installed via GetBundle as well as >> removing and reinstalling GetBundle itself. Any ideas? >> >> Erik Jones >> >> DBA | Emma? >> erik at myemma.com >> 800.595.4401 or 615.292.5888 >> 615.292.0777 (fax) >> >> Emma helps organizations everywhere communicate & market in style. >> Visit us online at http://www.myemma.com >> >> >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > Erik Jones > > DBA | Emma? > erik at myemma.com > 800.595.4401 or 615.292.5888 > 615.292.0777 (fax) > > Emma helps organizations everywhere communicate & market in style. > Visit us online at http://www.myemma.com > > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From Steven_Rowat at sunshine.net Thu Feb 14 18:13:13 2008 From: Steven_Rowat at sunshine.net (Steven Rowat) Date: Thu, 14 Feb 2008 10:13:13 -0800 Subject: [TxMt] Question/Suggestion: move selected file name into project tab? In-Reply-To: <9D712277-AD3D-4812-A3CA-3BBEC4588F64@gmail.com> References: <9D712277-AD3D-4812-A3CA-3BBEC4588F64@gmail.com> Message-ID: Hi, Daniel wrote: >Unless I'm living in a parallel dimension, the name of the currently viewed file is always at the very top of the window, next to the file icon above the tab bar. Is this not the case? > >Command + T (Go To File) is also your friend, as is Command + Option + (L/R) Arrow (Go to Previous/Next Tab, respectively). Thank you; the Command+T I knew, the second I didn't. They will be useful, but don't solve the issue I tried to describe. Again: what I want is to be able to make a file display in the tabs at the top, when the tab list is already full, and the file is further down in the drop-down list. The only way I can do this at present, that I know of, is to hit Command-W twenty or more times and unload everything so I have a blank project, and then reload the files I want to have as tabs at the top. I find working with visible tabs, when I'm passing data between four or five files repeatedly (ie., several includes and a main php file) to be much faster and easier than finding them in the drop-down list over and over as I switch back and forth between them. So I'd like to put them at the top each time, before I begin editing them. I'm currently working with hundreds of files that often have only a single digit or number different, and it's very easy to get them confused unless all my ducks are in a row (in this case, literally, a row across the top). And sometimes there's only *one* that I'm missing from the top - but still, if it's way down the list, then there's no way to get it up there without unloading everything else before it (if I'm right about this). It's not a big deal; I can just unload and reload and it's quick. But still I think it would be cleaner if the file listing gave this option - to have a file tab become visible when this is preferred, so that the chosen file would change its position in the file listing and become the final visible tab. steven rowat From erik at myemma.com Thu Feb 14 18:14:36 2008 From: erik at myemma.com (Erik Jones) Date: Thu, 14 Feb 2008 12:14:36 -0600 Subject: [TxMt] GetBundle won't install or update In-Reply-To: References: <4CC2D4E9-A4A7-4AD7-8F6A-BDD8E989A13C@myemma.com> <2466FC99-8CA6-4EE9-A3AE-42E44FD6F598@myemma.com> Message-ID: <93EE94BF-7118-4C3F-A676-B53D5D1812BC@myemma.com> Ah, ok, it's the M that's breaking that. If you edit /Applications/ TextMate.app/Contents/SharedSupport/Support/version and remove the M then everything works again. On Feb 14, 2008, at 11:40 AM, Ian Potter wrote: > Mine appears to be doing the same thing, but I noted the smallest > flash of an error on the screen before it closed and said it was > done. I actually had to make a video of the update to be able to > read it. > > The error message reads "Syntax error in revision argument '8749M'" > > itp > > On Feb 14, 2008, at 11:32 AM, Erik Jones wrote: > >> FWIW, I've spoken with a co-worker and he seems to be having the >> same problem. Is this a known issue? >> >> On Feb 13, 2008, at 5:37 PM, Erik Jones wrote: >> >>> Hi, >>> >>> A couple weeks ago GetBundle stopped both Installing and Updating >>> bundles. I can list installed bundles and view the bundles in >>> the repository but when I try to install or update I see the >>> dialogue come up that say "This may take a while..." which then >>> just disappears with no error whatsoever. I've tried removing >>> all of the bundles that I'd previously installed via GetBundle as >>> well as removing and reinstalling GetBundle itself. Any ideas? >>> >>> Erik Jones >>> >>> DBA | Emma? >>> erik at myemma.com >>> 800.595.4401 or 615.292.5888 >>> 615.292.0777 (fax) >>> >>> Emma helps organizations everywhere communicate & market in style. >>> Visit us online at http://www.myemma.com >>> >>> >>> >>> >>> ____________________________________________________________________ >>> __ >>> For new threads USE THIS: textmate at lists.macromates.com >>> (threading gets destroyed and the universe will collapse if you >>> don't) >>> http://lists.macromates.com/mailman/listinfo/textmate >> >> Erik Jones >> >> DBA | Emma? >> erik at myemma.com >> 800.595.4401 or 615.292.5888 >> 615.292.0777 (fax) >> >> Emma helps organizations everywhere communicate & market in style. >> Visit us online at http://www.myemma.com >> >> >> >> >> _____________________________________________________________________ >> _ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate Erik Jones DBA | Emma? erik at myemma.com 800.595.4401 or 615.292.5888 615.292.0777 (fax) Emma helps organizations everywhere communicate & market in style. Visit us online at http://www.myemma.com From throw-away-2 at macromates.com Thu Feb 14 18:51:43 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Thu, 14 Feb 2008 19:51:43 +0100 Subject: [TxMt] GetBundle won't install or update In-Reply-To: <93EE94BF-7118-4C3F-A676-B53D5D1812BC@myemma.com> References: <4CC2D4E9-A4A7-4AD7-8F6A-BDD8E989A13C@myemma.com> <2466FC99-8CA6-4EE9-A3AE-42E44FD6F598@myemma.com> <93EE94BF-7118-4C3F-A676-B53D5D1812BC@myemma.com> Message-ID: <8EE794BC-614C-44AD-B8A0-77072683E2D1@macromates.com> On 14 Feb 2008, at 19:14, Erik Jones wrote: > Ah, ok, it's the M that's breaking that. If you edit /Applications/ > TextMate.app/Contents/SharedSupport/Support/version and remove the M > then everything works again. Thanks -- I have fixed it in the repository, next build should have the bundle working again. From erik at myemma.com Thu Feb 14 19:20:57 2008 From: erik at myemma.com (Erik Jones) Date: Thu, 14 Feb 2008 13:20:57 -0600 Subject: [TxMt] GetBundle won't install or update In-Reply-To: <8EE794BC-614C-44AD-B8A0-77072683E2D1@macromates.com> References: <4CC2D4E9-A4A7-4AD7-8F6A-BDD8E989A13C@myemma.com> <2466FC99-8CA6-4EE9-A3AE-42E44FD6F598@myemma.com> <93EE94BF-7118-4C3F-A676-B53D5D1812BC@myemma.com> <8EE794BC-614C-44AD-B8A0-77072683E2D1@macromates.com> Message-ID: <332D1116-E7BD-420F-A1F3-56E939B76804@myemma.com> On Feb 14, 2008, at 12:51 PM, Allan Odgaard wrote: > On 14 Feb 2008, at 19:14, Erik Jones wrote: > >> Ah, ok, it's the M that's breaking that. If you edit / >> Applications/TextMate.app/Contents/SharedSupport/Support/version >> and remove the M then everything works again. > > Thanks -- I have fixed it in the repository, next build should have > the bundle working again. Glad to have both been of help and helped :) Erik Jones DBA | Emma? erik at myemma.com 800.595.4401 or 615.292.5888 615.292.0777 (fax) Emma helps organizations everywhere communicate & market in style. Visit us online at http://www.myemma.com From samogon at gmail.com Fri Feb 15 15:04:01 2008 From: samogon at gmail.com (Ilia Lobsanov) Date: Fri, 15 Feb 2008 10:04:01 -0500 Subject: [TxMt] perl syntax choking Message-ID: <66581937-F029-4FD4-A2A8-5E4F0164A8E9@gmail.com> The perl syntax coloring is choking at this line: (split(/ /, `md5sum /tftpboot/$filename`, 2))[0]; From dougal at gmail.com Fri Feb 15 22:00:17 2008 From: dougal at gmail.com (Dougal) Date: Fri, 15 Feb 2008 17:00:17 -0500 Subject: [TxMt] Question/Suggestion: move selected file name into project tab? In-Reply-To: References: <9D712277-AD3D-4812-A3CA-3BBEC4588F64@gmail.com> Message-ID: I don't know a way to solve your problem, but one trick that'll make your current behavior a little nicer is Control + Option + W, which closes all open tabs, rather than jamming on Command + W. On Thu, Feb 14, 2008 at 1:13 PM, Steven Rowat wrote: > Hi, > > > Daniel wrote: > > >Unless I'm living in a parallel dimension, the name of the currently viewed file is always at the very top of the window, next to the file icon above the tab bar. Is this not the case? > > > >Command + T (Go To File) is also your friend, as is Command + Option + (L/R) Arrow (Go to Previous/Next Tab, respectively). > > > Thank you; the Command+T I knew, the second I didn't. > > They will be useful, but don't solve the issue I tried to describe. > > Again: what I want is to be able to make a file display in the tabs at the top, when the tab list is already full, and the file is further down in the drop-down list. > > The only way I can do this at present, that I know of, is to hit Command-W twenty or more times and unload everything so I have a blank project, and then reload the files I want to have as tabs at the top. > > I find working with visible tabs, when I'm passing data between four or five files repeatedly (ie., several includes and a main php file) to be much faster and easier than finding them in the drop-down list over and over as I switch back and forth between them. So I'd like to put them at the top each time, before I begin editing them. I'm currently working with hundreds of files that often have only a single digit or number different, and it's very easy to get them confused unless all my ducks are in a row (in this case, literally, a row across the top). > > And sometimes there's only *one* that I'm missing from the top - but still, if it's way down the list, then there's no way to get it up there without unloading everything else before it (if I'm right about this). > > It's not a big deal; I can just unload and reload and it's quick. But still I think it would be cleaner if the file listing gave this option - to have a file tab become visible when this is preferred, so that the chosen file would change its position in the file listing and become the final visible tab. > > steven rowat > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > From maillists at gmx.de Fri Feb 15 22:33:04 2008 From: maillists at gmx.de (Christian) Date: Fri, 15 Feb 2008 23:33:04 +0100 Subject: [TxMt] Working with pdfsync in latex Message-ID: <25F9905D-B638-43C3-B88F-3D68E4E77E01@gmx.de> Hi Folks, I am pretty new to textmate and I already love the way how to typeset only with textmate and to preview the PDF. I now tried pdfsync and can't get it to work. I have my preambel and include all my chapters with input. After typesetting, I highlighted a word with an included file and used "Show in PDF-Viewer (pdfsync)", but nothing happens. How ould I get this to work, so that I can jump from the code to the pdf and vice versa? Thanks in advance Christian From harrison at Math.Berkeley.EDU Fri Feb 15 22:44:26 2008 From: harrison at Math.Berkeley.EDU (Jenny Harrison) Date: Fri, 15 Feb 2008 14:44:26 -0800 Subject: [TxMt] Working with pdfsync in latex In-Reply-To: <25F9905D-B638-43C3-B88F-3D68E4E77E01@gmx.de> References: <25F9905D-B638-43C3-B88F-3D68E4E77E01@gmx.de> Message-ID: <4725DB6E-5649-4BEF-AAD1-45625C80C535@math.berkeley.edu> > I now tried pdfsync and can't get it to work. > I have my preambel and include all my chapters with input. After > typesetting, I highlighted a word with an included file and used > "Show in PDF-Viewer (pdfsync)", but nothing happens. How ould I get > this to work, so that I can jump from the code to the pdf and vice > versa? > > Thanks in advance > Christian I don't believe that the pdf viewer included inTextMate works with pdfsync. Try using Skim. Go to Latex preferences and set "view in" to Skim. In Skim preferences, set Sync Preset to TextMate. That should do it! Jenny -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuart.grimshaw at gmail.com Sat Feb 16 02:06:08 2008 From: stuart.grimshaw at gmail.com (Stuart Grimshaw) Date: Sat, 16 Feb 2008 02:06:08 +0000 Subject: [TxMt] Problems with Rails Bundle and RakeMate In-Reply-To: <15413098.post@talk.nabble.com> References: <15413098.post@talk.nabble.com> Message-ID: On Feb 14, 2008 11:59 AM, schulty wrote: > > > timetrap-2 wrote: > > > > > > On 2008-01-26 14:27:39 -0600, Sebastian said: > > And just to confirm that the reverse is actually true, could somebody > > confirm if you are running RakeMate tasks in the Rails bundle with 2.0 > > projects without any trouble? Thanks. > > > > I have the same setup as you do, Rails 2.0.2, Rake 0.8.1 and RakeMate r6193 > and it works fine. A colleague has the same setup on his mac and he gets > the error you do. Go figure... I'm also having the same problem, same versions, but I'm still using Tiger, not Leopard. -- -S Follow me on Twitter: http://twitter.com/stubbs Blog: http://stubblog.wordpress.com My art: http://stuartgrimshaw.imagekind.com Stock Images: http://psc.photoshelter.com/user/stuartgrimshaw From Steven_Rowat at sunshine.net Sat Feb 16 05:15:00 2008 From: Steven_Rowat at sunshine.net (Steven Rowat) Date: Fri, 15 Feb 2008 21:15:00 -0800 Subject: [TxMt] Keybinding change question: should Interface Builder show Bundle Menu items? Message-ID: Hi, I attempted to assign a key-binding to "Strip HTML Tags from Selection". A command installed via System Preferences doesn't work, and I assume this is as explained in the TM help: "Dynamic menu items i.e. those which change title depending on the programs state (like Fold Current Block / Selection) should be specified with their initial title. The initial title can be found by opening the MainMenu.nib file in Interface Builder (use Show Package Contents on TextMate and navigate to Contents ? Resources ? English.lproj)." So I have installed Interface Builder, found the MainMenu in the TM package, double-clicked it to open it in IB, and then double-clicked the MainMenu icon, which opens. However, the Bundle Menu item only drops down the first four global items; none of the Bundles show up. (Also, a small yellow tooltip opens on hover over the MainMenu icon, saying "One of the children has a bad/missing connection".) Is there a way to find out what name I should be using to bind "Strip HTML Tags from Selection"? Apparently the bundles aren't connected in IB - ? - or is there another way to access them? steven rowat -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.mccann at adelaide.edu.au Sat Feb 16 05:53:22 2008 From: paul.mccann at adelaide.edu.au (Paul McCann) Date: Sat, 16 Feb 2008 16:23:22 +1030 Subject: [TxMt] Keybinding change question: should Interface Builder show Bundle Menu items? In-Reply-To: References: Message-ID: Hi Steven, it's much easier than that for Bundle items! Just open the bundle editor (control-option-command-b) and then find the item whose shortcut you wish to change. In this case just look in the HTML bundle (filter on "Command" using the pull down at the top left if you like) and it's there. There's a field at the bottom right for setting the key equivalent. Cheers, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steven_Rowat at sunshine.net Sat Feb 16 06:16:15 2008 From: Steven_Rowat at sunshine.net (Steven Rowat) Date: Fri, 15 Feb 2008 22:16:15 -0800 Subject: [TxMt] Re: Keybinding change question: should Interface Builder show Bundle Menu items? Message-ID: Hi, One additional note: as recommended in the TM Help, I tried downloading MenuMaster but still no joy. Even though it easily allows me to add a key binding for "Strip HTML Tags from Selection", using the keycommand still does nothing. Other (core) commands can be changed and work afterwards, so I suspect it's a bundle communcation issue. Another test seems to confirm this: when I change the "Insert Close Tag" command (in the HTML bundle), it visually shows a change, but the keyboard continues to work with the original default command. Restart TM, the change persists in the menu, but still uses the default from the keyboard. So I'm stuck, I think. Is there a way around this, that anyone knows of? steven rowat From nigel at greenlemur.com Sat Feb 16 10:29:39 2008 From: nigel at greenlemur.com (Nigel Green) Date: Sat, 16 Feb 2008 10:29:39 +0000 Subject: [TxMt] Question/Suggestion: move selected file name into project tab? In-Reply-To: References: <9D712277-AD3D-4812-A3CA-3BBEC4588F64@gmail.com> Message-ID: <0F467C09-759D-4849-84A0-7E7DA90C4B24@greenlemur.com> On 15 Feb 2008, at 22:00, Dougal wrote: > I don't know a way to solve your problem, but one trick that'll make > your current behavior a little nicer is Control + Option + W, which > closes all open tabs, rather than jamming on Command + W. This sounds like a nice feature, but it doesn't work on my version. If I ctrl-opt-w on mine it simply inserts some special character at the cursor. Is this a standard key combo? Nigel From throw-away-2 at macromates.com Sat Feb 16 17:26:49 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sat, 16 Feb 2008 18:26:49 +0100 Subject: [TxMt] Including values of static variables in others? In-Reply-To: References: <3B7BE90F-877C-4193-A5F7-AD71188645E0@macromates.com> Message-ID: <6FCC59A1-3B6A-4BFC-9FFE-686E7A00D73C@macromates.com> On 13 Feb 2008, at 16:41, Daryl Spitzer wrote: > Allan writes: > >> That is not possible -- in the future it will be possible to use >> format strings for variable values (which can refer other values), >> but >> in your example the variable you want to use is from the same list, >> and that won't be possible (i.e. it would have to track dependencies >> between the variables to resolve them in the proper order for that to >> work. > > What if one could determine the order of the variable definitions? > Then it wouldn't be necessary to track dependencies, as long as the > dependencies are always on variables defined previously in the list. That should work, yes -- I?ll make a note of it. From throw-away-2 at macromates.com Sat Feb 16 17:29:02 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sat, 16 Feb 2008 18:29:02 +0100 Subject: [TxMt] Changing language for a specific file In-Reply-To: References: <14630274.post@talk.nabble.com> <20C96993-AF0F-48A7-8CF9-C9FA468A86C6@gmail.com> <14637906.post@talk.nabble.com> <83B349D1-21CD-43FD-B69F-62659C7B552D@eva.mpg.de> <14695880.post@talk.nabble.com> <15420248.post@talk.nabble.com> <28DB081D-88D9-4573-B909-4CC285EB73E7@macromates.com> Message-ID: <0A309114-B457-458C-94E9-1E26A80DB8DD@macromates.com> On 13 Feb 2008, at 14:16, Rick DeNatale wrote: > [...] > I'm thinking though that I'm going to have to keep on top of this, > since it seems that whenever the ruby bundle get's updated it's going > to add the rb suffix back to it's language definition. No, a delta file is stored under ~/Library with just your updated fileTypes array. > Any thoughts towards either: > > [...] Somehow 'automatically' detect the type of project from it's > contents [...] Yes, there are thoughts toward that ;) From throw-away-2 at macromates.com Sat Feb 16 17:32:23 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Sat, 16 Feb 2008 18:32:23 +0100 Subject: [TxMt] "Find" doesn't work when searching Java API docs In-Reply-To: References: Message-ID: <6CC11ECB-B354-4DD3-B42E-08460611DF92@macromates.com> On 13 Feb 2008, at 09:56, Armon Dadgar wrote: > Does anyone else experience problems when searching the java api? > Here is an example of what happens: > [...] > 5. Pressing the next button or Apple-G does nothing. I tried Markdown ? Preview and used the Find dialog?s Next button and the ?G shortcut, both worked fine. Can you try it with something other than the Java API? From Steven_Rowat at sunshine.net Sat Feb 16 19:22:26 2008 From: Steven_Rowat at sunshine.net (Steven Rowat) Date: Sat, 16 Feb 2008 11:22:26 -0800 Subject: [TxMt] Question/Suggestion: move selected file name into project tab? In-Reply-To: References: <9D712277-AD3D-4812-A3CA-3BBEC4588F64@gmail.com> Message-ID: Hi, Dougal wrote: >I don't know a way to solve your problem, but one trick that'll make >your current behavior a little nicer is Control + Option + W, which >closes all open tabs, rather than jamming on Command + W. That would be a help, but it's not working for me. Can you tell me where it is in the menus (I can't find it), so I can adjust it with Menu Master? Or if it's not in the menus, how do I get access to it? steven rowat From Steven_Rowat at sunshine.net Sat Feb 16 19:21:58 2008 From: Steven_Rowat at sunshine.net (Steven Rowat) Date: Sat, 16 Feb 2008 11:21:58 -0800 Subject: [TxMt] Keybinding change question: should Interface Builder show Bundle Menu items? In-Reply-To: References: Message-ID: Hi, Paul wrote: >it's much easier than that for Bundle items! Just open the bundle editor (control-option-command-b) and then find the item whose shortcut you wish to change. In this case just look in the HTML bundle (filter on "Command" using the pull down at the top left if you like) and it's there. There's a field at the bottom right for setting the key equivalent. My god, that's wonderful. Even works without restarting TM. I feel a need to say that several hours of my time and several list comments could have been saved if a single warning phrase in TM online Help in the Keybindings section 16.2 had alterted me to this fact: that going to Interface Builder and MenuMaster wasn't going to work for Bundle Items. I see I made a mistake by jumping over the single paragraph of section 16.1, "Bundle Items" , which would have told me that, but I feel that was a logical thing to do: I was looking for a keybinding for what is to me a "Menu" item - an item on a Menu. Hence I went straight to "Menu Items", section 16.2, and followed the directions. I suppose that to an experienced user, or the developer even more so, by now what is a bundle and what is not is as different as day and night (how could one confuse them?), but coming in cold to new software, it's different. They're all on menus; I don't know how deep the differences go, at first. Sort of like...meeting a group of people who seem to be of the same family, and making the mistake of "Oh, is that your husband? I thought he was your father! Extremely sorry! My mistake!" :-0 Anyway, many thanks for the quick reply and now it all works.... steven rowat From paul.mccann at adelaide.edu.au Sat Feb 16 22:54:09 2008 From: paul.mccann at adelaide.edu.au (Paul McCann) Date: Sun, 17 Feb 2008 09:24:09 +1030 Subject: [TxMt] Question/Suggestion: move selected file name into project tab? In-Reply-To: References: <9D712277-AD3D-4812-A3CA-3BBEC4588F64@gmail.com> Message-ID: Hi again, >I don't know a way to solve your problem, but one trick that'll make > >your current behavior a little nicer is Control + Option + W, which > >closes all open tabs, rather than jamming on Command + W. > > That would be a help, but it's not working for me. Can you tell me where > it is in the menus (I can't find it), so I can adjust it with Menu Master? > Or if it's not in the menus, how do I get access to it? There's a slip in the first-quoted message: it's control-COMMAND-w to close all tabs, and the menu it sits in is "File". Cheers, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From armon.dadgar at gmail.com Sun Feb 17 06:02:10 2008 From: armon.dadgar at gmail.com (Armon Dadgar) Date: Sat, 16 Feb 2008 22:02:10 -0800 Subject: [TxMt] "Find" doesn't work when searching Java API docs In-Reply-To: <6CC11ECB-B354-4DD3-B42E-08460611DF92@macromates.com> References: <6CC11ECB-B354-4DD3-B42E-08460611DF92@macromates.com> Message-ID: <0508C9A2-2112-49D1-9226-166CC3BE437B@gmail.com> Searching documents and projects works fine. The Java API is the only thing I use with some frequency. On Feb 16, 2008, at 9:32 AM, Allan Odgaard wrote: > On 13 Feb 2008, at 09:56, Armon Dadgar wrote: > >> Does anyone else experience problems when searching the java api? >> Here is an example of what happens: >> [...] >> 5. Pressing the next button or Apple-G does nothing. > > I tried Markdown ? Preview and used the Find dialog?s Next button > and the ?G shortcut, both worked fine. > > Can you try it with something other than the Java API? > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From kaevee at gmail.com Sun Feb 17 15:30:02 2008 From: kaevee at gmail.com (Venkatesh K) Date: Sun, 17 Feb 2008 21:00:02 +0530 Subject: [TxMt] Problem with undo In-Reply-To: <8AEC9BC3-ACA6-4266-B239-FB38EDBFA690@macromates.com> References: <8AEC9BC3-ACA6-4266-B239-FB38EDBFA690@macromates.com> Message-ID: Hi Allan, I am sorry for belated reply. Thanks, Venkatesh K On Feb 13, 2008 8:38 AM, Allan Odgaard wrote: > On 11 Feb 2008, at 12:51, Venkatesh K wrote: > > > [...] > > Thanks for the tip. I was able to fix the problem and in the process I > > ended up deleting php bundle. How do i get it back? > > See http://macromates.com/textmate/manual/bundles#deleting_default_bundles_items > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -- Venkatesh. K From Steven_Rowat at sunshine.net Sun Feb 17 17:12:20 2008 From: Steven_Rowat at sunshine.net (Steven Rowat) Date: Sun, 17 Feb 2008 09:12:20 -0800 Subject: [TxMt] Question/Suggestion: move selected file name into project tab? In-Reply-To: References: <9D712277-AD3D-4812-A3CA-3BBEC4588F64@gmail.com> Message-ID: Hi, Paul wrote: >There's a slip in the first-quoted message: it's control-COMMAND-w to close all tabs, and the menu it sits in is "File". Thanks, it works. But it's not in my menu - (which is why I didn't know about it, I think). - I only have "Close" (shift-Cmnd-W) and "Close Tab" (Cmnd-W). It's odd that it's in yours; maybe a version difference? (I have TM 1.5.7) I've looked again at section 16.2/16.3 (Keybindings) and it's not mentioned there; and I can't see it in the Bundle Editor. Is there another, perhaps overall, listing of menu commands somewhere, where it is listed (maybe with other invisible ones)? And can I perhaps instruct it to appear in the menu? Without using Interface Builder! :-) Regards, Steven From cskiadas at gmail.com Sun Feb 17 18:04:45 2008 From: cskiadas at gmail.com (Charilaos Skiadas) Date: Sun, 17 Feb 2008 13:04:45 -0500 Subject: [TxMt] Question/Suggestion: move selected file name into project tab? In-Reply-To: References: <9D712277-AD3D-4812-A3CA-3BBEC4588F64@gmail.com> Message-ID: On Feb 17, 2008, at 12:12 PM, Steven Rowat wrote: > Hi, > > Paul wrote: > >> There's a slip in the first-quoted message: it's control-COMMAND-w >> to close all tabs, and the menu it sits in is "File". > > > Thanks, it works. > But it's not in my menu - (which is why I didn't know about it, I > think). - I only have "Close" (shift-Cmnd-W) and "Close Tab" (Cmnd- > W). It's odd that it's in yours; maybe a version difference? (I > have TM 1.5.7) > > I've looked again at section 16.2/16.3 (Keybindings) and it's not > mentioned there; and I can't see it in the Bundle Editor. Is there > another, perhaps overall, listing of menu commands somewhere, where > it is listed (maybe with other invisible ones)? > > And can I perhaps instruct it to appear in the menu? Press Ctrl while the menu is visible. Then wash and repeat with the other menus for more goodies ;). Try with option instead of ctrl as well. You can now perhaps imagine why this is not very clearly visible in Interface Builder. 16.2, caveat 2, in the manual sort of hints at these items. > Without using Interface Builder! :-) > > > > Regards, > > Steven Haris Skiadas Department of Mathematics and Computer Science Hanover College From bpabbott at mac.com Mon Feb 18 00:33:27 2008 From: bpabbott at mac.com (Ben Abbott) Date: Mon, 18 Feb 2008 00:33:27 +0000 (UTC) Subject: [TxMt] Octave/Matlab bundle Message-ID: I'm interested a bundle that supports Octave's syntax which is nearly same as Matlab's ... plus a bit more. Additional Octave "features" are listed at the link below http://www.gnu.org/software/octave/FAQ.html#Octave-Features The additional syntax includes * Comments with the number-sign, "#" * Strings delimitted by double quotes, ex: "string" * Line continuation by backslash. The Matlab bundle apparently respects single and double quotes, but is agnostic to line continuation. Thus, the only additional thing needed for Octave is support of the number-sign for comments. I cut the text below from the shell script bundle and pasted it into the Matlab bundle, and it appears to work properly! { name = 'comment.line.number-sign.shell'; match = '(? References: Message-ID: <7285de060802180425n37bf17a9w1d65899f163517a6@mail.gmail.com> i'm interested in this subject to, but for haXe. i can start from AS syntax. On Feb 18, 2008 2:33 AM, Ben Abbott wrote: > I'm interested a bundle that supports Octave's syntax which is nearly > same as Matlab's ... plus a bit more. > > Additional Octave "features" are listed at the link below > > http://www.gnu.org/software/octave/FAQ.html#Octave-Features > > The additional syntax includes > * Comments with the number-sign, "#" > * Strings delimitted by double quotes, ex: "string" > * Line continuation by backslash. > > The Matlab bundle apparently respects single and double quotes, but is > agnostic to line continuation. Thus, the only additional thing needed for > Octave is support of the number-sign for comments. > > I cut the text below from the shell script bundle and pasted it into the > Matlab bundle, and it appears to work properly! > > { name = 'comment.line.number-sign.shell'; > match = '(? captures = { 1 = { name = ' > punctuation.definition.comment.matlab'; }; }; > }, > > Might Matlab's bundle be patched to include this, or should an > independent bundle be introduced for Octave? > > Ben > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -- Cristi www.ralcr.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From prion67 at googlemail.com Mon Feb 18 13:11:23 2008 From: prion67 at googlemail.com (Christoph Held) Date: Mon, 18 Feb 2008 14:11:23 +0100 Subject: [TxMt] PracTex journal tips, revision control and academic workflow Message-ID: <22f9535c0802180511k21d3a49h97be561872e8e9c@mail.gmail.com> Hello all, perhaps this is a bit off-topic so please bear with me. Some regulars on this forum were instrumental in developing these thougths though which is what encouraed me to post here. I am a researcher doing some of my writing in Multimarkdown text files and put my work on a portable harddrive which I carry home after work, synchronize to my home computer and carry on working there. Ditto for the reverse. After reading a series of inspiring articles about how to use subversion repositories for academic writers over on Practex journal I am beginning to think that I could make better use of my resources. Here is what I plan to do: Go to work, read, write, take notes etc. Some of this takes place in textfiles, some will reside XML files (Tinderbox), and some also in binary files at the end of the day. I have access to a server that I would like to push all my changes and new data to and then go home. From home, I would like to pull all changes to my home computer and carry on. 1) Will the version control systems compare whole lines or do some kind of document comparison trying to find identical blocks regardless of (soft) line breaks? 2) what I don't know is how well this system will work for binary files, e.g. Aperture libraries, Word files from colleagues etc. Ideally, I'd like to just send the changed bits of files, not all files that have changed to save bandwith and time. If something went wrong I would want to go back in time. I am working on a localized system (meaning non-US) in case that is presenting a problem. I am not afraid of the command line but I have no experience with version control whatsoever because I was left with the impression that it was of little use outside source code development. Although I do some reading about subversion, git, mercurial, bazaar etc I need some guidance if I am barking up the right tree in the first place. I would greatly appreaciate your thoughts Prion -------------- next part -------------- An HTML attachment was scrubbed... URL: From cskiadas at gmail.com Mon Feb 18 14:11:12 2008 From: cskiadas at gmail.com (Charilaos Skiadas) Date: Mon, 18 Feb 2008 09:11:12 -0500 Subject: [TxMt] PracTex journal tips, revision control and academic workflow In-Reply-To: <22f9535c0802180511k21d3a49h97be561872e8e9c@mail.gmail.com> References: <22f9535c0802180511k21d3a49h97be561872e8e9c@mail.gmail.com> Message-ID: <78FBB250-1EDD-4A13-8F83-7D8C06E300FE@gmail.com> Hi Prion, On Feb 18, 2008, at 8:11 AM, Christoph Held wrote: > Hello all, > > perhaps this is a bit off-topic so please bear with me. Some > regulars on this forum were instrumental in developing these > thougths though which is what encouraed me to post here. > > I am a researcher doing some of my writing in Multimarkdown text > files and put my work on a portable harddrive which I carry home > after work, synchronize to my home computer and carry on working > there. Ditto for the reverse. > > After reading a series of inspiring articles about how to use > subversion repositories for academic writers over on Practex > journal I am beginning to think that I could make better use of my > resources. Here is what I plan to do: I actually suspect some of these articles were written by TextMate users ;). I'm assuming you were looking at articles here: http:// www.tug.org/pracjourn/2007-3/index.html > Go to work, read, write, take notes etc. Some of this takes place > in textfiles, some will reside XML files (Tinderbox), and some also > in binary files at the end of the day. I have access to a server > that I would like to push all my changes and new data to and then > go home. From home, I would like to pull all changes to my home > computer and carry on. > > 1) Will the version control systems compare whole lines or do some > kind of document comparison trying to find identical blocks > regardless of (soft) line breaks? Version control systems tend to compare lines. In theory, you can provide your own diff command, for instance wdiff. It takes a bit of tinkering, but I think is possible in theory. For LaTeX documents at least, there is the wonderful latexdiff package, which will effectively do word-by-word comparison and produce a pdf file for you that shows the differences that have occurred in the document in a wonderful way, and I think it can be instructed to skip spaces. But by default all these version control systems look at lines. Is that so much of a problem however? http://www.ctan.org/tex-archive/support/latexdiff/ > 2) what I don't know is how well this system will work for binary > files, e.g. Aperture libraries, Word files from colleagues etc. > Ideally, I'd like to just send the changed bits of files, not all > files that have changed to save bandwith and time. If something > went wrong I would want to go back in time. > I am working on a localized system (meaning non-US) in case that is > presenting a problem. No, I don't see how it could do that. It would need to know the details of the binary encoding used by all programs that have existed and will exist in the future. That's the problem with binary files (other than the fact that you need a specific program to be able to read them of course). You can still go back in time of course, that's the "version" part of version control. So even in that case it helps. I don't know if Word has some way of comparing documents, but you could in theory, and in practice, have it compare a word document file now with its version 2-3 revisions in the past. Simply put, version control keeps the history of your project, with all states of the files along the way (that you chose to keep and commit, that is). > I am not afraid of the command line but I have no experience with > version control whatsoever because I was left with the impression > that it was of little use outside source code development. Although > I do some reading about subversion, git, mercurial, bazaar etc I > need some guidance if I am barking up the right tree in the first > place. I am working on a book currently, in LaTeX, and keep it on subversion. It helps me keep track of what I have changed when and why, and I wouldn't give that up for nothing in the world. Once you set it up, you don't really have to leave TextMate's world. > I would greatly appreaciate your thoughts > Prion Hope this helps, Haris Skiadas Department of Mathematics and Computer Science Hanover College From keith.penrod at gmail.com Mon Feb 18 15:52:34 2008 From: keith.penrod at gmail.com (gandalfxviv) Date: Mon, 18 Feb 2008 07:52:34 -0800 (PST) Subject: [TxMt] Typing eats up system resources Message-ID: <15546901.post@talk.nabble.com> This is the first time I've ever experienced this problem. I was typing along in TextMate and suddenly it started to get really sluggish, so I pulled up activity monitor and whenever I edit text in TextMate, it shoots up to 50 or 60% CPU usage. I have an Intel Core 2 Duo MBP running OSX 10.5.2 and TextMate Version 1.5.7 (1455). I usually leave TextMate open for days at a time and I've never had this problem before. I tried closing TextMate and reopening and that didn't do anything. Any ideas what might be causing that? -- View this message in context: http://www.nabble.com/Typing-eats-up-system-resources-tp15546901p15546901.html Sent from the textmate users mailing list archive at Nabble.com. From ajross at cs.pdx.edu Mon Feb 18 17:03:42 2008 From: ajross at cs.pdx.edu (Alex Ross) Date: Mon, 18 Feb 2008 09:03:42 -0800 Subject: [TxMt] Typing eats up system resources In-Reply-To: <15546901.post@talk.nabble.com> References: <15546901.post@talk.nabble.com> Message-ID: <12940338-9573-44AF-8173-0A0F2985DFEC@cs.pdx.edu> > This is the first time I've ever experienced this problem. I was > typing > along in TextMate and suddenly it started to get really sluggish, so I > pulled up activity monitor and whenever I edit text in TextMate, it > shoots > up to 50 or 60% CPU usage. I have an Intel Core 2 Duo MBP running OSX > 10.5.2 and TextMate Version 1.5.7 (1455). I usually leave TextMate > open for > days at a time and I've never had this problem before. I tried > closing > TextMate and reopening and that didn't do anything. Any ideas what > might > be causing that? Turn off spell checking. Edit > Spelling > Check Spelling as You Type. From Steven_Rowat at sunshine.net Mon Feb 18 17:41:52 2008 From: Steven_Rowat at sunshine.net (Steven Rowat) Date: Mon, 18 Feb 2008 09:41:52 -0800 Subject: [TxMt] Question/Suggestion: move selected file name into project tab? In-Reply-To: References: <9D712277-AD3D-4812-A3CA-3BBEC4588F64@gmail.com> Message-ID: Hi, Haris wrote: >Press Ctrl while the menu is visible. Then wash and repeat with the other menus for more goodies ;). Try with option instead of ctrl as well. >You can now perhaps imagine why this is not very clearly visible in Interface Builder. Huh! Thank you! But a quick run through the menus adding Ctl and Option only showed five or six of these. If so, why not just list them on the menu as alternatives?-- It's not as though having a single extra item on the File menu will make it too long. Whereas: >16.2, caveat 2, in the manual sort of hints at these items. I guess I needed a different kind of hint. Like, "Press ctl and/or option and look at the menus." ;-) (Is this listed in the manual anywhere? I don't see it in the main keybindings lists in 16.3 or 16.4, or in the listed at "Keyboard Shortcuts Quick Reference" on the Apple site and/or the Rus list, which 16.3.1 refers us to.) Regards, Steven From prion67 at googlemail.com Mon Feb 18 22:02:02 2008 From: prion67 at googlemail.com (Christoph Held) Date: Mon, 18 Feb 2008 23:02:02 +0100 Subject: [TxMt] PracTex journal tips, revision control and academic workflow In-Reply-To: <78FBB250-1EDD-4A13-8F83-7D8C06E300FE@gmail.com> References: <22f9535c0802180511k21d3a49h97be561872e8e9c@mail.gmail.com> <78FBB250-1EDD-4A13-8F83-7D8C06E300FE@gmail.com> Message-ID: <22f9535c0802181402t75b29a1dp68969c84748eb168@mail.gmail.com> Hi Haris, On Feb 18, 2008 3:11 PM, Charilaos Skiadas wrote: > > > I actually suspect some of these articles were written by TextMate > users ;). I'm assuming you were looking at articles here: http:// > www.tug.org/pracjourn/2007-3/index.html > you are probably right on both counts. What about any of those tools that claiim to be doing backup/mirroring and versioning of everything (including binary files?) at once such as Brackup: http://search.cpan.org/~bradfitz/Brackup-1.06/lib/Brackup/Manual/Overview.pod There is not much in terms of docs but it looks interesting. To me it looks as though it may do exactly what I need. Except, only when it will be ready. Sigh. Or perhaps rsync or unison? With all these tools I know I am going to loose some metadata but I simply don't know which ones I can afford to loose without ill effects. Any comments on these? I know I will have to cover the backup process separately if I am using rsync or unison. Is there a reason I should not rely on TimeMachine for this? Re Latex as a writing environment: Although I am sitting on the fencing watchin the Latex scene with interest, I am more attracted to Multimarkdown even though I am using it in an extremely rudimentary fashion at the moment. The simple reason is that most of my papers are written with one or more co-authors who have never used anything besides Word and are so used to blame the usual incompatibility problems on the imperfections of the tools others use rather than thinking about how this is a self fulfilling prophecy. I can't tell you what I am tired of most, using Word myself or explaining time and again that choosing to ignore the World outside MS Windows is hardly a sign of supremacy. Be that as it may, in my field I cannot count on Latex users around and need something that requires as little paradigm changes as possible. Multimarkdown is very readable as such and I can exchange test files with Word users and the only thing I need to ask them is to please respect the #'s they may encounter here and there. Well, there is some more markup but orders of magnitude less than in Latex. > > > For LaTeX documents at least, there is the wonderful latexdiff > package, which will effectively do word-by-word comparison and > produce a pdf file for you that shows the differences that have > occurred in the document in a wonderful way, and I think it can be > instructed to skip spaces. But by default all these version control > systems look at lines. Is that so much of a problem however? > > http://www.ctan.org/tex-archive/support/latexdiff/ I will take a look at it nonetheless, thanks. > > > > Hope this helps, > > Haris Skiadas > Department of Mathematics and Computer Science > Hanover College > > > Your reply has been very helpful indeed. After all, you were one of the > authors who got me started. If I were in Astrophysics I'd start learning > Latex already, but molecular biology is a different field. I would either do > it for the pleasure of writing the lone reviews for myself or have to impose > my set of rules on my co-authors. Neither situation is frequent enough or > gives me enough pleasure to make me *want* it enough, I guess. Prion -------------- next part -------------- An HTML attachment was scrubbed... URL: From nilcolor at gmail.com Tue Feb 19 09:14:52 2008 From: nilcolor at gmail.com (Alexey Blinov) Date: Tue, 19 Feb 2008 12:14:52 +0300 Subject: [TxMt] Typing eats up system resources In-Reply-To: <12940338-9573-44AF-8173-0A0F2985DFEC@cs.pdx.edu> References: <15546901.post@talk.nabble.com> <12940338-9573-44AF-8173-0A0F2985DFEC@cs.pdx.edu> Message-ID: <61450f630802190114n3996d143yf0a2a9bbb39aee88@mail.gmail.com> Yeah, "Check Spelling as You Type" is a real resource hog in TM... Don't know why.So better turn it off and switch on when you really need to check spelling. On Feb 18, 2008 8:03 PM, Alex Ross wrote: > > This is the first time I've ever experienced this problem. I was > > typing > > along in TextMate and suddenly it started to get really sluggish, so I > > pulled up activity monitor and whenever I edit text in TextMate, it > > shoots > > up to 50 or 60% CPU usage. I have an Intel Core 2 Duo MBP running OSX > > 10.5.2 and TextMate Version 1.5.7 (1455). I usually leave TextMate > > open for > > days at a time and I've never had this problem before. I tried > > closing > > TextMate and reopening and that didn't do anything. Any ideas what > > might > > be causing that? > > Turn off spell checking. Edit > Spelling > Check Spelling as You Type. > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jen20 at bath.ac.uk Tue Feb 19 09:58:50 2008 From: jen20 at bath.ac.uk (James Nugent) Date: Tue, 19 Feb 2008 09:58:50 +0000 Subject: [TxMt] Typing eats up system resources In-Reply-To: <61450f630802190114n3996d143yf0a2a9bbb39aee88@mail.gmail.com> References: <15546901.post@talk.nabble.com> <12940338-9573-44AF-8173-0A0F2985DFEC@cs.pdx.edu> <61450f630802190114n3996d143yf0a2a9bbb39aee88@mail.gmail.com> Message-ID: > Yeah, "Check Spelling as You Type" is a real resource hog in TM... > Don't know why. > So better turn it off and switch on when you really need to check > spelling. Is it possible to switch spell checking on and off depending on which scope you're in? Thanks, James From cskiadas at gmail.com Tue Feb 19 10:41:46 2008 From: cskiadas at gmail.com (Charilaos Skiadas) Date: Tue, 19 Feb 2008 05:41:46 -0500 Subject: [TxMt] Typing eats up system resources In-Reply-To: References: <15546901.post@talk.nabble.com> <12940338-9573-44AF-8173-0A0F2985DFEC@cs.pdx.edu> <61450f630802190114n3996d143yf0a2a9bbb39aee88@mail.gmail.com> Message-ID: <24138D19-0FA8-4B98-99AA-7918F9CA8A14@gmail.com> On Feb 19, 2008, at 4:58 AM, James Nugent wrote: >> Yeah, "Check Spelling as You Type" is a real resource hog in TM... >> Don't know why. >> So better turn it off and switch on when you really need to check >> spelling. > > Is it possible to switch spell checking on and off depending on > which scope you're in? > In a way, yes: http://macromates.com/textmate/manual/ preferences_items#preferences_items 15.5 > Thanks, > > > James Haris Skiadas Department of Mathematics and Computer Science Hanover College From jlaudun at mac.com Tue Feb 19 13:31:21 2008 From: jlaudun at mac.com (John Laudun) Date: Tue, 19 Feb 2008 07:31:21 -0600 Subject: [TxMt] Re: revision control and academic workflow In-Reply-To: <20080219120015.6BB71A5F2@comox.textdrive.com> References: <20080219120015.6BB71A5F2@comox.textdrive.com> Message-ID: Dear Chris, You're not alone, and I enjoyed reading your note and Haris' reply. I seem to be in a similar situation to you. I too am an academic, though I am in the humanities. I occasionally think about just going "all LaTeX" but I am held in check by the fact that I would be the only using it in my field, in my department, in my building. I too have settled on a workflow built around MultiMarkdown because of its readability, its text file nature, and because it outputs such beautiful looking documents when you pass it through a CSS of your choosing. I currently rely on other apps for my backup, but I have really longed for a svn set up, because I really would like the finer-grained control. With the switch to Leopard, I'm thinking of trying to make the push sometime soon, so please keep at least me posted on what you learn and how to do these things. (Jacob is laughing somewhere that I still haven't done this -- I tried this past summer to get an svn up and running, but I just didn't have the time to dedicate to what was a project in and of itself.) john -- John Laudun Department of English University of Louisiana ? Lafayette Lafayette, LA 70504-4691 337-482-5493 laudun at louisiana.edu From royalts at gmail.com Tue Feb 19 16:35:22 2008 From: royalts at gmail.com (Tobias Schmidt) Date: Tue, 19 Feb 2008 17:35:22 +0100 Subject: [TxMt] LaTeX Preview not remembering position Message-ID: <41CDF488-F884-4FE6-87C8-29D12185A133@gmail.com> I just converted from TeXShop to Textmate for my LaTeX editing needs and find myself missing one of TeXShop's features: After typesetting a document, TeXShop remembers which page of the PDF document you were last looking at and after typesetting again automatically jumps to that page. Textmate's Typeset & View, in contrast, always takes me to the first page of the document no matter what I was looking at before which is an enormous pain when I'm tweaking page 38... Is there any way I can get this functionality in Textmate? Cheers, Tobias From harrison at Math.Berkeley.EDU Tue Feb 19 16:52:55 2008 From: harrison at Math.Berkeley.EDU (Jenny Harrison) Date: Tue, 19 Feb 2008 08:52:55 -0800 Subject: [TxMt] LaTeX Preview not remembering position In-Reply-To: <41CDF488-F884-4FE6-87C8-29D12185A133@gmail.com> References: <41CDF488-F884-4FE6-87C8-29D12185A133@gmail.com> Message-ID: <36333F0D-3B3E-402F-AA56-F0CE8EAE3791@math.berkeley.edu> > > > Textmate's Typeset & View, in contrast, always takes me to the first > page of > the document no matter what I was looking at before which is an > enormous > pain when I'm tweaking page 38... > > Is there any way I can get this functionality in Textmate? Use Skim as your Previewer. http://skim-app.sourceforge.net/ Check recent messages for instructions. Jenny > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From martin.kuehl at gmail.com Tue Feb 19 17:03:57 2008 From: martin.kuehl at gmail.com (=?ISO-8859-1?Q?Martin_K=FChl?=) Date: Tue, 19 Feb 2008 18:03:57 +0100 Subject: [TxMt] [RFC] TextMate Bundle for Maude Message-ID: <02039CBA-E366-4C2F-9BAA-132D2409408C@gmail.com> Hi, I've developed a Bundle for the Maude system[1], a "high-performance reflective language and system supporting both equational and rewriting logic specification and programming for a wide range of applications", and I'd appreciate any feedback on it (the bundle, not Maude). To evaluate code (the first seven commands in the gear menu do that), the bundle assumes you have `maude' installed somewhere in your PATH, or set TM_MAUDE to the path of the executable. The coding aids make no such assumption. Included in the bundle is a MaudeMate "script" runner that parses Maude's output and error messages and emits fancy HTML. Unfortunately, TM's ScriptMate makes a few assumptions Maude doesn't fulfill, so it's based on a hacked rip-off of that module. The bundle is available via SVN[2]; you'll probably also need to download Maude[3] and a few code examples[4]. Again, I'd appreciate any feedback on what I've strung together. Thanks, Martin [1] http://maude.cs.uiuc.edu/ [2] http://mkhl.googlecode.com/svn/trunk/TextMate%20Bundles/Maude.tmbundle/ [3] http://maude.cs.uiuc.edu/download/ [4] http://maude.cs.uiuc.edu/maude2-manual/ From bangersandmash at gmail.com Tue Feb 19 18:45:21 2008 From: bangersandmash at gmail.com (Jeff Newman) Date: Tue, 19 Feb 2008 13:45:21 -0500 Subject: [TxMt] PracTex journal tips, revision control and academic workflow In-Reply-To: <78FBB250-1EDD-4A13-8F83-7D8C06E300FE@gmail.com> References: <22f9535c0802180511k21d3a49h97be561872e8e9c@mail.gmail.com> <78FBB250-1EDD-4A13-8F83-7D8C06E300FE@gmail.com> Message-ID: Hello Haris, On 18-Feb-08, at 9:11 AM, Charilaos Skiadas wrote: > For LaTeX documents at least, there is the wonderful latexdiff > package, which will effectively do word-by-word comparison and > produce a pdf file for you that shows the differences that have > occurred in the document in a wonderful way, [snip] Do you have latexdiff set up to run as a command from within textmate? If so would you mind sharing how you got this working to compare the current version of your book with an archived version in subversion? thank you. Jeff From maillists at gmx.de Tue Feb 19 20:07:08 2008 From: maillists at gmx.de (Christian) Date: Tue, 19 Feb 2008 21:07:08 +0100 Subject: [TxMt] Working with pdfsync in latex In-Reply-To: <4725DB6E-5649-4BEF-AAD1-45625C80C535@math.berkeley.edu> References: <25F9905D-B638-43C3-B88F-3D68E4E77E01@gmx.de> <4725DB6E-5649-4BEF-AAD1-45625C80C535@math.berkeley.edu> Message-ID: <033316B9-7A2D-4D07-9C1A-9399302593AE@gmx.de> Am 15.02.2008 um 23:44 schrieb Jenny Harrison: >> I now tried pdfsync and can't get it to work. >> I have my preambel and include all my chapters with input. After >> typesetting, I highlighted a word with an included file and used >> "Show in PDF-Viewer (pdfsync)", but nothing happens. How ould I get >> this to work, so that I can jump from the code to the pdf and vice >> versa? >> >> Thanks in advance >> Christian > > I don't believe that the pdf viewer included inTextMate works with > pdfsync. Try using Skim. Go to Latex preferences and set "view > in" to Skim. In Skim preferences, set Sync Preset to TextMate. > That should do it! > > Jenny Thanks for the help. Now I am able to switch from the PDF to the code in Textmate. But how could switch from code to the PDF using Skim??? Thanks Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: From bonelake at gmail.com Tue Feb 19 20:20:05 2008 From: bonelake at gmail.com (Brad Miller) Date: Tue, 19 Feb 2008 14:20:05 -0600 Subject: [TxMt] Working with pdfsync in latex In-Reply-To: <033316B9-7A2D-4D07-9C1A-9399302593AE@gmx.de> References: <25F9905D-B638-43C3-B88F-3D68E4E77E01@gmx.de> <4725DB6E-5649-4BEF-AAD1-45625C80C535@math.berkeley.edu> <033316B9-7A2D-4D07-9C1A-9399302593AE@gmx.de> Message-ID: <3044ED87-E012-4D70-A3DD-9745200971F6@gmail.com> Christian, ctrl-option-command-o will switch from code to pdf. It is the show in PDF viewer (pdfsync) command under the latex menu. Brad On Feb 19, 2008, at 2:07 PM, Christian wrote: > Am 15.02.2008 um 23:44 schrieb Jenny Harrison: > >>> I now tried pdfsync and can't get it to work. >>> I have my preambel and include all my chapters with input. After >>> typesetting, I highlighted a word with an included file and used >>> "Show in PDF-Viewer (pdfsync)", but nothing happens. How ould I >>> get this to work, so that I can jump from the code to the pdf and >>> vice versa? >>> >>> Thanks in advance >>> Christian >> >> I don't believe that the pdf viewer included inTextMate works with >> pdfsync. Try using Skim. Go to Latex preferences and set "view >> in" to Skim. In Skim preferences, set Sync Preset to TextMate. >> That should do it! >> >> Jenny > > Thanks for the help. Now I am able to switch from the PDF to the > code in Textmate. But how could switch from code to the PDF using > Skim??? > > Thanks > Christian > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate -------------- next part -------------- An HTML attachment was scrubbed... URL: From cskiadas at gmail.com Tue Feb 19 20:39:55 2008 From: cskiadas at gmail.com (Charilaos Skiadas) Date: Tue, 19 Feb 2008 15:39:55 -0500 Subject: [TxMt] PracTex journal tips, revision control and academic workflow In-Reply-To: References: <22f9535c0802180511k21d3a49h97be561872e8e9c@mail.gmail.com> <78FBB250-1EDD-4A13-8F83-7D8C06E300FE@gmail.com> Message-ID: <88E46885-C374-4C17-8C08-6191F452C159@gmail.com> Hi Jeff, On Feb 19, 2008, at 1:45 PM, Jeff Newman wrote: > Hello Haris, > > On 18-Feb-08, at 9:11 AM, Charilaos Skiadas wrote: > >> For LaTeX documents at least, there is the wonderful latexdiff >> package, which will effectively do word-by-word comparison and >> produce a pdf file for you that shows the differences that have >> occurred in the document in a wonderful way, [snip] > > Do you have latexdiff set up to run as a command from within > textmate? If so would you mind sharing how you got this working to > compare the current version of your book with an archived version > in subversion? Actually the script I have compares the current version with a backed up copy, so it doesn't actually try to resurrect an older subversion version, though in theory it could do that. The script I use follows. I have saved it as an executable .sh file in the same level as my book. It goes through all the tex files in the directory below it, and runs the diff between these and the files in the directory with the backed up version. So it's not a perfect solution, but it does serve my needs. I then run a manual compile on the corresponding book.tex file. Hope this is of some help, at least give you some ideas. Feel free to ask me about it. pushd .. # mkdir bookdiffs FILES=`ls BookChaos2007/*.tex` for file in $FILES do oldfile=${file/BookChaos2007/BookChaos2007Backup12-19-2007/} resfile=${file/BookChaos2007/bookdiffs/} /Users/haris/Desktop/latexdiff/latexdiff-so "$oldfile" $file > $resfile # /Users/haris/Desktop/latexdiff/latexdiff-so --allow-spaces "$oldfile" $file > $resfile done popd > thank you. > > Jeff Haris Skiadas Department of Mathematics and Computer Science Hanover College From nigel at greenlemur.com Tue Feb 19 21:09:43 2008 From: nigel at greenlemur.com (Nigel Green) Date: Tue, 19 Feb 2008 21:09:43 +0000 Subject: [TxMt] Working with pdfsync in latex In-Reply-To: <033316B9-7A2D-4D07-9C1A-9399302593AE@gmx.de> References: <25F9905D-B638-43C3-B88F-3D68E4E77E01@gmx.de> <4725DB6E-5649-4BEF-AAD1-45625C80C535@math.berkeley.edu> <033316B9-7A2D-4D07-9C1A-9399302593AE@gmx.de> Message-ID: On 19 Feb 2008, at 20:07, Christian wrote: > Am 15.02.2008 um 23:44 schrieb Jenny Harrison: > >>> I now tried pdfsync and can't get it to work. >>> I have my preambel and include all my chapters with input. After >>> typesetting, I highlighted a word with an included file and used >>> "Show in PDF-Viewer (pdfsync)", but nothing happens. How ould I >>> get this to work, so that I can jump from the code to the pdf and >>> vice versa? >>> >>> Thanks in advance >>> Christian >> >> I don't believe that the pdf viewer included inTextMate works with >> pdfsync. Try using Skim. Go to Latex preferences and set "view >> in" to Skim. In Skim preferences, set Sync Preset to TextMate. >> That should do it! >> >> Jenny > > Thanks for the help. Now I am able to switch from the PDF to the > code in Textmate. But how could switch from code to the PDF using > Skim??? > > Thanks > Christian > I'm not sure if I'm missing something here, but I can get the other way (from TM to skim), but I can;t see how to get from Skim back to TM. I know this has been covered before, but thought I'd take the chance to ask as the thread was live... Thanks, Nigel From maillists at gmx.de Tue Feb 19 21:10:10 2008 From: maillists at gmx.de (Christian) Date: Tue, 19 Feb 2008 22:10:10 +0100 Subject: [TxMt] Working with pdfsync in latex In-Reply-To: <3044ED87-E012-4D70-A3DD-9745200971F6@gmail.com> References: <25F9905D-B638-43C3-B88F-3D68E4E77E01@gmx.de> <4725DB6E-5649-4BEF-AAD1-45625C80C535@math.berkeley.edu> <033316B9-7A2D-4D07-9C1A-9399302593AE@gmx.de> <3044ED87-E012-4D70-A3DD-9745200971F6@gmail.com> Message-ID: <2A2AB145-2636-426C-8B79-8E500AF24C62@gmx.de> Am 19.02.2008 um 21:20 schrieb Brad Miller: > Christian, > > ctrl-option-command-o will switch from code to pdf. It is the > show in PDF viewer (pdfsync) command under the latex menu. > > Brad That doesnt work. Should it not be somethimh with a click. What latex menu do you mean? Christian From paul.mccann at adelaide.edu.au Tue Feb 19 22:12:03 2008 From: paul.mccann at adelaide.edu.au (Paul McCann) Date: Wed, 20 Feb 2008 08:42:03 +1030 Subject: [TxMt] Working with pdfsync in latex In-Reply-To: <2A2AB145-2636-426C-8B79-8E500AF24C62@gmx.de> References: <25F9905D-B638-43C3-B88F-3D68E4E77E01@gmx.de> <4725DB6E-5649-4BEF-AAD1-45625C80C535@math.berkeley.edu> <033316B9-7A2D-4D07-9C1A-9399302593AE@gmx.de> <3044ED87-E012-4D70-A3DD-9745200971F6@gmail.com> <2A2AB145-2636-426C-8B79-8E500AF24C62@gmx.de> Message-ID: Christian wrote... That doesnt work. Should it not be somethimh with a click. What latex > menu do you mean? The LaTeX entry in the Bundles menu of TextMate. control-option-command-o *is* the correct sequence to jump from wherever you are in TextMate to the corresponding place in Skim. Just to summarise the above thread: you need to have \usepackage{pdfsync} in the preamble of your LaTeX document, you need Skim to be set as your pdf viewer in LaTeX preferences (Bundles => LaTeX => Preferences... in TextMate), and you need to tell Skim that you're working in TextMate (In Skim go to Skim => Preferences... => Sync, and select "TextMate" from the list of presets). That should be enough to give you forward and backward synching: shift-command-click for pdf=>code, and control-option-command-o for code => pdf. Cheers, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From muellerj at gmx.de Tue Feb 19 22:59:06 2008 From: muellerj at gmx.de (=?ISO-8859-1?Q?Jonas_M=FCller?=) Date: Tue, 19 Feb 2008 22:59:06 +0000 Subject: [TxMt] Working with pdfsync in latex In-Reply-To: References: <25F9905D-B638-43C3-B88F-3D68E4E77E01@gmx.de> <4725DB6E-5649-4BEF-AAD1-45625C80C535@math.berkeley.edu> <033316B9-7A2D-4D07-9C1A-9399302593AE@gmx.de> <3044ED87-E012-4D70-A3DD-9745200971F6@gmail.com> <2A2AB145-2636-426C-8B79-8E500AF24C62@gmx.de> Message-ID: > That should be enough to give you forward and backward synching: > shift-command-click for pdf=>code, and control-option-command-o for > code => pdf. In addition, there is the excellent "Latex Watch" Command (bound to ctrl+cmd+w on my machine) which will automatically update the PDF upon a save (which you can set to automatically take place upon TM loosing focus in the TM preferences). In this workflow, you only need cmd+tab to update the pdf and switch to Skim but it assumes that you are already viewing the appropriate section of your pdf. Best, Jonas From eli at markelikalderon.com Wed Feb 20 00:43:58 2008 From: eli at markelikalderon.com (Mark Eli Kalderon) Date: Wed, 20 Feb 2008 00:43:58 +0000 Subject: [TxMt] PracTex journal tips, revision control and academic workflow In-Reply-To: <22f9535c0802181402t75b29a1dp68969c84748eb168@mail.gmail.com> References: <22f9535c0802180511k21d3a49h97be561872e8e9c@mail.gmail.com> <78FBB250-1EDD-4A13-8F83-7D8C06E300FE@gmail.com> <22f9535c0802181402t75b29a1dp68969c84748eb168@mail.gmail.com> Message-ID: <11DC0CFF-3BFF-4D53-9D8A-B9C2006C83C3@markelikalderon.com> On Feb 18 2008, at 22:02, Christoph Held wrote: > > What about any of those tools that claiim to be doing backup/ > mirroring and > versioning of everything (including binary files?) at once such as > Brackup: > http://search.cpan.org/~bradfitz/Brackup-1.06/lib/Brackup/Manual/Overview.pod Backup and version control are different things. If you use version control, say subversion, your repository should also be backed up. Subversion also allows an external diff command. Haris mentioned wdiff, but many GUI diff programs such as FileMerge (which comes along with the Apple Developer Tools) or Changes[1] display word differences along with line differences. Best, Mark [1] http://changesapp.com/ From larmyia at yahoo.com Wed Feb 20 02:03:43 2008 From: larmyia at yahoo.com (L-J Lacey) Date: Tue, 19 Feb 2008 18:03:43 -0800 (PST) Subject: [TxMt] colours in textmate have disappeared Message-ID: <924711.73994.qm@web34412.mail.mud.yahoo.com> Hi! I have searched everywhere I can to find the solution to this, so excuse me if it's available somewhere...I can't find it! What I think happened is that my daughter accidentally pressed "something" and suddenly textmate isn't displaying any colours when I'm coding. I've been to the preference panel, and tried changing the theme. downloaded new themes. nothing works. I can get the colour of the background to change, but none of the text will. It's doing my head in and I'd really appreciate it if anyone knows of a solution. thanks L-J ____________________________________________________________ L-J Lacey subtle as a fish developing websites today for tomorrow http://www.subtleasafish.com/ ___________________________________________________________ Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/ From cristi.baluta at gmail.com Wed Feb 20 03:41:52 2008 From: cristi.baluta at gmail.com (Baluta Cristian) Date: Wed, 20 Feb 2008 05:41:52 +0200 Subject: [TxMt] colours in textmate have disappeared In-Reply-To: <924711.73994.qm@web34412.mail.mud.yahoo.com> References: <924711.73994.qm@web34412.mail.mud.yahoo.com> Message-ID: <7285de060802191941u6279c994ib0647c14f3ee119c@mail.gmail.com> first thing you should do is to delete plist file from file:///Users/cristi/Library/Preferences/com.macromates.textmate.plist On Feb 20, 2008 4:03 AM, L-J Lacey wrote: > Hi! > > I have searched everywhere I can to find the solution to this, so excuse > me if it's available somewhere...I can't find it! > > What I think happened is that my daughter accidentally pressed "something" > and suddenly textmate isn't displaying any colours when I'm coding. I've > been to the preference panel, and tried changing the theme. downloaded new > themes. nothing works. I can get the colour of the background to change, > but none of the text will. It's doing my head in and I'd really appreciate > it if anyone knows of a solution. > > thanks > > L-J > > ____________________________________________________________ > L-J Lacey > > subtle as a fish > developing websites today for tomorrow > > http://www.subtleasafish.com/ > > > > > > ___________________________________________________________ > Support the World Aids Awareness campaign this month with Yahoo! For Good > http://uk.promotions.yahoo.com/forgood/ > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -- Cristi www.ralcr.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigel at greenlemur.com Wed Feb 20 09:33:35 2008 From: nigel at greenlemur.com (Nigel Green) Date: Wed, 20 Feb 2008 09:33:35 +0000 Subject: [TxMt] LaTeX trash aux query Message-ID: Hi, I've just started using Textmate for LaTeX work now that I have managed to get it working nicely with skim (thanks all for the recent thread!). One thing I am confused by (and I couldn't see anything in the archive that mentioned this) is the function of the "trash aux files" command. I've used a similar thing in emacs before to clean up after compiling a PDF from a tex file, but Textmate's version seems to be a bit over- keen and it deletes the compiled PDF file too. Is this correct, or do I need to alter a setting somewhere? I've had a look in the preferences file and options window but I can't see there is a switch in either of those so I presume this is being taken care of by a support script? Any help would be appreciated. Many thanks, Nigel From larmyia at yahoo.com Wed Feb 20 12:31:19 2008 From: larmyia at yahoo.com (L-J Lacey) Date: Wed, 20 Feb 2008 04:31:19 -0800 (PST) Subject: [TxMt] Re: colours in textmate have disappeared Message-ID: <951202.33866.qm@web34408.mail.mud.yahoo.com> Hi Cristi. I did as advised but nothing has changed. any other ideas? thanks ______________________________________________________________________________________________________________ >first thing you should do is to delete plist file from file:///Users/cristi/Library/Preferences/com.macromates.textmate.plist >>On Feb 20, 2008 4:03 AM, L-J Lacey wrote: Hi! I have searched everywhere I can to find the solution to this, so excuse me if it's available somewhere...I can't find it! What I think happened is that my daughter accidentally pressed "something" and suddenly textmate isn't displaying any colours when I'm coding. I've been to the preference panel, and tried changing the theme. downloaded new themes. nothing works. I can get the colour of the background to change, but none of the text will. It's doing my head in and I'd really appreciate it if anyone knows of a solution. thanks L-J __________________________________________________________ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com From roger.roelofs at gmail.com Wed Feb 20 12:44:06 2008 From: roger.roelofs at gmail.com (Roger Roelofs) Date: Wed, 20 Feb 2008 07:44:06 -0500 Subject: [TxMt] Re: colours in textmate have disappeared In-Reply-To: <951202.33866.qm@web34408.mail.mud.yahoo.com> References: <951202.33866.qm@web34408.mail.mud.yahoo.com> Message-ID: <77ADBDB1-6BA4-4BFD-BF1E-A72A5C41394F@gmail.com> L-J, On Feb 20, 2008, at 7:31 AM, L-J Lacey wrote: > --- 8< --- > What I think happened is that my daughter accidentally pressed > "something" and suddenly textmate isn't displaying any colours when > I'm > coding. I've been to the preference panel, and tried changing the > theme. downloaded new themes. nothing works. I can get the colour of > the background to change, but none of the text will. It's doing my > head in and I'd really appreciate it if anyone knows of a solution. What language is showing in the popup at the bottom of the document? Are you getting proper formatting other than color? Roger, -- Roger Roelofs roger.roelofs at gmail.com From tmtxpstuff at consking.com Wed Feb 20 16:58:50 2008 From: tmtxpstuff at consking.com (marios) Date: Wed, 20 Feb 2008 18:58:50 +0200 Subject: [TxMt] TM doesn't have trouble with RE, but I have. Message-ID: <47BC5C4A.4070907@consking.com> Hi there. I'm twiddling here around with a RE problem and was wondering if you could help me. So here is the case. I want do do some tricky Syntax highlight matching, and wanted to have the visual sidebar with the line numbers. So in order to test this, I do inside TM Document window this: (^[^\n]*\n) This seems to work fine, and will select every single line in document window. But is I test the Javascript, which is: linenum: { exp: /(^[^\n]*\n)/, replacement: " 1$1\n" }, It doesn't do the replacement. So I also added a line-break in the replacement-string, after the capture register, as you can see above, but no honey. As you can see, I want to replace every single in the document, with the span instance above plus the Capture Register( Just like the Ruby code does in TM Bundle ), which is the whole line, whether it is empty or not. Any Ideas ? regards, marios From myotisone at gmail.com Wed Feb 20 18:39:40 2008 From: myotisone at gmail.com (Graham Smith) Date: Wed, 20 Feb 2008 18:39:40 +0000 Subject: [TxMt] New Rbundle and absolute beginner questions on how it works Message-ID: <2c75873c0802201039h41621b00saae9733aa58b4f9a@mail.gmail.com> I wonder if someone with a lot of patience can help me with getting the basics of this working. I have downloaded the the three files that Hans-Jorg uploade to this forum, as they don't appear to be in the repository yet. Of the three files only one looked like the other bundle files and I copied it into the same directory where the old RBundle was located. I now have a new set of commands and updated the help index. However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files. I am also being extremely dim in getting things to work. If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime. I would now expect to type "test" in Textmate, hit command R again and get something like: > test [1] 3 4 6 7 8 9 10 in the runtime window. However, what I get is > test Error: object "test" not found Execution halted If I open R and have the RConsole open, then "send selection to r.app" works as expected, but as that has a rather clumsy shortcut key, I assume the shorter command R option is the "normal"way of working I accept my unfamiliarity with TextMate is probably the problem, but I would appreciate someone pointing out the obvious to me. Many thanks, Graham -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.stockman at gmail.com Wed Feb 20 19:05:28 2008 From: daniel.stockman at gmail.com (Daniel Stockman) Date: Wed, 20 Feb 2008 11:05:28 -0800 Subject: [TxMt] TM doesn't have trouble with RE, but I have. In-Reply-To: <47BC5C4A.4070907@consking.com> References: <47BC5C4A.4070907@consking.com> Message-ID: > So here is the case. I want do do some tricky Syntax highlight > matching, > and wanted to have the visual sidebar with the line numbers. > [...] > As you can see, I want to replace every single in the document, with > the > span instance above plus the Capture Register( Just like the Ruby code > does in TM Bundle ), which is the whole line, whether it is empty or > not. Actually, it's really hard to understand what you're aiming at, here. "Just like the Ruby code does in TM Bundle"... uh, which one? What command/snippet are you referring to? I see several ways of adding line numbers to a document (bundle name): - Create HTML From Document / Selection with Line Numbers (TextMate) - Add Line Numbers to Document / Selection (Text) - Option + Command + L will show the line numbers in the gutter... You "want to replace every single"... what? "in the document". And I'm really perplexed by the reference to testing "the JavaScript", which AFAIK isn't what bundles are written/tested/interpreted in. I think more clarification is required so we can understand what exactly you want to do. ~ Daniel From maillists at gmx.de Wed Feb 20 19:46:38 2008 From: maillists at gmx.de (Christian) Date: Wed, 20 Feb 2008 20:46:38 +0100 Subject: [TxMt] Working with pdfsync in latex In-Reply-To: References: <25F9905D-B638-43C3-B88F-3D68E4E77E01@gmx.de> <4725DB6E-5649-4BEF-AAD1-45625C80C535@math.berkeley.edu> <033316B9-7A2D-4D07-9C1A-9399302593AE@gmx.de> <3044ED87-E012-4D70-A3DD-9745200971F6@gmail.com> <2A2AB145-2636-426C-8B79-8E500AF24C62@gmx.de> Message-ID: <267C8A38-634B-4104-8438-C582F782CB91@gmx.de> Am 19.02.2008 um 23:12 schrieb Paul McCann: > That should be enough to give you forward and backward synching: > shift-command-click for pdf=>code, and control-option-command-o for > code => pdf. > > Cheers, > Paul Thanks Paul for the clarification. Now it works fine and I am to pace around... Christian From tmtxpstuff at consking.com Wed Feb 20 20:03:45 2008 From: tmtxpstuff at consking.com (marios) Date: Wed, 20 Feb 2008 22:03:45 +0200 Subject: [TxMt] TM doesn't have trouble with RE, but I have. In-Reply-To: References: <47BC5C4A.4070907@consking.com> Message-ID: <47BC87A1.9010004@consking.com> Daniel Stockman wrote: >> So here is the case. I want do do some tricky Syntax highlight matching, >> and wanted to have the visual sidebar with the line numbers. >> [...] >> As you can see, I want to replace every single in the document, with the >> span instance above plus the Capture Register( Just like the Ruby code >> does in TM Bundle ), which is the whole line, whether it is empty or not. > > Actually, it's really hard to understand what you're aiming at, here. > "Just like the Ruby code does in TM Bundle"... uh, which one? What > command/snippet are you referring to? > > I see several ways of adding line numbers to a document (bundle name): > - Create HTML From Document / Selection with Line Numbers (TextMate) > - Add Line Numbers to Document / Selection (Text) > - Option + Command + L will show the line numbers in the gutter... > > You "want to replace every single"... what? "in the document". And I'm > really perplexed by the reference to testing "the JavaScript", which > AFAIK isn't what bundles are written/tested/interpreted in. > > I think more clarification is required so we can understand what exactly > you want to do. > > ~ Daniel > Sorry for the confusion. Ok, so how do we express ourselves better? Lemmy try once more. The question, that I am asking, is related to Regular Expressions and Javascript. ( So this is not a Support request at all ) I am working on a Plugin for Textpattern, which will use a mootools class, to append the corresponding DOM nodes with the classed span tags. This will all happen after the code that is to be displayed syntax highlighted is already encoded to entities. That works all so far. Now in order to get the same effect as we do have with the Make HTML document from source with Line numbers (Which is located in the TextMate Bundle and uses Ruby for that), yes the one that makes the span tags for the line numbers,I am trying to figure out, why the same Regular expression, that I mentioned in my previous post, would not work, when used as above. ( I even checked the Syntax with Flanagan's Book, also tried global matching but no luck ) So this is the task: Match every beginning of a line, including the first line of the document, and put that in Capture register one, then match every line until the end of the Line, end put that in Capture Register 2, then replace every instance, with some extra Markup (The spantags here ) plus Capture Register 2. This works from within TextMate, but not in Javascript. I hope, this explains better what I meant. regards, marios From paul.mccann at adelaide.edu.au Wed Feb 20 23:29:47 2008 From: paul.mccann at adelaide.edu.au (Paul McCann) Date: Thu, 21 Feb 2008 09:59:47 +1030 Subject: [TxMt] New Rbundle and absolute beginner questions on how it works In-Reply-To: <2c75873c0802201039h41621b00saae9733aa58b4f9a@mail.gmail.com> References: <2c75873c0802201039h41621b00saae9733aa58b4f9a@mail.gmail.com> Message-ID: Hi Graham, > However, I am not at all sure what to do with the other two files (Rdaemon > and R,app) as these don't unzip to bundle files. Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see R Console (Rdaemon).tmbundle which can then be double clicked to add it to TextMate. Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type start[tab] and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console. > If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An > R runtime opens and the command is executed and this line appears in the > runtime. > > I would now expect to type "test" in Textmate, hit command R again and get > something like: > > > test > [1] 3 4 6 7 8 9 10 This should now work as you expect. It's a really nice environment! Good luck, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.kjosmoen at uis.no Thu Feb 21 02:03:17 2008 From: thomas.kjosmoen at uis.no (Thomas Kjosmoen) Date: Wed, 20 Feb 2008 18:03:17 -0800 (PST) Subject: [TxMt] Octave/Matlab bundle In-Reply-To: References: Message-ID: <15603337.post@talk.nabble.com> Ben Abbott wrote: > > I'm interested a bundle that supports Octave's syntax which is nearly > same as Matlab's ... plus a bit more. > > Additional Octave "features" are listed at the link below > > http://www.gnu.org/software/octave/FAQ.html#Octave-Features > > The additional syntax includes > * Comments with the number-sign, "#" > * Strings delimitted by double quotes, ex: "string" > * Line continuation by backslash. > > The Matlab bundle apparently respects single and double quotes, but is > agnostic to line continuation. Thus, the only additional thing needed for > Octave is support of the number-sign for comments. > > I cut the text below from the shell script bundle and pasted it into the > Matlab bundle, and it appears to work properly! > > { name = 'comment.line.number-sign.shell'; > match = '(? captures = { 1 = { name = > 'punctuation.definition.comment.matlab'; }; }; > }, > > Might Matlab's bundle be patched to include this, or should an > independent bundle be introduced for Octave? > > Ben > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > > Hi Ben, Trying again, since Mailman bounced my message. I'm working on a Matlab bundle, and stumbled upon your message here. Well, I just added Octave support, so I'd appreciate if you'd check it out and give me some feedback. When the bundle is good enough I'll submit it to Allan. You can find it here: https://projects.ux.uis.no/projects/show/textmate Hope it's useful. --Thomas -- View this message in context: http://www.nabble.com/Octave-Matlab-bundle-tp15537210p15603337.html Sent from the textmate users mailing list archive at Nabble.com. From sven.axelsson at gmail.com Thu Feb 21 08:33:37 2008 From: sven.axelsson at gmail.com (Sven Axelsson) Date: Thu, 21 Feb 2008 09:33:37 +0100 Subject: [TxMt] TM doesn't have trouble with RE, but I have. In-Reply-To: <47BC87A1.9010004@consking.com> References: <47BC5C4A.4070907@consking.com> <47BC87A1.9010004@consking.com> Message-ID: On 20/02/2008, marios wrote: > So this is the task: > > Match every beginning of a line, including the first line of the > document, and put that in Capture register one, then match every line > until the end of the Line, end put that in Capture Register 2, then > replace every instance, with some extra Markup (The spantags here ) plus > Capture Register 2. > > This works from within TextMate, but not in Javascript. OK, so this really hasn't anything to do with TextMate. Perhaps Javascript won't let you match newline characters? Try this regular expression instead, it may work better: ^(.*)$ -- Sven Axelsson ++++++++++[>++++++++++>+++++++++++>++++++++++>++++++ >++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<. +++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----. From myotisone at gmail.com Thu Feb 21 08:45:20 2008 From: myotisone at gmail.com (Graham Smith) Date: Thu, 21 Feb 2008 08:45:20 +0000 Subject: [TxMt] New Rbundle and absolute beginner questions on how it works In-Reply-To: References: <2c75873c0802201039h41621b00saae9733aa58b4f9a@mail.gmail.com> Message-ID: <2c75873c0802210045p65d39a04p72b543565b2cf46f@mail.gmail.com> Paul, Thanks, that would all seems to make sense. And yes it does seem a nice environment, which played a small part in my decision to buy a Mac. Graham On 20/02/2008, Paul McCann wrote: > > Hi Graham, > > > > However, I am not at all sure what to do with the other two files > > (Rdaemon and R,app) as these don't unzip to bundle files. > > > Fair enough! Looks like those other files *are* zip files but lacked the > extension. To get the Rdaemon version running rename "R" to "R.zip" and > then double click it. You should see > > R Console (Rdaemon).tmbundle > > which can then be double clicked to add it to TextMate. > > Now open a new file, change the language to "R Console (Rdaemon)" from the > selector at the bottom of the window. Type > > start[tab] > > and the daemon should start. There might be a small bug here in that > you'll see two ">" signs. Just delete one of them and begin to enter R > commands as you would in the console. > > > > If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, > > An R runtime opens and the command is executed and this line appears in the > > runtime. > > > > I would now expect to type "test" in Textmate, hit command R again and > > get something like: > > > > > test > > [1] 3 4 6 7 8 9 10 > > > This should now work as you expect. It's a really nice environment! > > Good luck, > Paul > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bangersandmash at gmail.com Thu Feb 21 17:04:07 2008 From: bangersandmash at gmail.com (Jeff Newman) Date: Thu, 21 Feb 2008 12:04:07 -0500 Subject: [TxMt] PracTex journal tips, revision control and academic workflow In-Reply-To: <88E46885-C374-4C17-8C08-6191F452C159@gmail.com> References: <22f9535c0802180511k21d3a49h97be561872e8e9c@mail.gmail.com> <78FBB250-1EDD-4A13-8F83-7D8C06E300FE@gmail.com> <88E46885-C374-4C17-8C08-6191F452C159@gmail.com> Message-ID: > Hi Haris, > The script I use follows. I have saved it as an executable .sh file > in the same level as my book. It goes through all the tex files in > the directory below it, and runs the diff between these and the > files in the directory with the backed up version. So it's not a > perfect solution, but it does serve my needs. Thanks for sharing the script with me. It gave me a few ideas on how I might be able to adjust my workflow. Much appreciated. Jeff. From larmyia at yahoo.com Thu Feb 21 21:40:05 2008 From: larmyia at yahoo.com (L-J Lacey) Date: Thu, 21 Feb 2008 13:40:05 -0800 (PST) Subject: [TxMt] Re: colours in textmate have disappeared Message-ID: <146003.29607.qm@web34408.mail.mud.yahoo.com> thank you roger. you're a superstar. I knew it was something simple but was damned if I could figure it out. the language was on "DIFF" instead of "html" many thanks L-J >What language is showing in the popup at the bottom of the document? >Are you getting proper formatting other than color? >Roger, -- Roger Roelofs roger.roelofs at gmail.com ____________________________________________________________ L-J Lacey subtle as a fish developing websites today for tomorrow http://www.subtleasafish.com/ ----- Original Message ---- From: "textmate-request at lists.macromates.com" To: textmate at lists.macromates.com Sent: Thursday, 21 February, 2008 11:00:05 PM Subject: textmate Digest, Vol 41, Issue 23 Send textmate mailing list submissions to textmate at lists.macromates.com To subscribe or unsubscribe via the World Wide Web, visit http://lists.macromates.com/mailman/listinfo/textmate or, via email, send a message with subject or body 'help' to textmate-request at lists.macromates.com You can reach the person managing the list at textmate-owner at lists.macromates.com When replying, please edit your Subject line so it is more specific than "Re: Contents of textmate digest..." Today's Topics: 1. Re: colours in textmate have disappeared (L-J Lacey) 2. Re: Re: colours in textmate have disappeared (Roger Roelofs) 3. TM doesn't have trouble with RE, but I have. (marios) 4. New Rbundle and absolute beginner questions on how it works (Graham Smith) 5. Re: TM doesn't have trouble with RE, but I have. (Daniel Stockman) 6. Re: Working with pdfsync in latex (Christian) 7. Re: TM doesn't have trouble with RE, but I have. (marios) 8. Re: New Rbundle and absolute beginner questions on how it works (Paul McCann) 9. Re: Octave/Matlab bundle (Thomas Kjosmoen) 10. Re: TM doesn't have trouble with RE, but I have. (Sven Axelsson) 11. Re: New Rbundle and absolute beginner questions on how it works (Graham Smith) -----Inline Message Follows----- Hi Cristi. I did as advised but nothing has changed. any other ideas? thanks ______________________________________________________________________________________________________________ >first thing you should do is to delete plist file from file:///Users/cristi/Library/Preferences/com.macromates.textmate.plist >>On Feb 20, 2008 4:03 AM, L-J Lacey wrote: Hi! I have searched everywhere I can to find the solution to this, so excuse me if it's available somewhere...I can't find it! What I think happened is that my daughter accidentally pressed "something" and suddenly textmate isn't displaying any colours when I'm coding. I've been to the preference panel, and tried changing the theme. downloaded new themes. nothing works. I can get the colour of the background to change, but none of the text will. It's doing my head in and I'd really appreciate it if anyone knows of a solution. thanks L-J __________________________________________________________ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com -----Inline Message Follows----- L-J, On Feb 20, 2008, at 7:31 AM, L-J Lacey wrote: > --- 8< --- > What I think happened is that my daughter accidentally pressed > "something" and suddenly textmate isn't displaying any colours when > I'm > coding. I've been to the preference panel, and tried changing the > theme. downloaded new themes. nothing works. I can get the colour of > the background to change, but none of the text will. It's doing my > head in and I'd really appreciate it if anyone knows of a solution. What language is showing in the popup at the bottom of the document? Are you getting proper formatting other than color? Roger, -- Roger Roelofs roger.roelofs at gmail.com -----Inline Message Follows----- Hi there. I'm twiddling here around with a RE problem and was wondering if you could help me. So here is the case. I want do do some tricky Syntax highlight matching, and wanted to have the visual sidebar with the line numbers. So in order to test this, I do inside TM Document window this: (^[^\n]*\n) This seems to work fine, and will select every single line in document window. But is I test the Javascript, which is: linenum: { exp: /(^[^\n]*\n)/, replacement: " 1$1\n" }, It doesn't do the replacement. So I also added a line-break in the replacement-string, after the capture register, as you can see above, but no honey. As you can see, I want to replace every single in the document, with the span instance above plus the Capture Register( Just like the Ruby code does in TM Bundle ), which is the whole line, whether it is empty or not. Any Ideas ? regards, marios -----Inline Message Follows----- - Create HTML From Document / Selection with Line Numbers (TextMate) - Add Line Numbers to Document / Selection (Text) - Option + Command + L will show the line numbers in the gutter... You "want to replace every single"... what? "in the document". And I'm really perplexed by the reference to testing "the JavaScript", which AFAIK isn't what bundles are written/tested/interpreted in. I think more clarification is required so we can understand what exactly you want to do. ~ Daniel -----Inline Message Follows----- Am 19.02.2008 um 23:12 schrieb Paul McCann: > That should be enough to give you forward and backward synching: > shift-command-click for pdf=>code, and control-option-command-o for > code => pdf. > > Cheers, > Paul Thanks Paul for the clarification. Now it works fine and I am to pace around... Christian -----Inline Message Follows----- - Create HTML From Document / Selection with Line Numbers (TextMate) > - Add Line Numbers to Document / Selection (Text) > - Option + Command + L will show the line numbers in the gutter... > > You "want to replace every single"... what? "in the document". And I'm > really perplexed by the reference to testing "the JavaScript", which > AFAIK isn't what bundles are written/tested/interpreted in. > > I think more clarification is required so we can understand what exactly > you want to do. > > ~ Daniel > Sorry for the confusion. Ok, so how do we express ourselves better? Lemmy try once more. The question, that I am asking, is related to Regular Expressions and Javascript. ( So this is not a Support request at all ) I am working on a Plugin for Textpattern, which will use a mootools class, to append the corresponding DOM nodes with the classed span tags. This will all happen after the code that is to be displayed syntax highlighted is already encoded to entities. That works all so far. Now in order to get the same effect as we do have with the Make HTML document from source with Line numbers (Which is located in the TextMate Bundle and uses Ruby for that), yes the one that makes the span tags for the line numbers,I am trying to figure out, why the same Regular expression, that I mentioned in my previous post, would not work, when used as above. ( I even checked the Syntax with Flanagan's Book, also tried global matching but no luck ) So this is the task: Match every beginning of a line, including the first line of the document, and put that in Capture register one, then match every line until the end of the Line, end put that in Capture Register 2, then replace every instance, with some extra Markup (The spantags here ) plus Capture Register 2. This works from within TextMate, but not in Javascript. I hope, this explains better what I meant. regards, marios -----Inline Message Follows----- I would now expect to type "test" in Textmate, hit command R again and get something like: > test [1] 3 4 6 7 8 9 10 This should now work as you expect. It's a really nice environment! Good luck, Paul -----Inline Message Follows----- { name = 'comment.line.number-sign.shell'; > match = '(? captures = { 1 = { name = > 'punctuation.definition.comment.matlab'; }; }; > }, > > Might Matlab's bundle be patched to include this, or should an > independent bundle be introduced for Octave? > > Ben > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > > Hi Ben, Trying again, since Mailman bounced my message. I'm working on a Matlab bundle, and stumbled upon your message here. Well, I just added Octave support, so I'd appreciate if you'd check it out and give me some feedback. When the bundle is good enough I'll submit it to Allan. You can find it here: https://projects.ux.uis.no/projects/show/textmate Hope it's useful. --Thomas -- View this message in context: http://www.nabble.com/Octave-Matlab-bundle-tp15537210p15603337.html Sent from the textmate users mailing list archive at Nabble.com. -----Inline Message Follows----- On 20/02/2008, marios wrote: > So this is the task: > > Match every beginning of a line, including the first line of the > document, and put that in Capture register one, then match every line > until the end of the Line, end put that in Capture Register 2, then > replace every instance, with some extra Markup (The spantags here ) plus > Capture Register 2. > > This works from within TextMate, but not in Javascript. OK, so this really hasn't anything to do with TextMate. Perhaps Javascript won't let you match newline characters? Try this regular expression instead, it may work better: ^(.*)$ -- Sven Axelsson ++++++++++[>++++++++++>+++++++++++>++++++++++>++++++ >++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<. +++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----. -----Inline Message Follows----- Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see R Console (Rdaemon).tmbundle which can then be double clicked to add it to TextMate. Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type start[tab] and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console. If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime. I would now expect to type "test" in Textmate, hit command R again and get something like: > test [1] 3 4 6 7 8 9 10 This should now work as you expect. It's a really nice environment! Good luck, Paul ______________________________________________________________________ For new threads USE THIS: textmate at lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate _______________________________________________ textmate mailing list textmate at lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmateHi Cristi. I did as advised but nothing has changed. any other ideas? thanks ______________________________________________________________________________________________________________ >first thing you should do is to delete plist file from file:///Users/cristi/Library/Preferences/com.macromates.textmate.plist >>On Feb 20, 2008 4:03 AM, L-J Lacey wrote: Hi! I have searched everywhere I can to find the solution to this, so excuse me if it's available somewhere...I can't find it! What I think happened is that my daughter accidentally pressed "something" and suddenly textmate isn't displaying any colours when I'm coding. I've been to the preference panel, and tried changing the theme. downloaded new themes. nothing works. I can get the colour of the background to change, but none of the text will. It's doing my head in and I'd really appreciate it if anyone knows of a solution. thanks L-J __________________________________________________________ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com L-J, On Feb 20, 2008, at 7:31 AM, L-J Lacey wrote: > --- 8< --- > What I think happened is that my daughter accidentally pressed > "something" and suddenly textmate isn't displaying any colours when > I'm > coding. I've been to the preference panel, and tried changing the > theme. downloaded new themes. nothing works. I can get the colour of > the background to change, but none of the text will. It's doing my > head in and I'd really appreciate it if anyone knows of a solution. What language is showing in the popup at the bottom of the document? Are you getting proper formatting other than color? Roger, -- Roger Roelofs roger.roelofs at gmail.com Hi there. I'm twiddling here around with a RE problem and was wondering if you could help me. So here is the case. I want do do some tricky Syntax highlight matching, and wanted to have the visual sidebar with the line numbers. So in order to test this, I do inside TM Document window this: (^[^\n]*\n) This seems to work fine, and will select every single line in document window. But is I test the Javascript, which is: linenum: { exp: /(^[^\n]*\n)/, replacement: " 1$1\n" }, It doesn't do the replacement. So I also added a line-break in the replacement-string, after the capture register, as you can see above, but no honey. As you can see, I want to replace every single in the document, with the span instance above plus the Capture Register( Just like the Ruby code does in TM Bundle ), which is the whole line, whether it is empty or not. Any Ideas ? regards, marios -----Inline Attachment Follows----- I wonder if someone with a lot of patience can help me with getting the basics of this working. I have downloaded the the three files that Hans-Jorg uploade to this forum, as they don't appear to be in the repository yet. Of the three files only one looked like the other bundle files and I copied it into the same directory where the old RBundle was located. I now have a new set of commands and updated the help index. However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files. I am also being extremely dim in getting things to work. If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime. I would now expect to type "test" in Textmate, hit command R again and get something like: > test [1] 3 4 6 7 8 9 10 in the runtime window. However, what I get is > test Error: object "test" not found Execution halted If I open R and have the RConsole open, then "send selection to r.app" works as expected, but as that has a rather clumsy shortcut key, I assume the shorter command R option is the "normal"way of working I accept my unfamiliarity with TextMate is probably the problem, but I would appreciate someone pointing out the obvious to me. Many thanks, Graham > So here is the case. I want do do some tricky Syntax highlight > matching, > and wanted to have the visual sidebar with the line numbers. > [...] > As you can see, I want to replace every single in the document, with > the > span instance above plus the Capture Register( Just like the Ruby code > does in TM Bundle ), which is the whole line, whether it is empty or > not. Actually, it's really hard to understand what you're aiming at, here. "Just like the Ruby code does in TM Bundle"... uh, which one? What command/snippet are you referring to? I see several ways of adding line numbers to a document (bundle name): - Create HTML From Document / Selection with Line Numbers (TextMate) - Add Line Numbers to Document / Selection (Text) - Option + Command + L will show the line numbers in the gutter... You "want to replace every single"... what? "in the document". And I'm really perplexed by the reference to testing "the JavaScript", which AFAIK isn't what bundles are written/tested/interpreted in. I think more clarification is required so we can understand what exactly you want to do. ~ Daniel Am 19.02.2008 um 23:12 schrieb Paul McCann: > That should be enough to give you forward and backward synching: > shift-command-click for pdf=>code, and control-option-command-o for > code => pdf. > > Cheers, > Paul Thanks Paul for the clarification. Now it works fine and I am to pace around... Christian Daniel Stockman wrote: >> So here is the case. I want do do some tricky Syntax highlight matching, >> and wanted to have the visual sidebar with the line numbers. >> [...] >> As you can see, I want to replace every single in the document, with the >> span instance above plus the Capture Register( Just like the Ruby code >> does in TM Bundle ), which is the whole line, whether it is empty or not. > > Actually, it's really hard to understand what you're aiming at, here. > "Just like the Ruby code does in TM Bundle"... uh, which one? What > command/snippet are you referring to? > > I see several ways of adding line numbers to a document (bundle name): > - Create HTML From Document / Selection with Line Numbers (TextMate) > - Add Line Numbers to Document / Selection (Text) > - Option + Command + L will show the line numbers in the gutter... > > You "want to replace every single"... what? "in the document". And I'm > really perplexed by the reference to testing "the JavaScript", which > AFAIK isn't what bundles are written/tested/interpreted in. > > I think more clarification is required so we can understand what exactly > you want to do. > > ~ Daniel > Sorry for the confusion. Ok, so how do we express ourselves better? Lemmy try once more. The question, that I am asking, is related to Regular Expressions and Javascript. ( So this is not a Support request at all ) I am working on a Plugin for Textpattern, which will use a mootools class, to append the corresponding DOM nodes with the classed span tags. This will all happen after the code that is to be displayed syntax highlighted is already encoded to entities. That works all so far. Now in order to get the same effect as we do have with the Make HTML document from source with Line numbers (Which is located in the TextMate Bundle and uses Ruby for that), yes the one that makes the span tags for the line numbers,I am trying to figure out, why the same Regular expression, that I mentioned in my previous post, would not work, when used as above. ( I even checked the Syntax with Flanagan's Book, also tried global matching but no luck ) So this is the task: Match every beginning of a line, including the first line of the document, and put that in Capture register one, then match every line until the end of the Line, end put that in Capture Register 2, then replace every instance, with some extra Markup (The spantags here ) plus Capture Register 2. This works from within TextMate, but not in Javascript. I hope, this explains better what I meant. regards, marios However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files. Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see R Console (Rdaemon).tmbundle which can then be double clicked to add it to TextMate. Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type start[tab] and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console. If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime. I would now expect to type "test" in Textmate, hit command R again and get something like: > test [1] 3 4 6 7 8 9 10 This should now work as you expect. It's a really nice environment! Good luck, Paul Ben Abbott wrote: > > I'm interested a bundle that supports Octave's syntax which is nearly > same as Matlab's ... plus a bit more. > > Additional Octave "features" are listed at the link below > > http://www.gnu.org/software/octave/FAQ.html#Octave-Features > > The additional syntax includes > * Comments with the number-sign, "#" > * Strings delimitted by double quotes, ex: "string" > * Line continuation by backslash. > > The Matlab bundle apparently respects single and double quotes, but is > agnostic to line continuation. Thus, the only additional thing needed for > Octave is support of the number-sign for comments. > > I cut the text below from the shell script bundle and pasted it into the > Matlab bundle, and it appears to work properly! > > { name = 'comment.line.number-sign.shell'; > match = '(? captures = { 1 = { name = > 'punctuation.definition.comment.matlab'; }; }; > }, > > Might Matlab's bundle be patched to include this, or should an > independent bundle be introduced for Octave? > > Ben > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > > Hi Ben, Trying again, since Mailman bounced my message. I'm working on a Matlab bundle, and stumbled upon your message here. Well, I just added Octave support, so I'd appreciate if you'd check it out and give me some feedback. When the bundle is good enough I'll submit it to Allan. You can find it here: https://projects.ux.uis.no/projects/show/textmate Hope it's useful. --Thomas -- View this message in context: http://www.nabble.com/Octave-Matlab-bundle-tp15537210p15603337.html Sent from the textmate users mailing list archive at Nabble.com. On 20/02/2008, marios wrote: > So this is the task: > > Match every beginning of a line, including the first line of the > document, and put that in Capture register one, then match every line > until the end of the Line, end put that in Capture Register 2, then > replace every instance, with some extra Markup (The spantags here ) plus > Capture Register 2. > > This works from within TextMate, but not in Javascript. OK, so this really hasn't anything to do with TextMate. Perhaps Javascript won't let you match newline characters? Try this regular expression instead, it may work better: ^(.*)$ -- Sven Axelsson ++++++++++[>++++++++++>+++++++++++>++++++++++>++++++ >++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<. +++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----. -----Inline Attachment Follows----- Paul, Thanks, that would all seems to make sense. And yes it does seem a nice environment, which played a small part in my decision to buy a Mac. Graham On 20/02/2008, Paul McCann wrote: Hi Graham, However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files. Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see R Console (Rdaemon).tmbundle which can then be double clicked to add it to TextMate. Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type start[tab] and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console. If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime. I would now expect to type "test" in Textmate, hit command R again and get something like: > test [1] 3 4 6 7 8 9 10 This should now work as you expect. It's a really nice environment! Good luck, Paul ______________________________________________________________________ For new threads USE THIS: textmate at lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate ___________________________________________________________ Rise to the challenge for Sport Relief with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/ From tmtxpstuff at consking.com Fri Feb 22 04:42:08 2008 From: tmtxpstuff at consking.com (marios) Date: Fri, 22 Feb 2008 06:42:08 +0200 Subject: [TxMt] TM doesn't have trouble with RE, but I have. In-Reply-To: References: <47BC5C4A.4070907@consking.com> <47BC87A1.9010004@consking.com> Message-ID: <47BE52A0.4010306@consking.com> Sven Axelsson wrote: > On 20/02/2008, marios wrote: >> So this is the task: >> >> Match every beginning of a line, including the first line of the >> document, and put that in Capture register one, then match every line >> until the end of the Line, end put that in Capture Register 2, then >> replace every instance, with some extra Markup (The spantags here ) plus >> Capture Register 2. >> >> This works from within TextMate, but not in Javascript. > > OK, so this really hasn't anything to do with TextMate. Perhaps > Javascript won't let you match newline characters? Try this regular > expression instead, it may work better: > > ^(.*)$ > That finally didn't work, but I've good news: This finally works: pattern: /^(\n)|(\n)/, replacement: "$2" What is interesting to not here, is that this, if I'm not mistaken is the only way to achieve this. ( Took me about 2 hours to figure this out ) The first part of the RE will take care of the one line that gets lost by the second part. Sounds weird. Here is what I have now: http://www.consking.com/screenshots/Texari_light.png ( Also a little tricky was to get the alignment of the line-numbers right ) I call it TeXarI Light. ( A lite version of Texari ) ( Looks almost like TextMate, doesn't it ? ) regrds, marios From matt at tidbits.com Fri Feb 22 20:15:04 2008 From: matt at tidbits.com (Matt Neuburg) Date: Fri, 22 Feb 2008 12:15:04 -0800 Subject: [TxMt] how to output like RubyMate? Message-ID: I've got a Ruby script here, and I'd like its output to act like RubyMate's output - it should appear progressively as I call "puts" or "p" or whatever. In fact, I'd like the output to piggyback on whatever RubyMate is doing. But the script is not being run under RubyMate because it's part of a small bundle I've written myself and the place we're starting is a .txt file anyway (in other words, I've written a bundle that processes .txt files using a Ruby script). I'm betting there is some easy way to tell the bundle command that calls this Ruby script to output like RubyMate. What would that be? Thx - m. -- matt neuburg, phd = matt at tidbits.com, A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: AppleScript: the Definitive Guide - Second Edition! From myotisone at gmail.com Sat Feb 23 17:55:19 2008 From: myotisone at gmail.com (Graham Smith) Date: Sat, 23 Feb 2008 17:55:19 +0000 Subject: [TxMt] quartz() device interactivity reduced without an event loop manager with RBundle Message-ID: <2c75873c0802230955s74969272k7a8c2f4cef3448fe@mail.gmail.com> Still fighting on trying to get this to work. New problem now that I have got all the bundles installed and now X11 and CarbonEL is the error message in the subject When I create a plot the quartz window opens but freezes with the spinning beachball. Hopefully someone can help me again. Thanks, Graham -------------- next part -------------- An HTML attachment was scrubbed... URL: From shin.kurokawa at gmail.com Sat Feb 23 19:32:33 2008 From: shin.kurokawa at gmail.com (shin kurokawa) Date: Sat, 23 Feb 2008 14:32:33 -0500 Subject: [TxMt] Xcode ext.editor issues Message-ID: <8ffee5ac0802231132g2288312bl1efe3cd26d5e24e2@mail.gmail.com> Assigning Textmate as the external editor, it works as expected for several projects. Double-clicking on a file name within Xcode will open it in Textmate. Then all of a sudden, files clicked in the Xcode project menu no longer open --- instead Xcode will pop up an error message saying it cannot find the files and the "perhaps it has been moved" thing. If I then disable Textmate as the external editor, everything will work fine again. This does not happen if I assign BBE instead of Textmate. Perhaps I've missed something. What am I doing wrong here? -Shin From paul.mccann at adelaide.edu.au Sat Feb 23 22:48:48 2008 From: paul.mccann at adelaide.edu.au (Paul McCann) Date: Sun, 24 Feb 2008 09:18:48 +1030 Subject: [TxMt] quartz() device interactivity reduced without an event loop manager with RBundle In-Reply-To: <2c75873c0802230955s74969272k7a8c2f4cef3448fe@mail.gmail.com> References: <2c75873c0802230955s74969272k7a8c2f4cef3448fe@mail.gmail.com> Message-ID: Hi Graham, Still fighting on trying to get this to work. New problem now that I have > got all the bundles installed and now X11 and CarbonEL is the error message > in the subject > When I create a plot the quartz window opens but freezes with the spinning > beachball. This sounds like what would happen if "CarbonEL" isn't available (see the "Graphics" subsection, and the "Troubleshooting & FAQ" section from the Rdaemon help file). With the R daemon running --or in the console of the usual R application, outside of TextMate-- you should be able to enter install.packages("CarbonEL") to obtain it. (Note that it is install.packages with an "s" on the end; the command in the troubleshooting section of the Rdaemon help file suggests the singular form, which doesn't work.) If this absence isn't the problem I'm out of my depth!! Cheers, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From myotisone at gmail.com Sat Feb 23 22:57:21 2008 From: myotisone at gmail.com (Graham Smith) Date: Sat, 23 Feb 2008 22:57:21 +0000 Subject: [TxMt] quartz() device interactivity reduced without an event loop manager with RBundle In-Reply-To: References: <2c75873c0802230955s74969272k7a8c2f4cef3448fe@mail.gmail.com> Message-ID: <2c75873c0802231457q3787ba85pad4143a885aa4139@mail.gmail.com> Paul, Thanks. CarbonEL was installed, it wasn't initially, but my first error message related to it not being installed. However, for reasons I don't understand it now seems to be working. I am still getting the error message, but no spinning beach ball, and I now have access to the graphic. Also very useful to know about the "s", as I couldn't get CarbonEL to install with TextMate and ended up installing it directly with R. Graham On 23/02/2008, Paul McCann wrote: > > Hi Graham, > > Still fighting on trying to get this to work. New problem now that I have > > got all the bundles installed and now X11 and CarbonEL is the error message > > in the subject > > When I create a plot the quartz window opens but freezes with the > > spinning beachball. > > > This sounds like what would happen if "CarbonEL" isn't available (see the > "Graphics" subsection, and the "Troubleshooting & FAQ" section from the > Rdaemon help file). With the R daemon running --or in the console of the > usual R application, outside of TextMate-- you should be able to enter > > install.packages("CarbonEL") > > to obtain it. (Note that it is install.packages with an "s" on the end; > the command in the troubleshooting section of the Rdaemon help file suggests > the singular form, which doesn't work.) If this absence isn't the problem > I'm out of my depth!! > > Cheers, > Paul > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -------------- next part -------------- An HTML attachment was scrubbed... URL: From innodb at gmail.com Sun Feb 24 05:19:08 2008 From: innodb at gmail.com (S. Moon) Date: Sun, 24 Feb 2008 14:19:08 +0900 Subject: [TxMt] User authentication when pushing in Mercurial bundle Message-ID: <535fd1950802232119k31a461am3dadb4693fc26700@mail.gmail.com> While switching from the terminal version of Mercurial to the Mercurial bundle, I have found out that it doesn't seem to support user authentication. While many repos do not use authentication, the one I am working on uses authentication when pushing to the central repo. Am I missing something, or is it simply something that isn't supported? Your very best, Sangwhan From bibiko at eva.mpg.de Sun Feb 24 12:53:46 2008 From: bibiko at eva.mpg.de (=?ISO-8859-1?Q?Hans-J=F6rg_Bibiko?=) Date: Sun, 24 Feb 2008 13:53:46 +0100 Subject: [TxMt] quartz() device interactivity reduced without an event loop manager with RBundle In-Reply-To: <2c75873c0802231457q3787ba85pad4143a885aa4139@mail.gmail.com> References: <2c75873c0802230955s74969272k7a8c2f4cef3448fe@mail.gmail.com> <2c75873c0802231457q3787ba85pad4143a885aa4139@mail.gmail.com> Message-ID: <5A806DB2-7B51-48E7-9B5C-5A9F0C6EA883@eva.mpg.de> Hi, sorry for the delay but I was abroad. On 23.02.2008, at 23:57, Graham Smith wrote: > CarbonEL was installed, it wasn't initially, but my first error > message related to it not being installed. Actually 'libarary(CarbonEL)' will be executed while starting the Rdaemon. If the library wasn't found Rdaemon prompts an error message ? la 'Error in library(CarbonEL) : there is no package called ?CarbonEL?' > I am still getting the error message, but no spinning beach ball, > and I now have access to the graphic. Warning message: In quartz() : quartz() device interactivity reduced without an event loop manager This is a WARNING message, NOT an error message. This message will be printed out if 'quartz()' will be invoked and it couldn't find an 'AQUA' (R.app) environment regardless CarbonEL. > Also very useful to know about the "s", as I couldn't get CarbonEL > to install with TextMate and ended up installing it directly with R. Sorry! It is only a simple typo. Of course, the correct command is install.packages('CarbonEL') It'll be fixed in the next release. --Hans From myotisone at gmail.com Sun Feb 24 14:25:37 2008 From: myotisone at gmail.com (Graham Smith) Date: Sun, 24 Feb 2008 14:25:37 +0000 Subject: [TxMt] quartz() device interactivity reduced without an event loop manager with RBundle In-Reply-To: <5A806DB2-7B51-48E7-9B5C-5A9F0C6EA883@eva.mpg.de> References: <2c75873c0802230955s74969272k7a8c2f4cef3448fe@mail.gmail.com> <2c75873c0802231457q3787ba85pad4143a885aa4139@mail.gmail.com> <5A806DB2-7B51-48E7-9B5C-5A9F0C6EA883@eva.mpg.de> Message-ID: <2c75873c0802240625x793f2c96qd425fff441cef603@mail.gmail.com> Hans, Thanks for your reply, as you suggest the first error was because CarbonEL wasn't anywhere on my computer, and easily fixed. I hadn't appreciated the important difference between error and warning. However, it all seems to be working now and very nice it is too. Graham On 24/02/2008, Hans-J?rg Bibiko wrote: > > Hi, sorry for the delay but I was abroad. > > > On 23.02.2008, at 23:57, Graham Smith wrote: > > CarbonEL was installed, it wasn't initially, but my first error > > message related to it not being installed. > > Actually 'libarary(CarbonEL)' will be executed while starting the > Rdaemon. If the library wasn't found Rdaemon prompts an error message > ? la 'Error in library(CarbonEL) : there is no package called > 'CarbonEL'' > > > > I am still getting the error message, but no spinning beach ball, > > and I now have access to the graphic. > > Warning message: > In quartz() : > quartz() device interactivity reduced without an event loop manager > > This is a WARNING message, NOT an error message. > > This message will be printed out if 'quartz()' will be invoked and it > couldn't find an 'AQUA' (R.app) environment regardless CarbonEL. > > > > Also very useful to know about the "s", as I couldn't get CarbonEL > > to install with TextMate and ended up installing it directly with R. > > Sorry! It is only a simple typo. Of course, the correct command is > install.packages('CarbonEL') > > It'll be fixed in the next release. > > > > > > --Hans > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ld at ldaley.com Mon Feb 25 00:53:14 2008 From: ld at ldaley.com (Luke Daley) Date: Mon, 25 Feb 2008 10:53:14 +1000 Subject: [TxMt] how to output like RubyMate? In-Reply-To: References: Message-ID: <86549EFB-605A-4C25-8198-4ABAF04EFB0F@ldaley.com> On 23/02/2008, at 6:15 AM, Matt Neuburg wrote: > I've got a Ruby script here, and I'd like its output to act like > RubyMate's > output - it should appear progressively as I call "puts" or "p" or > whatever. > In fact, I'd like the output to piggyback on whatever RubyMate is > doing. > > But the script is not being run under RubyMate because it's part of > a small > bundle I've written myself and the place we're starting is a .txt file > anyway (in other words, I've written a bundle that processes .txt > files > using a Ruby script). > > I'm betting there is some easy way to tell the bundle command that > calls > this Ruby script to output like RubyMate. What would that be? Thx - m. Check out RubyMate itself and /Applications/TextMate.app/Contents/ SharedSupport/Support/lib/scriptmate.rb LD. From matt at tidbits.com Mon Feb 25 17:50:04 2008 From: matt at tidbits.com (Matt Neuburg) Date: Mon, 25 Feb 2008 09:50:04 -0800 Subject: [TxMt] Re: how to output like RubyMate? References: <86549EFB-605A-4C25-8198-4ABAF04EFB0F@ldaley.com> Message-ID: On 2/24/08 4:53 PM, in article 86549EFB-605A-4C25-8198-4ABAF04EFB0F at ldaley.com, "Luke Daley" wrote: > > On 23/02/2008, at 6:15 AM, Matt Neuburg wrote: > >> I've got a Ruby script here, and I'd like its output to act like >> RubyMate's >> output - it should appear progressively as I call "puts" or "p" or >> whatever. >> In fact, I'd like the output to piggyback on whatever RubyMate is >> doing. >> >> But the script is not being run under RubyMate because it's part of >> a small >> bundle I've written myself and the place we're starting is a .txt file >> anyway (in other words, I've written a bundle that processes .txt >> files >> using a Ruby script). >> >> I'm betting there is some easy way to tell the bundle command that >> calls >> this Ruby script to output like RubyMate. What would that be? Thx - m. > > Check out RubyMate itself and /Applications/TextMate.app/Contents/ > SharedSupport/Support/lib/scriptmate.rb Obviously, but I was hoping for actual instructions. m. -- matt neuburg, phd = matt at tidbits.com, A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: AppleScript: the Definitive Guide - Second Edition! From katokop1 at gmail.com Mon Feb 25 19:02:32 2008 From: katokop1 at gmail.com (Jonathan Ragan-Kelley) Date: Mon, 25 Feb 2008 14:02:32 -0500 Subject: [TxMt] ExpanDrive for remote projects over SSH: snappy (at last) Message-ID: <4eca92670802251102m23bd87d3wcbd5617f78967e23@mail.gmail.com> Hello all, As a long-time TextMate user I'm well aware of the issues working with projects on remote filesystems -- I have been doing it day in and day out for just over three years now, using different combinations of tools. Like many of you, I've used Transmit for quick single-file edits and MacFusion/sshfs for heavier remote work for the past year or more, and they work well enough to be productive, but with well-known frustrations (latency, connection resilience). Lately I'm using ExpanDrive (http://www.magnetk.com/expandrive), which just launched officially. Same transport (SSH/SFTP), but with very aggressive caching and intelligent connection management under the hood. Together, they make it *way* snappier than sshfs on even high-latency links, and allow your mounts to stay live on finicky or intermittent connections, even as you sleep your laptop one place and wake it hours later on an entirely different network. It's a from-scratch new filesystem, not just a GUI for sshfs (though it does use the MacFUSE core), so its performance and stability are quite unlike what you may be used to. Of particular note (and this was a goal in development), the caching works well enough to largely eliminate the TextMate project focus lag problems we're all so familiar with by now, even over long-distance connections. (Full disclosure: I am tangentially connected with this project.) I think some of you will quite like it. -jrk From ld at ldaley.com Mon Feb 25 22:24:54 2008 From: ld at ldaley.com (Luke Daley) Date: Tue, 26 Feb 2008 08:24:54 +1000 Subject: [TxMt] ExpanDrive for remote projects over SSH: snappy (at last) In-Reply-To: <4eca92670802251102m23bd87d3wcbd5617f78967e23@mail.gmail.com> References: <4eca92670802251102m23bd87d3wcbd5617f78967e23@mail.gmail.com> Message-ID: On 26/02/2008, at 5:02 AM, Jonathan Ragan-Kelley wrote: > Lately I'm using ExpanDrive (http://www.magnetk.com/expandrive), which > just launched officially. Same transport (SSH/SFTP), but with very > aggressive caching and intelligent connection management under the > hood. Together, they make it *way* snappier than sshfs on even > high-latency links, and allow your mounts to stay live on finicky or > intermittent connections, even as you sleep your laptop one place and > wake it hours later on an entirely different network. Downloading atm. If it works like it says it does ... Best. Thing. Ever. LD. From ld at ldaley.com Mon Feb 25 22:26:53 2008 From: ld at ldaley.com (Luke Daley) Date: Tue, 26 Feb 2008 08:26:53 +1000 Subject: [TxMt] Re: how to output like RubyMate? In-Reply-To: References: <86549EFB-605A-4C25-8198-4ABAF04EFB0F@ldaley.com> Message-ID: <53CDDD53-91AF-4A98-8D30-9947B311358A@ldaley.com> On 26/02/2008, at 3:50 AM, Matt Neuburg wrote: >> Check out RubyMate itself and /Applications/TextMate.app/Contents/ >> SharedSupport/Support/lib/scriptmate.rb > > Obviously, but I was hoping for actual instructions. m. I don't think there are any instructions per se. I have just finished a RubyMate like implementation, so if you want to ask questions about it jump on the irc channel. LD. From xcambar at gmail.com Tue Feb 26 00:11:48 2008 From: xcambar at gmail.com (Xavier Cambar) Date: Tue, 26 Feb 2008 01:11:48 +0100 Subject: [TxMt] Missing Drawer : New Version Message-ID: <509303A5-374B-499E-8BAB-351D483F8931@gmail.com> hi, Although I'm in no way related to the project, I'd like to inform that the MissingDrawer plugin has been updated. The changes are not yet significant, but the best is that the development of that oh-so-good plugin starts again, and we can so expect many new features coming to us! Maybe my dreams of a 'Expand/Collapse all' option will soon come true... URL: http://jannisleidel.com/2008/02/missingdrawer/ Regards, XC -------------- next part -------------- An HTML attachment was scrubbed... URL: From fredb7 at gmail.com Tue Feb 26 01:49:32 2008 From: fredb7 at gmail.com (Fred B) Date: Tue, 26 Feb 2008 02:49:32 +0100 Subject: [TxMt] User authentication when pushing in Mercurial bundle In-Reply-To: <535fd1950802232119k31a461am3dadb4693fc26700@mail.gmail.com> References: <535fd1950802232119k31a461am3dadb4693fc26700@mail.gmail.com> Message-ID: <925F9B65-E2CA-4FBB-B9CA-AF294CFDAA75@gmail.com> On 24 Feb 2008, at 06:19, S. Moon wrote: > While switching from the terminal version of Mercurial to the > Mercurial bundle, I have found out that it doesn't seem to support > user authentication. While many repos do not use authentication, the > one I am working on uses authentication when pushing to the central > repo. > > Am I missing something, or is it simply something that isn't > supported? Hi Sangwhan, What kind of authentication are you talking about? SSH, HTTP(S)? -- FredB From innodb at gmail.com Tue Feb 26 03:18:36 2008 From: innodb at gmail.com (S. Moon) Date: Tue, 26 Feb 2008 12:18:36 +0900 Subject: [TxMt] User authentication when pushing in Mercurial bundle In-Reply-To: <925F9B65-E2CA-4FBB-B9CA-AF294CFDAA75@gmail.com> References: <535fd1950802232119k31a461am3dadb4693fc26700@mail.gmail.com> <925F9B65-E2CA-4FBB-B9CA-AF294CFDAA75@gmail.com> Message-ID: <47C3850C.4090806@gmail.com> Fred B wrote: > On 24 Feb 2008, at 06:19, S. Moon wrote: > >> While switching from the terminal version of Mercurial to the >> Mercurial bundle, I have found out that it doesn't seem to support >> user authentication. While many repos do not use authentication, the >> one I am working on uses authentication when pushing to the central >> repo. >> >> Am I missing something, or is it simply something that isn't supported? > > Hi Sangwhan, > > What kind of authentication are you talking about? > > SSH, HTTP(S)? > > -- FredB > I believe it's HTTP authentication. This is what I get when I use hg on a console. http authorization required realm: mercurial.intuxication.org user: cynthia -Sangwhan Moon > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From fredb7 at gmail.com Tue Feb 26 15:06:13 2008 From: fredb7 at gmail.com (Fred B) Date: Tue, 26 Feb 2008 16:06:13 +0100 Subject: [TxMt] User authentication when pushing in Mercurial bundle In-Reply-To: <47C3850C.4090806@gmail.com> References: <535fd1950802232119k31a461am3dadb4693fc26700@mail.gmail.com> <925F9B65-E2CA-4FBB-B9CA-AF294CFDAA75@gmail.com> <47C3850C.4090806@gmail.com> Message-ID: On 26 Feb 2008, at 04:18, S. Moon wrote: > Fred B wrote: >> On 24 Feb 2008, at 06:19, S. Moon wrote: >>> While switching from the terminal version of Mercurial to the >>> Mercurial bundle, I have found out that it doesn't seem to support >>> user authentication. >> What kind of authentication are you talking about? >> SSH, HTTP(S)? > I believe it's HTTP authentication. Username and password are asked interactively on the command line, I can't see an easy way to include this functionality in the bundle. If someone have an idea or a patch, feel free to contact me. OT: mercurial.intuxication.org is nice, I created an hg repo of the bundle here: http://mercurial.intuxication.org/hg/mercurial-tmbundle/ Now you can: mkdir -p /Library/Application\ Support/TextMate/Bundles cd !$ hg clone http://mercurial.intuxication.org/hg/mercurial-tmbundle Mercurial.tmbundle osascript -e 'tell app "TextMate" to reload bundles' From lists at johnmuhl.com Tue Feb 26 17:01:58 2008 From: lists at johnmuhl.com (john muhl) Date: Tue, 26 Feb 2008 10:01:58 -0700 Subject: [TxMt] ExpanDrive for remote projects over SSH: snappy (at last) In-Reply-To: <4eca92670802251102m23bd87d3wcbd5617f78967e23@mail.gmail.com> References: <4eca92670802251102m23bd87d3wcbd5617f78967e23@mail.gmail.com> Message-ID: <523A37BB-2188-407B-9306-2FAE59450301@johnmuhl.com> Looks nice, as a mac user I've envied SFTPDrive for a while. I've just one question for you (or anyone willing to help). How do you keep TextMate from removing read access (except for the connected users) on every file saved? This makes quick editing of web-accessible files pretty time consuming from TM. I don't have this problem with TextMate+ [MacFuse|NFS|AFP|WebDAV], just TextMate+ExpanDrive. I also don't have this problem with [Dashcode|TextEdit|Xcode]+ExpanDrive. thanks john On 2008/02/25, at 12:02, Jonathan Ragan-Kelley wrote: > Hello all, > > As a long-time TextMate user I'm well aware of the issues working with > projects on remote filesystems -- I have been doing it day in and day > out for just over three years now, using different combinations of > tools. Like many of you, I've used Transmit for quick single-file > edits and MacFusion/sshfs for heavier remote work for the past year or > more, and they work well enough to be productive, but with well-known > frustrations (latency, connection resilience). > > Lately I'm using ExpanDrive (http://www.magnetk.com/expandrive), which > just launched officially. Same transport (SSH/SFTP), but with very > aggressive caching and intelligent connection management under the > hood. Together, they make it *way* snappier than sshfs on even > high-latency links, and allow your mounts to stay live on finicky or > intermittent connections, even as you sleep your laptop one place and > wake it hours later on an entirely different network. > > It's a from-scratch new filesystem, not just a GUI for sshfs (though > it does use the MacFUSE core), so its performance and stability are > quite unlike what you may be used to. Of particular note (and this was > a goal in development), the caching works well enough to largely > eliminate the TextMate project focus lag problems we're all so > familiar with by now, even over long-distance connections. > > (Full disclosure: I am tangentially connected with this project.) > > I think some of you will quite like it. > -jrk > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From steve at riverocktech.com Wed Feb 27 03:58:29 2008 From: steve at riverocktech.com (Steve Kickert) Date: Tue, 26 Feb 2008 21:58:29 -0600 Subject: [TxMt] Find not responding the mouse Message-ID: <9b8e0b810802261958i4e1de522k626666a7c5b24c96@mail.gmail.com> I am hoping that this has been reported a work around available... We often have the Textmate 'Find in Project' results become unresponsive to mouse clicks. The only way to fix it is to restart Textmate. This also occurs occasionally with the 'Go to Symbol' window as well. Has anyone else had this happen. We have it on three different machines. -- Steve Kickert CEO Riverock Technologies www.riverocktech.com 952-232-5280 (direct) 612-965-1909 (mobile) -------------- next part -------------- An HTML attachment was scrubbed... URL: From tnyplz at gmail.com Wed Feb 27 04:42:05 2008 From: tnyplz at gmail.com (Tony Pelaez) Date: Tue, 26 Feb 2008 20:42:05 -0800 Subject: [TxMt] Blogging Bundle Timeout::Error in Leopard Message-ID: I finally figured out what was giving me the timeout error in Leopard, when trying to do anything with the blogging bundle. It was an issue related to my router (an actiontec GT704WG supplied by Verizon) that only had problems with Leopard and not 10.4. Here is the solution (I stumbled upon this when trying to troubleshoot an issue connecting with adium as well): 1. Visit the router's configuration page and make note of the DNS server IP's (there should be 2 or three of them). Each router will be different on how you need to access the info, so use google if you don't know. 2. Open network preferences, click on the connection you are using and select advanced. 3. Click on the DNS tab and add the DNS entries that you got from your router. (Your router's IP should already be listed there.) 4. You should now be able to connect. http://forums.cocoaforge.com/viewtopic.php?t=16614&highlight=visit+routers+configuration+make+note+dns+server+ips+++three+router+different+access+info+google Once I followed those steps the problem was solved. What a relief! I look forward to using the blogging bundle now! Thanks again for all your help. Tony On Jan 18, 2008, at 3:51 AM, Tony Pelaez wrote: > Though I have been successful at getting the blogging bundle to work > in Tiger, when I try to run it in Leopard and fetch a post I get the > following error: > > > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ > 1.8/timeout.rb:54:in `open': execution expired (Timeout::Error) > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/net/http.rb:564:in `connect' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/timeout.rb:56:in `timeout' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/timeout.rb:76:in `timeout' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/net/http.rb:564:in `connect' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/net/http.rb:557:in `do_start' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/net/http.rb:546:in `start' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/net/http.rb:1044:in `request' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/net/http.rb:1001:in `post2' > ... 9 levels... > from /Library/Application Support/TextMate/Support/lib/ui.rb:17:in > `dialog' > from /Library/Application Support/TextMate/Support/lib/progress.rb: > 42:in `call_with_progress' > from /Library/Application Support/TextMate/Bundles/ > Blogging.tmbundle/Support/lib/blogging.rb:551:in `fetch' > from /tmp/temp_textmate.b0oDWV:3 > > has anyone been able to get the blogging bundle to work in Leopard? > > My System: > OS X v. 10.5.1 > iMac Intel Core Duo > ruby 1.8.6 > wordpress 2.3 > > Any insight you can provide will be greatly appreciated. > > Tony > From throw-away-2 at macromates.com Wed Feb 27 08:36:41 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 27 Feb 2008 09:36:41 +0100 Subject: [TxMt] Find not responding the mouse In-Reply-To: <9b8e0b810802261958i4e1de522k626666a7c5b24c96@mail.gmail.com> References: <9b8e0b810802261958i4e1de522k626666a7c5b24c96@mail.gmail.com> Message-ID: On 27 Feb 2008, at 04:58, Steve Kickert wrote: > I am hoping that this has been reported a work around available... > > We often have the Textmate 'Find in Project' results become > unresponsive to > mouse clicks [...] This is a known problem and seems to happen when intermittently using external monitors (and would be an OS bug): http://lists.macromates.com/pipermail/textmate/2007-June/020625.html From throw-away-2 at macromates.com Wed Feb 27 08:41:40 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 27 Feb 2008 09:41:40 +0100 Subject: [TxMt] User authentication when pushing in Mercurial bundle In-Reply-To: References: <535fd1950802232119k31a461am3dadb4693fc26700@mail.gmail.com> <925F9B65-E2CA-4FBB-B9CA-AF294CFDAA75@gmail.com> <47C3850C.4090806@gmail.com> Message-ID: On 26 Feb 2008, at 16:06, Fred B wrote: > [...] > Username and password are asked interactively on the command line, I > can't see an easy way to include this functionality in the bundle. > If someone have an idea or a patch, feel free to contact me. Luke Daley just checked in some code under Review/Tools which allow a process to monitor when the monitored process reads from stdin (actually, it brings up a requester as it is now). The intent of the code is to have a generalized way to let scripts run via the ScriptMate derivatives be able to read from stdin (and prompt the user), but I think this will work quite well for learning when hg, svn, git, etc. prompts the user for name/password. In the Subversion bundle there is code that tries to learn this based on the output text from svn, but it is flakey at best. While we will start by having commands manually use this code, I imagine this will eventually just be an(other) input source for commands. From throw-away-2 at macromates.com Wed Feb 27 08:42:30 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 27 Feb 2008 09:42:30 +0100 Subject: [TxMt] Missing Drawer : New Version In-Reply-To: <509303A5-374B-499E-8BAB-351D483F8931@gmail.com> References: <509303A5-374B-499E-8BAB-351D483F8931@gmail.com> Message-ID: <773887C3-6377-4897-8BD3-38274E7F9D9E@macromates.com> On 26 Feb 2008, at 01:11, Xavier Cambar wrote: > [...] > Maybe my dreams of a 'Expand/Collapse all' option will soon come > true... You can option-click a disclosure triangle to have all children collapsed/expanded. Might not be exactly the function you request, but very close. From throw-away-2 at macromates.com Wed Feb 27 08:45:23 2008 From: throw-away-2 at macromates.com (Allan Odgaard) Date: Wed, 27 Feb 2008 09:45:23 +0100 Subject: [TxMt] "Find" doesn't work when searching Java API docs In-Reply-To: <0508C9A2-2112-49D1-9226-166CC3BE437B@gmail.com> References: <6CC11ECB-B354-4DD3-B42E-08460611DF92@macromates.com> <0508C9A2-2112-49D1-9226-166CC3BE437B@gmail.com> Message-ID: <548DE61C-8901-48B6-9E36-4749B58A38E4@macromates.com> On 17 Feb 2008, at 07:02, Armon Dadgar wrote: > Searching documents and projects works fine. The Java API is the > only thing I use with some frequency. What I wanted was for you to test some other ?document? in the HTML output window (used for the Java documentation). For me searching in the HTML output window works fine for what I tested (I do not have the Java documentation installed, so did not test that) ? it might be a problem with how this Java documentation is structured (frames) making it search e.g. only the main/active frame. So please try if you can reproduce this with something besides the Java documentation, but in the HTML output window. Select for example Bundles ? LaTeX ? Help and search in that document. > On Feb 16, 2008, at 9:32 AM, Allan Odgaard wrote: > >> On 13 Feb 2008, at 09:56, Armon Dadgar wrote: >> >>> Does anyone else experience problems when searching the java api? >>> Here is an example of what happens: >>> [...] >>> 5. Pressing the next button or Apple-G does nothing. >> >> I tried Markdown ? Preview and used the Find dialog?s Next >> button and the ?G shortcut, both worked fine. >> >> Can you try it with something other than the Java API? >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From ono at java.pl Wed Feb 27 11:39:53 2008 From: ono at java.pl (Adam Strzelecki) Date: Wed, 27 Feb 2008 12:39:53 +0100 Subject: [TxMt] TM leaks memory in Find in Project, can Find in Project work in separate thread? Message-ID: Hello, It seems that TM is leaking memory in Find in Project (probably in OakDocument), it is NOT visible when working with small projects, but with bigger it grows RSIZE memory infinitely. Steps to reproduce: $ mate /Developer/Documentation ... then Find in Project for "test". In Performance Monitor watch as RSIZE grows above 1GB after about one minute. My Mac is MacBook Pro 2.2Ghz 2GB RAM, 10.5.2. I think it has something to do with OakDocument that is created for all searched files in the list, also for some non-text files. I just spotted that TM is not freeing RSIZE (nor VM) after closing some huge binary files like .pch (VC binary) or so. (Libraries). It may have something to do with that. It may have something to do with my former mail about big files with single line inside. Currently I work with some huge C/C++ projects, and lately searching for any file ends up with TM eating all my memory. BTW. Can't Find in Project work in separate thread? Like: when pressing [Find] in the Find in Project, [Find] button is made inactive, below appears spinning wheel icon "Working...", and below we may have [Stop] button that appears only when thread is active. I often use this, but it hangs TM for a while, moreover it is not possible to interrupt it. Best regards, -- Adam Strzelecki |: nanoant.com :| From dd at dyce.com Wed Feb 27 11:49:28 2008 From: dd at dyce.com (Richard Dyce) Date: Wed, 27 Feb 2008 11:49:28 +0000 Subject: [TxMt] Simple query... Message-ID: <2235FC9E-AEFE-482A-8ADF-3C1BCF1556DD@dyce.com> ... am I missing something? Can't seem to find a bundle for handling XSLT tags. Is there one? Thought I'd ask before I started to knock one up. R Richard Dyce MA (Cantab.) MBCS MIET | Director Richard Dyce Consultants Ltd. Business Consultancy | Training | Systems | Bespoke Applications Programming MySQL, PHP, JavaScript, FileMaker, AppleScript Studio Contact: Add me to your address book Web: http://dyce.com Bio: http://www.linkedin.com/in/rjdyce Registered Number: 4890568 VAT Number: 825 3090 44 Registered Office 9 Friary Gardens Winchester SO23 9AF Incorporated in England and Wales. Confidentiality Notice The contents of this e-mail and any attachments are intended for the named addressee only and may be confidential. Unless you are the named addressee or authorised to receive the e-mail of the named addressee you may not disclose, use or copy the contents of the e-mail. If you received the e-mail in error, please contact the sender immediately and then delete the e-mail. Richard Dyce Consultants Ltd. does not accept responsibility for this message and any views or opinions contained in this e-mail are solely those of the author unless expressly stated otherwise. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ono at java.pl Wed Feb 27 11:51:56 2008 From: ono at java.pl (Adam Strzelecki) Date: Wed, 27 Feb 2008 12:51:56 +0100 Subject: [TxMt] TM tokenizer is taking 100% CPU for long while using 100-200KB text files with single line References: <30DE02AD-D76A-4B49-94AF-2E684C7AC161@nanoant.com> Message-ID: <1F4CAF8E-0657-409F-AE59-A83DFD9446F3@java.pl> Hello, I've sent a mail to Allan regarding the problem, but I want to share also this problem with all of you subscribed to the TM list. Maybe you have also encountered this? I'm working with few auto-generated FO (XML) files that have no line- breaks. You can reproduce such dummy file with: $ cd /tmp $ perl -e '{print "" x 20000}' > test.html $ mate test.html As you see TM gonna take 100% CPU for a really long-long while until you get syntax highlight. Also any modification (line-break) causes TM to take again 100% CPU for a while. I'm aware it is rare case to work with such files, but is there any remedy for this problem? I have soft-wrap turned on, also using System Monitor I can see that it is tokenizer thread that is taking the whole CPU. Regards, -- Adam Strzelecki |: nanoant.com :| From andy at hexten.net Wed Feb 27 11:56:42 2008 From: andy at hexten.net (Andy Armstrong) Date: Wed, 27 Feb 2008 11:56:42 +0000 Subject: [TxMt] Simple query... In-Reply-To: <2235FC9E-AEFE-482A-8ADF-3C1BCF1556DD@dyce.com> References: <2235FC9E-AEFE-482A-8ADF-3C1BCF1556DD@dyce.com> Message-ID: Do you really need all that boilerplate to post to a mailing list? :) On 27 Feb 2008, at 11:49, Richard Dyce wrote: > Richard Dyce MA (Cantab.) MBCS MIET | Director > > Richard Dyce Consultants Ltd. > Business Consultancy | Training | Systems | Bespoke Applications > Programming > MySQL, PHP, JavaScript, FileMaker, AppleScript Studio > > Contact: Add me to your address book > Web: http://dyce.com > Bio: http://www.linkedin.com/in/rjdyce > > Registered Number: 4890568 > VAT Number: 825 3090 44 > Registered Office > 9 Friary Gardens Winchester SO23 9AF > Incorporated in England and Wales. > > Confidentiality Notice > The contents of this e-mail and any attachments are intended for the > named addressee only and may be confidential. Unless you are the > named addressee or authorised to receive the e-mail of the named > addressee you may not disclose, use or copy the contents of the e- > mail. If you received the e-mail in error, please contact the sender > immediately and then delete the e-mail. Richard Dyce Consultants > Ltd. does not accept responsibility for this message and any views > or opinions contained in this e-mail are solely those of the author > unless expressly stated otherwise. -- Andy Armstrong, Hexten From bibiko at eva.mpg.de Wed Feb 27 11:56:00 2008 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Wed, 27 Feb 2008 12:56:00 +0100 Subject: [TxMt] Simple query... In-Reply-To: <2235FC9E-AEFE-482A-8ADF-3C1BCF1556DD@dyce.com> References: <2235FC9E-AEFE-482A-8ADF-3C1BCF1556DD@dyce.com> Message-ID: XSL syntax is defined within the XML bundle There's also a wonderful plug-in available. See more http://www.ditchnet.org/xslmate/ --Hans On 27 Feb 2008, at 12:49, Richard Dyce wrote: > ... am I missing something? Can't seem to find a bundle for > handling XSLT tags. Is there one? > > Thought I'd ask before I started to knock one up. > From ok at ryotic.de Wed Feb 27 12:00:13 2008 From: ok at ryotic.de (Oktay Acikalin) Date: Wed, 27 Feb 2008 13:00:13 +0100 Subject: [TxMt] Find in Project to skip binary files? Message-ID: hi :) is it possible to skip binary files with "Find in Project"? as we have many big files like videos and images in our projects this not only eats up a great amount of memory but is also slow. it also doesn't make any sense to us since we want to search within the sourcecode and not some videos or images :). excluding those folders was a solution for some projects but we can't do it for all of them. regards, oktay. From dd at dyce.com Wed Feb 27 12:01:49 2008 From: dd at dyce.com (Richard Dyce) Date: Wed, 27 Feb 2008 12:01:49 +0000 Subject: [TxMt] Simple query... In-Reply-To: References: <2235FC9E-AEFE-482A-8ADF-3C1BCF1556DD@dyce.com> Message-ID: <0EF70422-6AB2-42A7-8B44-5E30BC923B0E@dyce.com> No, sorry - just switched machines, and didn't think to look at default sig. Not having a good day at all. R On 27 Feb 2008, at 11:56, Andy Armstrong wrote: > Do you really need all that boilerplate to post to a mailing list? :) -- Richard Dyce MA (Cantab.) MBCS MIET -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.kobschaetzki at googlemail.com Wed Feb 27 12:03:13 2008 From: n.kobschaetzki at googlemail.com (Niels Kobschaetzki) Date: Wed, 27 Feb 2008 13:03:13 +0100 Subject: [TxMt] TM tokenizer is taking 100% CPU for long while using 100-200KB text files with single line In-Reply-To: <1F4CAF8E-0657-409F-AE59-A83DFD9446F3@java.pl> References: <30DE02AD-D76A-4B49-94AF-2E684C7AC161@nanoant.com> <1F4CAF8E-0657-409F-AE59-A83DFD9446F3@java.pl> Message-ID: On Wed, Feb 27, 2008 at 12:51 PM, Adam Strzelecki wrote: > Hello, > > I've sent a mail to Allan regarding the problem, but I want to share > also this problem with all of you subscribed to the TM list. Maybe you > have also encountered this? > > I'm working with few auto-generated FO (XML) files that have no line- > breaks. > > You can reproduce such dummy file with: > $ cd /tmp > $ perl -e '{print "" x 20000}' > test.html > $ mate test.html > > As you see TM gonna take 100% CPU for a really long-long while until > you get syntax highlight. > Also any modification (line-break) causes TM to take again 100% CPU > for a while. Interesting -- TM should get optimized for two cores?most of the workload is done by 1 core ans from time to time one see peaks in the other core but never anything beyond 100% (I would have expected nearly 200% cpu-load) Niels From dd at dyce.com Wed Feb 27 12:08:23 2008 From: dd at dyce.com (Richard Dyce) Date: Wed, 27 Feb 2008 12:08:23 +0000 Subject: [TxMt] Simple query... In-Reply-To: References: <2235FC9E-AEFE-482A-8ADF-3C1BCF1556DD@dyce.com> Message-ID: Hans, Nice!!! Still, I was looking more for snippets and code-completion... R On 27 Feb 2008, at 11:56, Hans-Joerg Bibiko wrote: > XSL syntax is defined within the XML bundle > > There's also a wonderful plug-in available. See more > > http://www.ditchnet.org/xslmate/ > > --Hans -- Richard Dyce MA (Cantab.) MBCS MIET -------------- next part -------------- An HTML attachment was scrubbed... URL: From bibiko at eva.mpg.de Wed Feb 27 12:11:18 2008 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Wed, 27 Feb 2008 13:11:18 +0100 Subject: [TxMt] TM tokenizer is taking 100% CPU for long while using 100-200KB text files with single line In-Reply-To: <1F4CAF8E-0657-409F-AE59-A83DFD9446F3@java.pl> References: <30DE02AD-D76A-4B49-94AF-2E684C7AC161@nanoant.com> <1F4CAF8E-0657-409F-AE59-A83DFD9446F3@java.pl> Message-ID: <1F3297FA-2D2E-4965-8933-924934EDD4CD@eva.mpg.de> On 27 Feb 2008, at 12:51, Adam Strzelecki wrote: > I've sent a mail to Allan regarding the problem, but I want to > share also this problem with all of you subscribed to the TM list. > Maybe you have also encountered this? > > I'm working with few auto-generated FO (XML) files that have no > line-breaks. > > You can reproduce such dummy file with: > $ cd /tmp > $ perl -e '{print "" x 20000}' > test.html > $ mate test.html If I do this test.html pops up in a second. My settings are Soft wrap is On AND! Check Spelling as you type is OFF. But then you get into troubles while editing. In such a case where a XML file contains only one long line I use a tiny perl script which replaces any closing tag by the closing tag itself plus '\n' before I pipe the text to mate. --Hans From ono at java.pl Wed Feb 27 12:47:23 2008 From: ono at java.pl (Adam Strzelecki) Date: Wed, 27 Feb 2008 13:47:23 +0100 Subject: [TxMt] TM tokenizer is taking 100% CPU for long while using 100-200KB text files with single line In-Reply-To: <1F3297FA-2D2E-4965-8933-924934EDD4CD@eva.mpg.de> References: <30DE02AD-D76A-4B49-94AF-2E684C7AC161@nanoant.com> <1F4CAF8E-0657-409F-AE59-A83DFD9446F3@java.pl> <1F3297FA-2D2E-4965-8933-924934EDD4CD@eva.mpg.de> Message-ID: > If I do this test.html pops up in a second. > My settings are Soft wrap is On AND! Check Spelling as you type is > OFF. > But then you get into troubles while editing. This is exactly what I'm trying to emphasize. When I use: $ perl -e '{print "" x 20000}' > test.html File loads immediately but TM takes 100% CPU for few minutes then syntax highlight appears. When I use: $ perl -e '{print "\n" x 20000}' > test.html (Note the \n) File loads immediately together with syntax highlight, no 100% CPU. So I think there's definitely something wrong with syntax highlight (tokenizer). I remember compiler & parser construction lessons on my university, and the lexer & parser performance shouldn't matter of line breaks. Regards, -- Adam Strzelecki |: nanoant.com :| From xcambar at gmail.com Wed Feb 27 13:11:31 2008 From: xcambar at gmail.com (Xavier Cambar) Date: Wed, 27 Feb 2008 14:11:31 +0100 Subject: [TxMt] Missing Drawer : New Version In-Reply-To: <773887C3-6377-4897-8BD3-38274E7F9D9E@macromates.com> References: <509303A5-374B-499E-8BAB-351D483F8931@gmail.com> <773887C3-6377-4897-8BD3-38274E7F9D9E@macromates.com> Message-ID: > Might not be exactly the function you request, but very close. So close, in deed, it will easily fit my needs! Thank you, Allan. Quick and efficient, as usual. From sven.axelsson at gmail.com Wed Feb 27 13:53:16 2008 From: sven.axelsson at gmail.com (Sven Axelsson) Date: Wed, 27 Feb 2008 14:53:16 +0100 Subject: [TxMt] TM tokenizer is taking 100% CPU for long while using 100-200KB text files with single line In-Reply-To: References: <30DE02AD-D76A-4B49-94AF-2E684C7AC161@nanoant.com> <1F4CAF8E-0657-409F-AE59-A83DFD9446F3@java.pl> <1F3297FA-2D2E-4965-8933-924934EDD4CD@eva.mpg.de> Message-ID: On 27/02/2008, Adam Strzelecki wrote: > When I use: > $ perl -e '{print "\n" x 20000}' > test.html > (Note the \n) > File loads immediately together with syntax highlight, no 100% CPU. > > So I think there's definitely something wrong with syntax highlight > (tokenizer). > I remember compiler & parser construction lessons on my university, > and the lexer & parser performance shouldn't matter of line breaks. But in TextMate the syntax highlighter (and more) is line-based and works with regular expressions and not a precompiled lexer/parser, so, yes, the line length does matter. -- Sven Axelsson ++++++++++[>++++++++++>+++++++++++>++++++++++>++++++ >++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<. +++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----. From ono at java.pl Wed Feb 27 14:59:06 2008 From: ono at java.pl (Adam Strzelecki) Date: Wed, 27 Feb 2008 15:59:06 +0100 Subject: [TxMt] TM tokenizer is taking 100% CPU for long while using 100-200KB text files with single line In-Reply-To: References: <30DE02AD-D76A-4B49-94AF-2E684C7AC161@nanoant.com> <1F4CAF8E-0657-409F-AE59-A83DFD9446F3@java.pl> <1F3297FA-2D2E-4965-8933-924934EDD4CD@eva.mpg.de> Message-ID: <03FD3B2F-0696-46A0-B01C-3618AEBE3954@java.pl> Hello, > But in TextMate the syntax highlighter (and more) is line-based and > works with regular expressions and not a precompiled lexer/parser, so, > yes, the line length does matter. I thought length doesn't matter ;) Anyway I'm not convinced :) I agree that precompiled lexer/parser is simply faster, however I don't see the point that regexp tokenizer works 1000x slower on file that has single 200'000 characters line, rather than 20000 x 10 character lines (while both files are exactly same size,... ouch, faster one is slightly bigger because of extra \n ;P) I hope TM compiles its regular expressions just once, moreover execute single regexp made from merge of all regexp, rather all regular expressions separately. With this belief and fact that compiled regexp is an automaton similar to the one in pre-compiled parsers & lexers, line length shouldn't IMHO matter. So if it does, there's a place for optimization. Cheers, -- Adam Strzelecki |: nanoant.com :| From timcharper at gmail.com Wed Feb 27 15:14:22 2008 From: timcharper at gmail.com (Tim Harper) Date: Wed, 27 Feb 2008 08:14:22 -0700 Subject: [TxMt] Missing Drawer : New Version In-Reply-To: References: <509303A5-374B-499E-8BAB-351D483F8931@gmail.com> <773887C3-6377-4897-8BD3-38274E7F9D9E@macromates.com> Message-ID: <594586A3-6E20-445E-9EEE-D381F1A36CF2@gmail.com> Hey, that is totally wicked! I didn't know about this handy shortcut, and have been wanting to do something of the likes for some time :) (I loved this feature about eclipse) Any chance there's a shortcut or two to focus the drawer and select the root folder, or something of the likes? ;) Tim On Feb 27, 2008, at 6:11 AM, Xavier Cambar wrote: >> Might not be exactly the function you request, but very close. > > > So close, in deed, it will easily fit my needs! > > Thank you, Allan. Quick and efficient, as usual. > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From peter.haza at gmail.com Wed Feb 27 15:34:59 2008 From: peter.haza at gmail.com (Peter Haza) Date: Wed, 27 Feb 2008 16:34:59 +0100 Subject: [TxMt] Simple query... In-Reply-To: References: <2235FC9E-AEFE-482A-8ADF-3C1BCF1556DD@dyce.com> Message-ID: <3612E059-CD72-4DA4-A320-19F2E0C4522E@gmail.com> I began on this once, but didn't get very far, but it's a start. Feel free to correct and add more features though, just remember to post it back here :) ph On Feb 27, 2008, at 1:08 PM, Richard Dyce wrote: > Hans, > > Nice!!! > > Still, I was looking more for snippets and code-completion... > > R > > On 27 Feb 2008, at 11:56, Hans-Joerg Bibiko wrote: > >> XSL syntax is defined within the XML bundle >> >> There's also a wonderful plug-in available. See more >> >> http://www.ditchnet.org/xslmate/ >> >> --Hans > > > -- > Richard Dyce MA (Cantab.) MBCS MIET > > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: XSL.tmbundle.zip Type: application/zip Size: 8908 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From cskiadas at gmail.com Wed Feb 27 15:50:34 2008 From: cskiadas at gmail.com (Charilaos Skiadas) Date: Wed, 27 Feb 2008 10:50:34 -0500 Subject: [TxMt] TM tokenizer is taking 100% CPU for long while using 100-200KB text files with single line In-Reply-To: <03FD3B2F-0696-46A0-B01C-3618AEBE3954@java.pl> References: <30DE02AD-D76A-4B49-94AF-2E684C7AC161@nanoant.com> <1F4CAF8E-0657-409F-AE59-A83DFD9446F3@java.pl> <1F3297FA-2D2E-4965-8933-924934EDD4CD@eva.mpg.de> <03FD3B2F-0696-46A0-B01C-3618AEBE3954@java.pl> Message-ID: <7C2C7DC7-37CF-4DC1-BFEA-D8153B9CB0DB@gmail.com> You missed the "line-based" part. This means that each regular expression must be checked against each entire line. Unless I'm mistaken, the time taken by any regexp mechanism is going to be much more than linear in the length of the string, probably exponential in the worst case. On the other hand, if you test it on strings of fixed length, it will be linear on the number of strings tested, which is the second case you described. In other words, when using a line- based system it takes longer to process a single string, that to process many strings of small length. So it is not so much a question of compiling, the timing is very different because newlines do matter, the parser matches single lines via regular expressions. The longer the line, the harder it is to determine if one of the regular expressions matches the whole line or not. If the parser was ignoring newlines, it would mean that every regexp would need to be tested against the entire document every single moment. This would be an even worse slowdown. Allan is certainly aware of this slowdown on long lines, it is definitely in the top 5 complaints. If there was an easy solution, that doesn't sacrifice on the richness of the highlighting and the flexibility in user customization of it, it would probably have already been implemented. Haris Skiadas Department of Mathematics and Computer Science Hanover College On Feb 27, 2008, at 9:59 AM, Adam Strzelecki wrote: > Hello, > >> But in TextMate the syntax highlighter (and more) is line-based and >> works with regular expressions and not a precompiled lexer/parser, >> so, >> yes, the line length does matter. > > I thought length doesn't matter ;) > > Anyway I'm not convinced :) I agree that precompiled lexer/parser > is simply faster, however I don't see the point that regexp > tokenizer works 1000x slower on file that has single 200'000 > characters line, rather than 20000 x 10 character lines (while both > files are exactly same size,... ouch, faster one is slightly bigger > because of extra \n ;P) > > I hope TM compiles its regular expressions just once, moreover > execute single regexp made from merge of all regexp, rather all > regular expressions separately. > With this belief and fact that compiled regexp is an automaton > similar to the one in pre-compiled parsers & lexers, line length > shouldn't IMHO matter. > So if it does, there's a place for optimization. > > Cheers, > -- > Adam Strzelecki |: nanoant.com :| From armon.dadgar at gmail.com Wed Feb 27 16:50:34 2008 From: armon.dadgar at gmail.com (Armon Dadgar) Date: Wed, 27 Feb 2008 08:50:34 -0800 Subject: [TxMt] "Find" doesn't work when searching Java API docs In-Reply-To: <548DE61C-8901-48B6-9E36-4749B58A38E4@macromates.com> References: <6CC11ECB-B354-4DD3-B42E-08460611DF92@macromates.com> <0508C9A2-2112-49D1-9226-166CC3BE437B@gmail.com> <548DE61C-8901-48B6-9E36-4749B58A38E4@macromates.com> Message-ID: The search works in the Latex Help menu. Interestingly enough, though the JavaDoc does use frames, the find command does find the first occurrence of the string in any frame. The find used to work for the javadoc, but I didn't pay attention if Leopard or a new TM broke this. On Feb 27, 2008, at 12:45 AM, Allan Odgaard wrote: > On 17 Feb 2008, at 07:02, Armon Dadgar wrote: > >> Searching documents and projects works fine. The Java API is the >> only thing I use with some frequency. > > What I wanted was for you to test some other ?document? in the > HTML output window (used for the Java documentation). > > For me searching in the HTML output window works fine for what I > tested (I do not have the Java documentation installed, so did not > test that) ? it might be a problem with how this Java documentation > is structured (frames) making it search e.g. only the main/active > frame. > > So please try if you can reproduce this with something besides the > Java documentation, but in the HTML output window. Select for > example Bundles ? LaTeX ? Help and search in that document. > > > > >> On Feb 16, 2008, at 9:32 AM, Allan Odgaard wrote: >> >>> On 13 Feb 2008, at 09:56, Armon Dadgar wrote: >>> >>>> Does anyone else experience problems when searching the java api? >>>> Here is an example of what happens: >>>> [...] >>>> 5. Pressing the next button or Apple-G does nothing. >>> >>> I tried Markdown ? Preview and used the Find dialog?s Next >>> button and the ?G shortcut, both worked fine. >>> >>> Can you try it with something other than the Java API? >>> >>> >>> ______________________________________________________________________ >>> For new threads USE THIS: textmate at lists.macromates.com >>> (threading gets destroyed and the universe will collapse if you >>> don't) >>> http://lists.macromates.com/mailman/listinfo/textmate >> >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From martinstromlists at gmail.com Wed Feb 27 19:24:10 2008 From: martinstromlists at gmail.com (=?ISO-8859-1?Q?Martin_Str=F6m?=) Date: Wed, 27 Feb 2008 20:24:10 +0100 Subject: [TxMt] Missing Drawer : New Version In-Reply-To: <594586A3-6E20-445E-9EEE-D381F1A36CF2@gmail.com> References: <509303A5-374B-499E-8BAB-351D483F8931@gmail.com> <773887C3-6377-4897-8BD3-38274E7F9D9E@macromates.com> <594586A3-6E20-445E-9EEE-D381F1A36CF2@gmail.com> Message-ID: FYI: The option-clicking to expand/collapse the full tree works in (almost) all OSX apps that use the tree view, including Finder. Ciao Martin my-domain.se 2008/2/27 Tim Harper : > Hey, that is totally wicked! I didn't know about this handy shortcut, > and have been wanting to do something of the likes for some time :) (I > loved this feature about eclipse) > > Any chance there's a shortcut or two to focus the drawer and select > the root folder, or something of the likes? ;) > > Tim > > > > On Feb 27, 2008, at 6:11 AM, Xavier Cambar wrote: > > >> Might not be exactly the function you request, but very close. > > > > > > So close, in deed, it will easily fit my needs! > > > > Thank you, Allan. Quick and efficient, as usual. > > > > > > ______________________________________________________________________ > > For new threads USE THIS: textmate at lists.macromates.com > > (threading gets destroyed and the universe will collapse if you don't) > > http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -- burnfield.com/martin From prion67 at googlemail.com Fri Feb 29 14:27:39 2008 From: prion67 at googlemail.com (Christoph Held) Date: Fri, 29 Feb 2008 15:27:39 +0100 Subject: [TxMt] PracTex journal tips, revision control and academic workflow In-Reply-To: <11DC0CFF-3BFF-4D53-9D8A-B9C2006C83C3@markelikalderon.com> References: <22f9535c0802180511k21d3a49h97be561872e8e9c@mail.gmail.com> <78FBB250-1EDD-4A13-8F83-7D8C06E300FE@gmail.com> <22f9535c0802181402t75b29a1dp68969c84748eb168@mail.gmail.com> <11DC0CFF-3BFF-4D53-9D8A-B9C2006C83C3@markelikalderon.com> Message-ID: <22f9535c0802290627r4bcd44d0lda076ec54a5aae7@mail.gmail.com> Thanks for the recommendation, changes.app does look nice. I will definitely check it out once I have upgraded to Leopard. FileMerge on the other hand does not play nice with accented characters, Umlauts etc. If that can be cured I'd be interested to hear about it. Thanks for all the answers, I was without internet for a couple of days (and actually enjoyed it). On Wed, Feb 20, 2008 at 1:43 AM, Mark Eli Kalderon wrote: > > On Feb 18 2008, at 22:02, Christoph Held wrote: > > > > > What about any of those tools that claiim to be doing backup/ > > mirroring and > > versioning of everything (including binary files?) at once such as > > Brackup: > > > http://search.cpan.org/~bradfitz/Brackup-1.06/lib/Brackup/Manual/Overview.pod > > Backup and version control are different things. If you use version > control, say subversion, your repository should also be backed up. > > Subversion also allows an external diff command. Haris mentioned > wdiff, but many GUI diff programs such as FileMerge (which comes along > with the Apple Developer Tools) or Changes[1] display word differences > along with line differences. > > Best, Mark > > [1] http://changesapp.com/ > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.clark at umb.edu Fri Feb 29 15:35:02 2008 From: david.clark at umb.edu (David Clark) Date: Fri, 29 Feb 2008 10:35:02 -0500 Subject: [TxMt] ExpanDrive for remote projects over SSH: snappy (at last) In-Reply-To: <523A37BB-2188-407B-9306-2FAE59450301@johnmuhl.com> References: <4eca92670802251102m23bd87d3wcbd5617f78967e23@mail.gmail.com> <523A37BB-2188-407B-9306-2FAE59450301@johnmuhl.com> Message-ID: <94f9bc580802290735r27df4bcfn63d65d00263e3650@mail.gmail.com> Hi, Sorry if this is off-topic, but I have been beating my head against a brick wall, and well, it hurts :) I am in a work environment where all webdevelopment is on a shared ubuntu box that most people access through smb (one single user, for the most part) without any real problems. A while ago I started using subversion for my stuff, mostly as an easy way to track changes. I have read here that some people think its idiotic to have the working directory on the server, but, well, I thought it was best. I discoverd that smb does not "play nice" with svn and got all kinds of permiission problems when attempting to commit. So I started to use macfuse/sshfs. On 10.4 it infrequenly corrupted files, but not often enough to be a deal breaker. Since upgrading to 10.5 I have had problems where people edit files via smb and I don't see the changes in the sshfs version, even after remount. Soi I had high hopes when I saw this. I can mount the directory. When a drag a dir on to textmate, I get the expected files, but they all are blank on opening. anybody have any suggestions? thanks, On Tue, Feb 26, 2008 at 12:01 PM, john muhl wrote: > Looks nice, as a mac user I've envied SFTPDrive for a while. I've just > one question for you (or anyone willing to help). How do you keep > TextMate from removing read access (except for the connected users) on > every file saved? This makes quick editing of web-accessible files > pretty time consuming from TM. I don't have this problem with TextMate+ > [MacFuse|NFS|AFP|WebDAV], just TextMate+ExpanDrive. I also don't have > this problem with [Dashcode|TextEdit|Xcode]+ExpanDrive. > > thanks > john > > > On 2008/02/25, at 12:02, Jonathan Ragan-Kelley wrote: > > > Hello all, > > > > As a long-time TextMate user I'm well aware of the issues working with > > projects on remote filesystems -- I have been doing it day in and day > > out for just over three years now, using different combinations of > > tools. Like many of you, I've used Transmit for quick single-file > > edits and MacFusion/sshfs for heavier remote work for the past year or > > more, and they work well enough to be productive, but with well-known > > frustrations (latency, connection resilience). > > > > Lately I'm using ExpanDrive (http://www.magnetk.com/expandrive), which > > just launched officially. Same transport (SSH/SFTP), but with very > > aggressive caching and intelligent connection management under the > > hood. Together, they make it *way* snappier than sshfs on even > > high-latency links, and allow your mounts to stay live on finicky or > > intermittent connections, even as you sleep your laptop one place and > > wake it hours later on an entirely different network. > > > > It's a from-scratch new filesystem, not just a GUI for sshfs (though > > it does use the MacFUSE core), so its performance and stability are > > quite unlike what you may be used to. Of particular note (and this was > > a goal in development), the caching works well enough to largely > > eliminate the TextMate project focus lag problems we're all so > > familiar with by now, even over long-distance connections. > > > > (Full disclosure: I am tangentially connected with this project.) > > > > I think some of you will quite like it. > > -jrk > > > > ______________________________________________________________________ > > For new threads USE THIS: textmate at lists.macromates.com > > (threading gets destroyed and the universe will collapse if you don't) > > http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate > -- dc ----- David Clark Database Developer Institute for Community Inclusion (http://www.communityinclusion.org/) david.clark at umb.edu (617) 287-4318 -------------- next part -------------- An HTML attachment was scrubbed... URL: From prion67 at googlemail.com Fri Feb 29 16:37:48 2008 From: prion67 at googlemail.com (Christoph Held) Date: Fri, 29 Feb 2008 17:37:48 +0100 Subject: [TxMt] which version control system to take? Message-ID: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> Hi rather than piggybacking on my other thread, I wanted to ask another question, namely which version control system to take for collaborative writing projects. I am basically starting afresh, so there is no code-base already in a certain repository format to be taken into account, and I am planning to use it for (collaborative) writing of text, mostly MultiMarkdown and maybe Latex if I get the hang of it. Most people advocating Subversion emphasize that it is widely used and rather easy to learn. As I am not planning to maintain source code in it anyway, these points may not be very important. It seems to me, the alternatives (Bazaar, Git, Mercurial to name a few I have read about) have matured quite a bit and I would not want to learn a specific system only to find out that previous users are migrating away from it for good reasons (that I may not see right now). So: if the requirements were: 1) up-to-date versioning 2) easy install 3) idiot friendly 4) collaboration friendly (merging of textfiles having been altered by several authors independently should be doable; see point 3 above) 5) offline work happens (branching and merging) 6) perhaps OS-independent (in case I can convince those other co-authors) 7) existence of a bundle providing integration into Textmate would be a huge plus (but consider that I may be satisfied with a very limited subset of what every versioning system offers already) 8) not sure if applicable: if a visualization tool such as Changes.app for diffing said textfiles be callable to compare versions that would be great, too. My experience with Filemerge et al, is limited because it does not seem to like UTF-8 very much (which I require). what would you choose? Thanks Christoph -------------- next part -------------- An HTML attachment was scrubbed... URL: From textmate at subtleGradient.com Fri Feb 29 17:07:26 2008 From: textmate at subtleGradient.com (Thomas Aylott - subtleGradient) Date: Fri, 29 Feb 2008 12:07:26 -0500 Subject: [TxMt] which version control system to take? In-Reply-To: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> Message-ID: <06CAB888-020D-4E97-ABD3-F9BC6C53B63D@subtleGradient.com> On Feb 29, 2008, at 11:37 AM, Christoph Held wrote: > Hi > > rather than piggybacking on my other thread, I wanted to ask another > question, namely which version control system to take for > collaborative writing projects. I am basically starting afresh, so > there is no code-base already in a certain repository format to be > taken into account, and I am planning to use it for (collaborative) > writing of text, mostly MultiMarkdown and maybe Latex if I get the > hang of it. > > Most people advocating Subversion emphasize that it is widely used > and rather easy to learn. As I am not planning to maintain source > code in it anyway, these points may not be very important. > > It seems to me, the alternatives (Bazaar, Git, Mercurial to name a > few I have read about) have matured quite a bit and I would not want > to learn a specific system only to find out that previous users are > migrating away from it for good reasons (that I may not see right > now). > > So: if the requirements were: > 1) up-to-date versioning > 2) easy install > 3) idiot friendly > 4) collaboration friendly (merging of textfiles having been altered > by several authors independently should be doable; see point 3 above) > 5) offline work happens (branching and merging) > 6) perhaps OS-independent (in case I can convince those other co- > authors) > 7) existence of a bundle providing integration into Textmate would > be a huge plus (but consider that I may be satisfied with a very > limited subset of what every versioning system offers already) > 8) not sure if applicable: if a visualization tool such as > Changes.app for diffing said textfiles be callable to compare > versions that would be great, too. My experience with Filemerge et > al, is limited because it does not seem to like UTF-8 very much > (which I require). > > what would you choose? > > Thanks > Christoph Although I've been trying to move to Mercurial or Git for quite a while, I would most highly recommend Subversion for what you have in mind. Subversion is the easiest for people who don't want to have to care about the details. Subversion has the most utilities/tools/plugins etc... Although it's not the easiest to create the repository in the first place, only 1 person has to know how to do that and there are a ton of things that can make it easier[1]. The TextMate subversion bundle is very well done. Ciar?n's double- awesome SVNMate plugin[2] is also way hip. There's a server option you could enable that lets you use webdav on your repo to automatically version all changes, no clue necessary. There's a really nice windows explorer plugin. There's a whole bunch of other junk available too. [1] I host at Dreamhost and they have a really simple way to create new subversion repositories and manage users/passwords. They also have an option where you can just use webdav to automatically version all changes. [2] http://ciaranwal.sh/2007/10/10/svn-plug-in-for-textmate If you and everyone else you work with really want to nerd out, I'd recommend Git. It's very chic with the nerd kids these days ;) From andy at hexten.net Fri Feb 29 17:18:23 2008 From: andy at hexten.net (Andy Armstrong) Date: Fri, 29 Feb 2008 17:18:23 +0000 Subject: [TxMt] which version control system to take? In-Reply-To: <06CAB888-020D-4E97-ABD3-F9BC6C53B63D@subtleGradient.com> References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> <06CAB888-020D-4E97-ABD3-F9BC6C53B63D@subtleGradient.com> Message-ID: On 29 Feb 2008, at 17:07, Thomas Aylott - subtleGradient wrote: > Although I've been trying to move to Mercurial or Git for quite a > while, I would most highly recommend Subversion for what you have in > mind. [snip] I'd second all that. For most writing projects Subversion should be ideal. It only gets tricky if you want to do a load of branching and merging - and even then it's fairly straightforward if you follow the rules. A caveat: most version control systems, Subversion included, are best at merging changes from multiple sources if those changes are confined to discreet lines. For code that's usually not a problem but with text someone might be tempted to reformat text to, e.g. pull a paragraph back into shape after edits. Because words are reflowed across multiple lines that makes the effective extent of the change much greater - and can result in commit conflicts which have to be resolved manually. That's less of a problem if different committers are working on different parts of the document and also if everyone commits pretty regularly rather than attempting to commit large sets of edits at once. -- Andy Armstrong, Hexten From gerti-textmate at bitart.com Fri Feb 29 17:32:26 2008 From: gerti-textmate at bitart.com (Gerd Knops) Date: Fri, 29 Feb 2008 11:32:26 -0600 Subject: [TxMt] which version control system to take? In-Reply-To: References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> <06CAB888-020D-4E97-ABD3-F9BC6C53B63D@subtleGradient.com> Message-ID: <8B75362B-422B-4DF3-9436-77312C971D1D@bitart.com> On Feb 29, 2008, at 11:18 AM, Andy Armstrong wrote: > On 29 Feb 2008, at 17:07, Thomas Aylott - subtleGradient wrote: >> Although I've been trying to move to Mercurial or Git for quite a >> while, I would most highly recommend Subversion for what you have >> in mind. Not sure I agree. With subversion, unless you have access to the server, you can't do version control. That precludes offline working. For that very reason I have been using darcs. It allows me to do version control locally, and push the changes out to a server whenever I want/can. Now darcs has some rough edges and I would not necessarily recommend it, though it works fine for me. Like others I have not yet found the time to check out Mercurial or Git, which I think offer similar features for offline work. Gerd From flo at andersground.net Fri Feb 29 17:35:41 2008 From: flo at andersground.net (Florian Gilcher) Date: Fri, 29 Feb 2008 18:35:41 +0100 Subject: [TxMt] which version control system to take? In-Reply-To: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> Message-ID: On Feb 29, 2008, at 5:37 PM, Christoph Held wrote: > [...] I will advertise Subversion a bit more. > So: if the requirements were: > 1) up-to-date versioning SVN is up to date. > 2) easy install There is a great book called Version Control with Subversion available [1] that covers most of the steps (which are not many). Download it, print it, read it. It does only cover the command-line client but everything translates nice to every GUI-client. One drawback of SVN is that it requires a smart server - so you need someone that knows at least a bit about setting up a server. > 3) idiot friendly Well, its quite hard to really shoot yourself in the foot with subversion. There is a very friendly and active mailing list (subversion-user) that should solve all remaining problems. > 4) collaboration friendly (merging of textfiles having been altered > by several authors independently should be doable; see point 3 above) Merging is possible. Be aware though that merging works best with code files (their structure is much easier to make sense of), but this is a problem of every versioning system. It will cry on conflict though and mark the conflicts. > 5) offline work happens (branching and merging) You can branch offline (though discouraged for some reasons of history tracking), but you will not be able to commit any changes without a server. If this is a huge point for you, consider something different. (perhaps SVK, which is build on SVN ;) ) > 6) perhaps OS-independent (in case I can convince those other co- > authors) Sure. There are nice GUI-Clients for SVN on every platform an the server does run many. In my opinion, TortoiseSVN for Windows is by far the best of them, the only reason why i miss win ;). Textmates SVN- Bundle is really nice, too. > 7) existence of a bundle providing integration into Textmate would > be a huge plus (but consider that I may be satisfied with a very > limited subset of what every versioning system offers already) As above. > 8) not sure if applicable: if a visualization tool such as > Changes.app for diffing said textfiles be callable to compare > versions that would be great, too. My experience with Filemerge et > al, is limited because it does not seem to like UTF-8 very much > (which I require). Subversion can use several diff-tools (2-way and 3-way).[2] > > Thanks > Christoph [1] http://svnbook.red-bean.com/ [2] http://www.brunningonline.net/simon/blog/archives/002033.html From ok at ryotic.de Fri Feb 29 17:41:25 2008 From: ok at ryotic.de (Oktay Acikalin) Date: Fri, 29 Feb 2008 18:41:25 +0100 Subject: [TxMt] which version control system to take? In-Reply-To: <8B75362B-422B-4DF3-9436-77312C971D1D@bitart.com> References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> <06CAB888-020D-4E97-ABD3-F9BC6C53B63D@subtleGradient.com> <8B75362B-422B-4DF3-9436-77312C971D1D@bitart.com> Message-ID: <869326B1-B78C-45A2-A006-25B8970B286F@ryotic.de> Am 29.02.2008 um 18:32 schrieb Gerd Knops: > > On Feb 29, 2008, at 11:18 AM, Andy Armstrong wrote: > >> On 29 Feb 2008, at 17:07, Thomas Aylott - subtleGradient wrote: >>> Although I've been trying to move to Mercurial or Git for quite a >>> while, I would most highly recommend Subversion for what you have >>> in mind. > > Not sure I agree. With subversion, unless you have access to the > server, you can't do version control. That precludes offline working. > > For that very reason I have been using darcs. It allows me to do > version control locally, and push the changes out to a server > whenever I want/can. > > Now darcs has some rough edges and I would not necessarily recommend > it, though it works fine for me. Like others I have not yet found > the time to check out Mercurial or Git, which I think offer similar > features for offline work. we are using mercurial for our php framework. it works great but is a little harder to understand in the first place. being able to do local version control is a big win, i think. we also think about moving all our projects from svn to mercurial around next summer... svn is great. but mercurial is better with merging things, which we do from time to time. From alaskamike at gmail.com Fri Feb 29 17:42:59 2008 From: alaskamike at gmail.com (Mike M) Date: Fri, 29 Feb 2008 08:42:59 -0900 Subject: [TxMt] which version control system to take? In-Reply-To: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> Message-ID: <41c1b4da0802290942u6a58d246w7846740a3dc6c35d@mail.gmail.com> On Fri, Feb 29, 2008 at 7:37 AM, Christoph Held wrote: > Hi > rather than piggybacking on my other thread, I wanted to ask another > question, namely which version control system to take for collaborative > writing projects. > Emacs rules! (oh, sorry wrong topic, but expect the same results) I have used subversion for several years, and it works. However, I think it can be overkill for smaller projects. For my personal use I have been using Bazaar (bzr) for about six months and really like it. It is simple to set up, works cross-platform, and is decentralized (but can be used with a central server). Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From eli at markelikalderon.com Fri Feb 29 19:51:53 2008 From: eli at markelikalderon.com (Mark Eli Kalderon) Date: Fri, 29 Feb 2008 19:51:53 +0000 Subject: [TxMt] PracTex journal tips, revision control and academic workflow In-Reply-To: <22f9535c0802290627r4bcd44d0lda076ec54a5aae7@mail.gmail.com> References: <22f9535c0802180511k21d3a49h97be561872e8e9c@mail.gmail.com> <78FBB250-1EDD-4A13-8F83-7D8C06E300FE@gmail.com> <22f9535c0802181402t75b29a1dp68969c84748eb168@mail.gmail.com> <11DC0CFF-3BFF-4D53-9D8A-B9C2006C83C3@markelikalderon.com> <22f9535c0802290627r4bcd44d0lda076ec54a5aae7@mail.gmail.com> Message-ID: On Feb 29 2008, at 14:27, Christoph Held wrote: > Thanks for the recommendation, changes.app does look nice. I will > definitely > check it out once I have upgraded to Leopard. > FileMerge on the other hand does not play nice with accented > characters, > Umlauts etc. When you are Leopard equipped, do check out Changes, then---it, unlike FileMerge, supports UTF-8 and a variety of other encodings. See the developer's comments on the post on Changes at the TextMate Blog.[1] [1] http://blog.macromates.com/2008/changes-filemerge-replacement/#comments From timcharper at gmail.com Fri Feb 29 20:12:14 2008 From: timcharper at gmail.com (Tim Harper) Date: Fri, 29 Feb 2008 13:12:14 -0700 Subject: [TxMt] which version control system to take? In-Reply-To: <41c1b4da0802290942u6a58d246w7846740a3dc6c35d@mail.gmail.com> References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> <41c1b4da0802290942u6a58d246w7846740a3dc6c35d@mail.gmail.com> Message-ID: <3C6DF1D0-1890-4B36-8E96-862CC3A961FA@gmail.com> I'll chime and say that switching from subversion to git has made me dread working with subversion. Plus, not to toot my own horn, but I REALLY like working with the git textmate bundle: http://gitorious.org/projects/git-tmbundle Tim On Feb 29, 2008, at 10:42 AM, Mike M wrote: > > > On Fri, Feb 29, 2008 at 7:37 AM, Christoph Held > wrote: > Hi > > rather than piggybacking on my other thread, I wanted to ask another > question, namely which version control system to take for > collaborative writing projects. > > Emacs rules! (oh, sorry wrong topic, but expect the same results) > > I have used subversion for several years, and it works. However, I > think it can be overkill for smaller projects. For my personal use > I have been using Bazaar (bzr) for about six months and really like > it. It is simple to set up, works cross-platform, and is > decentralized (but can be used with a central server). > > Mike > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate -------------- next part -------------- An HTML attachment was scrubbed... URL: From eli at markelikalderon.com Fri Feb 29 20:15:36 2008 From: eli at markelikalderon.com (Mark Eli Kalderon) Date: Fri, 29 Feb 2008 20:15:36 +0000 Subject: [TxMt] which version control system to take? In-Reply-To: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> Message-ID: <1FDA1DAB-262D-441D-85A7-83BB4EBDCAB7@markelikalderon.com> My two cents: The most important thing is that you use version control. I have been a happy Subversion user for three years now, but eventually found myself frustrated with its merging facilities and am now learning Git (since it allows you to cherry pick the changes you want to merge). For your purposes, however, I would not recommend Git (not quite cross platform since it lacks a Windows implementation, I think) and its UI is not as nice as some alternatives. I think you might try Mercurial or Bazaar. There are advantages to using a distributed version control system as opposed to a centralized one like Subversion, but really any of Subversion, Mercurial, or Bazaar would suit your needs. They are all easy to install. Since you don't have Leopard yet (which has Subversion preinstalled) you can use Martin Ott's OS X binary.[1] The first two chapters of the Subversion book (available free online) should be enough to get you working with subversion in an afternoon.[2] There are binaries for OS X and Windows for Mercurial (I think that Mercurial also comes with keychain support on OS X).[3] Like Subversion, it comes with a nice manual.[4] Finally, Bazaar also comes with binaries for OS X and Windows.[5] And also has extensive documentation.[6] You might be well served by downloading them all, spend a weekend playing with a couple toy repositories and think about how they might work best with your envisioned work flow. (Bazaar seems particularly flexible in this regard.) Glad to hear that you are seriously considering version control. Good luck. All the best, Mark [1] http://homepage.mac.com/martinott/ [2] http://svnbook.red-bean.com/ [3] http://mercurial.berkwood.com/ [4] http://hgbook.red-bean.com/ [5] http://bazaar-vcs.org/Download [6] http://bazaar-vcs.org/Documentation From timcharper at gmail.com Fri Feb 29 20:23:19 2008 From: timcharper at gmail.com (Tim Harper) Date: Fri, 29 Feb 2008 13:23:19 -0700 Subject: [TxMt] which version control system to take? In-Reply-To: <1FDA1DAB-262D-441D-85A7-83BB4EBDCAB7@markelikalderon.com> References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> <1FDA1DAB-262D-441D-85A7-83BB4EBDCAB7@markelikalderon.com> Message-ID: I've installed git on windows using mingw distro. It comes with an installer and everything, and it does a really great job! The git-gui has a bit of a problem (I can't create commits from it), but the console works perfectly well as far as I can tell. It is a preview release, so stability is not guaranteed. You'd want to do your own experimentation with it, first. http://code.google.com/p/msysgit/ As Mark said, subversion may just fit your needs. For what we've been doing (we branch like crazy), git has been superb. I haven't had any motivation to try Mercurial or bazaar yet. Tim On Feb 29, 2008, at 1:15 PM, Mark Eli Kalderon wrote: > My two cents: > > The most important thing is that you use version control. I have > been a happy Subversion user for three years now, but eventually > found myself frustrated with its merging facilities and am now > learning Git (since it allows you to cherry pick the changes you > want to merge). > > For your purposes, however, I would not recommend Git (not quite > cross platform since it lacks a Windows implementation, I think) and > its UI is not as nice as some alternatives. > > I think you might try Mercurial or Bazaar. > > There are advantages to using a distributed version control system > as opposed to a centralized one like Subversion, but really any of > Subversion, Mercurial, or Bazaar would suit your needs. > > They are all easy to install. Since you don't have Leopard yet > (which has Subversion preinstalled) you can use Martin Ott's OS X > binary.[1] The first two chapters of the Subversion book (available > free online) should be enough to get you working with subversion in > an afternoon.[2] > > There are binaries for OS X and Windows for Mercurial (I think that > Mercurial also comes with keychain support on OS X).[3] Like > Subversion, it comes with a nice manual.[4] > > Finally, Bazaar also comes with binaries for OS X and Windows.[5] > And also has extensive documentation.[6] > > You might be well served by downloading them all, spend a weekend > playing with a couple toy repositories and think about how they > might work best with your envisioned work flow. (Bazaar seems > particularly flexible in this regard.) > > Glad to hear that you are seriously considering version control. > Good luck. > > All the best, Mark > > [1] http://homepage.mac.com/martinott/ > [2] http://svnbook.red-bean.com/ > [3] http://mercurial.berkwood.com/ > [4] http://hgbook.red-bean.com/ > [5] http://bazaar-vcs.org/Download > [6] http://bazaar-vcs.org/Documentation > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate From flo at andersground.net Fri Feb 29 20:41:33 2008 From: flo at andersground.net (Florian Gilcher) Date: Fri, 29 Feb 2008 21:41:33 +0100 Subject: [TxMt] which version control system to take? In-Reply-To: References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> <1FDA1DAB-262D-441D-85A7-83BB4EBDCAB7@markelikalderon.com> Message-ID: <0BFF8DEC-C373-435F-80E0-79641B438909@andersground.net> On Feb 29, 2008, at 9:23 PM, Tim Harper wrote: > I've installed git on windows using mingw distro. It comes with an > installer and everything, and it does a really great job! The git- > gui has a bit of a problem (I can't create commits from it), but the > console works perfectly well as far as I can tell. > > It is a preview release, so stability is not guaranteed. You'd want > to do your own experimentation with it, first. > > http://code.google.com/p/msysgit/ > > As Mark said, subversion may just fit your needs. For what we've > been doing (we branch like crazy), git has been superb. I haven't > had any motivation to try Mercurial or bazaar yet. > > Tim > I see the problem with git that it has a somewhat technical interface. All those long ids that the command line client shows are just great to push non-technical users away (although there is nothing to worry about). Subversion goes a long way to be understandable for everybody. If you are working with people that you have to convince of using a version control system, chances are high you don't need the features that subversion offers (i know many that don't branch because it doesn't fit their mind). Actually, merge tracking will get much better in Subversion 1.5. Another point i'd like to add: if you see the server administration as a problem, there are many providers that do this for you for a small sum (for all systems). If you are okay with having your data rest a different place than your home, this is clearly an option. Greetings Florian Gilcher From eli at markelikalderon.com Fri Feb 29 22:21:46 2008 From: eli at markelikalderon.com (Mark Eli Kalderon) Date: Fri, 29 Feb 2008 22:21:46 +0000 Subject: [TxMt] which version control system to take? In-Reply-To: <3C6DF1D0-1890-4B36-8E96-862CC3A961FA@gmail.com> References: <22f9535c0802290837p17b45fa3t55dbcce246efae39@mail.gmail.com> <41c1b4da0802290942u6a58d246w7846740a3dc6c35d@mail.gmail.com> <3C6DF1D0-1890-4B36-8E96-862CC3A961FA@gmail.com> Message-ID: <7F2DD79F-8E06-43A8-888D-8409D1617D51@markelikalderon.com> Tim, I am inclined to agree with you about Git. Nonetheless, if Christoph is working with colleagues who need to be persuaded to use version control at all, Git might not be the best choice. And btw, the git-bundle rocks! Nice work. Best, Mark On Feb 29 2008, at 20:12, Tim Harper wrote: > I'll chime and say that switching from subversion to git has made me > dread working with subversion. > > Plus, not to toot my own horn, but I REALLY like working with the > git textmate bundle: > http://gitorious.org/projects/git-tmbundle > > Tim > > > On Feb 29, 2008, at 10:42 AM, Mike M wrote: > >> >> >> On Fri, Feb 29, 2008 at 7:37 AM, Christoph Held > > wrote: >> Hi >> >> rather than piggybacking on my other thread, I wanted to ask >> another question, namely which version control system to take for >> collaborative writing projects. >> >> Emacs rules! (oh, sorry wrong topic, but expect the same results) >> >> I have used subversion for several years, and it works. However, I >> think it can be overkill for smaller projects. For my personal use >> I have been using Bazaar (bzr) for about six months and really like >> it. It is simple to set up, works cross-platform, and is >> decentralized (but can be used with a central server). >> >> Mike >> >> ______________________________________________________________________ >> For new threads USE THIS: textmate at lists.macromates.com >> (threading gets destroyed and the universe will collapse if you >> don't) >> http://lists.macromates.com/mailman/listinfo/textmate > > > ______________________________________________________________________ > For new threads USE THIS: textmate at lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate