From lmcdougall at yahoo.com Fri Aug 1 12:02:08 2014 From: lmcdougall at yahoo.com (Luis E. McDougall) Date: Fri, 01 Aug 2014 12:02:08 -0000 Subject: [TxMt] Auto Response Message-ID: <953842.2344.bm@omp1023.mail.bf1.yahoo.com> An HTML attachment was scrubbed... URL: From gerti-textmate at bitart.com Fri Aug 1 15:00:49 2014 From: gerti-textmate at bitart.com (Gerd Knops) Date: Fri, 1 Aug 2014 10:00:49 -0500 Subject: [TxMt] Auto-diffing against repository on save... Message-ID: <07E8237C-06F1-49C1-8A20-8F29BE888179@bitart.com> That looks like a very cool feature. Need it for TextMate... https://github.com/johnno1962/GitDiff Gerd From rossahmed at googlemail.com Sun Aug 3 12:28:26 2014 From: rossahmed at googlemail.com (Ross Ahmed) Date: Sun, 03 Aug 2014 13:28:26 +0100 Subject: [TxMt] keyboard shortcut to open files in file browser Message-ID: TextMate has keyboard shortcuts to show the file browser (option+control+command+D) and switch focus to the file browser (option+command+tab), but I cannot find a keyboard shortcut to open a file from the file browser. The only way I can find for opening a file from from the file browser is by clicking on the file with the trackpad. Is there a keyboard shortcut available to open files from the file browser? Cheers Ross -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at igorkozlov.me Sun Aug 3 12:28:59 2014 From: me at igorkozlov.me (Igor K) Date: Sun, 3 Aug 2014 15:28:59 +0300 Subject: [TxMt] Re: keyboard shortcut to open files in file browser In-Reply-To: References: Message-ID: ?? - that's a default shortcut in OS X to open files On 3 08 2014, at 15:28, Ross Ahmed wrote: > TextMate has keyboard shortcuts to show the file browser (option+control+command+D) and switch focus to the file browser (option+command+tab), but I cannot find a keyboard shortcut to open a file from the file browser. The only way I can find for opening a file from from the file browser is by clicking on the file with the trackpad. Is there a keyboard shortcut available to open files from the file browser? > > Cheers > Ross > > _______________________________________________ > textmate mailing list > textmate at lists.macromates.com > http://lists.macromates.com/listinfo/textmate -------------- next part -------------- An HTML attachment was scrubbed... URL: From timothy.c.bates at gmail.com Tue Aug 5 14:58:27 2014 From: timothy.c.bates at gmail.com (Tim Bates) Date: Tue, 5 Aug 2014 10:58:27 -0400 Subject: [TxMt] command to convert TM theme to LaTeX listings package style? Message-ID: <31F96AE4-FA25-46AB-B163-28A027C23835@gmail.com> Hi, We?re writing a booking (currently LaTeX) and I?d like to be able to use TM themes in the code listings. Any solutions for that? We?re using LaTeX packages ?listings? + ?color? to do the syntax highlighting. It allows statements such as this: \definecolor{codegreen}{rgb}{0,0.6,0} \definecolor{codegray}{rgb}{0.5,0.5,0.5} \definecolor{codepurple}{rgb}{0.58,0,0.82} \definecolor{backcolour}{rgb}{0.95,0.95,0.92} \lstdefinestyle{mystyle}{ backgroundcolor=\color{backcolour}, commentstyle=\color{codegreen}, keywordstyle=\color{magenta}, numberstyle=\tiny\color{codegray}, stringstyle=\color{codepurple}, basicstyle=\footnotesize, breakatwhitespace=false, breaklines=true, captionpos=b, keepspaces=true, numbers=left, numbersep=5pt, showspaces=false, showstringspaces=false, showtabs=false, tabsize=2 } Pretty basic? Anyone seen anything better (pygments?) Or even a way to convert themes to this style? Thank you, and best wishes, tim From svsdiscussion at gmail.com Thu Aug 7 04:37:04 2014 From: svsdiscussion at gmail.com (svsdiscussion at gmail.com) Date: Wed, 6 Aug 2014 21:37:04 -0700 (PDT) Subject: [TxMt] Distraction Free Mode in Textmate 2 Message-ID: <1407386224705-28125.post@n5.nabble.com> Dear Colleagues, Is there any project of providing a distraction free mode for Textmate 2? Best, S.V. -- View this message in context: http://textmate.1073791.n5.nabble.com/Distraction-Free-Mode-in-Textmate-2-tp28125.html Sent from the textmate users mailing list archive at Nabble.com. From matt at tidbits.com Thu Aug 7 04:44:56 2014 From: matt at tidbits.com (Matt Neuburg) Date: Wed, 6 Aug 2014 21:44:56 -0700 Subject: [TxMt] Re: Distraction Free Mode in Textmate 2 In-Reply-To: <1407386224705-28125.post@n5.nabble.com> References: <1407386224705-28125.post@n5.nabble.com> Message-ID: <7981FB8E-4E6B-4883-B2E1-93ACF5F95FCB@tidbits.com> On Aug 6, 2014, at 9:37 PM, svsdiscussion at gmail.com wrote: > Is there any project of providing a distraction free mode for Textmate 2? Just make the window full-screen. m. -- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html From svsdiscussion at gmail.com Thu Aug 7 05:48:33 2014 From: svsdiscussion at gmail.com (svsdiscussion at gmail.com) Date: Wed, 6 Aug 2014 22:48:33 -0700 (PDT) Subject: [TxMt] Re: Distraction Free Mode in Textmate 2 In-Reply-To: <7981FB8E-4E6B-4883-B2E1-93ACF5F95FCB@tidbits.com> References: <1407386224705-28125.post@n5.nabble.com> <7981FB8E-4E6B-4883-B2E1-93ACF5F95FCB@tidbits.com> Message-ID: <1407390513706-28127.post@n5.nabble.com> I would like to have the text(the 80 col area) to appear on the center of the window. When we use fullscreen the text begins on the left extremity of the monitor. -- View this message in context: http://textmate.1073791.n5.nabble.com/Distraction-Free-Mode-in-Textmate-2-tp28125p28127.html Sent from the textmate users mailing list archive at Nabble.com. From riki80 at rediffmail.com Sat Aug 9 16:54:08 2014 From: riki80 at rediffmail.com (riki) Date: 9 Aug 2014 16:54:08 -0000 Subject: [TxMt] =?utf-8?q?Syntax_color_for_fortran_storage_modifier?= Message-ID: <20140809165408.534.qmail@f4mail-235-237.rediffmail.com> Fortran storage modifiers do not appear with colours although they have set to this in the used TextMate theme and language grammar. In my custom theme, I have set { name = 'Storage'; scope = 'storage, storage.type, storage.modifier'; settings = { fontStyle = 'bold'; foreground = '#003366'; }; which is clearly directing syntax colour for storage, storage type, and storage modifier. In Fortran bundle, the grammar of Modern Fortran contains information of storage modifiers { name = 'storage.modifier.fortran.modern'; match = '\b(?i:(kind|len|optional|recursive|pointer|allocatable|target|private|public))\b'; }, Any idea how to get syntax colors for storage modifiers in a Fortran code? I have tried but did not get success. -------------- next part -------------- An HTML attachment was scrubbed... URL: From efrancos at efrancos.com Sun Aug 10 06:30:34 2014 From: efrancos at efrancos.com (Eduardo Francos) Date: Sun, 10 Aug 2014 08:30:34 +0200 Subject: [TxMt] File changed status wrong when modified by a bundle command In-Reply-To: <20140809165408.534.qmail@f4mail-235-237.rediffmail.com> References: <20140809165408.534.qmail@f4mail-235-237.rediffmail.com> Message-ID: Hi, I'm writing a bundle command that increments the build number of a project by modifying one of the project's files. When that file is the currently active one in TM then TM will detect the change and reload the file, but it will also set the changed status to true. This does not happen if the file is not the currently active one even if the file is opened in another tab, nor does it happen when the file is modified by a different process (ex: vi) Is this the intended behavior? Thanks, Gualo From rossahmed at googlemail.com Wed Aug 13 15:43:03 2014 From: rossahmed at googlemail.com (Ross Ahmed) Date: Wed, 13 Aug 2014 16:43:03 +0100 Subject: [TxMt] LaTeX section header label Message-ID: <2273E311-0547-421B-8AB4-5071B8215022@gmail.com> In a .tex file, typing sec + tab prints code for a section header and label. Very handily, the label for the section header syncs with the actual section header the first time the section is typed. However, thereafter, if the section header changes, the label doesn't change. Is it possible to always have the label change whenever the section header changes? Many thanks Ross From mailinglist at textmate.org Fri Aug 15 10:32:11 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Fri, 15 Aug 2014 12:32:11 +0200 Subject: [TxMt] Re: LaTeX section header label In-Reply-To: <2273E311-0547-421B-8AB4-5071B8215022@gmail.com> References: <2273E311-0547-421B-8AB4-5071B8215022@gmail.com> Message-ID: On 13 Aug 2014, at 17:43, Ross Ahmed wrote: > In a .tex file, typing sec + tab prints code for a section header and > label. Very handily, the label for the section header syncs with the > actual section header the first time the section is typed. However, > thereafter, if the section header changes, the label doesn't change. > Is it possible to always have the label change whenever the section > header changes? Not really. The easiest would probably be an ?update label? command you could call after making changes to your header, but that would require a bit of scripting language knowledge. From mailinglist at textmate.org Fri Aug 15 10:39:20 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Fri, 15 Aug 2014 12:39:20 +0200 Subject: [TxMt] Re: File changed status wrong when modified by a bundle command In-Reply-To: References: <20140809165408.534.qmail@f4mail-235-237.rediffmail.com> Message-ID: <08CDBA6E-DE1D-4F24-99E1-FCC7289FF120@textmate.org> Starting a new thread should not be done by replying to an existing letter and changing subject. It messes up threading for software that uses the in-reply-to email headers. On 10 Aug 2014, at 8:30, Eduardo Francos wrote: > I'm writing a bundle command that increments the build number of a > project by modifying one of the project's files. > When that file is the currently active one in TM then TM will detect > the change and reload the file, but it will also set the changed > status to true. > This does not happen if the file is not the currently active one even > if the file is opened in another tab, nor does it happen when the file > is modified by a different process (ex: vi) > > Is this the intended behavior? It does not sound like it, but I have seen it myself occasionally, where a file has no changes but is marked as modified. I think mostly when using Git ? Revert for an open file. The way TextMate tracks changes on disk is something I would like to rework. But if you have steps-to-reproduce with 100% certainty, please do share. From mailinglist at textmate.org Fri Aug 15 10:42:44 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Fri, 15 Aug 2014 12:42:44 +0200 Subject: [TxMt] Re: Syntax color for fortran storage modifier In-Reply-To: <20140809165408.534.qmail@f4mail-235-237.rediffmail.com> References: <20140809165408.534.qmail@f4mail-235-237.rediffmail.com> Message-ID: <7A900BBC-6FA1-4829-B5C0-A8E711D34AA3@textmate.org> On 9 Aug 2014, at 18:54, riki wrote: > Fortran storage modifiers do not appear with colours although they > have set to this in the used TextMate theme and language > grammar. [?] > > Any idea how to get syntax colors for storage modifiers in a Fortran > code? I have tried but did not get success. You can press ??P on a storage keyword to see its full scope. First step would be to ensure that the keyword actually has the scope you expect. If it does, then it sounds like the problem can be isolated to your theme, in which case it would be good to have your entire theme, not just a subset, as other rules could affect the scopes. From riki80 at rediffmail.com Fri Aug 15 16:37:02 2014 From: riki80 at rediffmail.com (riki) Date: 15 Aug 2014 16:37:02 -0000 Subject: [TxMt] Re: =?utf-8?q?Syntax_color_for_fortran_storage_modifier?= In-Reply-To: <7A900BBC-6FA1-4829-B5C0-A8E711D34AA3@textmate.org> Message-ID: <1408099370.S.5281.27107.F.H.TkFsbGFuIE9kZ2FhcmQAW1R4TXRdIFJlOiBTeW50YXggY29sb3IgZm9yIGZvcnRyYW4gc3RvcmFnZSBtb2Q_.RU.rfs306, rfs306, 945, 304.f4-234-218.old.1408120622.3518@webmail.rediffmail.com> Thanks a lot Allan Odgaard for your kind response. Please find herewith my custom theme. ===================================== { settings = ( { settings = { foreground = '#000000'; background = '#FFFFFF'; caret = '#000000'; invisibles = '#999999'; selection = '#BAD6FD'; lineHighlight = '#00001A'; }; }, { name = 'String'; scope = 'string'; settings = { foreground = '#006600'; }; }, { name = 'Number'; scope = 'constant.numeric'; settings = { foreground = '#0033CC'; }; }, { name = 'Regular expression'; scope = 'string.regexp'; settings = { foreground = '#FF0080'; }; }, { name = 'Keyword'; scope = 'keyword'; settings = { fontStyle = 'bold'; foreground = '#006699'; }; }, { name = 'Identifier'; scope = 'constant.language'; settings = { fontStyle = 'bold'; foreground = '#9700CC'; }; }, { name = 'Exception'; scope = 'support.class.exception'; settings = { foreground = '#990000'; }; }, { name = 'Function name'; scope = 'entity.name.function'; settings = { fontStyle = 'bold'; foreground = '#990000'; }; }, { name = 'Type name'; scope = 'entity.name.type'; settings = { fontStyle = 'bold underline'; }; }, { name = 'Arguments'; scope = 'variable.parameter'; settings = { fontStyle = 'italic'; }; }, { name = 'Comment'; scope = 'comment'; settings = { fontStyle = 'italic'; foreground = '#009933'; }; }, { name = 'Invalid'; scope = 'invalid'; settings = { foreground = '#FFFFFF'; background = '#E71A11'; }; }, { name = 'Trailing whitespace'; scope = 'invalid.deprecated.trailing-whitespace'; settings = { background = '#E71A1100'; }; }, { name = 'Embedded source'; scope = 'text source, meta.embedded'; settings = { foreground = '#000000'; background = '#FAFAFA'; }; }, { name = 'Tag'; scope = 'meta.tag, declaration.tag'; settings = { foreground = '#0033CC'; }; }, { name = 'Constant'; scope = 'constant, support.constant'; settings = { fontStyle = 'bold'; foreground = '#6600FF'; }; }, { name = 'Support'; scope = 'support'; settings = { fontStyle = 'bold'; foreground = '#3333FF'; }; }, { name = 'Storage'; scope = 'storage, storage.type, storage.modifier'; settings = { fontStyle = 'bold'; foreground = '#003366'; }; }, { name = 'Section name'; scope = 'entity.name.section'; settings = { fontStyle = 'bold underline'; foreground = '#006699'; }; }, { name = 'Frame title'; scope = 'entity.name.function.frame'; settings = { fontStyle = 'bold'; foreground = '#000000'; }; }, { name = 'XML Declaration'; scope = 'meta.tag.preprocessor.xml'; settings = { foreground = '#333333'; }; }, { name = 'Tag Attribute'; scope = 'entity.other.attribute-name'; settings = { fontStyle = 'italic'; foreground = '#3366CC'; }; }, { name = 'Tag Name'; scope = 'entity.name.tag'; settings = { fontStyle = 'bold'; }; }, ); } ===================================== On Fri, 15 Aug 2014 16:12:50 +0530 "Allan Odgaard" wrote >On 9 Aug 2014, at 18:54, riki wrote: > Fortran storage modifiers do not appear with colours although they > have set to this in the used TextMate theme and language > grammar. [?] > > Any idea how to get syntax colors for storage modifiers in a Fortran > code? I have tried but did not get success. You can press ??P on a storage keyword to see its full scope. First step would be to ensure that the keyword actually has the scope you expect. If it does, then it sounds like the problem can be isolated to your theme, in which case it would be good to have your entire theme, not just a subset, as other rules could affect the scopes. _______________________________________________ textmate mailing list textmate at lists.macromates.com http://lists.macromates.com/listinfo/textmate -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglist at textmate.org Fri Aug 15 16:57:26 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Fri, 15 Aug 2014 18:57:26 +0200 Subject: [TxMt] Re: Syntax color for fortran storage modifier In-Reply-To: <1408099370.S.5281.27107.F.H.TkFsbGFuIE9kZ2FhcmQAW1R4TXRdIFJlOiBTeW50YXggY29sb3IgZm9yIGZvcnRyYW4gc3RvcmFnZSBtb2Q_.RU.rfs306, rfs306, 945, 304.f4-234-218.old.1408120622.3518@webmail.rediffmail.com> References: <1408099370.S.5281.27107.F.H.TkFsbGFuIE9kZ2FhcmQAW1R4TXRdIFJlOiBTeW50YXggY29sb3IgZm9yIGZvcnRyYW4gc3RvcmFnZSBtb2Q_.RU.rfs306, rfs306, 945, 304.f4-234-218.old.1408120622.3518@webmail.rediffmail.com> Message-ID: <509A2C8A-5009-4264-9EBA-90A581826A47@textmate.org> On 15 Aug 2014, at 18:37, riki wrote: > Please find herewith my custom theme. > [?] I do not see any issue here. I saved your theme and switched to it. Then changed langauge to Fortran ? Modern and entered ?recursive?. This keyword is shown in bold and with a slight color change (rather subtle though). The rule in my Fortran grammar does btw not include as many keywords as yours. Did you edit the grammar? Did you verify that you get the storage scope (using ??P)? From me at igorkozlov.me Fri Aug 15 17:04:29 2014 From: me at igorkozlov.me (Igor K) Date: Fri, 15 Aug 2014 20:04:29 +0300 Subject: [TxMt] Background blurring Message-ID: I've found this great BlurMate plugin today for TM2. https://github.com/cliffrowley/blurmate It works great, I just wonder since it's just a few lines of code, why background blurring is not included in TM2 already? I always loved the blur in Terminal and thought that TM2 is not capable of it. Found the plugin just by accident. Some way to set the blur using "defaults" for example would be nice. From riki80 at rediffmail.com Fri Aug 15 17:16:06 2014 From: riki80 at rediffmail.com (riki) Date: 15 Aug 2014 17:16:06 -0000 Subject: [TxMt] Re: =?utf-8?q?Syntax_color_for_fortran_storage_modifier?= In-Reply-To: <509A2C8A-5009-4264-9EBA-90A581826A47@textmate.org> Message-ID: <1408121854.S.5116.1273.F.H.TkFsbGFuIE9kZ2FhcmQAW1R4TXRdIFJlOiBTeW50YXggY29sb3IgZm9yIGZvcnRyYW4gc3RvcmFnZSBtb2Q_.RU.rfs306, rfs306, 269, 104.f4-234-146.old.1408122966.31801@webmail.rediffmail.com> Thanks again Allan for your prompt reply. Yes there are slight changes on my side in language grammar. But those are just adding something or very minor things. I have not done any fundamental change. In the following code: program test_lapack_dstegr use mod_lapack_dstegr implicit none ! .. parameters .. integer, parameter :: dp = selected_real_kind (14) ! .. main variables .. integer :: dim real (kind=dp), dimension (:), allocatable :: diag I checked scope as you suggested. I got storage modifier scope for 'implicit none' and meta specification for lines which are ahead of implicit none. I am getting colour syntax for implicit, none, integer, parameter, real, dimension but not for allocatable. On Fri, 15 Aug 2014 22:27:34 +0530 "Allan Odgaard" wrote >On 15 Aug 2014, at 18:37, riki wrote: > Please find herewith my custom theme. > [?] I do not see any issue here. I saved your theme and switched to it. Then changed langauge to Fortran ? Modern and entered ?recursive?. This keyword is shown in bold and with a slight color change (rather subtle though). The rule in my Fortran grammar does btw not include as many keywords as yours. Did you edit the grammar? Did you verify that you get the storage scope (using ??P)? _______________________________________________ textmate mailing list textmate at lists.macromates.com http://lists.macromates.com/listinfo/textmate -------------- next part -------------- An HTML attachment was scrubbed... URL: From efrancos at efrancos.com Sun Aug 17 08:46:30 2014 From: efrancos at efrancos.com (Eduardo Francos) Date: Sun, 17 Aug 2014 10:46:30 +0200 Subject: [TxMt] Re: File changed status wrong when modified by a bundle command In-Reply-To: <08CDBA6E-DE1D-4F24-99E1-FCC7289FF120@textmate.org> References: <20140809165408.534.qmail@f4mail-235-237.rediffmail.com> <08CDBA6E-DE1D-4F24-99E1-FCC7289FF120@textmate.org> Message-ID: <373CE520-7C57-4E46-A295-ED9C650F5EB5@efrancos.com> On 15 ao?t 2014, at 12:39, Allan Odgaard wrote: > Starting a new thread should not be done by replying to an existing letter and changing subject. It messes up threading for software that uses the in-reply-to email headers. Sorry about that. I should have known better :p > > On 10 Aug 2014, at 8:30, Eduardo Francos wrote: > >> I'm writing a bundle command that increments the build number of a project by modifying one of the project's files. >> When that file is the currently active one in TM then TM will detect the change and reload the file, but it will also set the changed status to true. >> This does not happen if the file is not the currently active one even if the file is opened in another tab, nor does it happen when the file is modified by a different process (ex: vi) >> >> Is this the intended behavior? > > It does not sound like it, but I have seen it myself occasionally, where a file has no changes but is marked as modified. I think mostly when using Git ? Revert for an open file. > > The way TextMate tracks changes on disk is something I would like to rework. But if you have steps-to-reproduce with 100% certainty, please do share. As I said before the problem occurs only when the version file is modified by a command AND it's the currently active tab. Running the command when it isn't the active tab is OK, as it is when modifying the file with an external program. I've included a simplified zipped "project" folder that contains: - A plain text "version.txt" file with the current version number - A dummy README.txt file so you can have another file to open - A simplified version of the "Increment Version.tmCommand" that increments the current version number in the ENV['TM_PROJECT_DIRECTORY']/version.txt file. (key: ^??V) Add the command to a TM bundle of your choice and open the folder as a project. Test cases when executing the command: 1) The version.txt file is opened in TM but it's not the currently active tab: No problem, the file is reloaded and its status remains unmodified 2) The version.txt file is opened in TM and it is the currently active tab: The file is reloaded but is marked as modified... most of the time The bad news is that when repeatedly running the command at ~2 seconds interval I found that ~8 out of 10 times the version.txt file is reloaded with the new contents but its status is incorrectly set to modified, but for the other 2 it works as expected. This could mean there is a race condition type of problem between the execution of the command and whatever system you use to track file changes on disk. Probably not easy to debug :-( Please let me know if I can be of any help. -------------- next part -------------- A non-text attachment was scrubbed... Name: FileStatusBug.zip Type: application/zip Size: 1391 bytes Desc: not available URL: -------------- next part -------------- From mailinglist at textmate.org Mon Aug 18 15:07:36 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Mon, 18 Aug 2014 17:07:36 +0200 Subject: [TxMt] Re: Background blurring In-Reply-To: References: Message-ID: On 15 Aug 2014, at 19:04, Igor K wrote: > [?] I just wonder since it's just a few lines of code, > why background blurring is not included in TM2 already? Why ask instead of sending a pull request, it?s just a few lines of code ;) From me at igorkozlov.me Mon Aug 18 15:13:18 2014 From: me at igorkozlov.me (Igor K) Date: Mon, 18 Aug 2014 18:13:18 +0300 Subject: [TxMt] Re: Background blurring In-Reply-To: References: Message-ID: Well, I'm not confident enough in my Objective-C skills. And I thought maybe there's a reason why blur is not supported. :) I'll contact the plugin author though. Hopefully he'll come up with a pull request. On 18 08 2014, at 18:07, Allan Odgaard wrote: > On 15 Aug 2014, at 19:04, Igor K wrote: > >> [?] I just wonder since it's just a few lines of code, >> why background blurring is not included in TM2 already? > > Why ask instead of sending a pull request, it?s just a few lines of code ;) > > _______________________________________________ > textmate mailing list > textmate at lists.macromates.com > http://lists.macromates.com/listinfo/textmate From mailinglist at textmate.org Mon Aug 18 15:23:29 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Mon, 18 Aug 2014 17:23:29 +0200 Subject: [TxMt] Re: Syntax color for fortran storage modifier In-Reply-To: <1408121854.S.5116.1273.F.H.TkFsbGFuIE9kZ2FhcmQAW1R4TXRdIFJlOiBTeW50YXggY29sb3IgZm9yIGZvcnRyYW4gc3RvcmFnZSBtb2Q_.RU.rfs306, rfs306, 269, 104.f4-234-146.old.1408122966.31801@webmail.rediffmail.com> References: <1408121854.S.5116.1273.F.H.TkFsbGFuIE9kZ2FhcmQAW1R4TXRdIFJlOiBTeW50YXggY29sb3IgZm9yIGZvcnRyYW4gc3RvcmFnZSBtb2Q_.RU.rfs306, rfs306, 269, 104.f4-234-146.old.1408122966.31801@webmail.rediffmail.com> Message-ID: On 15 Aug 2014, at 19:16, riki wrote: > [?] In the following code: > > [?] I checked scope as you suggested. I got storage modifier scope > [?] but not for allocatable. The issue is not related to your custom theme but rather the Fortran grammar. The Fortran - Modern grammar includes Fortran - Punchcard. This grammar has a rule for ?meta.specification.fortran?. In this rule, a new context is started, and only Punchcard rules are included into that context, this is line 69 in the (Punchcard) grammar which is: patterns = ( { include = '$self'; } ); If we change this to instead include the Modern grammar then it works: patterns = ( { include = 'source.fortran.modern'; } ); There are other places where Punchcard includes Modern (it actually includes $self + Modern, but here $self is redundant since Modern includes Punchcard). I do not know about this Modern vs Punchcard, it seems that if Punchcard is made to include Modern (as it already does) the two grammars should just be combined into a single one, which would make parsing more trapsnarent. From mailinglist at textmate.org Mon Aug 18 15:27:19 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Mon, 18 Aug 2014 17:27:19 +0200 Subject: [TxMt] Re: Background blurring In-Reply-To: References: Message-ID: <0A15E080-52A6-40CD-8B09-EFBB9D2662FB@textmate.org> On 18 Aug 2014, at 17:13, Igor K wrote: > And I thought maybe there's a reason why blur is not supported. :) Your email was the first I ever heard about blurred backgrounds. A very quick look at the plug-in code does make it look like it isn?t exactly API we should rely on, so maybe it?s best to keep it as a plug-in, but I?ll review more thoroughly if a PR is opened adding this. From me at igorkozlov.me Mon Aug 18 15:39:09 2014 From: me at igorkozlov.me (Igor K) Date: Mon, 18 Aug 2014 18:39:09 +0300 Subject: [TxMt] Re: Background blurring In-Reply-To: <0A15E080-52A6-40CD-8B09-EFBB9D2662FB@textmate.org> References: <0A15E080-52A6-40CD-8B09-EFBB9D2662FB@textmate.org> Message-ID: <5BE5E7A1-4AF2-4A2D-BB00-85F3BC32E5CD@igorkozlov.me> Terminal themes had support for blurred backgrounds since I don't know when. :) I was hoping that one day TM will also support that and now having Yosemite with all the fancy blurs coming along I think it's the best time to actually add support for blur. :) Btw, just got an answer from the plugin author: "I hadn?t previously considered contributing the code to TextMate proper - but now you mention it I?m not sure why! I'll take a look at integrating the code and sending a pull request when I get a chance." On 18 08 2014, at 18:27, Allan Odgaard wrote: > On 18 Aug 2014, at 17:13, Igor K wrote: > >> And I thought maybe there's a reason why blur is not supported. :) > > Your email was the first I ever heard about blurred backgrounds. > > A very quick look at the plug-in code does make it look like it isn?t exactly API we should rely on, so maybe it?s best to keep it as a plug-in, but I?ll review more thoroughly if a PR is opened adding this. > > _______________________________________________ > textmate mailing list > textmate at lists.macromates.com > http://lists.macromates.com/listinfo/textmate From mailinglist at textmate.org Mon Aug 18 15:43:08 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Mon, 18 Aug 2014 17:43:08 +0200 Subject: [TxMt] Re: re-defining an alternative keyboard shortcut In-Reply-To: <4B8DFAA7-63C3-49CC-A79A-1BA2FCAAE1D3@textmate.org> References: <63D7B4FF-537B-4C32-95BE-3905EC24C68D@web.de> <6D5773C1-DA74-449E-A9C1-6BFDB2A55A0D@gmail.com> <4B8DFAA7-63C3-49CC-A79A-1BA2FCAAE1D3@textmate.org> Message-ID: On 26 Jan 2014, at 15:31, Allan Odgaard wrote: > On 26 Jan 2014, at 8:10, Etienne Samson wrote: > >> I've overridden the default shortcut of "Text->Indent Line" & >> "Text->Indent Selection" to ?I using System Preferences [?] The >> first time I open TM I have to click the Text menu so the shortcut >> registers, afterward it works fine > > This is because the initial title of that item is ?Indent Line / > Selection? and is dynamically updated when either the menu is opened > or the item is being invoked. For the records, in latest nightly build the initial title of dynamic menu items is no longer special. From textmate at shenkin.org Tue Aug 19 08:26:06 2014 From: textmate at shenkin.org (Alexander Shenkin) Date: Tue, 19 Aug 2014 09:26:06 +0100 Subject: [TxMt] solution for hard-to-see highlighting in Solarized Dark Message-ID: <53F30A1E.1090406@shenkin.org> Hello Everyone, I've been participating in a thread on GitHub (https://github.com/deplorableword/textmate-solarized/issues/52) that has identified the selection of text in the Solarized Dark theme as a real issue. It seems that implementation of selectionForeground/selectionBackground may be one solution for the frustrating issue. I wanted to see if there was a wider desire for a solution to this problem here, and perhaps if there was more support for the implementation of selectionForeground/selectionBackground. Thanks, Alex From arougthopher at lizardland.net Tue Aug 19 16:57:09 2014 From: arougthopher at lizardland.net (Paul) Date: Tue, 19 Aug 2014 09:57:09 -0700 Subject: [TxMt] Ruby in Bundle Editor Message-ID: <888D2E3F-3459-42CF-9E39-3122B81F8ADD@lizardland.net> Just upgraded to TextMate 2 (have not used TextMate in a while, glad to be back :-) I?m also starting to try and due Rails development in TextMate. The Rails Bundle is dated, and so is only partially usable. I would like to start ?fixing? that in my spare time. One thing, though, that would be nice, is the ability to edit Ruby code in the Bundle Editor. The files show up, but I cannot click on them. The only way I can edit is ?mate ?? from the command line the files I want to modify. Not a big deal, but would be nice. From rubentrf at gmail.com Wed Aug 20 10:43:32 2014 From: rubentrf at gmail.com (=?utf-8?Q?Rub=C3=A9n_Trujillo_Fern=C3=A1ndez?=) Date: Wed, 20 Aug 2014 12:43:32 +0200 Subject: [TxMt] SVN modified lines bundle/option Message-ID: Is there any way to show the SVN new/modified/deleted lines on the editor, just like the Modific plugin (https://github.com/gornostal/Modific)? I mean, some kind of line badges/colors to highlight the changes. Thanks, Rub?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglist at textmate.org Wed Aug 20 11:01:20 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Wed, 20 Aug 2014 13:01:20 +0200 Subject: [TxMt] Re: SVN modified lines bundle/option In-Reply-To: References: Message-ID: <4D6B0861-E89B-4F5D-93DA-2F70A4B34A74@textmate.org> On 20 Aug 2014, at 12:43, Rub?n Trujillo Fern?ndez wrote: > Is there any way to show the SVN new/modified/deleted lines on the > editor [?] Showing added/changed lines in the gutter is a known request, but not implemented. For now you can use ?Y and press ?1?. In the diff view that shows, the line numbers are clickable and will take you to the relevant change. The action itself works on file browser selection, so before invoking it, one can use ??R to select current file. Related feature is ??Y to show SCM status in file browser. From mailinglist at textmate.org Wed Aug 20 11:04:36 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Wed, 20 Aug 2014 13:04:36 +0200 Subject: [TxMt] Re: Ruby in Bundle Editor In-Reply-To: <888D2E3F-3459-42CF-9E39-3122B81F8ADD@lizardland.net> References: <888D2E3F-3459-42CF-9E39-3122B81F8ADD@lizardland.net> Message-ID: On 19 Aug 2014, at 18:57, Paul wrote: > I?m also starting to try and due Rails development in TextMate. The > Rails Bundle is dated, and so is only partially usable. I would like > to start ?fixing? that in my spare time. One thing, though, that > would be nice, is the ability to edit Ruby code in the Bundle Editor. > The files show up, but I cannot click on them. The only way I can > edit is ?mate ?? from the command line the files I want to > modify. > > Not a big deal, but would be nice. Yeah, I?ve been postponing revamping the bundle editor for far too long ? I?ll try to make it one of the next big items to check off the list. From melo at simplicidade.org Wed Aug 20 20:32:17 2014 From: melo at simplicidade.org (Pedro Melo) Date: Wed, 20 Aug 2014 21:32:17 +0100 Subject: [TxMt] Where do I update the definition of a word? Message-ID: Hi, using the Perl gramar, if I have the cursor on a package name, like Time::Mo|ment, (| is the cursor) and I try to get help, it should try to get help on Time::Moment but right now it only uses Moment. I had this problem with TM1 also but I fixed it by including : in the definition of the "word". I don't know if this is still the way to do it on TM2 or if there is a better way. Suggestions? Thanks, -- Pedro Melo @pedromelo http://www.simplicidade.org/ xmpp:melo at simplicidade.org mailto:melo at simplicidade.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglist at textmate.org Fri Aug 22 07:21:51 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Fri, 22 Aug 2014 09:21:51 +0200 Subject: [TxMt] Re: Where do I update the definition of a word? In-Reply-To: References: Message-ID: On 20 Aug 2014, at 22:32, Pedro Melo wrote: > using the Perl gramar, if I have the cursor on a package name, like > Time::Mo|ment, (| is the cursor) and I try to get help, it should try > to > get help on Time::Moment but right now it only uses Moment. > > I had this problem with TM1 also but I fixed it by including : in the > definition of the "word". I don't know if this is still the way to do > it on > TM2 or if there is a better way. There is definitely a better way, since changing word characters would affect word movement, buffer completion, and other things that rely on word definitions. Looking at the command this is what it does: word=${TM_SELECTED_TEXT:-$TM_CURRENT_WORD} A quick fix is to change that line to the following: word=$(ruby18 -r"$TM_SUPPORT_PATH/lib/current_word" -e"puts Word.current_word(':A-Za-z')") This calls the `current_word` function from the bundle support bundle. This function looks at the `TM_CURRENT_LINE` and `TM_LINE_INDEX` variables and then extracts the word surrounding the caret based on the allowed characters (passed as its argument). Can you tell me if the above character range would be correct for perl? Also, how do I install perl documentation? For me, perldoc reports ?no documentation? for my tests (though the command suppresses that, so it?s effectively a no-op, another thing that I?d like to get fixed). From riki80 at rediffmail.com Mon Aug 25 01:00:19 2014 From: riki80 at rediffmail.com (riki) Date: 25 Aug 2014 01:00:19 -0000 Subject: [TxMt] Re: =?utf-8?q?Syntax_color_for_fortran_storage_modifier?= In-Reply-To: Message-ID: <1408375421.S.6729.13937.F.H.TkFsbGFuIE9kZ2FhcmQAW1R4TXRdIFJlOiBTeW50YXggY29sb3IgZm9yIGZvcnRyYW4gc3RvcmFnZSBtb2Q_.RU.rfs306, rfs306, 745, 80.f4-234-184.old.1408928419.11573@webmail.rediffmail.com> Thanks a lot Allan. Your solution works. On Mon, 18 Aug 2014 20:53:41 +0530 "Allan Odgaard" wrote >On 15 Aug 2014, at 19:16, riki wrote: > [?] In the following code: > > [?] I checked scope as you suggested. I got storage modifier scope > [?] but not for allocatable. The issue is not related to your custom theme but rather the Fortran grammar. The Fortran - Modern grammar includes Fortran - Punchcard. This grammar has a rule for ?meta.specification.fortran?. In this rule, a new context is started, and only Punchcard rules are included into that context, this is line 69 in the (Punchcard) grammar which is: patterns = ( { include = '$self'; } ); If we change this to instead include the Modern grammar then it works: patterns = ( { include = 'source.fortran.modern'; } ); There are other places where Punchcard includes Modern (it actually includes $self + Modern, but here $self is redundant since Modern includes Punchcard). I do not know about this Modern vs Punchcard, it seems that if Punchcard is made to include Modern (as it already does) the two grammars should just be combined into a single one, which would make parsing more trapsnarent. _______________________________________________ textmate mailing list textmate at lists.macromates.com http://lists.macromates.com/listinfo/textmate -------------- next part -------------- An HTML attachment was scrubbed... URL: From sellmerfud at gmail.com Fri Aug 29 14:40:21 2014 From: sellmerfud at gmail.com (Curt Sellmer) Date: Fri, 29 Aug 2014 09:40:21 -0500 Subject: [TxMt] Saving tab settings for a file. Message-ID: Is there a way to have TextMate remember the tab settings for a specific file? I seem to recall that TextMate 1 did this. I have a file with a .txt extension that I would like to always be set to indent size 2 with soft tabs. In my default .tm_properties file I have the a [ text.plain ] section that sets the defaults to 8 and no soft tabs so I assume that this is why the file is always opened with these settings. I would like to make this one file an exception, but it is not part of any particular "project" just a one off file. I suppose I could add an entry in my default .tm_properties file for each specific exception to the rule, but was hoping there might be a way that wouldn't involve this. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglist at textmate.org Sat Aug 30 06:02:47 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Sat, 30 Aug 2014 08:02:47 +0200 Subject: [TxMt] Re: Saving tab settings for a file. In-Reply-To: References: Message-ID: <43AEF47B-E417-467E-8BFA-7064D77CAB9C@textmate.org> On 29 Aug 2014, at 16:40, Curt Sellmer wrote: > Is there a way to have TextMate remember the tab settings for a > specific > file? [?] I suppose I could add an entry in my default > .tm_properties file for each > specific exception to the rule, but was hoping there might be a way > that > wouldn't involve this. Right, this needs to be added to .tm_properties in a [ /path/to/file ] section. From niko.lai at gmx.net Fri Aug 29 20:15:13 2014 From: niko.lai at gmx.net (Niko) Date: Fri, 29 Aug 2014 20:15:13 +0000 (UTC) Subject: [TxMt] Re: Latex Typeset and View new failure References: <72C1A350-893B-4573-BA32-167D5CCFB3B6@textmate.org> Message-ID: Andrew Jaffe writes: > > Hi Alan, > > On 05/03/2014 15:58, Allan Odgaard wrote: > > On 5 Mar 2014, at 21:49, Andrew Jaffe wrote: > > > >> | Typeset & View (PDF):4: undefined method `+' for nil:NilClass > >> (NoMethodError) > >> > >> I think it was working until 1-2 updates ago. > > > > This will happen if you disable the Bundle Support bundle in Preferences > > ? Bundles. > > Thanks -- except that it's not disabled! However, if I found that if I > did explicitly uninstall (i.e., uncheck in the dialog) and then > reinstall (re-check), it works again. Weird. > > Yours, > > Andrew > > Hi, I have the same problem, getting a "Failure running ?Typeset & View (PDF)? when trying to compile the pdf. I unchecked and checked again the Bundle Support, as Andrew suggested, but it didn't work. Any other ideas? (Also I have upgraded to Yosemite beta which causes me problems with Skim? so that might be the reason.) Grateful for any adivce, Thanks, Niko From mailinglist at textmate.org Sun Aug 31 10:02:26 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Sun, 31 Aug 2014 12:02:26 +0200 Subject: [TxMt] Re: Latex Typeset and View new failure In-Reply-To: References: <72C1A350-893B-4573-BA32-167D5CCFB3B6@textmate.org> Message-ID: <9373C9E6-9C01-4CC6-A0DB-6D43AE528829@textmate.org> On 29 Aug 2014, at 22:15, Niko wrote: > I have the same problem, getting a "Failure running ?Typeset & View > (PDF)? > when trying to compile the pdf [?] Please quote full error message. Also try https://github.com/textmate/textmate/wiki/Reverting-To-Defaults From gweltaz at ucsc.edu Sun Aug 31 16:32:50 2014 From: gweltaz at ucsc.edu (Gildas Hamel) Date: Sun, 31 Aug 2014 09:32:50 -0700 Subject: [TxMt] Re: Latex Typeset and View new failure In-Reply-To: References: <72C1A350-893B-4573-BA32-167D5CCFB3B6@textmate.org> Message-ID: <20140831163250.GA14379@Mini-bihan.local> * Skriv a reas Niko (niko.lai at gmx.net): |> |> I have the same problem, getting a "Failure running ?Typeset & View (PDF)? |> when trying to compile the pdf. I unchecked and checked again the Bundle |> Support, as Andrew suggested, but it didn't work. Any other ideas? (Also I |> have upgraded to Yosemite beta which causes me problems with Skim? so |> that might be the reason.) I experienced the same thing after upgrading to Yosemite beta, because Yosemite points to Ruby 2.0 (/System/Library/Frameworks/Ruby.framework/Versions). I added Ruby 1.8 to make it work again. --Gildas From mailinglist at textmate.org Sun Aug 31 17:05:45 2014 From: mailinglist at textmate.org (Allan Odgaard) Date: Sun, 31 Aug 2014 19:05:45 +0200 Subject: [TxMt] Re: Latex Typeset and View new failure In-Reply-To: <20140831163250.GA14379@Mini-bihan.local> References: <72C1A350-893B-4573-BA32-167D5CCFB3B6@textmate.org> <20140831163250.GA14379@Mini-bihan.local> Message-ID: <8E4440BE-FE46-42EC-989A-EA35AADDFCBA@textmate.org> On 31 Aug 2014, at 18:32, Gildas Hamel wrote: > I experienced the same thing after upgrading to Yosemite beta, because > Yosemite points to Ruby 2.0 > (/System/Library/Frameworks/Ruby.framework/Versions). I added Ruby 1.8 > to make it work again. TextMate will automatically fetch ruby 1.8 on Yosemite (if running a command that requires it). So things are supposed to work out-of-the-box on 10.10 without the need to manually edit or install anything.