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
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
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