From listsin at integrateddevcorp.com Sun Apr 1 00:11:12 2007 From: listsin at integrateddevcorp.com (Lists In@IDC) Date: Sat, 31 Mar 2007 20:11:12 -0400 Subject: [TxMt] Saving generated HTML from Markdown Message-ID: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> So... I wrote this nice document in Markdown. Looks exactly the way I want it in the preview window. Uh...how do I save the generated HTML from within TextMate? Sorry if this is a dumb question, I thought it would be obvious. I could run the markdown.pl script from the command line but that seems unnecessarily convoluted. Thanks, S From bchoate at gmail.com Sun Apr 1 00:17:48 2007 From: bchoate at gmail.com (Brad Choate) Date: Sat, 31 Mar 2007 17:17:48 -0700 Subject: [TxMt] Saving generated HTML from Markdown In-Reply-To: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> References: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> Message-ID: <6D18ECF7-60B5-4D08-8394-2B40474F246C@gmail.com> If you like what you see in the preview window, you can hit Cmd+Option +U (the view source key in Safari and Mail.app) and you'll get a TextMate document with the HTML that was generated for the preview window. Alternatively, you can use the "Convert Document to HTML" (Ctrl+Shift+H) command from the Markdown bundle in the Markdown document. -Brad On Mar 31, 2007, at 5:11 PM, Lists In at IDC wrote: > So... > > I wrote this nice document in Markdown. > > Looks exactly the way I want it in the preview window. > > Uh...how do I save the generated HTML from within TextMate? > > Sorry if this is a dumb question, I thought it would be obvious. > > I could run the markdown.pl script from the command line but that > seems unnecessarily convoluted. > > Thanks, > > S > > > ______________________________________________________________________ > 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 listsin at integrateddevcorp.com Sun Apr 1 00:33:16 2007 From: listsin at integrateddevcorp.com (Lists In@IDC) Date: Sat, 31 Mar 2007 20:33:16 -0400 Subject: [TxMt] Saving generated HTML from Markdown In-Reply-To: <6D18ECF7-60B5-4D08-8394-2B40474F246C@gmail.com> References: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> <6D18ECF7-60B5-4D08-8394-2B40474F246C@gmail.com> Message-ID: <18C21D23-EFB0-4E4C-969E-B5C4CD2E22C0@integrateddevcorp.com> On Mar 31, 2007, at 8:17 PM, Brad Choate wrote: > If you like what you see in the preview window, you can hit Cmd > +Option+U (the view source key in Safari and Mail.app) and you'll > get a TextMate document with the HTML that was generated for the > preview window. I was using the TextMate preview, doesn't seem to be a way to get source out of there though that would be, obviously, very handy. > Alternatively, you can use the "Convert Document to HTML" (Ctrl > +Shift+H) command from the Markdown bundle in the Markdown document. That seems to convert to HTML in situ, is there an option to create a new HTML document from the source you're viewing? Seems like this should be easier... Thanks, S From tim at neologica.com.au Sun Apr 1 01:14:47 2007 From: tim at neologica.com.au (Tim Mansour) Date: Sun, 1 Apr 2007 11:14:47 +1000 Subject: [TxMt] Re: Running an AppleScript In-Reply-To: References: <276B6C82-06D3-440F-BC60-806D7BA4F808@neologica.com.au> Message-ID: <31900A87-CAD3-4D8B-B300-72EE0F0CC137@neologica.com.au> On 01/04/2007, at 3:47 am, Jacob Rus wrote: > I think this sounds overly complex and a bit silly (at least for > languages based on latin characters), but there it is. It was just > surprising to me, as I hadn't seen a Mac Roman encoded email in > years (or at least not noticed it). So I guess there's nothing you > can do. Well I guess I'll just have to avoid typing ? Oops, sorry. -- Tim Mansour From oblivious at subtlegradient.com Sun Apr 1 01:20:03 2007 From: oblivious at subtlegradient.com (Thomas Aylott (subtleGradient)) Date: Sat, 31 Mar 2007 21:20:03 -0400 Subject: [TxMt] [ANN] Leopard UI Theme Message-ID: <239E5122-9ADF-403B-B9FC-1FC114A6AB5D@subtlegradient.com> PREVIEW ? http://farm1.static.flickr.com/ 182/441377679_8d1982ad4c_o.png DOWNLOAD ? http://textmate.svn.subtlegradient.com/Hacked%20Nibs!/ subtleGradient%20Leopard%20TextMate%20Theme.dmg COMMENT ? http://flickr.com/photos/thomas_aylott/441377679/ Yay me! All the images were custom made by me! Except some of them! (the gear drawer icon) They were totally stolen strait out of Mail.app! thomas Aylott ? subtleGradient ? CrazyEgg ? sixteenColors -------------- next part -------------- An HTML attachment was scrubbed... URL: From throw-away-1 at macromates.com Sun Apr 1 02:54:56 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Sun, 1 Apr 2007 04:54:56 +0200 Subject: [TxMt] Re: Running an AppleScript In-Reply-To: <31900A87-CAD3-4D8B-B300-72EE0F0CC137@neologica.com.au> References: <276B6C82-06D3-440F-BC60-806D7BA4F808@neologica.com.au> <31900A87-CAD3-4D8B-B300-72EE0F0CC137@neologica.com.au> Message-ID: <454F42D0-473A-42AD-9950-66C8441C9A5D@macromates.com> On 1. Apr 2007, at 03:14, Tim Mansour wrote: > On 01/04/2007, at 3:47 am, Jacob Rus wrote: >> I think this sounds overly complex and a bit silly (at least for >> languages based on latin characters), but there it is. It was >> just surprising to me, as I hadn't seen a Mac Roman encoded email >> in years (or at least not noticed it). So I guess there's nothing >> you can do. > Well I guess I'll just have to avoid typing ? For the records, the iconv solution is: iconv -f utf-8 -t mac <<-APPLESCRIPT|osascript set title to "${TM_SELECTED_TEXT}" if title ? "" then tell application "FileMaker Pro Advanced" if not (exists window "HachetteTitles") then open alias "Path:To:My:Database.fp7" set cell "_Search" of layout "Titles" to title do script "Search For Title" set href to cell "_Search" of layout "Titles" set img to cell "_thumb" of layout "Titles" end tell if href ? "" then set title to img & href end if return title APPLESCRIPT From throw-away-1 at macromates.com Sun Apr 1 03:05:15 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Sun, 1 Apr 2007 05:05:15 +0200 Subject: [TxMt] Saving generated HTML from Markdown In-Reply-To: <18C21D23-EFB0-4E4C-969E-B5C4CD2E22C0@integrateddevcorp.com> References: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> <6D18ECF7-60B5-4D08-8394-2B40474F246C@gmail.com> <18C21D23-EFB0-4E4C-969E-B5C4CD2E22C0@integrateddevcorp.com> Message-ID: <6C51E04C-38AA-448F-A1BE-DBFA6B533428@macromates.com> On 1. Apr 2007, at 02:33, Lists In at IDC wrote: > On Mar 31, 2007, at 8:17 PM, Brad Choate wrote: >> If you like what you see in the preview window, you can hit Cmd >> +Option+U (the view source key in Safari and Mail.app) and you'll >> get a TextMate document with the HTML that was generated for the >> preview window. > I was using the TextMate preview, doesn't seem to be a way to get > source out of there though that would be, obviously, very handy. There is (as Brad said :) ). It?s View ? View Source (??U). >> Alternatively, you can use the "Convert Document to HTML" (Ctrl >> +Shift+H) command from the Markdown bundle in the Markdown document. > > That seems to convert to HTML in situ, is there an option to create > a new HTML document from the source you're viewing? Go to Bundles ? Show Bundle Editor ? Edit Commands? (???C) Now locate Markdown ? Convert Document / Selection to HTML (second item in the Markdown bundle) and change the ?Output? from ?Replace Selected Text? to ?Create New Document?. Now ??H will open a new window with the HTML. > Seems like this should be easier... Manually converting your Markdown formatted text to HTML in TextMate and saving that somewhere is NOT a recommended workflow, and that is why we do not have a ?Save the HTML to a new location? command by default (but it would be easy to add). Let me clarify on the purpose of using Markdown, it may arise in two situations: 1) You are writing content for your blog, manual, web-site, or similar. In this case you want your content to STAY in Markdown, and have the conversion happen on display (potentially cached), i.e. never inside TextMate (here you only need the Preview command) -- the reason you want the content to stay as Markdown is so that you can go back and edit the easy-to-read version of your content. 2) You are submitting content, which is required to be in HTML, to somewhere, for example a comment on a blog. Here you want to write in Markdown, convert to HTML, and submit that (likely throwing away the original, since you generally do not keep a local copy of your comments to blogs, etc.) -- if for example it was a web-site comment, the workflow could be to invoke ?Edit in TextMate? from the browser, write in Markdown, press ??H to convert it to HTML, now save, close, and submit. From bibiko at eva.mpg.de Sun Apr 1 08:00:34 2007 From: bibiko at eva.mpg.de (=?ISO-8859-1?Q?Hans-J=F6rg_Bibiko?=) Date: Sun, 1 Apr 2007 10:00:34 +0200 Subject: [TxMt] Insert as Snippet: tmCommand versus tmSnippet In-Reply-To: <7658B14A-6E33-4209-9A00-E8FEDAC35664@hanover.edu> References: <7658B14A-6E33-4209-9A00-E8FEDAC35664@hanover.edu> Message-ID: <47414CB4-61EE-4B86-B669-58DB16E0DD28@eva.mpg.de> On 31.03.2007, at 22:44, Charilaos Skiadas wrote: > On Mar 31, 2007, at 4:20 PM, Hans-J?rg Bibiko wrote: > >> Hi, >> >> is there any difference to insert something as snippet by using a >> normal tmSnippet and tmCommand which is set to the output 'Insert >> as Snippet' and input 'selected text or line'? >> > > Why do you need the command to receive as input Selected text or > line? Just set it to selected text or nothing. Wouldn't that do it? > Oh my goodness. I didn't see the wood for trees. Thank you for the hint!! Of course, you've right. I thought too complicated. TM offers you very often a simple solution ;) Cheers, Hans From raasdnil at gmail.com Sun Apr 1 10:03:51 2007 From: raasdnil at gmail.com (lekim raasdnil) Date: Sun, 1 Apr 2007 20:03:51 +1000 Subject: [TxMt] Workflow question In-Reply-To: References: <57a815bf0703292140m5a2b5f0alfef957504cbcf15c@mail.gmail.com> Message-ID: <57a815bf0704010303m66266a61y3eb8c5921625f9f9@mail.gmail.com> Thanks Thomas, I guess at all costs is a fairly good answer 8-) I end up switching between Dreamweaver and Textmate and command line quite often these days anyway... Dreamweaver has it's uses... Your answer is sort of what I was expecting I would get as a reply... thanks for the fast reply thought! Regards Mikel http://www.blognow.com.au/q On 3/30/07, Thomas Aylott (subtleGradient) wrote: > > On Mar 30, 2007, at 12:40 AM, lekim raasdnil wrote: > > Hello all. > > I have been looking at Textmate and bluntly, have been blown away by the > balance it has gotten between a really narrow scope that is done really > really really well. > > For example, "wrap each line" bundle command is just majic! I can't think > how many times I have had to do this by hand in Dreamweaver! > > But I have a question that I am sure someone else has solved that I have > not found a solution for on the web. > > That is, how do you integrate Textmate, with SVN and also manage sites? > > Now, before ou just hit reply and say "SVNX" let me explain... > > Dreamweaver has a nice feature, that is, it knows about all the files in > the site. if you change the location of a > file, change the name of a directory or the name of the file itself within > the site, it will run back through the entire site and update every link to > that file. > > This is especially useful when you are re-coding sites and bringing them > up to the CSS age. > > The problem with this, is if you do it, SVN doesn't see it and SVN then > complains about missing file X and added file Y when in fact it is a simpel > rename X to Y - the end result of this is polution orphans in the SVN > database (not a huge problem, unless you are using huge files) > > Conversly, if you do the move from SVN (svn rename big_picture.jpg > little_picture.jpg) then Dreamweaver doesn't know about it and can't find > those 101 references to big_picture.jpg that just got moved (of course you > can do it with a find/replace, but this does not handle relative links). > > One obvious solution is move it with SVN, then do a find / replace in > textmate. > > But that doesn't handle relative links > (../../../img/myimages/little_picture.jpg being the same as > ../myimages/little_picture.jpg) > > So how do you do it? I think my answer lies in regex..... > > Does anyone have a solution out there to this particular problem? > > Regards > > Mikel > > > > I handle all of my svn in TextMate or the terminal. SVNX is way too slow > and gets in my way. > > Way back in the day I totally relied on that feature of dreamweaver. But I > haven't needed anything like that in a long long time now. > > Personally, if I had to do it now I would just do it manually. > svn rename the file, commit, svn up. > Then I'd do a project wide search for the filename I just renamed and if > that was the only file names that then it's easy. But if it's like > index.html and there are a thousand references to it, I'd just keep from > having to do this at all costs. > > If you really do this sort of thing often then you could write some > scripts to help automate it. But I'm sure dreamweaver hat lots of code in > there to understand all of the links that you'd have to either rewrite > yourself for textmate or just fake with complex regex. > > You best bet is to avoid this sort of thing at all costs. ;) > > thomas Aylott ? *subtleGradient *? CrazyEgg ? sixteenColors > > > ______________________________________________________________________ > 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 listsin at integrateddevcorp.com Sun Apr 1 12:21:03 2007 From: listsin at integrateddevcorp.com (Lists In@IDC) Date: Sun, 1 Apr 2007 08:21:03 -0400 Subject: [TxMt] Saving generated HTML from Markdown In-Reply-To: <6C51E04C-38AA-448F-A1BE-DBFA6B533428@macromates.com> References: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> <6D18ECF7-60B5-4D08-8394-2B40474F246C@gmail.com> <18C21D23-EFB0-4E4C-969E-B5C4CD2E22C0@integrateddevcorp.com> <6C51E04C-38AA-448F-A1BE-DBFA6B533428@macromates.com> Message-ID: On Mar 31, 2007, at 11:05 PM, Allan Odgaard wrote: >>> Alternatively, you can use the "Convert Document to HTML" (Ctrl >>> +Shift+H) command from the Markdown bundle in the Markdown document. >> >> That seems to convert to HTML in situ, is there an option to >> create a new HTML document from the source you're viewing? > > Go to Bundles ? Show Bundle Editor ? Edit Commands? (???C) > > Now locate Markdown ? Convert Document / Selection to HTML (second > item in the Markdown bundle) and change the ?Output? from > ?Replace Selected Text? to ?Create New Document?. Now > ??H will open a new window with the HTML. I have two different commands with two different scopes -- on one, the scope is text.html.markdown, the other is text.html.markdown.multimarkdown. The first is the one that's being used and it was set to replace while the other was set to create a new document and they were bound to the same key; ??H. Thanks for the pointer, they now both do what I want. >> Seems like this should be easier... > > Manually converting your Markdown formatted text to HTML in > TextMate and saving that somewhere is NOT a recommended workflow, > and that is why we do not have a ?Save the HTML to a new > location? command by default (but it would be easy to add). > > Let me clarify on the purpose of using Markdown, it may arise in > two situations: > > 1) You are writing content for your blog, manual, web-site, or > similar. In this case you want your content to STAY in Markdown, > and have the conversion happen on display (potentially cached), > i.e. never inside TextMate (here you only need the Preview command) > -- the reason you want the content to stay as Markdown is so that > you can go back and edit the easy-to-read version of your content. > > 2) You are submitting content, which is required to be in HTML, to > somewhere, for example a comment on a blog. Here you want to write > in Markdown, convert to HTML, and submit that (likely throwing away > the original, since you generally do not keep a local copy of your > comments to blogs, etc.) -- if for example it was a web-site > comment, the workflow could be to invoke ?Edit in TextMate? from > the browser, write in Markdown, press ??H to convert it to HTML, > now save, close, and submit. 3) You have to write a document with relatively light formatting to be e-mailed and/or posted to a one-off web page during fast and furious specification development. So, it needs to be pasted into an e-mail and/or "saved as" a simple file-based web page. You need to keep the Markdown version as that will form the basis of the final version but it's much too cumbersome to edit and format in Word at this stage (or any stage, but that's another discussion). In other words, editing actual text in Word sucks -- I'm much faster in TextMate. In that third use-case, I see a great reason to have both Convert- >new document and Save HTML to New Location. Maybe I'm hitting this nail with the wrong type of hammer? Maybe what I'm really looking for is Latex? Seems like an awful lot of people on this list use it though I've never explored it at all. What do other people use for writing specifications where TextMate is obviously the best tool (ever) for writing text but the final document needs to be fanch-schmancy for Suit consumption? Thanks, S From n.kobschaetzki at googlemail.com Sun Apr 1 12:28:41 2007 From: n.kobschaetzki at googlemail.com (=?ISO-8859-1?Q?Niels_Kobsch=E4tzki?=) Date: Sun, 1 Apr 2007 14:28:41 +0200 Subject: [TxMt] Workflow question In-Reply-To: <57a815bf0704010303m66266a61y3eb8c5921625f9f9@mail.gmail.com> References: <57a815bf0703292140m5a2b5f0alfef957504cbcf15c@mail.gmail.com> <57a815bf0704010303m66266a61y3eb8c5921625f9f9@mail.gmail.com> Message-ID: On 4/1/07, lekim raasdnil wrote: > Thanks Thomas, > > I guess at all costs is a fairly good answer 8-) > > I end up switching between Dreamweaver and Textmate and command line quite > often these days anyway... Dreamweaver has it's uses... If I understood you right, you want to use Dreamweaver only for the sites-feature, right? (didn't you use it for a long long time). Why don't you use Dreamweaver for that and edit your files via Edit in TextMate? Niels From jrus at hcs.harvard.edu Sun Apr 1 16:17:07 2007 From: jrus at hcs.harvard.edu (Jacob Rus) Date: Sun, 01 Apr 2007 12:17:07 -0400 Subject: [TxMt] Re: Saving generated HTML from Markdown In-Reply-To: References: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> <6D18ECF7-60B5-4D08-8394-2B40474F246C@gmail.com> <18C21D23-EFB0-4E4C-969E-B5C4CD2E22C0@integrateddevcorp.com> <6C51E04C-38AA-448F-A1BE-DBFA6B533428@macromates.com> Message-ID: Lists In at IDC wrote: > What do other people use for writing specifications where TextMate is > obviously the best tool (ever) for writing text but the final document > needs to be fanch-schmancy for Suit consumption? Markdown works fine for that, but you usually want to use your own command, which adds your own css/etc. to the output html. The preview is just supposed to be a preview, not a final document. -Jacob From ciawal at gmail.com Sun Apr 1 17:56:13 2007 From: ciawal at gmail.com (=?ISO-8859-1?Q?Ciar=E1n_Walsh?=) Date: Sun, 1 Apr 2007 18:56:13 +0100 Subject: [TxMt] PHP completion preferences In-Reply-To: <777E5ED2-5239-496A-A5F2-0A8D58072FAF@hanover.edu> References: <1BBAEC13-509A-4DD5-AD00-67DCA66B3711@skurfer.com> <777E5ED2-5239-496A-A5F2-0A8D58072FAF@hanover.edu> Message-ID: <24D1F29C-CF2E-48F1-8C51-123AD2D22DF4@gmail.com> On 30 Mar 2007, at 22:32, Charilaos Skiadas wrote: > On Mar 30, 2007, at 3:03 PM, Rob McBroom wrote: >> >> FWIW, I tried the above, and `"$TM_BUNDLE_SUPPORT"/functions.txt` >> doesn't seem to be pointing the file. I got it to work by giving >> the explicit complete path to the file, but that's obviously not >> what we want stored in the preferences by default. Could it be >> that TM_CURRENT_WORD is defined in the Preferences context, but >> TM_BUNDLE_SUPPORT is not? > > I think this is exactly what is happening. That is why all the > completion commands in the LaTeX bundle have had to be in the > global support directory, because that can indeed be accessed, via > TM_SUPPORT_PATH. So there we do use the same way for generating the > list of commands. Perhaps the PHP bundle should be doing the same? > Though the idea of every bundle doing that is probably not great, > in which case we can hopefully convince Allan to provide us with > TM_BUNDLE_SUPPORT for Preferences items as well, if it is not too > difficult. > > Haris Skiadas > Department of Mathematics and Computer Science > Hanover College I was also making the assumption that using a list for ? completion would be more efficient than using a shell command, although it could be the case that the difference isn't really noticeable. However, both the functions.txt and the completions preferences file are automatically generated from PHP source, so there is no issue with maintenance. From richard at rnet.org Sun Apr 1 18:34:17 2007 From: richard at rnet.org (Richard Blumberg) Date: Sun, 1 Apr 2007 14:34:17 -0400 Subject: [TxMt] Newbie lost: how to change Textmate search path Message-ID: I am unable to use the File/New from Template/Python/* menu item, or to create a new file in an open project, by any of the available means (application File menu, control-click in project drawer, use gear icon menu). I gather, from following several different Google searches, that my problem(s) has/have something to do with the search path that Textmate is using to look for the template files, but I can find no information regarding what I have to change or how I have to change it to make the correct path(s) available to TM. I know that the Python.tmbundle file lives in "/Library/Application Support/TextMate/Bundles/", but when I add that directory to my PATH in ~/.bash_profile, that doesn't change anything. I would be really, really grateful for a simple "do it this way" solution to my problem. Thanks. Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From throw-away-1 at macromates.com Sun Apr 1 19:07:58 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Sun, 1 Apr 2007 21:07:58 +0200 Subject: [TxMt] Newbie lost: how to change Textmate search path In-Reply-To: References: Message-ID: On 1. Apr 2007, at 20:34, Richard Blumberg wrote: > I am unable to use the File/New from Template/Python/* menu item, > or to > create a new file in an open project, by any of the available means > (application File menu, control-click in project drawer, use gear icon > menu). I gather, from following several different Google searches, > that my > problem(s) has/have something to do with the search path that > Textmate is > using to look for the template files [...] More likely that you have a custom bash startup that interferes: http://macromates.com/wiki/Troubleshooting/Templates -- try e.g. test it using a new user account. From cbiela at gmail.com Sun Apr 1 19:20:33 2007 From: cbiela at gmail.com (Christoph Biela) Date: Sun, 1 Apr 2007 21:20:33 +0200 Subject: [TxMt] Latex Preview with TextMate on Serveraccount In-Reply-To: <6B4C2C7B-85CD-45EE-A6C8-FE2BF9FDE0EA@macromates.com> References: <8319251F-0982-4AEE-87B7-554725BC523E@glr.tu-darmstadt.de> <343079BE-F690-4DFC-8AF9-7B6933807BB2@macromates.com> <62F1233B-3F72-4FB3-801F-1E9C2B722900@gmail.com> <2DC643E5-3265-43F9-91EB-659E9EBA6CD6@macromates.com> <6B4C2C7B-85CD-45EE-A6C8-FE2BF9FDE0EA@macromates.com> Message-ID: Hi Allan, thanks for your kind help. Here are the results: #From TM TM: find_app PDFView.app TM: /Applications/PDFView.app TM: TM: find_app net.sourceforge.pdfview TM: /Applications/PDFView.app #From Terminal % open -b net.sourceforge.pdfview % (opens PDFView w\out any probs) % % open -a PDFView.app % (opens PDFView w\out any probs) #I observed something strange: set to preview TM: find_app "${TM_LATEX_VIEWER}.app" TM: /Applications/Preview.app set to PDFView TM: find_app "${TM_LATEX_VIEWER}.app" TM: ?well nothing happens I do not see a pattern there. Greetings Chris On 31/03/07, Allan Odgaard wrote: > On 21. Mar 2007, at 14:56, Christoph Biela wrote: > > > thanks for your support. It won't help though. > > > > - PDFView and Preview are in the same directory. find_app and open -a > > only works with preview. > > - What does "casing" mean? > > Casing means if the proper characters are upper or lowercase. E.g. > PDFView and not PDFview. > > Try from TM (press ctrl-R after that line): > > find_app net.sourceforge.pdfview > > And from Terminal: > > open -b net.sourceforge.pdfview > > > > ______________________________________________________________________ > 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 richard at rnet.org Sun Apr 1 20:39:51 2007 From: richard at rnet.org (Richard Blumberg) Date: Sun, 1 Apr 2007 16:39:51 -0400 Subject: [TxMt] Newbie lost: how to change Textmate search path In-Reply-To: References: Message-ID: Thanks, Allan, but that isn't it. First I tried commenting out everything in my .bash_profile except for the alias declarations. When that didn't work, I created a new user account and logged in with that. I still can't use the File/New from Template command. I tried something else. I created a file, test_tm.sh, with the content: #!/bin/bash echo #TM_SUPPORT_PATH When I run that from TextMate, I get no output and no error message, just "Program exited with status 0" Should #TM_SUPPORT_PATH have a value? Any other ideas? Richard On 4/1/07, Allan Odgaard wrote: > > On 1. Apr 2007, at 20:34, Richard Blumberg wrote: > > > I am unable to use the File/New from Template/Python/* menu item, > > or to > > create a new file in an open project, by any of the available means > > (application File menu, control-click in project drawer, use gear icon > > menu). I gather, from following several different Google searches, > > that my > > problem(s) has/have something to do with the search path that > > Textmate is > > using to look for the template files [...] > > More likely that you have a custom bash startup that interferes: > http://macromates.com/wiki/Troubleshooting/Templates -- try e.g. test > it using a new user account. > > ______________________________________________________________________ > 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 jrus at hcs.harvard.edu Sun Apr 1 21:54:32 2007 From: jrus at hcs.harvard.edu (Jacob Rus) Date: Sun, 01 Apr 2007 17:54:32 -0400 Subject: [TxMt] Re: Newbie lost: how to change Textmate search path In-Reply-To: References: Message-ID: Richard Blumberg wrote: > #!/bin/bash > echo #TM_SUPPORT_PATH > > When I run that from TextMate, I get no output and no error message, just > "Program exited with status 0" > > Should #TM_SUPPORT_PATH have a value? Well, no? but $TM_SUPPORT_PATH probably does ;) From williams at astro.ox.ac.uk Sun Apr 1 22:28:37 2007 From: williams at astro.ox.ac.uk (Michael Williams) Date: Sun, 1 Apr 2007 23:28:37 +0100 Subject: [TxMt] Saving generated HTML from Markdown In-Reply-To: References: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> <6D18ECF7-60B5-4D08-8394-2B40474F246C@gmail.com> <18C21D23-EFB0-4E4C-969E-B5C4CD2E22C0@integrateddevcorp.com> <6C51E04C-38AA-448F-A1BE-DBFA6B533428@macromates.com> Message-ID: <20070401222836.GA14575@astro.ox.ac.uk> On Sun, Apr 01, 2007 at 08:21:03AM -0400, Lists In at IDC wrote: > 3) You have to write a document with relatively light formatting to be > e-mailed and/or posted to a one-off web page during fast and furious > specification development. So, it needs to be pasted into an e-mail > and/or "saved as" a simple file-based web page. You need to keep the > Markdown version as that will form the basis of the final version but > it's much too cumbersome to edit and format in Word at this stage (or > any stage, but that's another discussion). This is my own normal use of Markdown, and I like the idea of adding "Save HTML to new location" to the default Markdown bundle. In this usage case, the HTML is like the PDF compiled from LaTeX source; the PDF is for public consumption, but you need the LaTeX to continue to change the document. -- Mike From richard at rnet.org Mon Apr 2 00:30:36 2007 From: richard at rnet.org (Richard Blumberg) Date: Sun, 1 Apr 2007 20:30:36 -0400 Subject: [TxMt] Re: Newbie lost: how to change Textmate search path In-Reply-To: References: Message-ID: > > Well, no? but $TM_SUPPORT_PATH probably does ;) > And so it does :) And $PATH works as well, and both seem to be showing reasonable and proper values. And I still can't create a new file from a template or create a new file in a project. If I select File/New From Template/Edit Templates..., it finds the templates just fine, so there seems to be nothing wrong with the search path. But I still can't open a new file. Extremely frustrating. Richard On 4/1/07, Jacob Rus wrote: > > Richard Blumberg wrote: > > #!/bin/bash > > echo #TM_SUPPORT_PATH > > > > When I run that from TextMate, I get no output and no error message, > just > > "Program exited with status 0" > > > > Should #TM_SUPPORT_PATH have a value? > > Well, no? but $TM_SUPPORT_PATH probably does ;) > > > ______________________________________________________________________ > 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 skiadas at hanover.edu Mon Apr 2 00:39:09 2007 From: skiadas at hanover.edu (Charilaos Skiadas) Date: Sun, 1 Apr 2007 20:39:09 -0400 Subject: [TxMt] Saving generated HTML from Markdown In-Reply-To: <20070401222836.GA14575@astro.ox.ac.uk> References: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> <6D18ECF7-60B5-4D08-8394-2B40474F246C@gmail.com> <18C21D23-EFB0-4E4C-969E-B5C4CD2E22C0@integrateddevcorp.com> <6C51E04C-38AA-448F-A1BE-DBFA6B533428@macromates.com> <20070401222836.GA14575@astro.ox.ac.uk> Message-ID: On Apr 1, 2007, at 6:28 PM, Michael Williams wrote: > On Sun, Apr 01, 2007 at 08:21:03AM -0400, Lists In at IDC wrote: >> 3) You have to write a document with relatively light formatting >> to be >> e-mailed and/or posted to a one-off web page during fast and furious >> specification development. So, it needs to be pasted into an e-mail >> and/or "saved as" a simple file-based web page. You need to keep the >> Markdown version as that will form the basis of the final version but >> it's much too cumbersome to edit and format in Word at this stage (or >> any stage, but that's another discussion). > > This is my own normal use of Markdown, and I like the idea of adding > "Save HTML to new location" to the default Markdown bundle. In this > usage case, the HTML is like the PDF compiled from LaTeX source; > the PDF > is for public consumption, but you need the LaTeX to continue to > change > the document. There is a difference however, in that the LaTeX source has all the information determining how the resulting PDF should look like. On the other hand, Markdown doesn't contain any CSS information. So if we only care about the HTML, without any css specification, then this can be done of course, but I am not sure if it really is that useful. > -- Mike Haris Skiadas Department of Mathematics and Computer Science Hanover College From eli at markelikalderon.com Mon Apr 2 02:13:07 2007 From: eli at markelikalderon.com (Mark Eli Kalderon) Date: Mon, 2 Apr 2007 03:13:07 +0100 Subject: [TxMt] Saving generated HTML from Markdown In-Reply-To: References: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> <6D18ECF7-60B5-4D08-8394-2B40474F246C@gmail.com> <18C21D23-EFB0-4E4C-969E-B5C4CD2E22C0@integrateddevcorp.com> <6C51E04C-38AA-448F-A1BE-DBFA6B533428@macromates.com> <20070401222836.GA14575@astro.ox.ac.uk> Message-ID: <5C79D58E-2F9F-48C5-AAB0-0140A0E7F407@markelikalderon.com> On Apr 2 2007, at 01:39, Charilaos Skiadas wrote: > > On Apr 1, 2007, at 6:28 PM, Michael Williams wrote: > >> On Sun, Apr 01, 2007 at 08:21:03AM -0400, Lists In at IDC wrote: >>> 3) You have to write a document with relatively light formatting >>> to be >>> e-mailed and/or posted to a one-off web page during fast and furious >>> specification development. So, it needs to be pasted into an e-mail >>> and/or "saved as" a simple file-based web page. You need to keep >>> the >>> Markdown version as that will form the basis of the final version >>> but >>> it's much too cumbersome to edit and format in Word at this stage >>> (or >>> any stage, but that's another discussion). >> >> This is my own normal use of Markdown, and I like the idea of adding >> "Save HTML to new location" to the default Markdown bundle. In this >> usage case, the HTML is like the PDF compiled from LaTeX source; >> the PDF >> is for public consumption, but you need the LaTeX to continue to >> change >> the document. > > There is a difference however, in that the LaTeX source has all the > information determining how the resulting PDF should look like. On > the other hand, Markdown doesn't contain any CSS information. So if > we only care about the HTML, without any css specification, then > this can be done of course, but I am not sure if it really is that > useful. > Well, if you use MultiMarkdown, you can use a metadata field to specify a CSS file. That would be a lot like inputting a standard preamble into a LaTeX file... Anyway, part of the point of things like MultiMarkdown and pandoc[1] is to use and extended Markdown syntax to generate a variety of output---in which case the Markdwon file is functioning as a source file. Best, Mark [1] http://sophos.berkeley.edu/macfarlane/pandoc/ From cliffjoyce at pureblend.com Mon Apr 2 03:28:48 2007 From: cliffjoyce at pureblend.com (Cliff Joyce) Date: Sun, 1 Apr 2007 20:28:48 -0700 Subject: [TxMt] Move the caret to start of line within a TM snippet? Message-ID: <910EE54F-4685-4A24-A1A8-DE6DB9058226@pureblend.com> Hi. I have the following TM snippet (scope = source.php, tab trigger = eoq): << References: <910EE54F-4685-4A24-A1A8-DE6DB9058226@pureblend.com> Message-ID: <822A1F64-35CE-47D9-A370-413CD08F97B8@hanover.edu> On Apr 1, 2007, at 11:28 PM, Cliff Joyce wrote: > Hi. I have the following TM snippet (scope = source.php, tab > trigger = eoq): > > << ${0} > EOQ; > > My snippet works fine, except: the trailing EOQ needs to always be > placed at the beginning of a line. Currently, the trailing EOQ > winds up at the same indent position as the beginning "< > Does someone know of a way to move the caret to the beginning of a > line within a snippet? Alternatively, is it possible to call a > macro from a snippet? I know I can build a macro that presses the > command and left arrow keys, which will move the caret to the > beginning of the line. Just have a macro that moves you to the beginning of the line and then executes the snippet. Wouldn't that do it? We already do this trick in the Sweave bundle. Then you can have the macro have whatever trigger your snippet was going to have. > Thanks in advance. --Cliff Haris Skiadas Department of Mathematics and Computer Science Hanover College From throw-away-1 at macromates.com Mon Apr 2 03:43:21 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 05:43:21 +0200 Subject: [TxMt] Latex Preview with TextMate on Serveraccount In-Reply-To: References: <8319251F-0982-4AEE-87B7-554725BC523E@glr.tu-darmstadt.de> <343079BE-F690-4DFC-8AF9-7B6933807BB2@macromates.com> <62F1233B-3F72-4FB3-801F-1E9C2B722900@gmail.com> <2DC643E5-3265-43F9-91EB-659E9EBA6CD6@macromates.com> <6B4C2C7B-85CD-45EE-A6C8-FE2BF9FDE0EA@macromates.com> Message-ID: On 1. Apr 2007, at 21:20, Christoph Biela wrote: > [...] > #From TM > TM: find_app PDFView.app > TM: /Applications/PDFView.app > [...] > set to PDFView > TM: find_app "${TM_LATEX_VIEWER}.app" > TM: ?well nothing happens > > I do not see a pattern there. My guess is that TM_LATEX_VIEWER does not have the proper value. Maybe some leading/trailing spaces? Try ?R on the below line: echo "${TM_LATEX_VIEWER}.app" From throw-away-1 at macromates.com Mon Apr 2 03:47:01 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 05:47:01 +0200 Subject: [TxMt] Re: Newbie lost: how to change Textmate search path In-Reply-To: References: Message-ID: On 2. Apr 2007, at 02:30, Richard Blumberg wrote: > [...] > And I still can't create a new file from a template or create a new > file in > a project. Is there any messages in Console? > If I select File/New From Template/Edit Templates..., it finds the > templates > just fine, so there seems to be nothing wrong with the search path. > But I > still can't open a new file. I assume Test also fails in the template editor? What about the Text ? Empty File, does that one also fail? If so, I really can?t imagine this is anything else than your shell startup which is the problem. From throw-away-1 at macromates.com Mon Apr 2 03:52:11 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 05:52:11 +0200 Subject: [TxMt] Move the caret to start of line within a TM snippet? In-Reply-To: <910EE54F-4685-4A24-A1A8-DE6DB9058226@pureblend.com> References: <910EE54F-4685-4A24-A1A8-DE6DB9058226@pureblend.com> Message-ID: On 2. Apr 2007, at 05:28, Cliff Joyce wrote: > Hi. I have the following TM snippet (scope = source.php, tab > trigger = eoq): > > << ${0} > EOQ; > > My snippet works fine, except: the trailing EOQ needs to always be > placed at the beginning of a line. Currently, the trailing EOQ > winds up at the same indent position as the beginning "< > Does someone know of a way to move the caret to the beginning of a > line within a snippet? [...] You can have it inserted without the snippet being indented to the current level, the following trick works for tmSnippet files as well: http://lists.macromates.com/pipermail/textmate/2007-March/018523.html From cliffjoyce at pureblend.com Mon Apr 2 04:21:54 2007 From: cliffjoyce at pureblend.com (Cliff Joyce) Date: Sun, 1 Apr 2007 21:21:54 -0700 Subject: [TxMt] (no subject) Message-ID: <423A2253-81EA-4010-875D-054BF8928A43@pureblend.com> >> Hi. I have the following TM snippet (scope = source.php, tab >> trigger = eoq): >> >> <<> ${0} >> EOQ; >> >> My snippet works fine, except: the trailing EOQ needs to always be >> placed at the beginning of a line. Currently, the trailing EOQ >> winds up at the same indent position as the beginning "<> >> Does someone know of a way to move the caret to the beginning of a >> line within a snippet? [...] >> > > You can have it inserted without the snippet being indented to the > current level, the following trick works for tmSnippet files as > well: http://lists.macromates.com/pipermail/textmate/2007-March/ > 018523.html Thanks for the quick reply, Allan. I tried it, but I must not be putting the disableOutputAutoIndent key in the correct place (I tried several). Below is the contents of my snippet's plist file. Where would I place the disableOutputAutoIndent key? content <<<EOQ ${0} EOQ; name EOQ (eoq) scope source.php tabTrigger eoq uuid 12260674-90D0-426D-84F4-C4F314216C06 From cliffjoyce at pureblend.com Mon Apr 2 04:39:16 2007 From: cliffjoyce at pureblend.com (Cliff Joyce) Date: Sun, 1 Apr 2007 21:39:16 -0700 Subject: [TxMt] Re: Move the caret to start of line within a TM snippet? (Charilaos Skiadas) In-Reply-To: <20070402035223.AD99564A0@comox.textdrive.com> References: <20070402035223.AD99564A0@comox.textdrive.com> Message-ID: <5877C956-771F-43D1-A3E6-7ADE97912D36@pureblend.com> > Just have a macro that moves you to the beginning of the line and > then executes the snippet. Wouldn't that do it? We already do this > trick in the Sweave bundle. Then you can have the macro have > whatever trigger your snippet was going to have. Thanks, Charilaos (cool idea). Unfortunately, this won't work well in my situation because the point of the snippet is to assign some HTML text to a PHP variable, like this: $myVar = << Data EOQ; The macro would place the caret to the left of the indented $myVar string, then run my snippet (which would not work properly). Allan's solution looks promising, but I cannot figure out where the place this key in the snippet's plist file: disableOutputAutoIndent --Cliff From cliffjoyce at pureblend.com Mon Apr 2 04:44:07 2007 From: cliffjoyce at pureblend.com (Cliff Joyce) Date: Sun, 1 Apr 2007 21:44:07 -0700 Subject: [TxMt] Re: 10. Re: Move the caret to start of line within a TM snippet? (Allan Odgaard) Message-ID: <0790F941-0671-4ABE-8098-42029E9D0128@pureblend.com> >> Hi. I have the following TM snippet (scope = source.php, tab >> trigger = eoq): >> >> <<> ${0} >> EOQ; >> >> My snippet works fine, except: the trailing EOQ needs to always be >> placed at the beginning of a line. Currently, the trailing EOQ >> winds up at the same indent position as the beginning "<> >> Does someone know of a way to move the caret to the beginning of a >> line within a snippet? [...] >> > > You can have it inserted without the snippet being indented to the > current level, the following trick works for tmSnippet files as > well: http://lists.macromates.com/pipermail/textmate/2007-March/ > 018523.html Thanks for the quick reply, Allan (and sorry for my replying previously without a subject; I am new to the list and this was my first posting). I tried it, but I must not be putting the disableOutputAutoIndent key in the correct place (I tried several). Below is the contents of my snippet's plist file. Where would I place the disableOutputAutoIndent key code below? disableOutputAutoIndent content <<<EOQ ${0} EOQ; name EOQ (eoq) scope source.php tabTrigger eoq uuid 12260674-90D0-426D-84F4-C4F314216C06 From skiadas at hanover.edu Mon Apr 2 04:51:55 2007 From: skiadas at hanover.edu (Charilaos Skiadas) Date: Mon, 2 Apr 2007 00:51:55 -0400 Subject: [TxMt] Re: Move the caret to start of line within a TM snippet? (Charilaos Skiadas) In-Reply-To: <5877C956-771F-43D1-A3E6-7ADE97912D36@pureblend.com> References: <20070402035223.AD99564A0@comox.textdrive.com> <5877C956-771F-43D1-A3E6-7ADE97912D36@pureblend.com> Message-ID: On Apr 2, 2007, at 12:39 AM, Cliff Joyce wrote: > >> Just have a macro that moves you to the beginning of the line and >> then executes the snippet. Wouldn't that do it? We already do this >> trick in the Sweave bundle. Then you can have the macro have >> whatever trigger your snippet was going to have. > > Thanks, Charilaos (cool idea). Unfortunately, this won't work well > in my situation because the point of the snippet is to assign some > HTML text to a PHP variable, like this: > Yeah I had misunderstood your question, my suggestion solves a different problem. > The macro would place the caret to the left of the indented $myVar > string, then run my snippet (which would not work properly). Another possible solution is to create a command that takes as input the entire current line, and outputs "insert as snippet" printing the STDIN as well as doing the rest of the magic you want it to do. You might have similar problems with the snippet as well though, and hence having to use Allan's suggestion anyway. But you do gain the power of a full scripting language. > Allan's solution looks promising, but I cannot figure out where the > place this key in the snippet's plist file: > > disableOutputAutoIndent > I would guess you just forgot to "reload bundles". Direct changes to the xml file won't come into effect otherwise, at least I don't think so. TM caches the bundle items. > --Cliff Haris Skiadas Department of Mathematics and Computer Science Hanover College From throw-away-1 at macromates.com Mon Apr 2 05:11:13 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 07:11:13 +0200 Subject: [TxMt] Re: 10. Re: Move the caret to start of line within a TM snippet? (Allan Odgaard) In-Reply-To: <0790F941-0671-4ABE-8098-42029E9D0128@pureblend.com> References: <0790F941-0671-4ABE-8098-42029E9D0128@pureblend.com> Message-ID: On 2. Apr 2007, at 06:44, Cliff Joyce wrote: >>> [...] >> You can have it inserted without the snippet being indented to the >> current level, the following trick works for tmSnippet files as >> well: http://lists.macromates.com/pipermail/textmate/2007-March/ >> 018523.html > > Thanks for the quick reply, Allan (and sorry for my replying > previously without a subject; I am new to the list and this was my > first posting). > > I tried it, but I must not be putting the disableOutputAutoIndent > key in the correct place (I tried several). Below is the contents > of my snippet's plist file. Where would I place the > disableOutputAutoIndent key code below? > > disableOutputAutoIndent > Sorry, when using this for snippets, the ?Output? part should not be there. > > "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> > > So this is what to add, after : disableAutoIndent From skiadas at hanover.edu Mon Apr 2 05:24:32 2007 From: skiadas at hanover.edu (Charilaos Skiadas) Date: Mon, 2 Apr 2007 01:24:32 -0400 Subject: [TxMt] Re: 10. Re: Move the caret to start of line within a TM snippet? (Allan Odgaard) In-Reply-To: References: <0790F941-0671-4ABE-8098-42029E9D0128@pureblend.com> Message-ID: <60BED187-2E23-4D0C-85BA-23083A288198@hanover.edu> On Apr 2, 2007, at 1:11 AM, Allan Odgaard wrote: >> disableOutputAutoIndent >> > > Sorry, when using this for snippets, the ?Output? part should not > be there. Allan, I'm guessing these things will be accessible through the UI in 2.0? Haris Skiadas Department of Mathematics and Computer Science Hanover College From cliffjoyce at pureblend.com Mon Apr 2 05:31:08 2007 From: cliffjoyce at pureblend.com (Cliff Joyce) Date: Sun, 1 Apr 2007 22:31:08 -0700 Subject: [TxMt] Re: 10. Re: Move the caret to start of line within a TM snippet? (Allan Odgaard) In-Reply-To: <60BED187-2E23-4D0C-85BA-23083A288198@hanover.edu> References: <0790F941-0671-4ABE-8098-42029E9D0128@pureblend.com> <60BED187-2E23-4D0C-85BA-23083A288198@hanover.edu> Message-ID: >>> disableOutputAutoIndent >>> >> >> Sorry, when using this for snippets, the ?Output? part should not >> be there. Worked like a charm. Thanks, Allan! > Allan, I'm guessing these things will be accessible through the UI > in 2.0? I second that feature request. Looking forward to TM 2.0 and Leopard. BTW, sorry for my emails not threading properly on the ListServe's webpages. I turned off digests and imagine that all will be well now. --Cliff From andre at bonhote.org Mon Apr 2 06:08:20 2007 From: andre at bonhote.org (=?ISO-8859-1?Q?Bonh=F4te_Andr=E9?=) Date: Mon, 2 Apr 2007 08:08:20 +0200 Subject: [TxMt] Blogging from behind a proxy In-Reply-To: <20070330150707.GA990@antiflux.org> References: <5117E1E7-08E9-49F1-8EEF-1AA03C9495C8@bonhote.org> <20070330150707.GA990@antiflux.org> Message-ID: On 30.03.2007, at 17:07, Grant Hollingworth wrote: > * Bonh?te Andr? [2007-03-30 06:48]: >> I'm behind a proxy here, and I'd like to use the blogging bundle. >> Unfortunately, there's not much of information on this in the >> internet, so could someone here help me out? > > Set TM_HTTP_PROXY to host:port. Other environment variables that > affect the bundle are in the help file. Run the Help command in > the Blogging bundle. Shift, a real RTFM issue :) Sorry, didn't consult that one. >> My favourised solution would be that TM takes over the system >> proxy out of OS X's "Location"s. > > The proxy information is in /Library/Preferences/ > SystemConfiguration/preferences.plist, but it lists all the network > interfaces and I'm not sure how to tell which one will be used. It's not only a TM issue. IMHO, Firefox, Terminal.app and all the others should be able to take over the system's settings. Maybe we should wait for Leopard ... Thanks Andr? -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From nick at goya.com.au Mon Apr 2 06:11:17 2007 From: nick at goya.com.au (Nicholas Orr) Date: Mon, 2 Apr 2007 16:11:17 +1000 Subject: [TxMt] XML Indenting Message-ID: G;day all, I'm an infrequent TM user, as I spend 90% of my time in FileMaker Pro, but do some occasional work in XSLT. I was wondering if someone could help with an issue with indenting in XML. I've got some code that looks like the following as output in XML : This has been indented using the "Indent Selection" option. Obviously I'd like it to work the same on the second set of text as it does on the first. I'm told you can change this via the bundle, but grep and regex are like greek to me. Is this something I can modify, or this maybe intended behaviour? Thanks, Nick From andre at bonhote.org Mon Apr 2 06:13:59 2007 From: andre at bonhote.org (=?ISO-8859-1?Q?Bonh=F4te_Andr=E9?=) Date: Mon, 2 Apr 2007 08:13:59 +0200 Subject: [TxMt] Blogging from behind a proxy In-Reply-To: <4DA44729-54A7-45B4-949E-D23F41B9F41F@macromates.com> References: <5117E1E7-08E9-49F1-8EEF-1AA03C9495C8@bonhote.org> <20070330150707.GA990@antiflux.org> <4DA44729-54A7-45B4-949E-D23F41B9F41F@macromates.com> Message-ID: On 31.03.2007, at 16:55, Allan Odgaard wrote: > On 30. Mar 2007, at 17:07, Grant Hollingworth wrote: > >>> My favourised solution would be that TM takes over the system >>> proxy out of OS X's "Location"s. >> The proxy information is in /Library/Preferences/ >> SystemConfiguration/preferences.plist, but it lists all the >> network interfaces and I'm not sure how to tell which one will be >> used. > > There is a Support/bin/proxy_config command which I made to dump > the proxy settings, and it was my intent to make the various bundle > commands use this (preferably through some wrapper -- I wonder why > curl and friends are not modified on OS X to use the system wide > proxy settings?). Yup, sucks definitely. > Unfortunately this user/pass/port is not enough for some proxies > (where you login or have auto config/discovery or something like > that). I don?t have a proxy myself, and I have no experience with > them, so this project to update the bundles to support proxies, > quickly stranded. I have been working with different proxies (squid, cacheflow, ms proxy) for quite a while, and I always only needed hostname:port to connect to them. I guess having user:pass at host:port in the bundles solves the proxy madness in around 80% of the cases - might be worth continuing on this track. Cheers Andr? -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From cbiela at gmail.com Mon Apr 2 07:27:17 2007 From: cbiela at gmail.com (Christoph Biela) Date: Mon, 2 Apr 2007 09:27:17 +0200 Subject: [TxMt] Latex Preview with TextMate on Serveraccount In-Reply-To: References: <8319251F-0982-4AEE-87B7-554725BC523E@glr.tu-darmstadt.de> <343079BE-F690-4DFC-8AF9-7B6933807BB2@macromates.com> <62F1233B-3F72-4FB3-801F-1E9C2B722900@gmail.com> <2DC643E5-3265-43F9-91EB-659E9EBA6CD6@macromates.com> <6B4C2C7B-85CD-45EE-A6C8-FE2BF9FDE0EA@macromates.com> Message-ID: yepp, white-space is the proper hint. Even though I checked it a hundred times (Value), I never checked Variable. Wouldn't it be possible to check this and remove white-space for certain variables. Thanks for your help. Now everything works fine. This support proved the superiority of the TM-Software/Community. Chris On 02/04/07, Allan Odgaard wrote: > On 1. Apr 2007, at 21:20, Christoph Biela wrote: > > > [...] > > #From TM > > TM: find_app PDFView.app > > TM: /Applications/PDFView.app > > [...] > > set to PDFView > > TM: find_app "${TM_LATEX_VIEWER}.app" > > TM: ?well nothing happens > > > > I do not see a pattern there. > > My guess is that TM_LATEX_VIEWER does not have the proper value. > Maybe some leading/trailing spaces? > > Try ?R on the below line: > > echo "${TM_LATEX_VIEWER}.app" > > > ______________________________________________________________________ > 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 Mon Apr 2 07:36:04 2007 From: bibiko at eva.mpg.de (Hans-Joerg Bibiko) Date: Mon, 2 Apr 2007 09:36:04 +0200 Subject: [TxMt] Set Selection from a tmCommand Message-ID: Hi, would it be possible to set a selection in the current document by using a tmCommand? Example: ('|' is indicating the caret position) -This is a te|xt line. I invoke a tmCommand which calculates the starting point of a selection, and it sets the selection to e.g. ('[' and ']' indicate the selection) -This [is a te]xt line. Thanks! Best, Hans From ciawal at gmail.com Mon Apr 2 07:46:08 2007 From: ciawal at gmail.com (=?ISO-8859-1?Q?Ciar=E1n_Walsh?=) Date: Mon, 2 Apr 2007 08:46:08 +0100 Subject: [TxMt] XML Indenting In-Reply-To: References: Message-ID: On 2 Apr 2007, at 07:11, Nicholas Orr wrote: > > That is a somewhat odd way of indenting XML. The normal way is to either have everything on one line (as in your first Data tag) or have the tags and content on separate lines, like so: This way it will also be indented properly by TM. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ciawal at gmail.com Mon Apr 2 07:48:56 2007 From: ciawal at gmail.com (=?ISO-8859-1?Q?Ciar=E1n_Walsh?=) Date: Mon, 2 Apr 2007 08:48:56 +0100 Subject: [TxMt] Set Selection from a tmCommand In-Reply-To: References: Message-ID: <42BA4E95-AF75-40A3-9304-B4C5F22DA144@gmail.com> On 2 Apr 2007, at 08:36, Hans-Joerg Bibiko wrote: > would it be possible to set a selection in the current document by > using a tmCommand? This can be done in a command by taking the entire document as input and outputting the entire document as a snippet, wrapping the selection you want in ${0:?}, however this is bad because since the entire document is being replaced the TM parser has to rescan the entire file. If you know you only need to select on the current line then you can use just that for input/output which would be more efficient. Ideally you would use a macro to do such things, if it is possible. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zettt at macbay.de Mon Apr 2 08:03:34 2007 From: zettt at macbay.de (Zettt) Date: Mon, 2 Apr 2007 01:03:34 -0700 (PDT) Subject: [TxMt] LaTeX Watch In-Reply-To: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> Message-ID: <9786521.post@talk.nabble.com> Robin Houston wrote: > > Here's a script I hacked together last night. Great idea! I checked out your LaTeX watch and had problems adding gv to my PATH environment when writing "export PATH=" and so on in Terminal i can input "gv" and it tells me that it cant be run from Terminal. When writing the same command in X11's Terminal i can't start gv from the Terminal :-o What's wrong there? I searched through Google about 4 hours when i saw your LaTeX watch here on the mailing list and found nothing interesting regarding PATH environment. Thanks -- View this message in context: http://www.nabble.com/LaTeX-Watch-tf3485353.html#a9786521 Sent from the textmate users mailing list archive at Nabble.com. From igor.sutton at gmail.com Mon Apr 2 08:07:50 2007 From: igor.sutton at gmail.com (Igor Sutton Lopes) Date: Mon, 2 Apr 2007 09:07:50 +0100 Subject: [TxMt] XML Indenting In-Reply-To: References: Message-ID: On 2007/04/02, at 08:46, Ciar?n Walsh wrote: > > On 2 Apr 2007, at 07:11, Nicholas Orr wrote: > >> >> > That is a somewhat odd way of indenting XML. The normal way is to > either have everything on one line (as in your first Data tag) or > have the tags and content on separate lines, like so: > > > > > This way it will also be indented properly by TM. Actually, your text data should be inserted within CDATA -- Igor Sutton igor.sutton at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: From nick at goya.com.au Mon Apr 2 09:07:23 2007 From: nick at goya.com.au (Nicholas Orr) Date: Mon, 2 Apr 2007 19:07:23 +1000 Subject: [TxMt] XML Indenting In-Reply-To: References: Message-ID: On 02/04/2007, at 5:46 PM, Ciar?n Walsh wrote: > > On 2 Apr 2007, at 07:11, Nicholas Orr wrote: > >> >> > That is a somewhat odd way of indenting XML. The normal way is to > either have everything on one line (as in your first Data tag) or > have the tags and content on separate lines, like so: > > > > > This way it will also be indented properly by TM. Yes, I realise that. However that's the data I've got, and it's generated that way as a fixed entity, so it's not something I can change right now. I've put in a bug report that the data should be contained in a CDATA section, which would hopefully avoid the issue. In the mean time, the question still stands, is there any way to adjust TM so that it wraps it for me? Thanks, Nick From robin.houston at gmail.com Mon Apr 2 10:04:33 2007 From: robin.houston at gmail.com (Robin Houston) Date: Mon, 2 Apr 2007 11:04:33 +0100 Subject: [TxMt] LaTeX Watch In-Reply-To: <9786521.post@talk.nabble.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> Message-ID: <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> Excellent, I'm pleased that someone is interested! About your problem: 1. What error message do you get, when you try and run gv from the Terminal? 2. Have you actually installed gv? If so, where is it installed? I'll attach the current version of LaTeX Watch, which has better error handling. Robin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Watch document.tmcommand Type: application/octet-stream Size: 1553 bytes Desc: not available URL: -------------- next part -------------- #! /usr/bin/perl # LaTeX Watch, version 1.1 # - by Robin Houston, March 2007. # Changes # 1.1: # - Include $! in error message if ps_viewer fails to start # - run etex in batchmode # - deal sensibly with compilation errors (don't just quit, offer to show log) # - use 'gv -scale 1' (x 1.414) instead of '-scale 2' (x 2) use strict; use warnings; use POSIX; use File::Copy 'copy'; # Debugging flag (currently 0 to disable, or 1 to enable) use constant DEBUG => 0; # Add teTeX path $ENV{PATH} .= ":/usr/local/teTeX/bin/".`/usr/local/teTeX/bin/highesttexbin.pl`; # Add TextMate support path $ENV{PATH} .= ":$ENV{TM_SUPPORT_PATH}/bin"; # PostScript viewer my @ps_viewer = qw(gv -spartan -scale 1 -nocenter -antialias -nowatch); # Location of CocoaDialog binary my $CocoaDialog = "$ENV{TM_SUPPORT_PATH}/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog"; # Explain what's happening (if we're debugging) sub debug_msg { system($CocoaDialog, "msgbox", "--button1" => "OK", "--text" => $_[0]) if DEBUG; } # Display an error dialog and exit with exit-code 1 sub fail { my ($message, $explanation) = @_; system($CocoaDialog, "msgbox", "--button1" => "Cancel", "--title" => "LaTeX Watch error", "--text" => "Error: $message", "--informative-text" => "$explanation."); exit(1) } sub fail_unless_system { system(@_); if ($? == -1) { fail("Failed to execute $_[0]", "The command '@_' failed to execute: $!"); } elsif ($? & 127) { fail("Command failed", "The command '@_' caused $_[0] to die with signal ".($? & 127)); } elsif ($? >>= 8) { fail("Command failed", "The command '@_' failed (error code $?)"); } } my $filepath = $ENV{TM_FILEPATH}; fail("File not saved", "You must save the file before it can be watched") if !defined($filepath); my ($wd, $name); if ($filepath =~ m!(.*)/!) { $wd = $1; my $fullname = $'; if ($fullname =~ /\.tex$/) { $name = $`; } else { fail("Filename doesn't end in .tex", "The filename ($fullname) does not end with the .tex extension"); } } else { fail("Path does not contain /", "The file path ($filepath) does not contain a '/'"); } if (! -W $wd) { fail("Directory not writeable", "I can't write to the directory $wd"); } my ($preamble, $viewer_pid); # Clean up if we're interrupted or die sub clean_up { debug_msg("Cleaning up"); unlink(map("$wd/.$name.$_", qw(ini fmt tex dvi ps bbl log watcher_pid))); kill (2, $viewer_pid) if defined $viewer_pid; } END { clean_up() } $SIG{INT} = $SIG{TERM} = sub { exit(0) }; my $mtime; while(1) { my $current_mtime = -M $filepath; if (!defined($current_mtime)) { fail("Failed to get modification time", "I failed to find the modification time of the file '$filepath': $!"); } if (!defined($mtime) or $current_mtime < $mtime) { debug_msg("Reloading file"); $mtime = $current_mtime; reload(); compile() and view(); } if (defined($viewer_pid) and waitpid($viewer_pid, POSIX::WNOHANG)) { my $r = $?; debug_msg("Viewer appears to have been closed ($r). Exiting."); if ($r & 127) { fail("Viewer failed", "The PostScript viewer died with signal ".($r & 127)); } elsif ($r >>= 8) { fail("Viewer failed", "The PostScript viewer exited with an error (error code $r)"); } exit; } sleep(1); } sub reload { open (my $f, "<", $filepath) or fail ("Failed to open file", "I couldn't open the file '$filepath' for reading: $!"); local $/ = "\\begin{document}"; my $new_preamble = <$f>; chomp ($new_preamble) or fail ("No \\begin{document} found", "I couldn't find the command \\begin{document} in your file"); if ($new_preamble ne $preamble) { debug_msg("Preamble has changed. Regenerating format."); regenerate_format($new_preamble); } undef $/; save_body(<$f>); close $f or fail ("Failed to close file", "I got an error closing the file '$filepath': $!"); } sub regenerate_format { ($preamble) = @_; open (my $ini, ">", "$wd/.$name.ini") or fail("Failed to create file", "The file '$wd/.$name.ini' could not be opened for writing: $!"); print $ini ($preamble, "\n\\dump\n"); close $ini or fail("Failed to close file", "The file '$wd/.$name.ini' gave an error on closing: $!"); copy("$wd/$name.bbl", "$wd/.$name.bbl"); # Ignore errors fail_unless_system("etex", "-ini", -interaction => "batchmode", "&latex", "$wd/.$name.ini"); } sub save_body { open (my $f, ">", "$wd/.$name.tex") or fail("Failed to create file", "I couldn't create the file '$wd/.$name.tex': $!"); print $f ("\\begin{document}\n", @_); close($f) or fail("Failed to close file", "I got an error on closing the file '$wd/.$name.tex': $!"); } sub compile { copy("$wd/$name.bbl", "$wd/.$name.bbl"); # Ignore errors copy("$wd/$name.aux", "$wd/.$name.aux"); # Ignore errors my @tex_command = ("etex", -interaction => "batchmode", "&.$name", "$wd/.$name.tex"); system(@tex_command); if ($? == -1) { fail("Failed to execute tex", "The command '@tex_command' failed to execute: $!"); } elsif ($? & 127) { fail("Command failed", "The command '@tex_command' caused $tex_command[0] to die with signal ".($? & 127)); } elsif ($? >>= 8) { if ($? == 1) { # Probably an error in the document offer_to_show_log(); return; } else { fail("Command failed", "The command '@tex_command' exited with unexpected error code $?"); } } else { # Success! rename("$wd/.$name.aux", "$wd/$name.aux"); fail_unless_system("dvips", "$wd/.$name.dvi", "-o"); return 1; } } sub offer_to_show_log { pipe (my $rh, my $wh); if (my $pid = fork()) { # Parent my $button = <$rh>; waitpid($pid, 0); if ($?) { # If we failed to show the dialog, there's not much sense # in trying to put up another dialog to explain what happened! # Reluctantly ignore it. debug_msg("Failed to offer to show log"); } elsif ($button == 1) { # OK button pressed fail_unless_system("mate", "$wd/.$name.log"); } } else { close(STDOUT); open(STDOUT, ">&", $wh); # Talk to the pipe! exec($CocoaDialog, "ok-msgbox", "--title" => "LaTeX Watch: compilation error", "--text" => "Error compiling $name.tex", "--informative-text" => "TeX gave an error compiling the file. Shall I show the log?"); # If there's an error, just exit with a non-zero code. debug_msg("Child process failed to offer to show log."); POSIX::_exit(2); # Use _exit so we don't trigger cleanup code. } } sub view { if (defined($viewer_pid)) { kill(1, $viewer_pid) or fail("Failed to signal viewer", "I failed to signal the PostScript viewer (PID $viewer_pid) to reload: $!"); } else { $viewer_pid = start_viewer("$wd/.$name.ps"); } } sub start_viewer { my ($ps_file) = @_; my $pid = fork(); if ($pid) { # In parent return $pid; } else { # In child POSIX::setsid(); # detach from terminal close STDOUT; open(STDOUT, ">", "/dev/null"); close STDERR; open(STDERR, ">", "/dev/null"); debug_msg("Starting PostScript viewer ($$)"); exec(@ps_viewer, $ps_file); fail("Failed to start PostScript viewer", "I failed to run the PostScript viewer (@ps_viewer): $!"); } } From ciawal at gmail.com Mon Apr 2 10:19:01 2007 From: ciawal at gmail.com (=?ISO-8859-1?Q?Ciar=E1n_Walsh?=) Date: Mon, 2 Apr 2007 11:19:01 +0100 Subject: [TxMt] XML Indenting In-Reply-To: References: Message-ID: <023E98CB-937C-4CC4-B459-CCC6C89E261C@gmail.com> On 2 Apr 2007, at 10:07, Nicholas Orr wrote: > In the mean time, the question still stands, is there any way to > adjust TM so that it wraps it for me? You could edit the language syntax if you really wanted to (but I suspect that you don't). Some alternatives: ? make a find/replace macro to drop the trailing tag onto the next line, so that the standard indent will work ? if your document is well-formatted, the Tidy command (XML?Tidy or ??H) should indent it for you -------------- next part -------------- An HTML attachment was scrubbed... URL: From yt.mac at free.fr Mon Apr 2 10:39:03 2007 From: yt.mac at free.fr (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: Mon, 2 Apr 2007 12:39:03 +0200 Subject: [TxMt] JavaScript errors how to jump to ? In-Reply-To: <2D0F0E0D-89B3-4BAF-8D63-8CA981605F59@macromates.com> References: <2D0F0E0D-89B3-4BAF-8D63-8CA981605F59@macromates.com> Message-ID: <514B415C-D66B-4DD9-8D22-F329D8D14EE8@free.fr> Le 31 mars 07 ? 16:43, Allan Odgaard a ?crit : > Where exactly are errors reported? within a tooltip > I take it this is by using the JavaScript Tools bundle? I thought > it had a clickable validation results window, though also a tool- > tip for just showing them. You?d need to invoke the former action > to click the errors. > i've attempted validated like that however i get a Ruby error from the Tools bundle : /Library/Application Support/TextMate/Bundles/JavaScript Tools.tmbundle/Support/bin/lint.rb:29: undefined method `+' for nil:NilClass (NoMethodError) from /Library/Application Support/ TextMate/Bundles/JavaScript Tools.tmbundle/Support/bin/lint.rb:27:in `map' from /Library/Application Support/TextMate/Bundles/JavaScript Tools.tmbundle/Support/bin/lint.rb:27 from /Library/Application Support/TextMate/Bundles/JavaScript Tools.tmbundle/Support/bin/ lint.rb:22:in `map' from /Library/Application Support/TextMate/ Bundles/JavaScript Tools.tmbundle/Support/bin/lint.rb:22 may be i don't have the latest version of "JavaScript Tools" i'll try to re(svn)sync asap. best, Yvon From yt.mac at free.fr Mon Apr 2 10:54:14 2007 From: yt.mac at free.fr (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: Mon, 2 Apr 2007 12:54:14 +0200 Subject: [TxMt] JavaScript errors how to jump to ? In-Reply-To: <514B415C-D66B-4DD9-8D22-F329D8D14EE8@free.fr> References: <2D0F0E0D-89B3-4BAF-8D63-8CA981605F59@macromates.com> <514B415C-D66B-4DD9-8D22-F329D8D14EE8@free.fr> Message-ID: Le 2 avr. 07 ? 12:39, Une B?vue a ?crit : > > may be i don't have the latest version of "JavaScript Tools" i'll > try to re(svn)sync asap. > i did it : /Library/Application Support/TextMate/Bundles%> sudo svn up *.tmbundle Password: U CSS.tmbundle/Commands/Insert Color.plist U CSS.tmbundle/Preferences/Property Completions.tmPreferences A CSS.tmbundle/Snippets/Fixed Position Bottom 100% wide IE6.tmSnippet A CSS.tmbundle/Snippets/scrollbar.tmSnippet U CSS.tmbundle/info.plist U CSS.tmbundle/Syntaxes/CSS.plist Updated to revision 6937. Updated to revision 6937. Updated to revision 6937. Updated to revision 6. U JavaScript.tmbundle/Syntaxes/JavaScript.plist Updated to revision 6937. Updated to revision 6937. Updated to revision 6937. /Library/Application Support/TextMate/Bundles%> osascript -e 'tell app "TextMate" to reload bundles' resulting in the same error :[ best, Yvon From tsom467 at gmail.com Mon Apr 2 11:47:45 2007 From: tsom467 at gmail.com (John Tsombakos) Date: Mon, 2 Apr 2007 07:47:45 -0400 Subject: [TxMt] Re: Errors launching Textmate In-Reply-To: References: <48109E1C-1443-4876-B360-F8F49A6684BE@macromates.com> Message-ID: On 3/31/07, John Tsombakos wrote: > On 3/31/07, Allan Odgaard wrote: > > > > > It means you have the Dialog plug-in installed in two locations -- > > likely because you have done a svn checkout of it to ~/Library or / > > Library. > > > > I'd suggest removing the checkout, unless you plan to keep it up-to- > > date with new versions of TM. > > Yeah, I have a version of it in /Library/Application Support/TextMate, > that is there from my svn update: > > cd /Library/Application\ Support/TextMate > svn up > > If I remove it from /Library/... won't it just be replaced when I do > my next svn update? > Should I remove the one in the TextMate bundle itself? Is TM even using the one that's being updated via SVN, or is that error indicating that it is not? How are others handling this?? thx From zettt at macbay.de Mon Apr 2 11:57:15 2007 From: zettt at macbay.de (Zettt) Date: Mon, 2 Apr 2007 04:57:15 -0700 (PDT) Subject: [TxMt] LaTeX Watch In-Reply-To: <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> Message-ID: <9789289.post@talk.nabble.com> Robin Houston wrote: > > Excellent, I'm pleased that someone is interested! About your problem: > > 1. What error message do you get, when you try and run gv from the > Terminal? > 2. Have you actually installed gv? If so, where is it installed? > > I'll attach the current version of LaTeX Watch, which has better error > handling. > > Robin I was very confused that nobody else is interested in this thing. I thought, lets wait a while this will be a thing everybody wants to have. But nothing happened :-/ 2. gv is inside /sw/bin/ 1. I found the error...i can now start gv from terminal but i have to enter export before. I had the false syntax for export now i can run it from within X11's Terminal. But when i try to watch the document nothing happens. Zettt -- View this message in context: http://www.nabble.com/LaTeX-Watch-tf3485353.html#a9789289 Sent from the textmate users mailing list archive at Nabble.com. From zettt at macbay.de Mon Apr 2 11:57:15 2007 From: zettt at macbay.de (Zettt) Date: Mon, 2 Apr 2007 04:57:15 -0700 (PDT) Subject: [TxMt] LaTeX Watch In-Reply-To: <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> Message-ID: <9789288.post@talk.nabble.com> Robin Houston wrote: > > Excellent, I'm pleased that someone is interested! About your problem: > > 1. What error message do you get, when you try and run gv from the > Terminal? > 2. Have you actually installed gv? If so, where is it installed? > > I'll attach the current version of LaTeX Watch, which has better error > handling. > > Robin I was very confused that nobody else is interested in this thing. I thought, lets wait a while this will be a thing everybody wants to have. But nothing happened :-/ 2. gv is inside /sw/bin/ 1. I found the error...i can now start gv from terminal but i have to enter export before. I had the false syntax for export now i can run it from within X11's Terminal. But when i try to watch the document nothing happens. Zettt -- View this message in context: http://www.nabble.com/LaTeX-Watch-tf3485353.html#a9789288 Sent from the textmate users mailing list archive at Nabble.com. From richard at rnet.org Mon Apr 2 12:15:08 2007 From: richard at rnet.org (Richard Blumberg) Date: Mon, 2 Apr 2007 08:15:08 -0400 Subject: [TxMt] Re: Newbie lost: how to change Textmate search path In-Reply-To: References: Message-ID: It's mostly working now; I commented out a line in my /etc/profile script that I must have added a year or so ago when I was installing System Logistics servers, and everythng is working except for Python templates. I still can't create a Python template, either from the main file menu or from the project pane. I'm using the cutting-edge version of TM, and I've downloaded the latest package of bundles via subversion. Is the Python bundle broken? Thanks for all the help. I've learned a lot along the way. Richard On 4/1/07, Allan Odgaard wrote: > > On 2. Apr 2007, at 02:30, Richard Blumberg wrote: > > > [...] > > And I still can't create a new file from a template or create a new > > file in > > a project. > > Is there any messages in Console? > > > If I select File/New From Template/Edit Templates..., it finds the > > templates > > just fine, so there seems to be nothing wrong with the search path. > > But I > > still can't open a new file. > > I assume Test also fails in the template editor? > > What about the Text ? Empty File, does that one also fail? If so, I > really can't imagine this is anything else than your shell startup > which is the problem. > > > > > > ______________________________________________________________________ > 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 robin.houston at gmail.com Mon Apr 2 13:09:37 2007 From: robin.houston at gmail.com (Robin Houston) Date: Mon, 2 Apr 2007 14:09:37 +0100 Subject: [TxMt] LaTeX Watch In-Reply-To: <9789288.post@talk.nabble.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> <9789288.post@talk.nabble.com> Message-ID: <1b795e7b0704020609k2eb07a0cyf4d4856b1377e50d@mail.gmail.com> Okay, I guess a lot of people might want to use Fink to install gv, so I've added /sw/bin to the path in the script. However, if that were the only problem, you ought to get an error dialog from my script. I guess the reason nothing happened at all is that you didn't set the executable bit on the script. I attach a new version (1.2) which ought to solve these problems. If it still doesn't work, then go into the Bundle Editor, click on the watch command, and change "Output: Discard" to "Output: Create New Document". Then try it again ? you should then get a document containing relevant error messages. Thanks for testing! Robin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Watch document.tmcommand Type: application/octet-stream Size: 2175 bytes Desc: not available URL: -------------- next part -------------- #! /usr/bin/perl # LaTeX Watch, version 1.2 # - by Robin Houston, March 2007. # Changes # 1.1: # - Include $! in error message if ps_viewer fails to start # - run etex in batchmode # - deal sensibly with compilation errors (don't just quit, offer to show log) # - use 'gv -scale 1' (x 1.414) instead of '-scale 2' (x 2) # # 1.2: # - Add Fink path (/sw/bin) to $PATH # - Improved error handling in the command; also don't assume this script is executable. use strict; use warnings; use POSIX; use File::Copy 'copy'; # Debugging flag (currently 0 to disable, or 1 to enable) use constant DEBUG => 0; # Add teTeX path $ENV{PATH} .= ":/usr/local/teTeX/bin/".`/usr/local/teTeX/bin/highesttexbin.pl`; # Add TextMate support path $ENV{PATH} .= ":$ENV{TM_SUPPORT_PATH}/bin"; # Add Fink path $ENV{PATH} .= ":/sw/bin"; # PostScript viewer my @ps_viewer = qw(gv -spartan -scale 1 -nocenter -antialias -nowatch); # Location of CocoaDialog binary my $CocoaDialog = "$ENV{TM_SUPPORT_PATH}/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog"; # Explain what's happening (if we're debugging) sub debug_msg { system($CocoaDialog, "msgbox", "--button1" => "OK", "--text" => $_[0]) if DEBUG; } # Display an error dialog and exit with exit-code 1 sub fail { my ($message, $explanation) = @_; system($CocoaDialog, "msgbox", "--button1" => "Cancel", "--title" => "LaTeX Watch error", "--text" => "Error: $message", "--informative-text" => "$explanation."); exit(1) } sub fail_unless_system { system(@_); if ($? == -1) { fail("Failed to execute $_[0]", "The command '@_' failed to execute: $!"); } elsif ($? & 127) { fail("Command failed", "The command '@_' caused $_[0] to die with signal ".($? & 127)); } elsif ($? >>= 8) { fail("Command failed", "The command '@_' failed (error code $?)"); } } my $filepath = $ENV{TM_FILEPATH}; fail("File not saved", "You must save the file before it can be watched") if !defined($filepath); my ($wd, $name); if ($filepath =~ m!(.*)/!) { $wd = $1; my $fullname = $'; if ($fullname =~ /\.tex$/) { $name = $`; } else { fail("Filename doesn't end in .tex", "The filename ($fullname) does not end with the .tex extension"); } } else { fail("Path does not contain /", "The file path ($filepath) does not contain a '/'"); } if (! -W $wd) { fail("Directory not writeable", "I can't write to the directory $wd"); } my ($preamble, $viewer_pid); # Clean up if we're interrupted or die sub clean_up { debug_msg("Cleaning up"); unlink(map("$wd/.$name.$_", qw(ini fmt tex dvi ps bbl log watcher_pid))); kill (2, $viewer_pid) if defined $viewer_pid; } END { clean_up() } $SIG{INT} = $SIG{TERM} = sub { exit(0) }; my $mtime; while(1) { my $current_mtime = -M $filepath; if (!defined($current_mtime)) { fail("Failed to get modification time", "I failed to find the modification time of the file '$filepath': $!"); } if (!defined($mtime) or $current_mtime < $mtime) { debug_msg("Reloading file"); $mtime = $current_mtime; reload(); compile() and view(); } if (defined($viewer_pid) and waitpid($viewer_pid, POSIX::WNOHANG)) { my $r = $?; debug_msg("Viewer appears to have been closed ($r). Exiting."); if ($r & 127) { fail("Viewer failed", "The PostScript viewer died with signal ".($r & 127)); } elsif ($r >>= 8) { fail("Viewer failed", "The PostScript viewer exited with an error (error code $r)"); } exit; } sleep(1); } sub reload { open (my $f, "<", $filepath) or fail ("Failed to open file", "I couldn't open the file '$filepath' for reading: $!"); local $/ = "\\begin{document}"; my $new_preamble = <$f>; chomp ($new_preamble) or fail ("No \\begin{document} found", "I couldn't find the command \\begin{document} in your file"); if ($new_preamble ne $preamble) { debug_msg("Preamble has changed. Regenerating format."); regenerate_format($new_preamble); } undef $/; save_body(<$f>); close $f or fail ("Failed to close file", "I got an error closing the file '$filepath': $!"); } sub regenerate_format { ($preamble) = @_; open (my $ini, ">", "$wd/.$name.ini") or fail("Failed to create file", "The file '$wd/.$name.ini' could not be opened for writing: $!"); print $ini ($preamble, "\n\\dump\n"); close $ini or fail("Failed to close file", "The file '$wd/.$name.ini' gave an error on closing: $!"); copy("$wd/$name.bbl", "$wd/.$name.bbl"); # Ignore errors fail_unless_system("etex", "-ini", -interaction => "batchmode", "&latex", "$wd/.$name.ini"); } sub save_body { open (my $f, ">", "$wd/.$name.tex") or fail("Failed to create file", "I couldn't create the file '$wd/.$name.tex': $!"); print $f ("\\begin{document}\n", @_); close($f) or fail("Failed to close file", "I got an error on closing the file '$wd/.$name.tex': $!"); } sub compile { copy("$wd/$name.bbl", "$wd/.$name.bbl"); # Ignore errors copy("$wd/$name.aux", "$wd/.$name.aux"); # Ignore errors my @tex_command = ("etex", -interaction => "batchmode", "&.$name", "$wd/.$name.tex"); system(@tex_command); if ($? == -1) { fail("Failed to execute tex", "The command '@tex_command' failed to execute: $!"); } elsif ($? & 127) { fail("Command failed", "The command '@tex_command' caused $tex_command[0] to die with signal ".($? & 127)); } elsif ($? >>= 8) { if ($? == 1) { # Probably an error in the document offer_to_show_log(); return; } else { fail("Command failed", "The command '@tex_command' exited with unexpected error code $?"); } } else { # Success! rename("$wd/.$name.aux", "$wd/$name.aux"); fail_unless_system("dvips", "$wd/.$name.dvi", "-o"); return 1; } } sub offer_to_show_log { pipe (my $rh, my $wh); if (my $pid = fork()) { # Parent my $button = <$rh>; waitpid($pid, 0); if ($?) { # If we failed to show the dialog, there's not much sense # in trying to put up another dialog to explain what happened! # Reluctantly ignore it. debug_msg("Failed to offer to show log"); } elsif ($button == 1) { # OK button pressed fail_unless_system("mate", "$wd/.$name.log"); } } else { close(STDOUT); open(STDOUT, ">&", $wh); # Talk to the pipe! exec($CocoaDialog, "ok-msgbox", "--title" => "LaTeX Watch: compilation error", "--text" => "Error compiling $name.tex", "--informative-text" => "TeX gave an error compiling the file. Shall I show the log?"); # If there's an error, just exit with a non-zero code. debug_msg("Child process failed to offer to show log."); POSIX::_exit(2); # Use _exit so we don't trigger cleanup code. } } sub view { if (defined($viewer_pid)) { kill(1, $viewer_pid) or fail("Failed to signal viewer", "I failed to signal the PostScript viewer (PID $viewer_pid) to reload: $!"); } else { $viewer_pid = start_viewer("$wd/.$name.ps"); } } sub start_viewer { my ($ps_file) = @_; my $pid = fork(); if ($pid) { # In parent return $pid; } else { # In child POSIX::setsid(); # detach from terminal close STDOUT; open(STDOUT, ">", "/dev/null"); close STDERR; open(STDERR, ">", "/dev/null"); debug_msg("Starting PostScript viewer ($$)"); exec(@ps_viewer, $ps_file); fail("Failed to start PostScript viewer", "I failed to run the PostScript viewer (@ps_viewer): $!"); } } From williams at astro.ox.ac.uk Mon Apr 2 14:26:06 2007 From: williams at astro.ox.ac.uk (Michael Williams) Date: Mon, 2 Apr 2007 15:26:06 +0100 Subject: [TxMt] Saving generated HTML from Markdown In-Reply-To: <5C79D58E-2F9F-48C5-AAB0-0140A0E7F407@markelikalderon.com> References: <1BF3FCEE-5F87-4C90-9779-918502141716@integrateddevcorp.com> <6D18ECF7-60B5-4D08-8394-2B40474F246C@gmail.com> <18C21D23-EFB0-4E4C-969E-B5C4CD2E22C0@integrateddevcorp.com> <6C51E04C-38AA-448F-A1BE-DBFA6B533428@macromates.com> <20070401222836.GA14575@astro.ox.ac.uk> <5C79D58E-2F9F-48C5-AAB0-0140A0E7F407@markelikalderon.com> Message-ID: <20070402142605.GB25126@astro.ox.ac.uk> On Mon, Apr 02, 2007 at 03:13:07AM +0100, Mark Eli Kalderon wrote: > Well, if you use MultiMarkdown, you can use a metadata field to > specify a CSS file. That would be a lot like inputting a standard > preamble into a LaTeX file... > > Anyway, part of the point of things like MultiMarkdown and pandoc[1] > is to use and extended Markdown syntax to generate a variety of > output---in which case the Markdwon file is functioning as a source > file. Yes. The presence or otherwise of styling information such as CSS or a LaTeX preamble in addition to the content is a red herring. Clearly there are many differences between LaTeX and Markdown, but If you anticipate changing the document in the future, but need a rendered page now for whatever reason, there's no question that the source should be retained. A "Save (e.g.) HTML to new file" script in the default Markdown bundle would make this easier when working with Markdown in TextMate. -- Mike From zettt at macbay.de Mon Apr 2 15:04:16 2007 From: zettt at macbay.de (Zettt) Date: Mon, 2 Apr 2007 08:04:16 -0700 (PDT) Subject: [TxMt] LaTeX Watch In-Reply-To: <1b795e7b0704020609k2eb07a0cyf4d4856b1377e50d@mail.gmail.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> <1b795e7b0704020609k2eb07a0cyf4d4856b1377e50d@mail.gmail.com> Message-ID: <9792468.post@talk.nabble.com> Robin Houston wrote: > I guess the reason > nothing happened at all is that you didn't set the executable bit on the > script. The new Document is empty. -- View this message in context: http://www.nabble.com/LaTeX-Watch-tf3485353.html#a9792468 Sent from the textmate users mailing list archive at Nabble.com. From textmate at skurfer.com Mon Apr 2 15:15:32 2007 From: textmate at skurfer.com (Rob McBroom) Date: Mon, 2 Apr 2007 11:15:32 -0400 Subject: Local test environment (was: [TxMt] Re: SVN?) In-Reply-To: <2C8EF0FB-1BD8-42A6-AEBD-A485FBFCED87@macromates.com> References: <8720501C-7243-4D77-A748-CB57B6E30E55@grokcodile.com> <2AB2EF8C-DBB9-438F-9AB7-E5EC5FEAAEC5@skurfer.com> <2C8EF0FB-1BD8-42A6-AEBD-A485FBFCED87@macromates.com> Message-ID: <5F9AE5A8-2B01-44BF-A145-65979724811F@skurfer.com> On Mar 31, 2007, at 11:18 AM, Allan Odgaard wrote: > On 30. Mar 2007, at 18:52, Constantinos Neophytou ? wrote: > >> [...] As for 'changing files directly on the server', I'm 100% >> against that. If you really want to monitor the changes as they >> happen (which you should), set up a local environment [...] > > While a local testing environment definitely has advantages such as > being able to work offline, having zero network delays while > testing, etc. I also find it is a good exercise in how many > dependencies you have. > > I.e. if setting up a local testing environment is a pain because > you have lots of dependencies and no good view of them, or you > require all sorts of setup and whatnot, well, then you probably > should migrate to a simpler architecture, it might just be that one > day you want to move your site from Linux to BSD, from one hosting > service to another, or maybe you want to wrap up your code and sell > it, start it on another server, etc. Unfortunately, a local environment isn't an option in some cases. Consider for example an application that manages local users and groups. Or an application that talks to LDAP, Kerberos, a MySQL database, a PostgreSQL database, and an Oracle database and assume that one or more of these resources contains sensitive information. My employer isn't going to allow access to all those things from someone's workstation and I happen to think they're right. As for making changes on "the server" being a bad idea, we don't make changes on *the* server. We make changes on *a* server. The development server, to be specific. Nothing wrong with that in my opinion. --- Rob McBroom I didn't "switch" to Apple... my OS did. From harrison at Math.Berkeley.EDU Mon Apr 2 15:29:44 2007 From: harrison at Math.Berkeley.EDU (Jenny Harrison) Date: Mon, 2 Apr 2007 08:29:44 -0700 Subject: [TxMt] LaTeX Watch In-Reply-To: <1b795e7b0704020609k2eb07a0cyf4d4856b1377e50d@mail.gmail.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> <9789288.post@talk.nabble.com> <1b795e7b0704020609k2eb07a0cyf4d4856b1377e50d@mail.gmail.com> Message-ID: <9C074E40-1F5D-4448-93D9-940FA60B697E@math.berkeley.edu> I am very interested in LaTeX Watch. Some people never experience slowdowns, especially with their Intel machines, but I have longed for something like this when formatting large documents. Jenny On Apr 2, 2007, at 6:09 AM, Robin Houston wrote: > Okay, I guess a lot of people might want to use Fink to install gv, > so I've added /sw/bin to the path in the script. However, if that > were the only problem, you ought to get an error dialog from my > script. I guess the reason nothing happened at all is that you > didn't set the executable bit on the script. > > I attach a new version (1.2) which ought to solve these problems. > If it still doesn't work, then go into the Bundle Editor, click on > the watch command, and change "Output: Discard" to "Output: Create > New Document". Then try it again ? you should then get a document > containing relevant error messages. > > Thanks for testing! > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From textmate at skurfer.com Mon Apr 2 15:31:35 2007 From: textmate at skurfer.com (Rob McBroom) Date: Mon, 2 Apr 2007 11:31:35 -0400 Subject: [TxMt] Re: Running an AppleScript In-Reply-To: References: <276B6C82-06D3-440F-BC60-806D7BA4F808@neologica.com.au> Message-ID: <80F32025-93F5-4AD8-8047-073352E1FE6B@skurfer.com> On Mar 31, 2007, at 1:47 PM, Jacob Rus wrote: > Ah, Allan explained that Mail will just pick whichever encoding > results in the smallest email, so apparently including ? will > result in a Mac Roman encoding, because that saves 1 byte over the > utf-8 encoded version. There is a menu item in Mail that might affect this behavior: Message ? Text Encoding ? Unicode (UTF-8) I haven't done much experimenting to see what it actually does though. (Is it only for reading or only for sending? Do you have to set it per-message or is it "sticky"? etc.) But it's there. :) --- Rob McBroom I didn't "switch" to Apple... my OS did. From oblivious at subtlegradient.com Mon Apr 2 15:32:11 2007 From: oblivious at subtlegradient.com (Thomas Aylott (subtleGradient)) Date: Mon, 2 Apr 2007 11:32:11 -0400 Subject: Local test environment (was: [TxMt] Re: SVN?) In-Reply-To: <5F9AE5A8-2B01-44BF-A145-65979724811F@skurfer.com> References: <8720501C-7243-4D77-A748-CB57B6E30E55@grokcodile.com> <2AB2EF8C-DBB9-438F-9AB7-E5EC5FEAAEC5@skurfer.com> <2C8EF0FB-1BD8-42A6-AEBD-A485FBFCED87@macromates.com> <5F9AE5A8-2B01-44BF-A145-65979724811F@skurfer.com> Message-ID: <728AC63B-0C3A-4D3D-81FE-1B4C6FBAE52C@subtlegradient.com> On Apr 2, 2007, at 11:15 AM, Rob McBroom wrote: > As for making changes on "the server" being a bad idea, we don't > make changes on *the* server. We make changes on *a* server. The > development server, to be specific. Nothing wrong with that in my > opinion. > > --- > Rob McBroom I have worked like that in the past. http://subtlegradient.com/articles/2007/03/30/web-development- environment-and-workflow There is nothing wrong with having an environment that requires uploading files to a dev/test server before you can test them. Other than being really tedious and annoying that is ;) Hopefully TextMate 2.0 will allow for plugins and bundle commands that can make integrating FTP/SCP a lot easier. I've written a command that helps me formulate good SCP commands. I then check them over and execute them manually from the terminal. You can never be too careful with your production server :D thomas Aylott ? subtleGradient ? CrazyEgg ? sixteenColors -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin.houston at gmail.com Mon Apr 2 15:41:24 2007 From: robin.houston at gmail.com (Robin Houston) Date: Mon, 2 Apr 2007 16:41:24 +0100 Subject: [TxMt] LaTeX Watch In-Reply-To: <9C074E40-1F5D-4448-93D9-940FA60B697E@math.berkeley.edu> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> <9789288.post@talk.nabble.com> <1b795e7b0704020609k2eb07a0cyf4d4856b1377e50d@mail.gmail.com> <9C074E40-1F5D-4448-93D9-940FA60B697E@math.berkeley.edu> Message-ID: <1b795e7b0704020841u54a2ebddgd802b9905accb7f6@mail.gmail.com> On 4/2/07, Jenny Harrison wrote: > > I am very interested in LaTeX Watch. Some people never experience > slowdowns, especially with their Intel machines, but I have longed for > something like this when formatting large documents. > It does make a big difference, especially if you need to compile via PostScript (e.g. if you're using PSTricks). For the document I'm working on at today, it takes more than a minute to generate a PDF file from the source, but only 5 seconds to update the preview using this script. Even for documents that don't need PostScript specials, it's still several times faster on my machine. Please do give it a try, when you have the time, and let me know whether it works (or if not, why not). Thanks, Robin -------------- next part -------------- An HTML attachment was scrubbed... URL: From daryl.spitzer at gmail.com Mon Apr 2 15:59:41 2007 From: daryl.spitzer at gmail.com (Daryl Spitzer) Date: Mon, 2 Apr 2007 08:59:41 -0700 Subject: [TxMt] Re: Getting started with the Perforce bundle? In-Reply-To: <3409E4BA-D050-4E16-B4A3-FF314880B9DC@cjack.com> References: <3409E4BA-D050-4E16-B4A3-FF314880B9DC@cjack.com> Message-ID: > But you need to convince Allan to give you write access. The best way > to do that is probably to contribute a bunch of stuff to the Perforce > bundle (or to other bundles as strikes your fancy) as patches or as a > downloadable copy somewhere. I finally made time to start turning my experimental changes into patches. I thought I'd start simple. Attached is a Help command I added. (I stole the method of embedding the Markdown text in the command text from the TODO bundle Help command.) After I get confirmation that this patch is alright (or I learn what I did wrong), I'll start contributing more patches (to the bundle code itself). -- Daryl On 3/21/07, Chris Thomas wrote: > > > I didn't get any replies to my earlier emails, which makes me wonder > > if the Perforce bundle needs a maintainer. > > I would think the relatively thin state of the Perforce bundle would > be a better hint. :) > > > If so, I would like to volunteer. > > Great! I've been hoping someone would step up. My workplace switched > to Subversion, I've never used Perforce outside of work, and the > amount of spare time I have is usually zero or negative. > > But you need to convince Allan to give you write access. The best way > to do that is probably to contribute a bunch of stuff to the Perforce > bundle (or to other bundles as strikes your fancy) as patches or as a > downloadable copy somewhere. > > Chris > > On Mar 21, 2007, at 4:16 PM, Daryl Spitzer wrote: > > > I solved my problem. It occurred to me that the Perforce bundle > > commands that use shell scripts have environment variables set in my > > .bash_profile, but the commands that use Ruby scripts don't. Adding > > P4PORT, P4USER and P4CLIENT shell variables in TextMate's Advanced > > preferences did the trick. > > > > I didn't get any replies to my earlier emails, which makes me wonder > > if the Perforce bundle needs a maintainer. If so, I would like to > > volunteer. > > > > -- > > Daryl > > > > > > On 3/19/07, Daryl Spitzer wrote: > >> I just noticed that Perforce->Open for Editing works (but > >> Perforce->Diff With Base still doesn't). I see in the Bundle Editor > >> that Open for Editing is a simple shell script (that just does `p4 > >> edit`) but Diff With Base is a Ruby script that requires 'p4_diff' > >> and > >> calls "Perforce::diff_active_file()". So the error message I get may > >> be misleading. > >> > >> I wonder if I need to install the Perforce Ruby API separately. > >> > >> -- > >> Daryl > >> > >> > >> On 3/19/07, Daryl Spitzer wrote: > >> > I'm new to TextMate, but after reading James Gray's book, I'm > >> eager to > >> > become a "power user"... > >> > > >> > I installed the Perforce bundle (using the GetBundle bundle) and > >> just > >> > tried it for the first time. I selected Perforce->Diff With Base > >> with > >> > a file open that I've already ran `p4 edit` on in the command-line, > >> > and I get: > >> > > >> > Perforce client error: > >> > Connect to server failed; check $P4PORT. > >> > TCP connect to perforce failed. > >> > perforce: host unknown. > >> > > >> > I double-checked that $P4PORT is set properly, and I can run > >> Perforce > >> > fine from Terminal (and from BBEdit). Do I need to do something > >> else > >> > to setup the bundle? (Is there a way to find documentation for > >> > bundles that I haven't found yet?) > >> > > >> > I also noticed that all the key equivalents in the Perforce > >> bundle are > >> > "^$". Is this a sign of some kind of problem? > >> > > >> > -- > >> > Daryl > >> > > >> > > > > ______________________________________________________________________ > > 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 > -------------- next part -------------- A non-text attachment was scrubbed... Name: Perforce_bundle.patch Type: application/octet-stream Size: 2447 bytes Desc: not available URL: From throw-away-1 at macromates.com Mon Apr 2 16:32:21 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 18:32:21 +0200 Subject: [TxMt] Re: Newbie lost: how to change Textmate search path In-Reply-To: References: Message-ID: On 2. Apr 2007, at 14:15, Richard Blumberg wrote: > It's mostly working now; I commented out a line in my /etc/profile > script that I must have added a year or so ago when I was > installing System Logistics servers, and everythng is working > except for Python templates. I still can't create a Python > template, either from the main file menu or from the project pane. > > I'm using the cutting-edge version of TM, and I've downloaded the > latest package of bundles via subversion. > > Is the Python bundle broken? It works for me -- though the Python templates call /usr/bin/ruby, maybe you removed that? From throw-away-1 at macromates.com Mon Apr 2 16:37:22 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 18:37:22 +0200 Subject: [TxMt] Latex Preview with TextMate on Serveraccount In-Reply-To: References: <8319251F-0982-4AEE-87B7-554725BC523E@glr.tu-darmstadt.de> <343079BE-F690-4DFC-8AF9-7B6933807BB2@macromates.com> <62F1233B-3F72-4FB3-801F-1E9C2B722900@gmail.com> <2DC643E5-3265-43F9-91EB-659E9EBA6CD6@macromates.com> <6B4C2C7B-85CD-45EE-A6C8-FE2BF9FDE0EA@macromates.com> Message-ID: On 2. Apr 2007, at 09:27, Christoph Biela wrote: > yepp, white-space is the proper hint. > Even though I checked it a hundred times (Value), I never checked > Variable. > > Wouldn't it be possible to check this and remove white-space for > certain variables. I made this change in Typeset & View: ? add quotes around the viewer in the ?not found? error, that way, if the user has leading/trailing spaces in the variable, it should be more obvious. From throw-away-1 at macromates.com Mon Apr 2 16:42:17 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 18:42:17 +0200 Subject: [TxMt] Re: 10. Re: Move the caret to start of line within a TM snippet? (Allan Odgaard) In-Reply-To: <60BED187-2E23-4D0C-85BA-23083A288198@hanover.edu> References: <0790F941-0671-4ABE-8098-42029E9D0128@pureblend.com> <60BED187-2E23-4D0C-85BA-23083A288198@hanover.edu> Message-ID: On 2. Apr 2007, at 07:24, Charilaos Skiadas wrote: > On Apr 2, 2007, at 1:11 AM, Allan Odgaard wrote: >>> disableOutputAutoIndent >>> >> Sorry, when using this for snippets, the ?Output? part should not >> be there. > Allan, I'm guessing these things will be accessible through the UI > in 2.0? The stuff I deem useful enough will get a UI sometime in the future -- I haven?t decided on disableAutoIndent yet ;) From textmate at skurfer.com Mon Apr 2 16:44:14 2007 From: textmate at skurfer.com (Rob McBroom) Date: Mon, 2 Apr 2007 12:44:14 -0400 Subject: [TxMt] PHP completion preferences In-Reply-To: <24D1F29C-CF2E-48F1-8C51-123AD2D22DF4@gmail.com> References: <1BBAEC13-509A-4DD5-AD00-67DCA66B3711@skurfer.com> <777E5ED2-5239-496A-A5F2-0A8D58072FAF@hanover.edu> <24D1F29C-CF2E-48F1-8C51-123AD2D22DF4@gmail.com> Message-ID: On Apr 1, 2007, at 1:56 PM, Ciar?n Walsh wrote: > I was also making the assumption that using a list for ? > completion would be more efficient than using a shell command, > although it could be the case that the difference isn't really > noticeable. Well, it's definitely faster using the list vs. the command, but the delay is completely acceptable and it only seems to affect the first match. Using ? to go through subsequent matches seems to be instant (probably due to some clever caching TextMate is doing). My slowest machine is a dual G5 though, so perhaps it should be kept as a list to ensure that it works nicely for older hardware. > However, both the functions.txt and the completions preferences > file are automatically generated from PHP source, so there is no > issue with maintenance. Good to know. With that and the above in mind, it sounds like the benefits of explicitly listing everything outweigh the costs. --- Rob McBroom I didn't "switch" to Apple... my OS did. From throw-away-1 at macromates.com Mon Apr 2 16:44:19 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 18:44:19 +0200 Subject: [TxMt] Re: Errors launching Textmate In-Reply-To: References: <48109E1C-1443-4876-B360-F8F49A6684BE@macromates.com> Message-ID: <49232C8D-180B-491D-9207-320846A47430@macromates.com> On 2. Apr 2007, at 13:47, John Tsombakos wrote: >> [...] >> Yeah, I have a version of it in /Library/Application Support/ >> TextMate, >> that is there from my svn update: >> >> cd /Library/Application\ Support/TextMate >> svn up >> >> If I remove it from /Library/... won't it just be replaced when >> I do >> my next svn update? Given that you have checked out the PlugIns folder from svn, yes. > Should I remove the one in the TextMate bundle itself? Is TM even > using the one that's being updated via SVN, or is that error > indicating that it is not? How are others handling this?? It uses the most local one. Removing stuff in TextMate.app/? is never a good idea (as it will be back when you update). Remove the plug-in from /Library if you want to get rid of the warning, but it is harmless. TM just tells you that you have two versions of the same plug-in installed (and thus it will only load one). From throw-away-1 at macromates.com Mon Apr 2 16:46:23 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 18:46:23 +0200 Subject: [TxMt] Re: Getting started with the Perforce bundle? In-Reply-To: References: <3409E4BA-D050-4E16-B4A3-FF314880B9DC@cjack.com> Message-ID: <32FC75C7-69CF-4EA5-86CC-34D56C0B3490@macromates.com> On 2. Apr 2007, at 17:59, Daryl Spitzer wrote: >> But you need to convince Allan to give you write access. The best way >> to do that is probably to contribute a bunch of stuff to the Perforce >> bundle (or to other bundles as strikes your fancy) as patches or as a >> downloadable copy somewhere. > > I finally made time to start turning my experimental changes into > patches. I thought I'd start simple. Attached is a Help command I > added. (I stole the method of embedding the Markdown text in the > command text from the TODO bundle Help command.) > > After I get confirmation that this patch is alright (or I learn what I > did wrong), I'll start contributing more patches (to the bundle code > itself). Thanks, I just applied it! From throw-away-1 at macromates.com Mon Apr 2 16:52:36 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 18:52:36 +0200 Subject: [TxMt] HTML highlighting problems In-Reply-To: References: Message-ID: <2F522F06-F9F4-4842-A006-F9A547E7F60C@macromates.com> On 31. Mar 2007, at 16:11, porneL wrote: > If I write (a perfectly valid HTML4): > >
> > TextMate highlights everything up to next quoted string as an ID > attribute. The fix for it is to set: > end = '(?<=''|")|(?!>)'; > for tag-id-attribute in HTML's language definition. > > There's even no scope for non-quoted attributes. I've managed to > add it using back-assertions (?<=[^=]) for attribute and (?<==) for > scope of uquoted string. > > I'm not sure if these are proper solutions - does TM understand > something like 'adjacent scopes'? Prior to reading some HTML5 related stuff, I thought unquoted attributes were strongly deprecated, but I guess not. I?ll checkin an update soonish. Not sure what ?adjacent scopes? means. Are you thinking of ?in order? matches of language grammar sub-rules, e.g. master rule has begin/end and a patterns array, where each rule in the patterns array has to come in order (and ?touch? so to speak)? That is presently not supported, but on the table as a potential future improvement. From throw-away-1 at macromates.com Mon Apr 2 16:57:20 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 18:57:20 +0200 Subject: [TxMt] LaTeX Watch In-Reply-To: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> Message-ID: <36A0BF12-4C2C-4A8C-8D46-A2E1E3BCAE34@macromates.com> On 29. Mar 2007, at 11:43, Robin Houston wrote: > [...] > I'd really appreciate any feedback. I think that, with some more > flexibility, something like this could be useful to a lot of people. I agree, this should definitely be a candidate for the LaTeX bundle, *but* we need it working with pdflatex ;) I think that is what 99% of people (on a Mac) use. From throw-away-1 at macromates.com Mon Apr 2 16:58:30 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Mon, 2 Apr 2007 18:58:30 +0200 Subject: [TxMt] LaTeX Watch In-Reply-To: <1b795e7b0704020609k2eb07a0cyf4d4856b1377e50d@mail.gmail.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> <9789288.post@talk.nabble.com> <1b795e7b0704020609k2eb07a0cyf4d4856b1377e50d@mail.gmail.com> Message-ID: On 2. Apr 2007, at 15:09, Robin Houston wrote: > I attach a new version (1.2) which ought to solve these problems. > If it still doesn't work, then go into the Bundle Editor, click on > the watch command, and change "Output: Discard" to "Output: Create > New Document". Then try it again ? you should then get a document > containing relevant error messages. FYI you can reopen stdout/err as /dev/console, that way, output goes to the system console, and users can just look there for potential errors. From textmate at skurfer.com Mon Apr 2 17:18:43 2007 From: textmate at skurfer.com (Rob McBroom) Date: Mon, 2 Apr 2007 13:18:43 -0400 Subject: Local test environment (was: [TxMt] Re: SVN?) In-Reply-To: <728AC63B-0C3A-4D3D-81FE-1B4C6FBAE52C@subtlegradient.com> References: <8720501C-7243-4D77-A748-CB57B6E30E55@grokcodile.com> <2AB2EF8C-DBB9-438F-9AB7-E5EC5FEAAEC5@skurfer.com> <2C8EF0FB-1BD8-42A6-AEBD-A485FBFCED87@macromates.com> <5F9AE5A8-2B01-44BF-A145-65979724811F@skurfer.com> <728AC63B-0C3A-4D3D-81FE-1B4C6FBAE52C@subtlegradient.com> Message-ID: <05906303-FB71-4064-83D5-CB07A918632D@skurfer.com> On Apr 2, 2007, at 11:32 AM, Thomas Aylott (subtleGradient) wrote: > There is nothing wrong with having an environment that requires > uploading files to a dev/test server before you can test them. > Other than being really tedious and annoying that is ;) Yes, and this seemingly immortal thread has brought the annoyance back to the front of my mind and forced me to think about it further. I just had an idea, but it seems too obvious, so I wonder if it's been tried already or if I'm overlooking something. 1. Create a local copy of things 2. Create a project from the local copy 3. Define a project-specific variable like `WHERE_I_CAME_FROM` that contains a remote path that `rsync` understands, like `webserver.foo.com:/blah/htdocs` 4. Create a command that runs rsync $TM_PROJECT_DIRECTORY $WHERE_I_CAME_FROM And of course you'd want to add some options to `rsync` and perhaps some additional smarts, but could this work? I fully intend to experiment with this, so if no one chimes in with "been there, done that", I'll share my results. --- Rob McBroom I didn't "switch" to Apple... my OS did. From robin.houston at gmail.com Mon Apr 2 17:19:10 2007 From: robin.houston at gmail.com (Robin Houston) Date: Mon, 2 Apr 2007 18:19:10 +0100 Subject: [TxMt] LaTeX Watch In-Reply-To: References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> <9789288.post@talk.nabble.com> <1b795e7b0704020609k2eb07a0cyf4d4856b1377e50d@mail.gmail.com> Message-ID: <1b795e7b0704021019y6e56c633o5b04b82f3730786a@mail.gmail.com> On 4/2/07, Allan Odgaard wrote: > > FYI you can reopen stdout/err as /dev/console, that way, output goes > to the system console, and users can just look there for potential > errors. That's a useful tip, thanks! Robin -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglist at pornel.net Mon Apr 2 17:37:56 2007 From: mailinglist at pornel.net (porneL) Date: Mon, 02 Apr 2007 18:37:56 +0100 Subject: [TxMt] HTML highlighting problems In-Reply-To: <2F522F06-F9F4-4842-A006-F9A547E7F60C@macromates.com> References: <2F522F06-F9F4-4842-A006-F9A547E7F60C@macromates.com> Message-ID: On Mon, 02 Apr 2007 17:52:36 +0100, Allan Odgaard wrote: > Not sure what ?adjacent scopes? means. Are you thinking of ?in order? > matches of language grammar sub-rules, e.g. master rule has begin/end > and a patterns array, where each rule in the patterns array has to come > in order (and ?touch? so to speak)? I was thinking of a condition that could express ?'unquoted attribute value' matches only if there was 'attribute name' before??that would rather be a linked list than an array. -- regards, porneL From bbum at mac.com Mon Apr 2 17:45:10 2007 From: bbum at mac.com (Bill Bumgarner) Date: Mon, 2 Apr 2007 10:45:10 -0700 Subject: [TxMt] Copying contents with formatting? Message-ID: <3D7A7479-2A02-4484-9B41-67D66B3FEA1E@mac.com> Is there any way to copy source out of TextMate such that the formatting stays intact? I.e. I want to be able to paste code into Pages, preserving font, format and color. b.bum From n.kobschaetzki at googlemail.com Mon Apr 2 17:47:50 2007 From: n.kobschaetzki at googlemail.com (=?ISO-8859-1?Q?Niels_Kobsch=E4tzki?=) Date: Mon, 2 Apr 2007 19:47:50 +0200 Subject: [TxMt] Copying contents with formatting? In-Reply-To: <3D7A7479-2A02-4484-9B41-67D66B3FEA1E@mac.com> References: <3D7A7479-2A02-4484-9B41-67D66B3FEA1E@mac.com> Message-ID: <3C9D0436-E8F9-45BB-9DD3-5C364CE849EE@googlemail.com> On Apr 2, 2007, at 7:45 PM, Bill Bumgarner wrote: > Is there any way to copy source out of TextMate such that the > formatting stays intact? Mmm...actually font doesn't have a "formatting" in TextMate because it's plain text. TextMate just shows you some special formatting to highlight the "state" of a part of the the text if I'm right. Niels -- Jammern f?r Anf?nger: Niels K. (25) Jammerbacke -- auch f?r professionelles Jammern zu haben http://jammern.wordpress.com From ciawal at gmail.com Mon Apr 2 17:51:31 2007 From: ciawal at gmail.com (=?ISO-8859-1?Q?Ciar=E1n_Walsh?=) Date: Mon, 2 Apr 2007 18:51:31 +0100 Subject: [TxMt] Copying contents with formatting? In-Reply-To: <3D7A7479-2A02-4484-9B41-67D66B3FEA1E@mac.com> References: <3D7A7479-2A02-4484-9B41-67D66B3FEA1E@mac.com> Message-ID: <294CCE0E-6730-4D86-90BB-86F52F5F262F@gmail.com> On 2 Apr 2007, at 18:45, Bill Bumgarner wrote: > Is there any way to copy source out of TextMate such that the > formatting stays intact? > > I.e. I want to be able to paste code into Pages, preserving font, > format and color. > > b.bum You can create a HTML document from the file ? use ??T ?create HTML?. Presumably you could then view this in a browser and copy/paste the content into Pages with formatting From richard at rnet.org Mon Apr 2 17:52:08 2007 From: richard at rnet.org (Richard Blumberg) Date: Mon, 2 Apr 2007 13:52:08 -0400 Subject: [TxMt] Re: Newbie lost: how to change Textmate search path In-Reply-To: References: Message-ID: the ruby application is at /usr/local/bin/ruby. There's a symlink at /usr/bin/ruby Shouldn't that work? Richard On 4/2/07, Allan Odgaard wrote: > > On 2. Apr 2007, at 14:15, Richard Blumberg wrote: > > > It's mostly working now; I commented out a line in my /etc/profile > > script that I must have added a year or so ago when I was > > installing System Logistics servers, and everythng is working > > except for Python templates. I still can't create a Python > > template, either from the main file menu or from the project pane. > > > > I'm using the cutting-edge version of TM, and I've downloaded the > > latest package of bundles via subversion. > > > > Is the Python bundle broken? > > It works for me -- though the Python templates call /usr/bin/ruby, > maybe you removed that? > > > ______________________________________________________________________ > 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 nicolasweber at gmx.de Mon Apr 2 17:53:13 2007 From: nicolasweber at gmx.de (Nicolas Weber) Date: Mon, 2 Apr 2007 19:53:13 +0200 Subject: [TxMt] Copying contents with formatting? In-Reply-To: <3D7A7479-2A02-4484-9B41-67D66B3FEA1E@mac.com> References: <3D7A7479-2A02-4484-9B41-67D66B3FEA1E@mac.com> Message-ID: <4EFD78F5-C482-486C-87EC-332AD729DC8D@gmx.de> Hi, > Is there any way to copy source out of TextMate such that the > formatting stays intact? > > I.e. I want to be able to paste code into Pages, preserving font, > format and color. http://joshknowles.com/2007/3/25/syntax-highlighing-in-keynote might help you. Bye, Nico From skiadas at hanover.edu Mon Apr 2 18:30:16 2007 From: skiadas at hanover.edu (Charilaos Skiadas) Date: Mon, 2 Apr 2007 14:30:16 -0400 Subject: [TxMt] LaTeX Watch In-Reply-To: <36A0BF12-4C2C-4A8C-8D46-A2E1E3BCAE34@macromates.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <36A0BF12-4C2C-4A8C-8D46-A2E1E3BCAE34@macromates.com> Message-ID: <6D4E8175-68CC-4F64-BFE4-BD997B18893B@hanover.edu> On Apr 2, 2007, at 12:57 PM, Allan Odgaard wrote: > On 29. Mar 2007, at 11:43, Robin Houston wrote: > >> [...] >> I'd really appreciate any feedback. I think that, with some more >> flexibility, something like this could be useful to a lot of people. > > I agree, this should definitely be a candidate for the LaTeX > bundle, *but* we need it working with pdflatex ;) I think that is > what 99% of people (on a Mac) use. Yes this would be great to see added to the bundle, but we need to modularize it a bit first, so that we can make it work with pdflatex as well, when ps output is not required. Also, we need to somehow make it so that the watcher stops watching a file that is not open in TM anymore. Not sure how to achieve that last one though. And ideally rewrite it in ruby, so that we can use the dialog.rb library instead of all these direct CocoaDialog calls (and so that I can actually read it ;) ). Actually, it's really a question of just speeding up the compile, right? Is there really much speed gained in having the recompile done automatically instead of triggering it via cmd-R? In other words, is the overall speedup mostly in using the ini stuff? Haris Skiadas Department of Mathematics and Computer Science Hanover College From alain.matthes at mac.com Mon Apr 2 18:33:50 2007 From: alain.matthes at mac.com (Alain Matthes) Date: Mon, 2 Apr 2007 20:33:50 +0200 Subject: [TxMt] Typeset & View (PDF) Message-ID: <05808DAB-0A57-4E08-A6D3-9771CA474040@mac.com> Hello:) First I do not understand the changes in this script. Certain users prefer to work with latex but without pstricks, why not make two different scripts. There is a little change in one line : now if [ -s "${PDF}" -a ! "$PDF" -ot "$FILE" ]; then before if [ -s "${PDF}" -a "$PDF" -nt "$FILE" ]; then ..... -ot instead -nt ? why ? Greetings Alain Matthes From tsom467 at gmail.com Mon Apr 2 18:35:20 2007 From: tsom467 at gmail.com (John Tsombakos) Date: Mon, 2 Apr 2007 14:35:20 -0400 Subject: [TxMt] Re: Errors launching Textmate In-Reply-To: <49232C8D-180B-491D-9207-320846A47430@macromates.com> References: <48109E1C-1443-4876-B360-F8F49A6684BE@macromates.com> <49232C8D-180B-491D-9207-320846A47430@macromates.com> Message-ID: On 4/2/07, Allan Odgaard wrote: > > > > Should I remove the one in the TextMate bundle itself? Is TM even > > using the one that's being updated via SVN, or is that error > > indicating that it is not? How are others handling this?? > > It uses the most local one. Removing stuff in TextMate.app/? is never > a good idea (as it will be back when you update). "Most local" meaning not including the one in the TextMate.app itself? Remove the plug-in from /Library if you want to get rid of the > warning, but it is harmless. TM just tells you that you have two > versions of the same plug-in installed (and thus it will only load one). Sounds good... I'll ignore the warning. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin.houston at gmail.com Mon Apr 2 18:52:24 2007 From: robin.houston at gmail.com (Robin Houston) Date: Mon, 2 Apr 2007 19:52:24 +0100 Subject: [TxMt] LaTeX Watch In-Reply-To: <6D4E8175-68CC-4F64-BFE4-BD997B18893B@hanover.edu> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <36A0BF12-4C2C-4A8C-8D46-A2E1E3BCAE34@macromates.com> <6D4E8175-68CC-4F64-BFE4-BD997B18893B@hanover.edu> Message-ID: <1b795e7b0704021152t7982878xe98f71ad83568cfb@mail.gmail.com> On 4/2/07, Charilaos Skiadas wrote: > > Yes this would be great to see added to the bundle, That's encouraging! but we need to > modularize it a bit first, so that we can make it work with pdflatex > as well, when ps output is not required. Sure. I don't know what would be most suitable as a previewer for this ? probably Texniscope? Also, we need to somehow > make it so that the watcher stops watching a file that is not open in > TM anymore. Not sure how to achieve that last one though. I'm not sure either. Note that it does stop watching when you close the previewer. And ideally rewrite it in ruby, so that we can use the dialog.rb > library instead of all these direct CocoaDialog calls (and so that I > can actually read it ;) ). I have no objection to that, and I know some Ruby, but I'm not fluent in it the way that I am in Perl. Actually, it's really a question of just speeding up the compile, > right? That was my main concern, but I also find it useful to have it updating quietly in the background whenever you save, rather than having to explicitly open it afresh every time. That way you can see the effect of your changes very easily. I don't use Texniscope, because it doesn't work with PS specials, but I assume that it offers some of the same convenience, e.g. staying on the same page when the file is recompiled? Is there really much speed gained in having the recompile done > automatically instead of triggering it via cmd-R? In other words, is > the overall speedup mostly in using the ini stuff? > For my documents, the overall speedup is overwhelmingly in not generating PDF from PostScript, which is insanely slow. But after that, the format caching also roughly halves the time needed (again for my documents, on my computer. Your mileage may vary). Apart from convenience, the other reason for having a long-running process monitoring the file, rather than spawning a new one for every refresh, is that data can be cached in memory. Currently this is done for the text of the preamble, so the script can tell when it has changed. Robin -------------- next part -------------- An HTML attachment was scrubbed... URL: From bomberstudios at gmail.com Mon Apr 2 19:28:29 2007 From: bomberstudios at gmail.com (=?UTF-8?Q?Ale_Mu=C3=B1oz?=) Date: Mon, 2 Apr 2007 21:28:29 +0200 Subject: [TxMt] tm_dialog: Populating a dropdown. Message-ID: Hi there, is there any way of populating a dropdown with a Hash/Array from Ruby, using tm_dialog? I'm using a custom Nib, but I don't have too much experience with Interface Builder. Dummy code: categories = ["bar","baz"] dialog = ENV['DIALOG'] plist = { 'title' => "Add your title", 'category' => categories # How do I use this here? }.to_plist str = `#{e_sh dialog} "#{NIBS}/new_message.nib/" -m -p #{e_sh plist}` Any hints will help :) Also... is there any way of calling tm_dialog to load a custom Nib using the Ruby wrapper in dialog.rb? Thanks in advance! -- Ale Mu?oz http://sofanaranja.com http://bomberstudios.com From oliver at ollieman.net Mon Apr 2 19:42:57 2007 From: oliver at ollieman.net (Oliver Taylor) Date: Mon, 2 Apr 2007 12:42:57 -0700 Subject: [TxMt] Code Completion Issues Message-ID: I've got a code completion command set-up to scan a preference item and the document and return a list (as usual) but I suddenly realized it's not returning any results from the preference item. I can't figure it out. Code pasted below: ----------------------------------------- COMMAND input:selected text or line output:insert as snippet ----------------------------------------- #!/usr/bin/env ruby require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion" preference = 'Time of Day' choices = [] TextmateCompletionsParser::PARSERS[:screenplay_time] = { :select => /^[^a-z\n\t]+\s-\s([^a-z\n].*)\s*$/, :sort => true } parsed_choices = TextmateCompletionsParser.new(nil, :scope => :screenplay_time).to_ary choices += parsed_choices if parsed_choices choices.each { |c| c.downcase! } choices += ['--'] plist_choices = TextmateCompletionsPlist.new( "#{ENV ['TM_BUNDLE_PATH']}/Preferences/#{preference}.tmPreferences" ).to_ary choices += plist_choices if plist_choices print TextmateCodeCompletion.new(choices,'', :scope => :screenplay_time).to_snippet.upcase ----------------------------------------- PREFERENCE ITEM ----------------------------------------- { completions = ( 'day', 'dusk', 'dawn', 'night', 'noon', 'sunrise', 'sunset', 'twilight', 'magic hour', 'afternoon', 'morning', 'evening', 'later', 'moments later', 'continuous', 'the next day', 'intercut' ); disableDefaultCompletion = 1; } From oliver at ollieman.net Mon Apr 2 19:43:27 2007 From: oliver at ollieman.net (Oliver Taylor) Date: Mon, 2 Apr 2007 12:43:27 -0700 Subject: [TxMt] Code Completion Issues Message-ID: <17B36E2A-B69E-402F-9FA9-DB145A88E160@ollieman.net> I've got a code completion command set-up to scan a preference item and the document and return a list (as usual) but I suddenly realized it's not returning any results from the preference item. I can't figure it out. Code pasted below: ----------------------------------------- COMMAND input:selected text or line output:insert as snippet ----------------------------------------- #!/usr/bin/env ruby require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion" preference = 'Time of Day' choices = [] TextmateCompletionsParser::PARSERS[:screenplay_time] = { :select => /^[^a-z\n\t]+\s-\s([^a-z\n].*)\s*$/, :sort => true } parsed_choices = TextmateCompletionsParser.new(nil, :scope => :screenplay_time).to_ary choices += parsed_choices if parsed_choices choices.each { |c| c.downcase! } choices += ['--'] plist_choices = TextmateCompletionsPlist.new( "#{ENV ['TM_BUNDLE_PATH']}/Preferences/#{preference}.tmPreferences" ).to_ary choices += plist_choices if plist_choices print TextmateCodeCompletion.new(choices,'', :scope => :screenplay_time).to_snippet.upcase ----------------------------------------- PREFERENCE ITEM ----------------------------------------- { completions = ( 'day', 'dusk', 'dawn', 'night', 'noon', 'sunrise', 'sunset', 'twilight', 'magic hour', 'afternoon', 'morning', 'evening', 'later', 'moments later', 'continuous', 'the next day', 'intercut' ); disableDefaultCompletion = 1; } From oblivious at subtlegradient.com Mon Apr 2 20:01:05 2007 From: oblivious at subtlegradient.com (Thomas Aylott (subtleGradient)) Date: Mon, 2 Apr 2007 16:01:05 -0400 Subject: [TxMt] Code Completion Issues In-Reply-To: References: Message-ID: <7AD8E2C7-BDB6-4328-981E-87D80D13F5C4@subtlegradient.com> Make sure you call the preference as it is named on disk. Renaming a preference in the bundle editor doesn't actually change anything on disk. thomas Aylott ? subtleGradient ? CrazyEgg ? sixteenColors On Apr 2, 2007, at 3:42 PM, Oliver Taylor wrote: > I've got a code completion command set-up to scan a preference item > and the document and return a list (as usual) but I suddenly > realized it's not returning any results from the preference item. I > can't figure it out. Code pasted below: -------------- next part -------------- An HTML attachment was scrubbed... URL: From rpatter at asd20.org Mon Apr 2 20:08:35 2007 From: rpatter at asd20.org (Ron Patterson) Date: Mon, 2 Apr 2007 14:08:35 -0600 Subject: [TxMt] Convert old HTML to XHTML... Message-ID: <098940AF-0ADA-4B87-87ED-50355B0BFF7C@asd20.org> Newbie here, please excuse the apparent non-TextMate related question. Has anyone seen a bundle or suggestions on using tidy (or something) to convert old style HTML to newer transitional XHTML without screwing up embedded PHP (or other) code? It seems that by default tidy can really fowl up embedded PHP structures. I have a lot of old PHP-based documents that I'd like to get somewhat brought up- to-date. Thanks, Ron ******************************************************* * Ron Patterson, Email: rpatter at asd20.org * * Web Services, Phone: 719.234.1707 * * Academy School District 20, FAX: 719.234.1706 * * Web Site: http://www.asd20.org * ******************************************************* From elaptics at googlemail.com Mon Apr 2 20:44:17 2007 From: elaptics at googlemail.com (Andrew Henson) Date: Mon, 2 Apr 2007 21:44:17 +0100 Subject: [TxMt] tm_dialog: Populating a dropdown. In-Reply-To: References: Message-ID: Hi Ale, The short answer is yes! Have a look at a bundle I wrote for Snipplr. http://www.elaptics.co.uk/fileadmin/repository/tmbundles/Snipplr2.zip I populate the list of languages supported by Snipplr in the Post Snippet nib. Give me a shout off list if any of it doesn't make sense. I'll be interested to know if there is a better way of doing it as it seems a little bit more convoluted than it feels like it should be. Andy On 2 Apr 2007, at 20:28, Ale Mu?oz wrote: > Hi there, > > is there any way of populating a dropdown with a Hash/Array from Ruby, > using tm_dialog? > > I'm using a custom Nib, but I don't have too much experience with > Interface Builder. > > Dummy code: > > categories = ["bar","baz"] > dialog = ENV['DIALOG'] > plist = { > 'title' => "Add your title", > 'category' => categories # How do I use this here? > }.to_plist > str = `#{e_sh dialog} "#{NIBS}/new_message.nib/" -m -p #{e_sh plist}` > > > Any hints will help :) > From rpatter at asd20.org Mon Apr 2 21:09:52 2007 From: rpatter at asd20.org (Ron Patterson) Date: Mon, 2 Apr 2007 15:09:52 -0600 Subject: [TxMt] Convert old HTML to XHTML... Message-ID: Looks like I answered my own question here. It seems that tidy requires ALL PHP start tags to be References: <8319251F-0982-4AEE-87B7-554725BC523E@glr.tu-darmstadt.de> <343079BE-F690-4DFC-8AF9-7B6933807BB2@macromates.com> <62F1233B-3F72-4FB3-801F-1E9C2B722900@gmail.com> <2DC643E5-3265-43F9-91EB-659E9EBA6CD6@macromates.com> <6B4C2C7B-85CD-45EE-A6C8-FE2BF9FDE0EA@macromates.com> Message-ID: > ? add quotes around the viewer in the "not found" error, that > way, if the user has leading/trailing spaces in the variable, it > should be more obvious. BUT: since I wrote "TM_LATEX_VIEWER " this will not help chris From bbum at mac.com Mon Apr 2 21:15:56 2007 From: bbum at mac.com (Bill Bumgarner) Date: Mon, 2 Apr 2007 14:15:56 -0700 Subject: [TxMt] Copying contents with formatting? In-Reply-To: <4EFD78F5-C482-486C-87EC-332AD729DC8D@gmx.de> References: <3D7A7479-2A02-4484-9B41-67D66B3FEA1E@mac.com> <4EFD78F5-C482-486C-87EC-332AD729DC8D@gmx.de> Message-ID: <205DF4BC-C8BA-415F-AEDB-36F75875ACCB@mac.com> On Apr 2, 2007, at 10:53 AM, Nicolas Weber wrote: >> Is there any way to copy source out of TextMate such that the >> formatting stays intact? >> >> I.e. I want to be able to paste code into Pages, preserving font, >> format and color. > http://joshknowles.com/2007/3/25/syntax-highlighing-in-keynote > might help you. Fantastic! Thank you. That'll work perfectly. b.bum From jrus at hcs.harvard.edu Mon Apr 2 22:52:04 2007 From: jrus at hcs.harvard.edu (Jacob Rus) Date: Mon, 02 Apr 2007 18:52:04 -0400 Subject: [TxMt] Re: Running an AppleScript In-Reply-To: <80F32025-93F5-4AD8-8047-073352E1FE6B@skurfer.com> References: <276B6C82-06D3-440F-BC60-806D7BA4F808@neologica.com.au> <80F32025-93F5-4AD8-8047-073352E1FE6B@skurfer.com> Message-ID: Rob McBroom wrote: > There is a menu item in Mail that might affect this behavior: > > Message ? Text Encoding ? Unicode (UTF-8) > > I haven't done much experimenting to see what it actually does though. > (Is it only for reading or only for sending? Do you have to set it > per-message or is it "sticky"? etc.) But it's there. :) Only for reading, I believe. -Jacob From nick at goya.com.au Mon Apr 2 23:03:44 2007 From: nick at goya.com.au (Nicholas Orr) Date: Tue, 3 Apr 2007 09:03:44 +1000 Subject: [TxMt] XML Indenting In-Reply-To: <023E98CB-937C-4CC4-B459-CCC6C89E261C@gmail.com> References: <023E98CB-937C-4CC4-B459-CCC6C89E261C@gmail.com> Message-ID: On 02/04/2007, at 8:19 PM, Ciar?n Walsh wrote: > On 2 Apr 2007, at 10:07, Nicholas Orr wrote: > >> In the mean time, the question still stands, is there any way to >> adjust TM so that it wraps it for me? > > You could edit the language syntax if you really wanted to (but I > suspect that you don't). That was my first guess, I was hoping someone could assist me there... > Some alternatives: > ? make a find/replace macro to drop the trailing tag onto the next > line, so that the standard indent will work The problem is that some of the tags are single lines, some are doubles, and it's spread across multiple different tags, not just in one place. > ? if your document is well-formatted, the Tidy command (XML?Tidy > or ??H) should indent it for you I will give that a try. I noticed there was an update to the xml bundle to stop it replacing the document with the error, so that will make it more useful. Cheers, Nick From infoarts at gmail.com Mon Apr 2 23:26:37 2007 From: infoarts at gmail.com (infoarts at gmail.com) Date: Tue, 3 Apr 2007 09:26:37 +1000 Subject: [TxMt] GTDAlt -- can't set date for an action Message-ID: <2e8d08f0704021626n30906e20p9008da630414b909@mail.gmail.com> Hi there Am loving GTDAlt - I've tried 'em all and this is the one for me it seems. I notice that in the latest build of TM, that when I attempt to set a date for an action, an error is generated: /tmp/temp_textmate.Ie4gRD:3:in `require': No such file to load -- /Library/Application Support/TextMate/Support/lib/plist (LoadError) from /tmp/temp_textmate.Ie4gRD:3 Any clues on this would be appreciated. Richard Sandilands From jrus at hcs.harvard.edu Mon Apr 2 23:59:15 2007 From: jrus at hcs.harvard.edu (Jacob Rus) Date: Mon, 02 Apr 2007 19:59:15 -0400 Subject: [TxMt] Re: Convert old HTML to XHTML... In-Reply-To: <098940AF-0ADA-4B87-87ED-50355B0BFF7C@asd20.org> References: <098940AF-0ADA-4B87-87ED-50355B0BFF7C@asd20.org> Message-ID: Ron Patterson wrote: > Newbie here, please excuse the apparent non-TextMate related question. > Has anyone seen a bundle or suggestions on using tidy (or something) to > convert old style HTML to newer transitional XHTML What's the use case? Please read [this](http://www.hixie.ch/advocacy/xhtml) before you decide to use XHTML. XHTML is almost always the wrong choice of format. -Jacob From phirefly at water-melon.net Tue Apr 3 00:02:30 2007 From: phirefly at water-melon.net (Raphael Villas) Date: Mon, 2 Apr 2007 19:02:30 -0500 Subject: [TxMt] replace text at the end of a line Message-ID: Hi everyone, I'm using a regular expression to find groups of text that I need to replace. But instead of replacing the actual text that I have selected, I want to simply append some text to the end of the line that has been returned. For example, if I search in the project, retrieving ten different lines of code, how to do I insert a specific string of text (e.g. "Put this text at the end of the line") at the end of each of those lines? Is there a way to do this? Thanks in advance! From apt.shansen at gmail.com Tue Apr 3 00:19:46 2007 From: apt.shansen at gmail.com (Stephen Hansen) Date: Mon, 2 Apr 2007 17:19:46 -0700 Subject: [TxMt] Default Folder X? Message-ID: <7a9c25c20704021719o7cf7ec39oe2c5387ae50550a1@mail.gmail.com> Does anyone use http://www.stclairsoft.com/DefaultFolderX/? It doesn't work in TextMate's open dialog, but seems to work in every other. That's very... very... very sad, and very, very painful. Anyone know why that might be? Any idea how I might get it to work? The only thing I notice is that TextMate has a 'Show hidden files' option; so wonder if its using a custom dialog instead of the standard one. Thanks in advance. -S -------------- next part -------------- An HTML attachment was scrubbed... URL: From oblivious at subtlegradient.com Tue Apr 3 00:41:29 2007 From: oblivious at subtlegradient.com (Thomas Aylott (subtleGradient)) Date: Mon, 2 Apr 2007 20:41:29 -0400 Subject: Local test environment (was: [TxMt] Re: SVN?) In-Reply-To: <05906303-FB71-4064-83D5-CB07A918632D@skurfer.com> References: <8720501C-7243-4D77-A748-CB57B6E30E55@grokcodile.com> <2AB2EF8C-DBB9-438F-9AB7-E5EC5FEAAEC5@skurfer.com> <2C8EF0FB-1BD8-42A6-AEBD-A485FBFCED87@macromates.com> <5F9AE5A8-2B01-44BF-A145-65979724811F@skurfer.com> <728AC63B-0C3A-4D3D-81FE-1B4C6FBAE52C@subtlegradient.com> <05906303-FB71-4064-83D5-CB07A918632D@skurfer.com> Message-ID: <11900957-3E44-429D-B682-02AC429EE371@subtlegradient.com> On Apr 2, 2007, at 1:18 PM, Rob McBroom wrote: > On Apr 2, 2007, at 11:32 AM, Thomas Aylott (subtleGradient) wrote: > >> There is nothing wrong with having an environment that requires >> uploading files to a dev/test server before you can test them. >> Other than being really tedious and annoying that is ;) > > Yes, and this seemingly immortal thread has brought the annoyance > back to the front of my mind and forced me to think about it further. > > I just had an idea, but it seems too obvious, so I wonder if it's > been tried already or if I'm overlooking something. > > 1. Create a local copy of things > 2. Create a project from the local copy > 3. Define a project-specific variable like `WHERE_I_CAME_FROM` > that contains > a remote path that `rsync` understands, like > `webserver.foo.com:/blah/htdocs` > 4. Create a command that runs > > rsync $TM_PROJECT_DIRECTORY $WHERE_I_CAME_FROM > > And of course you'd want to add some options to `rsync` and perhaps > some additional smarts, but could this work? I fully intend to > experiment with this, so if no one chimes in with "been there, done > that", I'll share my results. > > --- > Rob McBroom > > I didn't "switch" to Apple... my OS did. That is almost exactly what I've done before. Except that I didn't know about rsync back then and just used the Transmit bundles "mirror this file" (or whatever it's called) command. thomas Aylott ? subtleGradient ? CrazyEgg ? sixteenColors -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan at tangledhelix.com Tue Apr 3 01:21:59 2007 From: dan at tangledhelix.com (Dan Lowe) Date: Mon, 2 Apr 2007 21:21:59 -0400 Subject: [TxMt] Typeset & View (PDF) In-Reply-To: <05808DAB-0A57-4E08-A6D3-9771CA474040@mac.com> References: <05808DAB-0A57-4E08-A6D3-9771CA474040@mac.com> Message-ID: <5FCF04DC-08A4-42D7-A4B8-32D529C626B3@tangledhelix.com> On Apr 2, 2007, at 2:33 PM, Alain Matthes wrote: > There is a little change in one line : > > now > if [ -s "${PDF}" -a ! "$PDF" -ot "$FILE" ]; then > > before > if [ -s "${PDF}" -a "$PDF" -nt "$FILE" ]; then ..... > > -ot instead -nt ? why ? The first condition is negated by the "!", so it reads as "not older than". The second condition reads as "newer than". So ultimately they are equivalent. From dan at tangledhelix.com Tue Apr 3 01:27:11 2007 From: dan at tangledhelix.com (Dan Lowe) Date: Mon, 2 Apr 2007 21:27:11 -0400 Subject: [TxMt] replace text at the end of a line In-Reply-To: References: Message-ID: <2F014327-E03A-4882-91AE-6ACB5DCC02BB@tangledhelix.com> On Apr 2, 2007, at 8:02 PM, Raphael Villas wrote: > I'm using a regular expression to find groups of text that I need > to replace. But instead of replacing the actual text that I have > selected, I want to simply append some text to the end of the line > that has been returned. For example, if I search in the project, > retrieving ten different lines of code, how to do I insert a > specific string of text (e.g. "Put this text at the end of the > line") at the end of each of those lines? > > Is there a way to do this? Yes. Match the entire line, memorize it, and replace it with itself plus appended text. Find: ^(.*foo.*)$ Replace: $1 Put this text at the end of the line Obviously you can use a more complex regex; in this case I was searching for "foo". -dan From jamie at methnen.com Tue Apr 3 01:38:16 2007 From: jamie at methnen.com (Methnen (AKA Jamie)) Date: Mon, 2 Apr 2007 18:38:16 -0700 Subject: [TxMt] Re: Convert old HTML to XHTML... In-Reply-To: References: <098940AF-0ADA-4B87-87ED-50355B0BFF7C@asd20.org> Message-ID: <1CDF7F93-9FE2-4D7D-9627-E8CB357EAAEE@methnen.com> On Apr 2, 2007, at 4:59 PM, Jacob Rus wrote: > What's the use case? Please read [this](http://www.hixie.ch/ > advocacy/xhtml) before you decide to use XHTML. XHTML is almost > always the wrong choice of format. I disagree with the hixie article for so many reasons. Its a preference. And it's not one that, at this point, really makes a whole lot of difference either way.; My favorite of the initial responses to the hixie article: http://h3h.net/2005/12/xhtml-harmful-to-feelings/ And just for fun: http://meyerweb.com/eric/comment/chech.html?dupe=1 I have no desire for an argument but felt the need to answer that last email as I'm tired and probably a bit grumpy. In fact I don't consider the issue nearly big enough for the importance Hickson places on it. Let alone important enough to argue over for any extended length of time. HTML itself is in such a state of flux right now (and hasn't it always been?) that when we worry about the kinds of things metioned in the hixie article I think we are getting a little silly. Writing using XHTML encourages well formed code. I like that about it. I like that it makes me check to make sure I haven't done anything silly. If I end up serving that code as text/html until the end of the site's life I could really care less as long as it works reliably (and it does). By the time I might want to serve my pages as xml hopefully the w3c and the whatwg will have worked out their differences and given us something else. You do have your content in a database separate from both your markup structure and display code right? But even if they do work out something better we still have to rely on the browser devs to implement it correctly which they never seem to be capable of despite their sometimes best intentions. Again I apologize if I'm upsetting anyone. It wasn't my intention. Jamie _______________________________________________________________________ Email: jamie at methnen.com Homepage: http://www.methnen.com "And I always go to pieces. And I have it in my mind, that the sky is tall and heavy, when I could be brave." -Karen Peris (Brave) "I want to find where the maid in the street is pouring her wine, I heard she takes you in and gives you the words you need said. If you'll be her brother, she'll kiss you like a sister. She'll even be your mother, for now." -Matt Slocum (Sister, Mother) "And we are drowned." -Annie Dillard (Tickets For a Prayer Wheel) _______________________________________________________________________ From jrus at hcs.harvard.edu Tue Apr 3 02:27:30 2007 From: jrus at hcs.harvard.edu (Jacob Rus) Date: Mon, 02 Apr 2007 22:27:30 -0400 Subject: [TxMt] Re: Newbie lost: how to change Textmate search path In-Reply-To: References: Message-ID: Richard Blumberg wrote: > the ruby application is at /usr/local/bin/ruby. > > There's a symlink at /usr/bin/ruby > > Shouldn't that work? Bad idea. Don't do this. Some applications may rely on the original (system provided) ruby being in /usr/bin, and replacing it could break things. -Jacob From skiadas at hanover.edu Tue Apr 3 02:51:57 2007 From: skiadas at hanover.edu (Charilaos Skiadas) Date: Mon, 2 Apr 2007 22:51:57 -0400 Subject: [TxMt] GTDAlt -- can't set date for an action In-Reply-To: <2e8d08f0704021626n30906e20p9008da630414b909@mail.gmail.com> References: <2e8d08f0704021626n30906e20p9008da630414b909@mail.gmail.com> Message-ID: <823BA12A-557E-4516-A3FD-CC14533E602B@hanover.edu> Hi Richard, On Apr 2, 2007, at 7:26 PM, infoarts at gmail.com wrote: > Hi there > > Am loving GTDAlt - I've tried 'em all and this is the one for me it > seems. > > I notice that in the latest build of TM, that when I attempt to set a > date for an action, an error is generated: > > /tmp/temp_textmate.Ie4gRD:3:in `require': No such file to load -- > /Library/Application Support/TextMate/Support/lib/plist (LoadError) > from /tmp/temp_textmate.Ie4gRD:3 > Sounds like you need to update your subversion checkout of the global support directory, at the above path. > Any clues on this would be appreciated. > > Richard Sandilands Haris Skiadas Department of Mathematics and Computer Science Hanover College From skiadas at hanover.edu Tue Apr 3 02:54:18 2007 From: skiadas at hanover.edu (Charilaos Skiadas) Date: Mon, 2 Apr 2007 22:54:18 -0400 Subject: [TxMt] Typeset & View (PDF) In-Reply-To: <05808DAB-0A57-4E08-A6D3-9771CA474040@mac.com> References: <05808DAB-0A57-4E08-A6D3-9771CA474040@mac.com> Message-ID: <3CB1AB07-C08D-4E2F-A71B-A9040C0A7C1C@hanover.edu> On Apr 2, 2007, at 2:33 PM, Alain Matthes wrote: > Hello:) > > First I do not understand the changes in this script. > > Certain users prefer to work with latex but without pstricks, why > not make two different scripts. Sorry, I don't really follow you here. Can't you just tell TM to use latex instead? The %!TEX-program directive should work just like in TeXShop. Haris Skiadas Department of Mathematics and Computer Science Hanover College From throw-away-1 at macromates.com Tue Apr 3 03:02:26 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 3 Apr 2007 05:02:26 +0200 Subject: [TxMt] replace text at the end of a line In-Reply-To: <2F014327-E03A-4882-91AE-6ACB5DCC02BB@tangledhelix.com> References: <2F014327-E03A-4882-91AE-6ACB5DCC02BB@tangledhelix.com> Message-ID: <67A0AFAF-2730-48EB-A17A-001AC767EF5B@macromates.com> On 3. Apr 2007, at 03:27, Dan Lowe wrote: > On Apr 2, 2007, at 8:02 PM, Raphael Villas wrote: >> I'm using a regular expression to find groups of text that I need >> to replace. But instead of replacing the actual text that I have >> selected, I want to simply append some text to the end of the line >> that has been returned. For example, if I search in the project, >> retrieving ten different lines of code, how to do I insert a >> specific string of text (e.g. "Put this text at the end of the >> line") at the end of each of those lines? >> >> Is there a way to do this? > > Yes. Match the entire line, memorize it, and replace it with itself > plus appended text. > > Find: ^(.*foo.*)$ > Replace: $1 Put this text at the end of the line $0 refers to the full match, so it is not necessary to make an explicit capture. From throw-away-1 at macromates.com Tue Apr 3 03:13:47 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 3 Apr 2007 05:13:47 +0200 Subject: [TxMt] Convert old HTML to XHTML... In-Reply-To: <098940AF-0ADA-4B87-87ED-50355B0BFF7C@asd20.org> References: <098940AF-0ADA-4B87-87ED-50355B0BFF7C@asd20.org> Message-ID: On 2. Apr 2007, at 22:08, Ron Patterson wrote: > [...] Has anyone seen a bundle or suggestions on using tidy (or > something) to convert old style HTML to newer transitional XHTML > without screwing up embedded PHP (or other) code? [...] What exactly is the conversion supposed to do? Add a trailing slash to all tags with an EMPTY content model? It has been said a few times before on this list, but do think twice before switching to XHTML: http://www.hixie.ch/advocacy/xhtml Since it last was up, new development has happened; the W3C has acknowledged the need for a new version of HTML and restarted development on this standard [1] (parallel to W3C, the WhatWG has been doing work on HTML5 [2], and W3C ). [1]: http://www.w3.org/2007/03/html-pressrelease [2]: http://www.whatwg.org/specs/web-apps/current-work/ From throw-away-1 at macromates.com Tue Apr 3 03:18:04 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 3 Apr 2007 05:18:04 +0200 Subject: [TxMt] Typeset & View (PDF) In-Reply-To: <5FCF04DC-08A4-42D7-A4B8-32D529C626B3@tangledhelix.com> References: <05808DAB-0A57-4E08-A6D3-9771CA474040@mac.com> <5FCF04DC-08A4-42D7-A4B8-32D529C626B3@tangledhelix.com> Message-ID: On 3. Apr 2007, at 03:21, Dan Lowe wrote: > On Apr 2, 2007, at 2:33 PM, Alain Matthes wrote: >> There is a little change in one line : >> >> now >> if [ -s "${PDF}" -a ! "$PDF" -ot "$FILE" ]; then >> >> before >> if [ -s "${PDF}" -a "$PDF" -nt "$FILE" ]; then ..... >> >> -ot instead -nt ? why ? > The first condition is negated by the "!", so it reads as "not > older than". The second condition reads as "newer than". So > ultimately they are equivalent. Except for the case where the PDF file has exactly the same date as the document file. Here the new version will still continue (with showing the PDF) where the old one would not (thus the change). From throw-away-1 at macromates.com Tue Apr 3 03:24:15 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 3 Apr 2007 05:24:15 +0200 Subject: [TxMt] Re: Errors launching Textmate In-Reply-To: References: <48109E1C-1443-4876-B360-F8F49A6684BE@macromates.com> <49232C8D-180B-491D-9207-320846A47430@macromates.com> Message-ID: <9D936DF5-02F9-47B9-B546-C2745AE8D861@macromates.com> On 2. Apr 2007, at 20:35, John Tsombakos wrote: >> It uses the most local one. Removing stuff in TextMate.app/? is >> never >> a good idea (as it will be back when you update). > "Most local" meaning not including the one in the TextMate.app > itself? The one in TextMate.app is considered the most global version. It is app ? /Network ? /Library ? ~/Library. From throw-away-1 at macromates.com Tue Apr 3 03:25:50 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 3 Apr 2007 05:25:50 +0200 Subject: [TxMt] Re: Newbie lost: how to change Textmate search path In-Reply-To: References: Message-ID: On 2. Apr 2007, at 19:52, Richard Blumberg wrote: > the ruby application is at /usr/local/bin/ruby. > > There's a symlink at /usr/bin/ruby > > Shouldn't that work? Yes, so probably your symlink is wrong ;) I updated the templates to use ?#!/usr/bin/env ruby? -- but you probably want to inspect /usr/bin/ruby. Try e.g. run it from Terminal (with abs. path). From throw-away-1 at macromates.com Tue Apr 3 03:30:14 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 3 Apr 2007 05:30:14 +0200 Subject: [TxMt] Default Folder X? In-Reply-To: <7a9c25c20704021719o7cf7ec39oe2c5387ae50550a1@mail.gmail.com> References: <7a9c25c20704021719o7cf7ec39oe2c5387ae50550a1@mail.gmail.com> Message-ID: <81925580-4CDA-4C09-B618-57C319644E96@macromates.com> On 3. Apr 2007, at 02:19, Stephen Hansen wrote: > Does anyone use http://www.stclairsoft.com/DefaultFolderX/? It > doesn't work > in TextMate's open dialog, but seems to work in every other [...] I just installed it, and it does show up when I do ?O in TextMate. From apt.shansen at gmail.com Tue Apr 3 03:42:34 2007 From: apt.shansen at gmail.com (Stephen Hansen) Date: Mon, 2 Apr 2007 20:42:34 -0700 Subject: [TxMt] Default Folder X? In-Reply-To: <81925580-4CDA-4C09-B618-57C319644E96@macromates.com> References: <7a9c25c20704021719o7cf7ec39oe2c5387ae50550a1@mail.gmail.com> <81925580-4CDA-4C09-B618-57C319644E96@macromates.com> Message-ID: <7a9c25c20704022042r3e585bb8ub4c2d3104e38cfe3@mail.gmail.com> *facepalm* I just needed to restart Textmate. It never occurred to me, since TM is the *one* program I *never* close. I got out of the habit of ever thinking I might shut TM down :) Sorry. Stupid moment. :) --S On 4/2/07, Allan Odgaard wrote: > > On 3. Apr 2007, at 02:19, Stephen Hansen wrote: > > > Does anyone use http://www.stclairsoft.com/DefaultFolderX/? It > > doesn't work > > in TextMate's open dialog, but seems to work in every other [...] > > I just installed it, and it does show up when I do ?O in TextMate. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tsom467 at gmail.com Tue Apr 3 05:36:30 2007 From: tsom467 at gmail.com (John Tsombakos) Date: Tue, 3 Apr 2007 01:36:30 -0400 Subject: [TxMt] Re: Errors launching Textmate In-Reply-To: <9D936DF5-02F9-47B9-B546-C2745AE8D861@macromates.com> References: <48109E1C-1443-4876-B360-F8F49A6684BE@macromates.com> <49232C8D-180B-491D-9207-320846A47430@macromates.com> <9D936DF5-02F9-47B9-B546-C2745AE8D861@macromates.com> Message-ID: On 4/2/07, Allan Odgaard wrote: > On 2. Apr 2007, at 20:35, John Tsombakos wrote: > > >> It uses the most local one. Removing stuff in TextMate.app/? is > >> never > >> a good idea (as it will be back when you update). > > "Most local" meaning not including the one in the TextMate.app > > itself? > > The one in TextMate.app is considered the most global version. > > It is app ? /Network ? /Library ? ~/Library. > So TM will use the one in /Library first. Cool. Thanks. From alain.matthes at mac.com Tue Apr 3 05:41:52 2007 From: alain.matthes at mac.com (Alain Matthes) Date: Tue, 3 Apr 2007 07:41:52 +0200 Subject: [TxMt] Typeset & View (PDF) In-Reply-To: References: <05808DAB-0A57-4E08-A6D3-9771CA474040@mac.com> <5FCF04DC-08A4-42D7-A4B8-32D529C626B3@tangledhelix.com> Message-ID: <59E3B937-08A9-4D4A-8A9A-58F5852BA075@mac.com> Le 3 avr. 07 ? 05:18, Allan Odgaard a ?crit : > On 3. Apr 2007, at 03:21, Dan Lowe wrote: > >> On Apr 2, 2007, at 2:33 PM, Alain Matthes wrote: >>> There is a little change in one line : >>> >>> now >>> if [ -s "${PDF}" -a ! "$PDF" -ot "$FILE" ]; then >>> >>> before >>> if [ -s "${PDF}" -a "$PDF" -nt "$FILE" ]; then ..... >>> >>> -ot instead -nt ? why ? >> The first condition is negated by the "!", so it reads as "not >> older than". The second condition reads as "newer than". So >> ultimately they are equivalent. > > Except for the case where the PDF file has exactly the same date as > the document file. > > Here the new version will still continue (with showing the PDF) > where the old one would not (thus the change). > Thanks and sorry ! i need to work because I try to learn how to make my own script so I try to understand this one. In my bash book , -nt et -ot are the last operators for file test :( Alain Matthes From alain.matthes at mac.com Tue Apr 3 06:31:24 2007 From: alain.matthes at mac.com (Alain Matthes) Date: Tue, 3 Apr 2007 08:31:24 +0200 Subject: [TxMt] Typeset & View (PDF) In-Reply-To: <3CB1AB07-C08D-4E2F-A71B-A9040C0A7C1C@hanover.edu> References: <05808DAB-0A57-4E08-A6D3-9771CA474040@mac.com> <3CB1AB07-C08D-4E2F-A71B-A9040C0A7C1C@hanover.edu> Message-ID: <30BB1297-197C-4ECF-A8D5-5CD6BB6E0EBF@mac.com> Le 3 avr. 07 ? 04:54, Charilaos Skiadas a ?crit : > On Apr 2, 2007, at 2:33 PM, Alain Matthes wrote: > >> Hello:) >> >> First I do not understand the changes in this script. >> >> Certain users prefer to work with latex but without pstricks, why >> not make two different scripts. > > Sorry, I don't really follow you here. Can't you just tell TM to > use latex instead? The %!TEX-program directive should work just > like in TeXShop. > Hello haris, it's difficult to explain because my english is poor and i'm a very newbie with the shell script, perhaps I don't understand the script. first I work with Texshop only if i want to test a tex file with dvi + ps because with the mac there are a lot of possiblities : i try to be clear : 1) latex (dvi + ps) problem a) it's not necessary to use pstricks. A lot of linux users prefer latex ( dvi + ps) because ...they can use "special" command with PS. And when a linux user work with the mac, often, he works with tex + ghoscript ! b) dvi2ps is not an obligation, with the mac you can prefer dvitops the apple distiller ( with texhop in the pref, you can choose the distiller apple or ghoscript) The apple distiller is not very good but it exists. c) perhaps i don't understand the script but you can use a latex class or a package who calls pstricks. I'm not sure that's the script detects that ... d) I work only with pdflatex but i make packages and classes so i need to test my work with pdflatex with the two ways : pdf directly ( the good way for me) and dvi + ps. e) it's more elegant to work with only one script but in this case perhaps it's more easy to define a shell variable : TM_LATEX_Option : DVI with PDF by default. 2) modify the script ... with the old script, i made a special variant of the script call "preview" often i make piece of tex code and i want to compile this piece without complete the file example : i want to have a look at the result of : \begin{enumerate}\setlength{\itemsep}{15pt} \item aaa \item bb \item cc \end{enumerate} so in the script i've # DIR=`dirname "$M"` # FILE=`basename "$M"` DIR="/Users/ego/Boulot/temp" FILE="temptex.tex" and after that cd ${TM_DIR_FOR_TEMP} cat >temptex.tex< References: Message-ID: On 4/2/07, Andrew Henson wrote: > Hi Ale, > > The short answer is yes! Have a look at a bundle I wrote for Snipplr. > > http://www.elaptics.co.uk/fileadmin/repository/tmbundles/Snipplr2.zip > It hasn't been easy, but I managed to get it working :) Do you know where could I get more information about Interface Builder? Obviusly, you know your stuff pretty well ;) Anyways, thanks a lot for the info (and for the Snipplr bundle, I didn't know about it). It will be used for ?bercool stuff... -- Ale Mu?oz http://sofanaranja.com http://bomberstudios.com From robin.houston at gmail.com Tue Apr 3 07:52:05 2007 From: robin.houston at gmail.com (Robin Houston) Date: Tue, 3 Apr 2007 08:52:05 +0100 Subject: [TxMt] Typeset & View (PDF) In-Reply-To: <30BB1297-197C-4ECF-A8D5-5CD6BB6E0EBF@mac.com> References: <05808DAB-0A57-4E08-A6D3-9771CA474040@mac.com> <3CB1AB07-C08D-4E2F-A71B-A9040C0A7C1C@hanover.edu> <30BB1297-197C-4ECF-A8D5-5CD6BB6E0EBF@mac.com> Message-ID: <1b795e7b0704030052tacf7a90o2f95dd0f549fbb3@mail.gmail.com> On 4/3/07, Alain Matthes wrote: > > e) it's more elegant to work with only one script but in this case > perhaps it's more easy to define a shell variable : TM_LATEX_Option : > DVI with PDF by default. You can convince the preview script to use ordinary (DVI) latex by setting: TM_LATEX_COMPILER = latex TEX_PSTRICKS = 1 (Ideally, I think, the first of these would suffice.) Robin -------------- next part -------------- An HTML attachment was scrubbed... URL: From bomberstudios at gmail.com Tue Apr 3 07:58:10 2007 From: bomberstudios at gmail.com (=?UTF-8?Q?Ale_Mu=C3=B1oz?=) Date: Tue, 3 Apr 2007 09:58:10 +0200 Subject: [TxMt] dialog.rb and custom Nibs Message-ID: Hello, I'm trying to use dialog.rb to open custom made dialogs (Nibs) in Ruby but so far have not succeeded. Reading the code, it looks like this should work: Dialog.new(:nib => "path/to/nib") but I get an error. I'm using shell code now, but would love to use the nicer Ruby syntax ;) Any advice? Thanks in advance -- Ale Mu?oz http://sofanaranja.com http://bomberstudios.com From infoarts at gmail.com Tue Apr 3 10:02:40 2007 From: infoarts at gmail.com (infoarts at gmail.com) Date: Tue, 3 Apr 2007 20:02:40 +1000 Subject: [TxMt] GTDAlt -- can't set date for an action In-Reply-To: <823BA12A-557E-4516-A3FD-CC14533E602B@hanover.edu> References: <2e8d08f0704021626n30906e20p9008da630414b909@mail.gmail.com> <823BA12A-557E-4516-A3FD-CC14533E602B@hanover.edu> Message-ID: <2e8d08f0704030302t5d797d3ek3b44c482c10c03a@mail.gmail.com> Yep - I'm realising that it is a good idea to regularly update the bundles etc. And thanks again for your work on GTDAlt. From ke.han at mac.com Tue Apr 3 10:48:58 2007 From: ke.han at mac.com (Jon Hancock) Date: Tue, 3 Apr 2007 18:48:58 +0800 Subject: [TxMt] subversion usage through NFS Message-ID: <3FB1F739-AAA7-4540-8A2A-A157D01B2574@mac.com> I have an NFS share from my linux server and mount this on my Mac. This NFS share is an svn working copy and its repo is local to the same server. So the svn url is file:///path_to_repo/trunk. If I try to use the subversion bundle in TextMate, it tries to use direct file access to the repo instead of svn+ssh access. Is there a way I can let TextMate know to use svn+ssh for this working copy? thanks, ke han From igor.sutton at gmail.com Tue Apr 3 10:58:11 2007 From: igor.sutton at gmail.com (Igor Sutton Lopes) Date: Tue, 3 Apr 2007 11:58:11 +0100 Subject: [TxMt] Multiline TODO Message-ID: Hi there, There's any quick and dirty hack that allows me to use multiline TODO tags? I checked the code but it is Ruby -and I don't want to learn it right now to just hack it. But maybe writing a perl similar would be nice :-) Thank you. -- Igor Sutton igor.sutton at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: From skiadas at hanover.edu Tue Apr 3 11:45:43 2007 From: skiadas at hanover.edu (Charilaos Skiadas) Date: Tue, 3 Apr 2007 07:45:43 -0400 Subject: [TxMt] dialog.rb and custom Nibs In-Reply-To: References: Message-ID: Hi Ale, On Apr 3, 2007, at 3:58 AM, Ale Mu?oz wrote: > Hello, > > I'm trying to use dialog.rb to open custom made dialogs (Nibs) in Ruby > but so far have not succeeded. > > Reading the code, it looks like this should work: > > Dialog.new(:nib => "path/to/nib") > > but I get an error. > > I'm using shell code now, but would love to use the nicer Ruby > syntax ;) > > Any advice? > You haven't really given us much to go on with here. How about a reproducible example, the nib you are working with and the error you are getting? > Thanks in advance > > > -- > Ale Mu?oz > http://sofanaranja.com > http://bomberstudios.com Haris Skiadas Department of Mathematics and Computer Science Hanover College From textmate at skurfer.com Tue Apr 3 12:43:38 2007 From: textmate at skurfer.com (Rob McBroom) Date: Tue, 3 Apr 2007 08:43:38 -0400 Subject: [TxMt] subversion usage through NFS In-Reply-To: <3FB1F739-AAA7-4540-8A2A-A157D01B2574@mac.com> References: <3FB1F739-AAA7-4540-8A2A-A157D01B2574@mac.com> Message-ID: <7B1E25E7-CB6F-441C-B832-DE627C9C821B@skurfer.com> On Apr 3, 2007, at 6:48 AM, Jon Hancock wrote: > I have an NFS share from my linux server and mount this on my Mac. > This NFS share is an svn working copy and its repo is local to the > same server. So the svn url is file:///path_to_repo/trunk. > If I try to use the subversion bundle in TextMate, it tries to use > direct file access to the repo instead of svn+ssh access. Is there > a way I can let TextMate know to use svn+ssh for this working copy? The working copy itself remembers the URL that was used to check it out, so if it was checked out local on the machine, then mounted via NFS, it will always try to interact with the repository using `file:`. Check for yourself by going into one of the working copy's directories and grep url .svn/entries What you'll have to do is make sure you can SSH from the linux server back to itself (assuming you want to still be able to use the same working copy on the server), then remove or relocate the current working copy and check out a new one via `svn+ssh:`. Whether you check it out from the remote machine or from your Mac with it mounted via NFS shouldn't matter at that point. You should also make sure that Subversion can correctly manipulate the working copy via NFS. I know that it doesn't work with Samba or SSHFS. --- Rob McBroom I didn't "switch" to Apple... my OS did. From bomberstudios at gmail.com Tue Apr 3 12:55:54 2007 From: bomberstudios at gmail.com (=?UTF-8?Q?Ale_Mu=C3=B1oz?=) Date: Tue, 3 Apr 2007 14:55:54 +0200 Subject: [TxMt] dialog.rb and custom Nibs In-Reply-To: References: Message-ID: On 4/3/07, Charilaos Skiadas wrote: > > You haven't really given us much to go on with here. How about a > reproducible example, the nib you are working with and the error you > are getting? > I should stop asking questions when I'm asleep :) Here's some code that works, sorry for asking without proper research and tinkering: support = ENV['TM_SUPPORT_PATH'] require "#{support}/lib/dialog" my_dialog = TextMate::Dialog.new( :nib => "/Users/ale/Desktop/Test.nib/", :parameters => {} ) What I was doing wrong was calling Dialog.new instead of TextMate::Dialog.new So far, it seems to work (haven't tested with the real Nib file, but I don't see why it wouldn't work...) Thanks for making me check again (I found the error while writing an example for this email :) -- Ale Mu?oz http://sofanaranja.com http://bomberstudios.com From skiadas at hanover.edu Tue Apr 3 13:21:09 2007 From: skiadas at hanover.edu (Charilaos Skiadas) Date: Tue, 3 Apr 2007 09:21:09 -0400 Subject: [TxMt] dialog.rb and custom Nibs In-Reply-To: References: Message-ID: <1ED04FA8-33B3-4072-9DAB-3B8D75E1E585@hanover.edu> On Apr 3, 2007, at 8:55 AM, Ale Mu?oz wrote: > Thanks for making me check again (I found the error while writing an > example for this email :) That was in fact why I asked for an example ;) Haris Skiadas Department of Mathematics and Computer Science Hanover College From chris at cjack.com Tue Apr 3 14:29:45 2007 From: chris at cjack.com (Chris Thomas) Date: Tue, 3 Apr 2007 10:29:45 -0400 Subject: [TxMt] subversion usage through NFS In-Reply-To: <7B1E25E7-CB6F-441C-B832-DE627C9C821B@skurfer.com> References: <3FB1F739-AAA7-4540-8A2A-A157D01B2574@mac.com> <7B1E25E7-CB6F-441C-B832-DE627C9C821B@skurfer.com> Message-ID: <1D3F1677-BDBF-43F5-8A26-B715E744CD8D@cjack.com> On Apr 3, 2007, at 8:43 AM, Rob McBroom wrote: > On Apr 3, 2007, at 6:48 AM, Jon Hancock wrote: > >> I have an NFS share from my linux server and mount this on my Mac. >> This NFS share is an svn working copy and its repo is local to the >> same server. So the svn url is file:///path_to_repo/trunk. >> If I try to use the subversion bundle in TextMate, it tries to use >> direct file access to the repo instead of svn+ssh access. Is there >> a way I can let TextMate know to use svn+ssh for this working copy? > > The working copy itself remembers the URL that was used to check it > out, so if it was checked out local on the machine, then mounted via > NFS, it will always try to interact with the repository using > `file:`. Check for yourself by going into one of the working copy's > directories and > > grep url .svn/entries > > What you'll have to do is make sure you can SSH from the linux > server back to itself (assuming you want to still be able to use the > same working copy on the server), then remove or relocate the > current working copy and check out a new one via `svn+ssh:`. Whether > you check it out from the remote machine or from your Mac with it > mounted via NFS shouldn't matter at that point. 'svn switch --relocate' Chris From singletoned at gmail.com Tue Apr 3 15:05:59 2007 From: singletoned at gmail.com (Ed Singleton) Date: Tue, 3 Apr 2007 16:05:59 +0100 Subject: [TxMt] Nested Transformations in Snippets Message-ID: <34bb7f5b0704030805v25e789b7j63f0fc7602187959@mail.gmail.com> Is there a way to do nested transformations in snippets? I want to do something like: class FooFields: [...] foo_form = [...] where the Foo is easily changed. Fields should be converted to form and the whole thing should be converted from CamelCase to under_scored. I can do the underscored convertion, but I can't work out how to do another search and replace as well. I though this might work: class ${1:FooFields}: [...] ${2:${${1/Fields/Form/}/([a-z0-9])?([A-Z])/(?1:$1_)(?2:\l$2)/g}} = [...] Where the first regex is input to the second regex. But it doesn't work. Instead it doesn't seem to recognise the regex as a regex at all and outputs: class FooFields: [...] {1/Fields/Form//([a-z0-9])?([A-Z])/(?1:FooFields_)(?2:\l{1/Fields/Form/)/g}} = [...] Whilst writing this I have realised that I can just do: class ${1:Foo}Fields: [...] ${2:${1/([a-z0-9])?([A-Z])/(?1:$1_)(?2:\l$2)/g}}_form = [...] Which is good enough as a solution, but I'd still like to know if there is a way to solve the problem using nested regexs? Many Thanks Ed From klingeling at gmail.com Tue Apr 3 15:15:31 2007 From: klingeling at gmail.com (Martin Bialasinski) Date: Tue, 3 Apr 2007 17:15:31 +0200 Subject: [TxMt] LaTeX Watch In-Reply-To: <9789288.post@talk.nabble.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> <9789288.post@talk.nabble.com> Message-ID: <1f788d0b0704030815h93f4344ub343dc93af0eced2@mail.gmail.com> On 4/2/07, Zettt wrote: > I was very confused that nobody else is interested in this thing. I thought, > lets wait a while this will be a thing everybody wants to have. But nothing > happened :-/ Well, it looks like you reinvented latexmk. http://www.phys.psu.edu/~collins/software/latexmk-jcc/ Using latexmk, this is the command I use to start a process that will typeset automaticaly whenever you save the current file: M=${TM_LATEX_MASTER:-$TM_FILEPATH} DIR=`dirname "$M"` FILE=`basename "$M"` open -a Terminal osascript <<-APPLESCRIPT tell application "Terminal" do script "cd \"$DIR\"; latexmk -pvc -pdf -quiet \"$FILE\" " end tell APPLESCRIPT From robin.houston at gmail.com Tue Apr 3 15:35:54 2007 From: robin.houston at gmail.com (Robin Houston) Date: Tue, 3 Apr 2007 16:35:54 +0100 Subject: [TxMt] LaTeX Watch In-Reply-To: <1f788d0b0704030815h93f4344ub343dc93af0eced2@mail.gmail.com> References: <1b795e7b0703290243v2925e2cn97cdcaa0ac58e531@mail.gmail.com> <9786521.post@talk.nabble.com> <1b795e7b0704020304w346ef6bfo2077d69816f1fbf7@mail.gmail.com> <9789288.post@talk.nabble.com> <1f788d0b0704030815h93f4344ub343dc93af0eced2@mail.gmail.com> Message-ID: <1b795e7b0704030835h72e2b537kc83d0f1c42fe1317@mail.gmail.com> On 4/3/07, Martin Bialasinski wrote: > > open -a Terminal > osascript <<-APPLESCRIPT > tell application "Terminal" > do script "cd \"$DIR\"; latexmk -pvc -pdf -quiet \"$FILE\" > " > end tell > APPLESCRIPT That seems unnecessarily roundabout. You could avoid Terminal altogether by doing: bash </dev/null & cd "$DIR" latexmk -pvc -pdf -quiet "$FILE" BASH If you try Latex Watch, you should find it noticeably faster than latexmk, which might be a clue that it's not just doing the same thing. :-) Robin -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin.houston at gmail.com Tue Apr 3 15:53:08 2007 From: robin.houston at gmail.com (Robin Houston) Date: Tue, 3 Apr 2007 16:53:08 +0100 Subject: [TxMt] Latex Watch 1.4 Message-ID: <1b795e7b0704030853i1ca4b630ve4e90caac1acea1f@mail.gmail.com> Here's another snapshot, for those who are interested. I've made it into its own bundle for the moment, for ease of installation. This version should have more robust error handling, and does its best to work with the 3.6.x versions of GV. (Unfortunately they're all pretty buggy ? the best version is still 3.5.8 ? but it does its best.) Many thanks to Zettt, who went out of his way yesterday to help me identify the problems he was having. PDF support will come in a later version, which I'll probably call 2.0. (You might like to mentally prepend "0." to all these version numbers. This is clearly still alpha code.) Robin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: LaTeX Watch 1.4.dmg Type: application/octet-stream Size: 58069 bytes Desc: not available URL: From throw-away-1 at macromates.com Tue Apr 3 18:28:44 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 3 Apr 2007 20:28:44 +0200 Subject: [TxMt] Nested Transformations in Snippets In-Reply-To: <34bb7f5b0704030805v25e789b7j63f0fc7602187959@mail.gmail.com> References: <34bb7f5b0704030805v25e789b7j63f0fc7602187959@mail.gmail.com> Message-ID: <7E5BFA26-917A-4264-BD1B-795AB9266F17@macromates.com> On 3. Apr 2007, at 17:05, Ed Singleton wrote: > [...] > Which is good enough as a solution, but I'd still like to know if > there is a way to solve the problem using nested regexs? Nested regexps are currently not supported. From vicmf at concentric.net Tue Apr 3 18:55:27 2007 From: vicmf at concentric.net (Victor Maurice Faubert) Date: Tue, 3 Apr 2007 14:55:27 -0400 Subject: [TxMt] [admin] testmate mailing list digests Message-ID: Apologies for using bandwidth on the main mailing list, but my attempt to contact textmate-owner at lists.macromates.com bounced with a "not allowed to post" message, though I am subscribed to the list. The message I sent to the owner follows: Hi, Is there any way to get a *daily* digest from the textmate-request list? I am receiving several e-mails each day, all relatively small sized, instead of a single digest per day. Each of these is labelled "textmate Digest" and carries a few messages, rarely more than five to seven. I understand, when the digest reaches a reasonably large size having it split up, but today, so far (and the day is only half over here), I have received digests at 0:19+0000 16K textmate Digest, Vol 31, Issue 14 3:14+0000 20K textmate Digest, Vol 31, Issue 15 6:41+0000 17K textmate Digest, Vol 31, Issue 16 12:00+0000 9K textmate Digest, Vol 31, Issue 17 15:53+0000 15K textmate Digest, Vol 31, Issue 18 That's a total of 77K in five separate messages; looking back over time, it seems as if no digest is ever allowed to grow much over 20K (the largest since I subscribed is 30K and there is only one of those; most are 20K or below). That seems way too low for a *digest*. The digests from the gcc list, for example, are regularly in the 50-80K range, and are much more useful in keeping related topics together than the textmate list is. Thanks in advance for your response. -- Vic From bomberstudios at gmail.com Tue Apr 3 19:13:57 2007 From: bomberstudios at gmail.com (=?UTF-8?Q?Ale_Mu=C3=B1oz?=) Date: Tue, 3 Apr 2007 21:13:57 +0200 Subject: [TxMt] dialog.rb and custom Nibs In-Reply-To: <1ED04FA8-33B3-4072-9DAB-3B8D75E1E585@hanover.edu> References: <1ED04FA8-33B3-4072-9DAB-3B8D75E1E585@hanover.edu> Message-ID: Followup: anybody playing with Ruby and custom Nibs should *really* take a look at the Subversion bundle. svn_revision_chooser.rb has a really nice example of a custom dialog that does some things beyond the basics. Chris Thomas, you rule :) -- Ale Mu?oz http://sofanaranja.com http://bomberstudios.com From Soryu at serenity.de Tue Apr 3 19:26:39 2007 From: Soryu at serenity.de (Soryu) Date: Tue, 3 Apr 2007 21:26:39 +0200 Subject: [TxMt] Multiline TODO In-Reply-To: References: Message-ID: On 03.04.2007, at 12:58, Igor Sutton Lopes wrote: > Hi there, > > There's any quick and dirty hack that allows me to use multiline > TODO tags? I checked the code but it is Ruby -and I don't want to > learn it right now to just hack it. But maybe writing a perl > similar would be nice :-) I don?t see an easy & universal solution for this because the TODO Command works with any kinds of text files. If you have an idea for a regular expression that matches your multiline TODO you could change the default one /TODO[\s,:]+(\S.*)$/i to that (in lines 4-7 in the command). I?m not exactly sure if the Ruby code in the TODO command works line by line but I think it just matches the whole content of each file with the `grep` function. What languages are you working with mostly? Regards, Soryu. From igor.sutton at gmail.com Tue Apr 3 19:41:01 2007 From: igor.sutton at gmail.com (Igor Sutton Lopes) Date: Tue, 3 Apr 2007 20:41:01 +0100 Subject: [TxMt] Multiline TODO In-Reply-To: References: Message-ID: <1A71199F-E996-45A3-AD4F-E927FDB08FCF@gmail.com> Hi Soryu, On 2007/04/03, at 20:26, Soryu wrote: > > On 03.04.2007, at 12:58, Igor Sutton Lopes wrote: > >> Hi there, >> >> There's any quick and dirty hack that allows me to use multiline >> TODO tags? I checked the code but it is Ruby -and I don't want to >> learn it right now to just hack it. But maybe writing a perl >> similar would be nice :-) > > I don?t see an easy & universal solution for this because the TODO > Command works with any kinds of text files. > If you have an idea for a regular expression that matches your > multiline TODO you could change the default one > > /TODO[\s,:]+(\S.*)$/i > > to that (in lines 4-7 in the command). I?m not exactly sure if the > Ruby code in the TODO command works line by line but I think it > just matches the whole content of each file with the `grep` function. > > What languages are you working with mostly? I'm working with Perl, so that kind of tag would be something like: # TODO: lskdj slfj slf jslf jslfj slfj slfdj skdfjskdfj slfj # slfjf jsf lskj flskjf slkdjf slfj slfkj slfjsf But, anyways, I can use the tag to show the title and then navigate to the line and see the whole description. Thanks :-) -- Igor Sutton igor.sutton at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part URL: From throw-away-1 at macromates.com Tue Apr 3 20:10:08 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Tue, 3 Apr 2007 22:10:08 +0200 Subject: [TxMt] [admin] testmate mailing list digests In-Reply-To: References: Message-ID: On 3. Apr 2007, at 20:55, Victor Maurice Faubert wrote: > Apologies for using bandwidth on the main mailing list, but my > attempt to contact textmate-owner at lists.macromates.com bounced with > a "not allowed to post" message, though I am subscribed to the list. That?s just a standard FAQ reply, since 90% of the mails sent to textmate-owner is people asking why they can?t send to this ML ;) > [...] Is there any way to get a *daily* digest from the textmate- > request list? I am receiving several e-mails each day, all > relatively small sized, The ?How big in Kb should a digest be before it gets sent out?? was set to 30, I have increased it to 200. Based on the message sizes you quote, it seemed that even 30 Kb was not used. Let?s see if the new size has any effect? From textmate at contextgarden.net Tue Apr 3 20:17:40 2007 From: textmate at contextgarden.net (Patrick Gundlach) Date: Tue, 03 Apr 2007 22:17:40 +0200 Subject: [TxMt] Re: XML Indenting In-Reply-To: (Nicholas Orr's message of "Mon, 2 Apr 2007 16:11:17 +1000") References: Message-ID: Hi Nick, > > > > This has been indented using the "Indent Selection" option. > Obviously I'd like it to work the same on the second set of text as > it does on the first. I'd really love to see the XML-bundle do the indentation as you describe. For XML I still use emacs; XML handling is not really one of TextMate's best sides. Putting the data into CDATA section can't be a serious suggestion. Patrick From edouard.gilbert at gmail.com Mon Apr 2 14:21:06 2007 From: edouard.gilbert at gmail.com (=?UTF-8?Q?=C3=89douard_Gilbert?=) Date: Mon, 2 Apr 2007 07:21:06 -0700 (PDT) Subject: [TxMt] LaTeX command completion shortcut Message-ID: <9791717.post@talk.nabble.com> Hi every one, I haven't been able to find any post about the topic, but I must admit the number of post containing command and completion is indeed quite impressive. Here is my problem. I'm French and I'm using an azerty keyboard. I can't use the default (command - option - }) ?LaTeX command completion based on current word? shortcut. On an azerty keyboard, please note it must be typed (command - option - shift - ?)?) and that the ?)? is located two keys left from the delete key, next to the upper figure ?0?. Worse, even when I try to change the shortcut to (command - option - shift - ?)?), it doesn't work. In fact, it looks like the shortcut doesn't trigger a thing. I currently worked around the problem using (command - control - option - ?)?) 4-fingers ?shortcut?, but I'd like to switch back to normal. Do you have any idea of the reason why (command - option - ?)?) does not work? I've been looking for such a shortcut in TextMate but haven't been able to find one. Thank for your help and my appologies for the potential bad spelling. -- View this message in context: http://www.nabble.com/LaTeX-command-completion-shortcut-tf3506038.html#a9791717 Sent from the textmate users mailing list archive at Nabble.com. From n.kobschaetzki at googlemail.com Tue Apr 3 20:38:32 2007 From: n.kobschaetzki at googlemail.com (=?ISO-8859-1?Q?Niels_Kobsch=E4tzki?=) Date: Tue, 3 Apr 2007 22:38:32 +0200 Subject: [TxMt] LaTeX command completion shortcut In-Reply-To: <9791717.post@talk.nabble.com> References: <9791717.post@talk.nabble.com> Message-ID: <0C11B186-FABE-457C-80CC-D7C6B7681019@googlemail.com> On Apr 2, 2007, at 4:21 PM, ?douard Gilbert wrote: > > Hi every one, > > I haven't been able to find any post about the topic, but I must > admit the > number of post containing command and completion is indeed quite > impressive. > > Here is my problem. I'm French and I'm using an azerty keyboard. I > can't use > the default (command - option - }) ?LaTeX command completion based on > current word? shortcut. On an azerty keyboard, please note it must > be typed > (command - option - shift - ?)?) and that the ?)? is located two > keys left > from the delete key, next to the upper figure ?0?. Worse, even when > I try to > change the shortcut to (command - option - shift - ?)?), it doesn't > work. In > fact, it looks like the shortcut doesn't trigger a thing. > > I currently worked around the problem using (command - control - > option - > ?)?) 4-fingers ?shortcut?, but I'd like to switch back to normal. > Do you > have any idea of the reason why (command - option - ?)?) does not > work? I've > been looking for such a shortcut in TextMate but haven't been able > to find > one. Because Mac OS X interprets it as something different. If I see it right there is no cmd+opt+} on a French keyboard-layout, there is only cmd+} because of the way } is typed ( opt+) ) Either you switch to another layout (preferably US) which will make some other things harder for you[1] or you put the shortcut on something self-defined Niels [1] I have to admit that I'm a bad person, switched back to German layout because it was really uncomfortable for me with the US-layout even though I got it memorized fast, it made me slower in typing because of the way umlauts and ? are typed and you need them more often then you can imagine. When I have to type Japanese or Korean I stay with the US-layout as before because there it is strange to use the German one -- Jammern f?r Anf?nger: Niels K. (25) Jammerbacke -- auch f?r professionelles Jammern zu haben http://jammern.wordpress.com From edouard.gilbert at eleves.bretagne.ens-cachan.fr Tue Apr 3 20:54:38 2007 From: edouard.gilbert at eleves.bretagne.ens-cachan.fr (=?ISO-8859-1?Q?=C9douard_Gilbert?=) Date: Tue, 3 Apr 2007 22:54:38 +0200 Subject: [TxMt] LaTeX command completion shortcut In-Reply-To: <0C11B186-FABE-457C-80CC-D7C6B7681019@googlemail.com> References: <9791717.post@talk.nabble.com> <0C11B186-FABE-457C-80CC-D7C6B7681019@googlemail.com> Message-ID: <295A953C-DBB5-4FC9-B603-AAB01A69E67F@eleves.bretagne.ens-cachan.fr> Le 3 avr. 07 ? 22:38, Niels Kobsch?tzki a ?crit : > On Apr 2, 2007, at 4:21 PM, ?douard Gilbert wrote: > >> >> Hi every one, >> >> I haven't been able to find any post about the topic, but I must >> admit the >> number of post containing command and completion is indeed quite >> impressive. >> >> Here is my problem. I'm French and I'm using an azerty keyboard. I >> can't use >> the default (command - option - }) ?LaTeX command completion based on >> current word? shortcut. On an azerty keyboard, please note it must >> be typed >> (command - option - shift - ?)?) and that the ?)? is located two >> keys left >> from the delete key, next to the upper figure ?0?. Worse, even >> when I try to >> change the shortcut to (command - option - shift - ?)?), it >> doesn't work. In >> fact, it looks like the shortcut doesn't trigger a thing. >> >> I currently worked around the problem using (command - control - >> option - >> ?)?) 4-fingers ?shortcut?, but I'd like to switch back to normal. >> Do you >> have any idea of the reason why (command - option - ?)?) does not >> work? I've >> been looking for such a shortcut in TextMate but haven't been able >> to find >> one. > > Because Mac OS X interprets it as something different. If I see it > right there is no cmd+opt+} on a French keyboard-layout, there is > only cmd+} because of the way } is typed ( opt+) ) > Either you switch to another layout (preferably US) which will make > some other things harder for you[1] or you put the shortcut on > something self-defined Well, actually, it's more like there is only cmd+opt+) and not cmd+opt +}. ;) Anyway, when editing the LaTeX bundle to switch the shortcut to the closer to default, that is cmd+opt+), one would expect the Bundle Editor to actually change. It does not. cmd+opt+) seems to be a ?forbidden? shortcut, and I still can't see why. > > Niels > > [1] I have to admit that I'm a bad person, switched back to German > layout because it was really uncomfortable for me with the US- > layout even though I got it memorized fast, it made me slower in > typing because of the way umlauts and ? are typed and you need them > more often then you can imagine. When I have to type Japanese or > Korean I stay with the US-layout as before because there it is > strange to use the German one Well, I certainly don't wan't to loose the possibility of typing most accentuated letter with single stroke (with only shift or alt, for most accentuated caps), so I can understand that. Thanks for your help, ?douard -------------- next part -------------- An HTML attachment was scrubbed... URL: From n.kobschaetzki at googlemail.com Tue Apr 3 21:07:41 2007 From: n.kobschaetzki at googlemail.com (=?ISO-8859-1?Q?Niels_Kobsch=E4tzki?=) Date: Tue, 3 Apr 2007 23:07:41 +0200 Subject: [TxMt] LaTeX command completion shortcut In-Reply-To: <295A953C-DBB5-4FC9-B603-AAB01A69E67F@eleves.bretagne.ens-cachan.fr> References: <9791717.post@talk.nabble.com> <0C11B186-FABE-457C-80CC-D7C6B7681019@googlemail.com> <295A953C-DBB5-4FC9-B603-AAB01A69E67F@eleves.bretagne.ens-cachan.fr> Message-ID: On Apr 3, 2007, at 10:54 PM, ?douard Gilbert wrote: > Le 3 avr. 07 ? 22:38, Niels Kobsch?tzki a ?crit : > >> On Apr 2, 2007, at 4:21 PM, ?douard Gilbert wrote: >> >>> >>> Hi every one, >>> >>> I haven't been able to find any post about the topic, but I must >>> admit the >>> number of post containing command and completion is indeed quite >>> impressive. >>> >>> Here is my problem. I'm French and I'm using an azerty keyboard. >>> I can't use >>> the default (command - option - }) ?LaTeX command completion >>> based on >>> current word? shortcut. On an azerty keyboard, please note it >>> must be typed >>> (command - option - shift - ?)?) and that the ?)? is located two >>> keys left >>> from the delete key, next to the upper figure ?0?. Worse, even >>> when I try to >>> change the shortcut to (command - option - shift - ?)?), it >>> doesn't work. In >>> fact, it looks like the shortcut doesn't trigger a thing. >>> >>> I currently worked around the problem using (command - control - >>> option - >>> ?)?) 4-fingers ?shortcut?, but I'd like to switch back to normal. >>> Do you >>> have any idea of the reason why (command - option - ?)?) does not >>> work? I've >>> been looking for such a shortcut in TextMate but haven't been >>> able to find >>> one. >> >> Because Mac OS X interprets it as something different. If I see it >> right there is no cmd+opt+} on a French keyboard-layout, there is >> only cmd+} because of the way } is typed ( opt+) ) >> Either you switch to another layout (preferably US) which will >> make some other things harder for you[1] or you put the shortcut >> on something self-defined > > Well, actually, it's more like there is only cmd+opt+) and not cmd > +opt+}. ;) > Anyway, when editing the LaTeX bundle to switch the shortcut to the > closer to default, that is cmd+opt+), one would expect the Bundle > Editor to actually change. It does not. cmd+opt+) seems to be a > ?forbidden? shortcut, and I still can't see why. When I type cmd+opt+) with the French layout I get cmd+} because opt +) = } Therefore there is no cmd+opt+) on the French layout in contrast to the US-layout ( there is a cmd+opt+) and a cmd+opt+} ) In the German layout there is cmd+opt+) but no cmd+opt+} Ask Apple why they map the keyboard this way ;) Niels -- Jammern f?r Anf?nger: Niels K. (25) Jammerbacke -- auch f?r professionelles Jammern zu haben http://jammern.wordpress.com From edouard.gilbert at eleves.bretagne.ens-cachan.fr Tue Apr 3 21:40:58 2007 From: edouard.gilbert at eleves.bretagne.ens-cachan.fr (=?ISO-8859-1?Q?=C9douard_Gilbert?=) Date: Tue, 3 Apr 2007 23:40:58 +0200 Subject: [TxMt] LaTeX command completion shortcut In-Reply-To: References: <9791717.post@talk.nabble.com> <0C11B186-FABE-457C-80CC-D7C6B7681019@googlemail.com> <295A953C-DBB5-4FC9-B603-AAB01A69E67F@eleves.bretagne.ens-cachan.fr> Message-ID: <7C7BF33B-10F6-4BC4-B262-1C12B4582565@eleves.bretagne.ens-cachan.fr> Le 3 avr. 07 ? 23:07, Niels Kobsch?tzki a ?crit : > On Apr 3, 2007, at 10:54 PM, ?douard Gilbert wrote: > >> Le 3 avr. 07 ? 22:38, Niels Kobsch?tzki a ?crit : >> >>> On Apr 2, 2007, at 4:21 PM, ?douard Gilbert wrote: >>> >>>> >>>> Hi every one, >>>> >>>> I haven't been able to find any post about the topic, but I must >>>> admit the >>>> number of post containing command and completion is indeed quite >>>> impressive. >>>> >>>> Here is my problem. I'm French and I'm using an azerty keyboard. >>>> I can't use >>>> the default (command - option - }) ?LaTeX command completion >>>> based on >>>> current word? shortcut. On an azerty keyboard, please note it >>>> must be typed >>>> (command - option - shift - ?)?) and that the ?)? is located two >>>> keys left >>>> from the delete key, next to the upper figure ?0?. Worse, even >>>> when I try to >>>> change the shortcut to (command - option - shift - ?)?), it >>>> doesn't work. In >>>> fact, it looks like the shortcut doesn't trigger a thing. >>>> >>>> I currently worked around the problem using (command - control - >>>> option - >>>> ?)?) 4-fingers ?shortcut?, but I'd like to switch back to >>>> normal. Do you >>>> have any idea of the reason why (command - option - ?)?) does >>>> not work? I've >>>> been looking for such a shortcut in TextMate but haven't been >>>> able to find >>>> one. >>> >>> Because Mac OS X interprets it as something different. If I see >>> it right there is no cmd+opt+} on a French keyboard-layout, there >>> is only cmd+} because of the way } is typed ( opt+) ) >>> Either you switch to another layout (preferably US) which will >>> make some other things harder for you[1] or you put the shortcut >>> on something self-defined >> >> Well, actually, it's more like there is only cmd+opt+) and not cmd >> +opt+}. ;) >> Anyway, when editing the LaTeX bundle to switch the shortcut to >> the closer to default, that is cmd+opt+), one would expect the >> Bundle Editor to actually change. It does not. cmd+opt+) seems to >> be a ?forbidden? shortcut, and I still can't see why. > > When I type cmd+opt+) with the French layout I get cmd+} because opt > +) = } > Therefore there is no cmd+opt+) on the French layout in contrast to > the US-layout ( there is a cmd+opt+) and a cmd+opt+} ) > In the German layout there is cmd+opt+) but no cmd+opt+} > Ask Apple why they map the keyboard this way ;) You manage to get ?cmd }? in the TextMate bundle editor ? Because I can't, and that would be so much more comfortable. When I type cmd+opt +), the shortcut don't change, the selected field don't change to ?Scope Selector? as it does when you change to change the shortcut to another one. In fact, it seems to do nothing. Is cmd-} already used for another TextMate application shortcut or a system-wide shortcut ? ?douard > Niels > > > > -- > Jammern f?r Anf?nger: Niels K. (25) Jammerbacke -- auch f?r > professionelles Jammern zu haben > http://jammern.wordpress.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 n.kobschaetzki at googlemail.com Tue Apr 3 21:46:47 2007 From: n.kobschaetzki at googlemail.com (=?ISO-8859-1?Q?Niels_Kobsch=E4tzki?=) Date: Tue, 3 Apr 2007 23:46:47 +0200 Subject: [TxMt] LaTeX command completion shortcut In-Reply-To: <7C7BF33B-10F6-4BC4-B262-1C12B4582565@eleves.bretagne.ens-cachan.fr> References: <9791717.post@talk.nabble.com> <0C11B186-FABE-457C-80CC-D7C6B7681019@googlemail.com> <295A953C-DBB5-4FC9-B603-AAB01A69E67F@eleves.bretagne.ens-cachan.fr> <7C7BF33B-10F6-4BC4-B262-1C12B4582565@eleves.bretagne.ens-cachan.fr> Message-ID: <3F9800E5-4807-47B4-890D-637721990D51@googlemail.com> On Apr 3, 2007, at 11:40 PM, ?douard Gilbert wrote: > Le 3 avr. 07 ? 23:07, Niels Kobsch?tzki a ?crit : > >> On Apr 3, 2007, at 10:54 PM, ?douard Gilbert wrote: >> >>> Le 3 avr. 07 ? 22:38, Niels Kobsch?tzki a ?crit : >>> >>>> On Apr 2, 2007, at 4:21 PM, ?douard Gilbert wrote: >>>> >>>>> >>>>> Hi every one, >>>>> >>>>> I haven't been able to find any post about the topic, but I >>>>> must admit the >>>>> number of post containing command and completion is indeed >>>>> quite impressive. >>>>> >>>>> Here is my problem. I'm French and I'm using an azerty >>>>> keyboard. I can't use >>>>> the default (command - option - }) ?LaTeX command completion >>>>> based on >>>>> current word? shortcut. On an azerty keyboard, please note it >>>>> must be typed >>>>> (command - option - shift - ?)?) and that the ?)? is located >>>>> two keys left >>>>> from the delete key, next to the upper figure ?0?. Worse, even >>>>> when I try to >>>>> change the shortcut to (command - option - shift - ?)?), it >>>>> doesn't work. In >>>>> fact, it looks like the shortcut doesn't trigger a thing. >>>>> >>>>> I currently worked around the problem using (command - control >>>>> - option - >>>>> ?)?) 4-fingers ?shortcut?, but I'd like to switch back to >>>>> normal. Do you >>>>> have any idea of the reason why (command - option - ?)?) does >>>>> not work? I've >>>>> been looking for such a shortcut in TextMate but haven't been >>>>> able to find >>>>> one. >>>> >>>> Because Mac OS X interprets it as something different. If I see >>>> it right there is no cmd+opt+} on a French keyboard-layout, >>>> there is only cmd+} because of the way } is typed ( opt+) ) >>>> Either you switch to another layout (preferably US) which will >>>> make some other things harder for you[1] or you put the >>>> shortcut on something self-defined >>> >>> Well, actually, it's more like there is only cmd+opt+) and not cmd >>> +opt+}. ;) >>> Anyway, when editing the LaTeX bundle to switch the shortcut to >>> the closer to default, that is cmd+opt+), one would expect the >>> Bundle Editor to actually change. It does not. cmd+opt+) seems to >>> be a ?forbidden? shortcut, and I still can't see why. >> >> When I type cmd+opt+) with the French layout I get cmd+} because >> opt+) = } >> Therefore there is no cmd+opt+) on the French layout in contrast >> to the US-layout ( there is a cmd+opt+) and a cmd+opt+} ) >> In the German layout there is cmd+opt+) but no cmd+opt+} >> Ask Apple why they map the keyboard this way ;) > > You manage to get ?cmd }? in the TextMate bundle editor ? Because I > can't, and that would be so much more comfortable. When I type cmd > +opt+), the shortcut don't change, the selected field don't change > to ?Scope Selector? as it does when you change to change the > shortcut to another one. In fact, it seems to do nothing. Is cmd-} > already used for another TextMate application shortcut or a system- > wide shortcut ? I could enter it w/out any problem when I'm using the French layout. I looked through TextMate but couldn't find hat cmd-} is already taken. In the global shortcuts I couldn't find it as well. And if it would be, I wouldn't be able to enter it as well. I used the layout French and not French-numerical in the International preferences pane. Maybe that helps :) Niels -- Jammern f?r Anf?nger: Niels K. (25) Jammerbacke -- auch f?r professionelles Jammern zu haben http://jammern.wordpress.com From skiadas at hanover.edu Tue Apr 3 23:05:12 2007 From: skiadas at hanover.edu (Charilaos Skiadas) Date: Tue, 3 Apr 2007 19:05:12 -0400 Subject: [TxMt] LaTeX command completion shortcut In-Reply-To: <7C7BF33B-10F6-4BC4-B262-1C12B4582565@eleves.bretagne.ens-cachan.fr> References: <9791717.post@talk.nabble.com> <0C11B186-FABE-457C-80CC-D7C6B7681019@googlemail.com> <295A953C-DBB5-4FC9-B603-AAB01A69E67F@eleves.bretagne.ens-cachan.fr> <7C7BF33B-10F6-4BC4-B262-1C12B4582565@eleves.bretagne.ens-cachan.fr> Message-ID: <92C6F6BC-1CC1-4A82-84C0-14994B1CD282@hanover.edu> On Apr 3, 2007, at 5:40 PM, ?douard Gilbert wrote: >> When I type cmd+opt+) with the French layout I get cmd+} because >> opt+) = } >> Therefore there is no cmd+opt+) on the French layout in contrast >> to the US-layout ( there is a cmd+opt+) and a cmd+opt+} ) >> In the German layout there is cmd+opt+) but no cmd+opt+} >> Ask Apple why they map the keyboard this way ;) > > You manage to get ?cmd }? in the TextMate bundle editor ? Because I > can't, and that would be so much more comfortable. When I type cmd > +opt+), the shortcut don't change, the selected field don't change > to ?Scope Selector? as it does when you change to change the > shortcut to another one. In fact, it seems to do nothing. Is cmd-} > already used for another TextMate application shortcut or a system- > wide shortcut ? > Please everyone, if you are bottom-posting then please edit the post and remove parts that are not necessary for the discussion any more, leaving the parts that you are replying to. Otherwise bottom-posting can become so much worse than top-posting. For the question at hand, Edouard can you remove the shortcut from the command, by clicking the x that appears? If so, can you *now* enter the key combo you want. Oh yeah almost forgot, this doesn't really have to do with the LaTeX bundle, it's a question about key equivalents. > ?douard > >> Niels Haris Skiadas Department of Mathematics and Computer Science Hanover College From edouard.gilbert at eleves.bretagne.ens-cachan.fr Tue Apr 3 23:24:06 2007 From: edouard.gilbert at eleves.bretagne.ens-cachan.fr (=?ISO-8859-1?Q?=C9douard_Gilbert?=) Date: Wed, 4 Apr 2007 01:24:06 +0200 Subject: [TxMt] LaTeX command completion shortcut In-Reply-To: <92C6F6BC-1CC1-4A82-84C0-14994B1CD282@hanover.edu> References: <9791717.post@talk.nabble.com> <0C11B186-FABE-457C-80CC-D7C6B7681019@googlemail.com> <295A953C-DBB5-4FC9-B603-AAB01A69E67F@eleves.bretagne.ens-cachan.fr> <7C7BF33B-10F6-4BC4-B262-1C12B4582565@eleves.bretagne.ens-cachan.fr> <92C6F6BC-1CC1-4A82-84C0-14994B1CD282@hanover.edu> Message-ID: > For the question at hand, Edouard can you remove the shortcut from > the command, by clicking the x that appears? If so, can you *now* > enter the key combo you want. I've already tried it, it was no use. > Oh yeah almost forgot, this doesn't really have to do with the > LaTeX bundle, it's a question about key equivalents. In fact, it isn't, but the problem appeared only with that particular function. Anyway, the problem was that the System Preferences > Universal Access > Zoom option was on (why it was, I have no clue) and that one of its shortcut are, on a french layout, cmd opt - (minus) and cmd opt ). Thank you very much again to both of you for your help. > Haris Skiadas From bseymore at gmail.com Wed Apr 4 00:53:41 2007 From: bseymore at gmail.com (Brooks Seymore) Date: Tue, 3 Apr 2007 17:53:41 -0700 Subject: [TxMt] Web Preview Displaying Em Sized Text Too Small Message-ID: <4ECDD94C-59B8-42F0-AD23-481927ECD0D9@gmail.com> Does the Show Web Preview command in Textmate 1.5.5 (Build 1372) have a problem displaying text sized in ems? For some reason, text set in a style sheet at 0.8 ems doesn't display at the same size as when the page is viewed in the latest versions of Safari, Firefox, Camino and OmniWeb. On a possibly related note: does TextMate use Webkit for Web Preview and, if so, is it possible to have TextMate use a nightly WebKit build instead of the version Safari is based on? I've searched the archives and couldn't locate any other discussions about this. Brooks From oblivious at subtlegradient.com Wed Apr 4 03:02:38 2007 From: oblivious at subtlegradient.com (Thomas Aylott (subtleGradient)) Date: Tue, 3 Apr 2007 23:02:38 -0400 Subject: [TxMt] Web Preview Displaying Em Sized Text Too Small In-Reply-To: <4ECDD94C-59B8-42F0-AD23-481927ECD0D9@gmail.com> References: <4ECDD94C-59B8-42F0-AD23-481927ECD0D9@gmail.com> Message-ID: On Apr 3, 2007, at 8:53 PM, Brooks Seymore wrote: > Does the Show Web Preview command in Textmate 1.5.5 (Build 1372) > have a problem displaying text sized in ems? For some reason, text > set in a style sheet at 0.8 ems doesn't display at the same size as > when the page is viewed in the latest versions of Safari, Firefox, > Camino and OmniWeb. > > On a possibly related note: does TextMate use Webkit for Web > Preview and, if so, is it possible to have TextMate use a nightly > WebKit build instead of the version Safari is based on? > > I've searched the archives and couldn't locate any other > discussions about this. > > Brooks This has bothered me for some time now. thank for mentioning it. I think it has to do with the default properties set on the webkit view itself. The standard default text size for all web browsers is 16px. Way back when, all mac web browsers chose to use something like 12px as the default instead. That problem was finally fixed in Mac OS X and every browser shipped in the last decade, except the web view in TextMate. Allan, could you possibly reset the defaults to whatever the standard Safari settings are? This might require changing some of the html outputting commands that rely on the smaller default text size, but I think consistency is very important if we're going to enable designery features. Thanks thomas Aylott ? subtleGradient ? CrazyEgg ? sixteenColors -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrus at hcs.harvard.edu Wed Apr 4 04:29:49 2007 From: jrus at hcs.harvard.edu (Jacob Rus) Date: Wed, 04 Apr 2007 00:29:49 -0400 Subject: [TxMt] Re: Convert old HTML to XHTML... In-Reply-To: <1CDF7F93-9FE2-4D7D-9627-E8CB357EAAEE@methnen.com> References: <098940AF-0ADA-4B87-87ED-50355B0BFF7C@asd20.org> <1CDF7F93-9FE2-4D7D-9627-E8CB357EAAEE@methnen.com> Message-ID: Methnen (AKA Jamie) wrote: > I disagree with the hixie article for so many reasons. Its a > preference. And it's not one that, at this point, really makes a whole > lot of difference either way.; > > My favorite of the initial responses to the hixie article: > http://h3h.net/2005/12/xhtml-harmful-to-feelings/ Just about everything in this post you linked either misses the point, or is wrong, or uses fallacious reasoning, or all three at once. > And just for fun: > http://meyerweb.com/eric/comment/chech.html?dupe=1 Fair enough. > I have no desire for an argument but felt the need to answer that last > email as I'm tired and probably a bit grumpy. Yep. Me neither. What I think you missed was that the original email in this thread was about converting *existing html documents* to xhtml. There is literally no advantage to this, unless there's some need to use xml tools, or some plan to integrate svg/mathml/etc. with the old content. But as both of those are unlikely, it's probably a bad idea, as there are several disadvantages, as explained in Ian Hickson's article, mainly having to do with cross-browser copatibility. > HTML itself is in such a state of flux right now (and hasn't it always > been?) that when we worry about the kinds of things metioned in the > hixie article I think we are getting a little silly. Yes. Which is why it's stupid to improperly use the rapidly-changing, unsupported xhtml, instead of the reasonably stable, and much more compatible html, without some particular good reason. > Writing using XHTML encourages well formed code [...] Or you could just... write well-formed code anyway... > But even if they do > work out something better we still have to rely on the browser devs to > implement it correctly which they never seem to be capable of despite > their sometimes best intentions. It's odd that you seem to get the point here in this last sentence though, after having ignored it for the rest of your email. ;) * * * Anyway, it's definitely not worth fighting about. I don't really care what you use in your pages. But the original poster may want to carefully consider the reasons for switching existing content to xhtml. It's a lot of hassle for essentially nothing. -Jacob From jrus at hcs.harvard.edu Wed Apr 4 04:40:07 2007 From: jrus at hcs.harvard.edu (Jacob Rus) Date: Wed, 04 Apr 2007 00:40:07 -0400 Subject: [TxMt] Re: Convert old HTML to XHTML... In-Reply-To: <1CDF7F93-9FE2-4D7D-9627-E8CB357EAAEE@methnen.com> References: <098940AF-0ADA-4B87-87ED-50355B0BFF7C@asd20.org> <1CDF7F93-9FE2-4D7D-9627-E8CB357EAAEE@methnen.com> Message-ID: Methnen (AKA Jamie) wrote: > My favorite of the initial responses to the hixie article: > http://h3h.net/2005/12/xhtml-harmful-to-feelings/ Incidentally, I find it incredibly amusing that that article says: >> If you require more information please just let me know. If anyone has any idea how to fix this I would greatly appreciate it. Thank you. --- Philip Plante 913-302-9933 mail at pplante.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bibiko at eva.mpg.de Mon Apr 30 23:10:13 2007 From: bibiko at eva.mpg.de (=?ISO-8859-1?Q?Hans-J=F6rg_Bibiko?=) Date: Tue, 1 May 2007 01:10:13 +0200 Subject: [TxMt] Spell checking using Google In-Reply-To: <79FA4E1A-F652-4DDE-9474-068EE9F368C6@eva.mpg.de> References: <5130B0E7-39E3-4212-9962-9B3BD64D5C0A@gmail.com> <79FA4E1A-F652-4DDE-9474-068EE9F368C6@eva.mpg.de> Message-ID: <7AF5A43A-7C45-4175-AA1E-7CAD31758049@eva.mpg.de> Hi, On 01.05.2007, at 00:25, Hans-J?rg Bibiko wrote: > > On the other hand I have a problem with '\n\n' in the text. OK. I solved this problem by replacing '\n' with a Japanese space ;) An other problem arose with many spaces ' '. I also solved it with a Japanese character ;) [I know that is a kind of a hack and a quick and dirty solution but it works and unfortunately Japanese isn't supported :( ] Now it works for the entire text with many newlines and many spaces. I check it with English, Dansk, Fran?aise, and German and it seems to work properly. Hans -------------- next part -------------- A non-text attachment was scrubbed... Name: Check Spelling Using Google in Word : Selection.tmCommand Type: application/octet-stream Size: 2875 bytes Desc: not available URL: -------------- next part -------------- From roger.roelofs at gmail.com Mon Apr 30 23:36:50 2007 From: roger.roelofs at gmail.com (Roger Roelofs) Date: Mon, 30 Apr 2007 19:36:50 -0400 Subject: [TxMt] HTML Bundle in Version 1.5.5 (1383) In-Reply-To: <86F679AB-3434-4541-81A6-AF3E40332C78@pplante.com> References: <86F679AB-3434-4541-81A6-AF3E40332C78@pplante.com> Message-ID: <17BB1F46-EC51-4DCF-9354-2F0BC6CF9E33@gmail.com> Phillip, On Apr 30, 2007, at 6:58 PM, Philip Plante wrote: > I am using PHP with Smarty as my template engine, and previously I > would include in my code to escape Smarty parsing > on script blocks. Now when I do this the entire block of code > becomes commented out. While this is not a crucial bug it is a new > annoyance for me as it is very useful to have syntax highlighting > on script blocks. > > Here is an example of my code: > > > > Why do you wish to enclose the smarty {literal} in a html comment (which should be anyway) ? Smarty will remove the {literal} before the browser sees it. -- Roger Roelofs From mail at pplante.com Mon Apr 30 23:47:59 2007 From: mail at pplante.com (Philip Plante) Date: Mon, 30 Apr 2007 18:47:59 -0500 Subject: [TxMt] HTML Bundle in Version 1.5.5 (1383) In-Reply-To: <17BB1F46-EC51-4DCF-9354-2F0BC6CF9E33@gmail.com> References: <86F679AB-3434-4541-81A6-AF3E40332C78@pplante.com> <17BB1F46-EC51-4DCF-9354-2F0BC6CF9E33@gmail.com> Message-ID: <7E350B89-400D-4752-BBE6-0C866B0E71F1@pplante.com> Roger, The reason I do this is because previously Textmate would turn off syntax highlighting for anything between {literal} and {/literal}. So I found that if you wrapped it in comments then it canceled out. But now that this new update has come out it has changed that behavior again. Make sense? --- Philip Plante 913-302-9933 phil.plante at transmuto.com On Apr 30, 2007, at 6:36 PM, Roger Roelofs wrote: > Phillip, > > On Apr 30, 2007, at 6:58 PM, Philip Plante wrote: > >> I am using PHP with Smarty as my template engine, and previously I >> would include in my code to escape Smarty parsing >> on script blocks. Now when I do this the entire block of code >> becomes commented out. While this is not a crucial bug it is a >> new annoyance for me as it is very useful to have syntax >> highlighting on script blocks. >> >> Here is an example of my code: >> >> >> >> > > Why do you wish to enclose the smarty {literal} in a html comment > (which should be anyway) ? Smarty will remove > the {literal} before the browser sees it. > > -- > Roger Roelofs > > > > > ______________________________________________________________________ > 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: