Just wondering what the thinking is for not selecting that file in the
file browser when you click on it's icon (thus opening it). Seems
confusing to me to then have to select that file to e.g. SCM purposes.
I'm stuck on Version 2.0 (9147) at work so please ignore if this is
differnt in later builds.
Thanks
Alex
--
-------------------------
http://zero-dev.co.uk
alex(a)zero-design.info
mob. +44 (0) 785 216 7005
Hello, I have a quick question. lately when I press the [DELETE] key
Textmate replaces my code with some other code, but my [DELETE] key works
when I click [SHIFT]+[DELETE]. How can I get my [DELETE] key functionality
back to normal.
The code it adds:
// Android / BlackBerry Widgets (OS 5.0 and higher) / iPhone
//
function alertDismissed() {
// do something
}
navigator.notification.alert(
'You are the winner!', // message
alertDismissed, // callback
'Game Over', // title
'Done' // buttonName
);
// BlackBerry (OS 4.6) / webOS
//
navigator.notification.alert('You are the winner!');
note: I had asked the question on the IRC, but my client crashed and I can't
get it to login. Software issue on my end
--
View this message in context: http://textmate.1073791.n5.nabble.com/Delete-key-adding-code-instead-of-del…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
What's the easiest way to change the order items in a bundle menu, or to
move items to a submenu in TextMate 2?
Drag & Drop does not work in the Bundle Editor on TextMate 2, like it
used to work in TextMate 1. :(
I currently edit the order by manually editing the info.plist, adding or
removing the UUID of the command I want to move.
This is labour intensive task, and I wonder if there is an easier way.
FYI, I'm using TextMate 2.0.0-alpha.9325 on Mac OS X.7.5.
Regards,
Freek
I just got a notification within Textmate that a new build was available (9327), so let it update. When the new version launched, I got a second Textmate icon in the doc, which isn't entirely uncommon. However, when I quit and got back in, Textmate was not usable. When I opened a file from the Open Recent menu, no window appeared. The Window and File menus both suggested that a file was open, however. After some fiddling, switching spaces and apps, I got the window for the document to appear, but it was not functional. I could move it, but I could click the close box or edit the text. Quitting and relaunching put it back in the state where the Textmate menus looked as if a window was open, but no window appered on the screen.
I tried trashing all the com.macromates items in ~/Library/Preferences, but it had no effect. I tried trashing Textmate.app and downloading r9327 from Github, but that also had no effect on the problem. I finally downloaded r9325 from Github and that still works fine.
I am running OS X 10.7.5.
Thanks,
Rob
Hi LaTeX users,
I'm working some more on the Typeset and View command, we are going to replace the default command that currently ships with TextMate. But I need some information. What process are TextMate's LaTeX users following for building their documents? I'm sure most of you are using bibtex, but what about other things like makeindex? Has everyone moved to a pure pdf-based process, or are some of you still using dvi/postscript? What are you using for pictures? Anything you can tell me will help.
I would also *love* example documents along with the expected output. This will aid in testing, and ensure that your particular process will be supported!
Thanks,
—Alex
Are the r-tags in github 'release'-worthy in terms of recommended-to-use?
I was wondering, because my TM2 is on r9309, while the github repo is
already several revisions further, but my TM2 doesn't want to update:
''
TextMate 9307 is the latest version available—you have 9309.
"
Best regards,
Michael
Riki,
Perhaps I can elaborate on Elia's behalf:
1. If you want to abide by TextMate conventions, don't pop up a tooltip; edit the Fortran grammar so that keywords are given a scope that begins with `invalid.illegal`. Most themes apply a style to `invalid.illegal` that makes it stand out as an error, and many bundles have rules to mark things that are known to be invalid or cause syntax errors. (For example: in the HTML grammar, the sequence `<>` is scoped as `invalid.illegal.incomplete.html` because it isn't valid HTML.)
In order to add this rule, you will need to know a little about language grammars [1]. In particular, read about the `begin, end` keys in section 12.3. A begin/end pattern is the best way to create patterns that apply only in certain places, rather than document-wide. Unfortunately, I don't know anything about Fortran, so I can't give you further guidance on how the rule would look.
If you still want to show a tooltip, you could try the approach I explain below. But I wouldn't recommend it.
2. There's no simple way to do this in TextMate 2.
You could write a command like this [2]. This would activate whenever a user typed a keyword, then pressed the space bar. It would replace the input with an uppercase version, then insert the space key as the user expects.
But this would only work in that specific instance. If Fortran does not mandate that a keyword must follow a space (as in C-style syntax, where both `if {` and `if{` are valid), then you'd have to figure out which other characters can follow identifiers, and then give each one its own command. Even so, this wouldn't work on code that is pasted into the editor.
Better to take Elia's advice and create a command that does the transformation when the document is saved. Here's an example of how to create such a command [3].
(Unfortunately, in your case, this would involve parsing the Fortran code so that you could be sure that you were uppercasing only keywords and nothing else.)
Cheers,
Andrew
[1] http://manual.macromates.com/en/language_grammars#language_grammars
[2] https://gist.github.com/0d6ce8625cf371f22734
[3] http://reinteractive.net/posts/4-stripping-whitespace-out-of-textmate-2
On Dec 7, 2012, at 7:42 AM, riki wrote:
> Dear Elia,
>
> Thank you very much for your kind response.
>
> BTW I am not expert in TextMate grammar. So could you please elaborate your suggestions?
>
> Kind Regards,
> Riki
>
>
> On Fri, 07 Dec 2012 15:04:26 +0530 wrote
> >1) yes, you can setup the language grammar to catch and highlight those keywords in a given scope (e.g. data decl)2) I
> don't think you can do that while you type, but probably you can create a command that does the transformation on
> demand (or hook it to the saving)
>
> Elia
> ☁ @elia ✎ elia(a)schito.me
>
> ☎ (+39) 348/9051393
>
>
>
> On Thu, Nov 29, 2012 at 1:37 PM, riki wrote:
>
>
> Hi all,
>
>
>
> How to accomplish the following things within TextMate 2 for Fortran language:
>
>
>
> 1) Is it possible to appear warning in a tool tip if we type Fortran keywords in data declarations? I am asking because if
>
> somehow or by mistake we are using those ones as variables and we know that Fortran does not complain about it.
>
>
>
> 2) The second thing is related to code formatting. Suppose we are writing a program in lower case letters and whenever we
>
> type any Fortran keyword we wish that it always came in upper case letters. Is there any way to do it?
>
>
>
> Kind Regards,
>
> Riki
>
>
>
> Catch India as it happens with the Rediff News App. To download it for FREE, click here
>
>
>
>
> _______________________________________________
>
> textmate mailing list
>
> textmate(a)lists.macromates.com
>
> http://lists.macromates.com/listinfo/textmate
>
>
>
>
> _______________________________________________
>
> textmate mailing list
>
> textmate(a)lists.macromates.com
>
> http://lists.macromates.com/listinfo/textmate
>
> Follow Rediff Deal ho jaye! to get exciting offers in your city everyday.
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
Hello everyone,
I have a text file that is indented properly, but instead of tabs, the indentation has been done with spaces. Is it possible to replace the spaces with tabs only at the beginning of the line?
In this case, 1 space -> 1 tab.
Thanks!
Anthony
Hi all,
How to accomplish the following things within TextMate 2 for Fortran language:
1) Is it possible to appear warning in a tool tip if we type Fortran keywords in data declarations? I am asking because if
somehow or by mistake we are using those ones as variables and we know that Fortran does not complain about it.
2) The second thing is related to code formatting. Suppose we are writing a program in lower case letters and whenever we
type any Fortran keyword we wish that it always came in upper case letters. Is there any way to do it?
Kind Regards,
Riki