I've been using TextMate for years and I'm productive and happy with it. However, I like to try other editors from time to time to see if I'm missing anything. Recently I spent some time learning Vim and I discovered a few things that I particularly liked.
1) Split windows -- not the kind of split windows you normally get in Mac applications, but the Vim style ones. In Vim you can easily navigate from the keyboard to your different splits and choose what files to display in each. Additionally, you don't have to reach for your mouse to create a split. When you split, Vim divides the space up for you which is what you want most of the time. I found that it is very handy when needing to view more than 1 file at a time, which in my case is most of the time. Closing splits is about as easy as they are to create -- all from the keyboard. Multiple windows isn't really the same thing because they are slow to setup and tear down.
2) Selective multifile grep -- in Vim you can use a regular expression to open a set of files, and then just grep across the open files.
3) Don't need arrow keys -- after years of editing with the mouse; I find it painful to reach for it. It hurts my right shoulder and shoulder blade. It even hurts to have to move my hand down to the arrow keys. However, in Vim it is easy to keep your hands resting on your keyboard with your shoulders relaxed. No reaching for the mouse or arrow keys.
Hi!
Q1: I recently updated to TM2alpha, and I'm quite fond of it! I mostly use
TM as my LaTeX editor. However, when I compile documents the log window
doesn't close when the PDF is viewed in Skim. I have made sure the "Keep log
window open" option is not checked. Actually I would like the window to show
only at errors
Q2: I would prefer to be able to chose the log window layout to be more
minimalistic, kind of terminal-like, as I find the default layout to be
unnecessary graphical and heavy. I've tried to google about a bit, but can't
seem to find if changing it is possible or not.
--
Holene
--
View this message in context: http://textmate.1073791.n5.nabble.com/Compiling-LaTeX-log-window-tp25794.ht…
Sent from the textmate users mailing list archive at Nabble.com.
My understanding is that soft-wrapped lines can now be indented, but I can't
figure out how to enable that. Is this feature implemented?
--
View this message in context: http://old.nabble.com/Indented-soft-wrap-tp32983136p32983136.html
Sent from the textmate users mailing list archive at Nabble.com.
rmate is really cool. I want to work with a project directory
though, not opening one file at a time. Is there any way to get rmate
to open a directory or a project file?
So I'm a bit late to the TextMate wonderfulness.. I've been using the
30-day trial version for the last week, and got it pretty customized to
my liking. Project+, MissingDrawer, SVNMate, bundles, a few custom
Templates for my C++ projects, etc. Loving it.
Today I went out and got the latest TextMate2 compile from about 2 days
ago, I believe, and wow. That's a huge step backward IMO. No
"Projects" that I can see, just look at a Directory (which doesn't work
for me, my Directory Structure != Project structure). No support for
Templates either, it seems, which I just recently figured out and
_really_ love (great to just pull in a template of my base C++ class and
"fillin the blanks"). Plus lots of things I customized don't see to be
there anymore, or are buried in the new "tm_properties" file.
Basically, I'm trying to figure out what to do next. I was getting
ready to buy TextMate1, but if this is what TextMate2 is going to look
like maybe I should evaluate some other tools. Is TM1 still "alive"?
Or are users urged to start using TM2? Am I just really missing
something in TextMate2? I'm a C/C++ developer that also uses Arduino,
CMake, Python, and other stuff, so things like CTags, project-specific
environment variables, and true "Projects" are important to me.
--
Randall Hand
http://www.yeraze.com
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
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