I use TextMate mostly with LaTeX projects.
I've noticed that since at least the last two builds of TextMate, using command + ], the command which raises the indentation level (i. e. the keyboard shortcut for »Shift Right« from the Text menu) actually lowers it (it Shifts Left). If I select the Shift Right item from the Text menu, it works just fine.
Is the LaTeX package to blame here? Or is it a weird bug in TextMate 2? How can I trace the problem?
Thanks a lot!
Max
I've been using TM2 for a year now, mostly for Haskell, C, and Go development.
Recently, I've transitioned my LaTeX workflow to TM2 (from TeXShop; I never used TM1 for LaTeX) and am noticing a problem.
In a LaTeX document in TM2, if I invoke my hotkey for Mekentosj Papers' citation feature, and try to insert a citekey, it instead inserts the _previous_ contents of my clipboard (whatever I'd previously copied).
In any other application I have tested this in (Terminal, Mail, Sublime 2, TextEdit... I no longer have TM1 on my system) this works as expected.
Ideas?
thanks,
Noah
Ladies and Gentlemen:
I have solved the problem.
I had a backslash in the password.
For some reasons that confused the system.
I removed the backslash and now the password is stored ini the keychain.
---
Kind regards
Dr. Dieter Zakel MA
hotline: +43 (800) MEDIZIN
private: +43 (699) 1010 1070
Ladies and Gentlemen:
I have the blogging bundle and I have setup my blog:
http://cloud.zakel.at/image/3A173t0r2C43
When I try to fetch my posts and to blog my posts
http://cloud.zakel.at/image/1h2N461A2L2j
I am always asked to enter my password although it is in the keychain:
http://cloud.zakel.at/image/0A1m2Q171T1u
This is new since Snow Leopard.
Has anyone an idea why this is happening?
Thank you very much.
---
Kind regards
Dr. Dieter Zakel MA
hotline: +43 (800) MEDIZIN
private: +43 (699) 1010 1070
Hello,
I am working on a language grammar for HCS12 assembly language. I have read
the portion of the manual on language grammars (chapter 12) and
unfortunately for me it has led to more questions than answers. I have read
the re.txt file and have tried many things with no apparent effect,
certainly not the one I am looking for.
I have the following code that matches a label definition perfectly:
{ name = 'string.label.def';
comment = 'case insensitive - label definition';
match = '^(\S)+:';
captures = { 1 = { name = 'string.label'; }; };
},
Now what I want to do is use the capture in another match statement to find
all references to the same labels when they are being called. They will no
longer be the first word of line and they will no longer have a ":" suffix.
It seems to me that capture group above should have just the labels. If I
could use that capture group to then find all matches of the label then my
problem to match unknown labels and not get false matches to other strings
that are not being matched.
An example code snippet my language grammar is intended for is:
staa PORTB ; light the segments
ldaa PTP ; only alter port p bits we are using
anda #$f0
oraa dspmap,x ; light up correct char
staa PTP
bra TA3
TA2: bset PTP #$0f ; turn off seven segment LEDs
movb displ PORTB ; set value of LED row
bclr PTJ #2 ; turn on LED row
TA3:
In the above snippet TA2: and TA3: are matched by my regex. I want to use
capture group if possible to match the labels when in the third column, in
the above snippet only TA3 is shown. I don't want to match anything in the
third column that is not a label. A label will never appear in the first
column which is already matched by other regex. The forth column are
obviously comments and they are matched by other regex.
So, how do I do what I want to do?
Thank you kindly in advance,
~Chris
--
View this message in context: http://textmate.1073791.n5.nabble.com/is-it-possible-to-use-a-capture-in-an…
Sent from the textmate users mailing list archive at Nabble.com.
Is there a way to get the current directory displayed by the file
browser from within a script (eg. bundle command).
I didn't see any TM_ environment variables containing this value.
Thanks.
I'm trying to understand how the single line comment rule works (found on this line https://github.com/textmate/javascript.tmbundle/blob/master/Syntaxes/JavaSc…)
begin = '(^[ \t]+)?(?=//)';
end = '(?!\G)';
beginCaptures = { 1 = { name = 'punctuation.whitespace.comment.leading.js'; }; };
patterns = (
{ name = 'comment.line.double-slash.js';
begin = '//';
end = '\n';
beginCaptures = { 0 = { name = 'punctuation.definition.comment.js'; }; };
},
);
Since TextMate grammars are line based, I'm not sure how it's possible for the '\n' pattern and the '(?!\G)' pattern to work together. For example, take these two lines:
// a comment
var foo
The 'single line comment' rule is entered by matching it's begin pattern '(^[ \t]+)?(?=//)'. The 'comment.line.double-slash.js'' rule is then entered upon matching '//', the rule is ended when '\n' is matched. Because we have matched the end of the first line, we continue to the second line. The second line will end the 'single line comment' rule because the end pattern '(?!\G)' will match the 'a' in 'var'. Because of this, var cannot be scooped correctly because the 'v' is considered to be part of the 'single line comment' rule.
This fails as I described in TextMate 1 but works in TextMate 2. Is there something fundamentally different about using the \G anchor in TextMate 2.
Thanks,
Corey
Can someone reproduce this behaviour?
Summary: The command option "caret placement": "select output" does not
work, but behaves as "caret placement": "place after output".
Steps to reproduce:
1. Open a bundle in the editor
2. Create a new command
3. Retain the default code and settings:
Code: echo "Hello world\n"
Input: Selection - Text
Output: Replace Input - Text
Caret Placement - Select Output
4. Add a key equivalent
5. Save and open a blank text window
6. Press the chosen key equivalent
Expected result:
The text "Hello world" placed and selected
Actual result:
The text "Hello world" placed, no selection. Caret positioned after the
inserted text.
TextMate version: 2.0.0-alpha.9323
How do I accomplish the desired result, that the output of a command is
selected?
Thanks,
Freek
Ladies and Gentlemen:
I use the blogging bundle from Brad Choate.
Since Snow Leopard the password to my wordpress blog is not saved in the keychain anymore.
I have to type it in every time.
Also while fetching.
Does anyone has a hint?
Thank you very much.
---
Kind regards
Dr. Dieter Zakel MA
hotline: +43 (800) MEDIZIN
Hi,
Currently in order to change the active theme you have to go to the "View" menu, then the "Theme" menu item, and then select the theme.
It would be nice to be able to browse the themes quickly.
Either:
- keyboard shortcuts to change the active theme to the next/previous in the list.
- or, some sort of GUI that shows you all of the themes at once, sort of like the [previews on the wiki](http://wiki.macromates.com/Themes/UserSubmittedThemes)
Thanks,
Charles
TextMate Version 1.5.11 (1635)
Transmit 4.2
OS 10.8.2 supplemental installed
I can ftp into all sites with no issue. Set editor to textmate, double click, and it will open textmate for about 5 docs and save no problem, after that it hangs transmit, causing a crash. I can edit with any other editor and transmit.
below is usually what happens. I have repaired permission, completely removed textmate and transmit and reinstalled.
any ideas would be great, as this is my favorite workflow.
Thank you.
10/17/12 11:06:46.456 AM lsboxd[678]: @AE relay 4755524c:4755524c
10/17/12 11:11:35.453 AM TextMate[1340]: *** error sending apple event -1712 (<NSAppleEventDescriptor: 'R*ch'\'FCls'{ '----':"/Users/mattgrimes/Library/Caches/Cleanup At Startup/Transmit/F61AAB28-7D66-4B40-A7EF-886A65E8A41A/process.php", 'Tokn':[ 'BBEd'(3620B19F100100000036) ] }>)
10/17/12 11:19:33.000 AM kernel[0]: ALF: ifnet_get_address_list_family error 12
10/17/12 11:22:45.031 AM WindowServer[93]: CGXSetWindowBackgroundBlurRadius: Invalid window 0xffffffff
Is there a reason TextMate copies mate into the user's $PATH instead of
just making a symlink to the command inside the Application's resources?
What dangers do I run if I do decide to symlink it? (As part of a system
configuration bootstrap script. I could copy it, but it would be a little
more work.)
Thanks,
Neil.
This probably is a simple bug that it is somewhat annoying to have:
If we run TextMate and have the folder panel on the left (such as if we use
"mate ." in Bash).
If we are editing a file do.rb and now we want another one to try a
different approach, and we "Save As" do1.rb, now the file do1.rb will show
in the file panel, but do.rb will not show until a long time later, somehow,
after TextMate refresh the folder content... (seems there is no easy way to
invoke that ourselves).
But if we edit do.rb and save as do1.rb, the assumption should be that now
both files exist?
--
View this message in context: http://textmate.1073791.n5.nabble.com/After-Save-As-the-old-file-won-t-show…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
how can I set mediawiki to be the default file type/scope? I have the
following setings in .tm_properties but it doesn't seem to work. Thanks!
[ *.txt ]
fileType = "source.mediawiki"
[ attr.untitled ]
fileType = 'source.mediawiki'
Hi,
I was wondering if someone would have already written a valid
configuration to "fix" TM2 so that it does not mess up source code and
comment indentation (C, C++) when Doxygen-style comments are used to
comment the code, i.e.
/**
* Some doc
* @param[in] …
*/
void foo(void)…
results in:
/**
* Some doc
* @param[in] …
*/
void foo(void)…
Alternatively, is there an easy way to tell TM2 not to re-indent a
line automatically, ie. let TM2 to indent a new line once, while
preventing it from re-indenting forever whenever a new character is
typed on an already-fixed line.
Thanks,
Manu
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
I can switch from Japanese text input to Roman letter input just fine using the keyboard shortcut Shift-Control-; . It doesn't seem to be possible, however, to switch back to Japanese input using the usual keyboard shortcut, Shift-Control-J. This works in all other programs. Mousing to the menu bar and switching manually does work.
Using the TM 2.0.0-alpha.9323