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.
I've used Whitesmith bracing style for *decades*, and had it kinda-sorta working in TM 1.5.x, though not perfectly. Now I've lost those old settings and for the life of me can't figure out how to get it even close in 2.0. There's clearly something fundamental that I'm missing, but I've spent hours on this off and on over the past few months, and I'm guessing that someone who really understands the rules (and regex) better than I, could get me on the right path in short order. I'd definitely appreciate it.
For those (unfortunate souls) who are not familiar with Whitesmith:
Also, just as a general suggestion, it seems like it would be really helpful to have just a handful of "packaged" example indentation rules for the small handful of common bracing styles, i.e. Allman, K&R, Whitesmith, maybe Gnu. Of course it wouldn't be perfect for everyone, but it could be really helpful as a starting point. If you know of such a set of examples, please point me to them (yes, I've looked). Thanks!
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.
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.
This list has become somewhat painful to read because the email threading is not working properly. For example Allan's responses almost always break threading. MailMate problem? Something else? Can we fix this pretty please?
While I appreciate the desire to bring rmate into the rubygem fold, it
presents some difficulties.
Prior, I could install rmate into ~/bin on any machine I had ssh access to,
quickly and easily by copying the guts of the script. This let me minimize
my impact on remote machines that I needed to work on. (FWIW, I do most of
my work on client machines of, let's say, older vintage, with extremely
locked down environments. rmate is my secret sauce.)
Now, I find myself needing to install rubygems on the remote machine, just
to keep working, and without admin access.
In the interest of retaining my remaining hair, what's the quick and dirty
way of installing rmate on remote machines now, when one does not have
admin rights to do a simple install of rubygems?
% rmate mpp
/work/users/jsmith/bin/rmate:12:in `require': no such file to load -- rmate
[ install rubygems in ~/bin ]
% gem install rmate
/work/users/jsmith/bin/gem:8:in `require': no such file to load -- rubygems
% printenv GEM_HOME
Alright, this may be an extreme boundary case, but it just bit me hard at
work, so I thought I'd give a heads up.
1) Work server is accessed via SMB.
2) Batch Find All/Replace All is done for some API changes.
3) Second Find All/Replace All is started, alert pops up "would you like to
save your changes?" Yes, please.
4) Everything looks good.
5) *Some* files on server *are not changed*. Others are correctly edited.
6) Files that are not saved properly have permissions of rw-r--r--. Files
that are saved properly have rw-rw-r--.
Now, the fix is to change permissions, but I want to point out that *this
failed silently*. That to me is the problem. If I save the files
individually, I get a helpful "The file Foo is locked. Do you want to
overwrite it anyway?", but if they're saved as an action from the Find
panel... no warnings, no alerts, nothing. Silent failure.
> As a long-time TextMate user I've really been enjoying using the new TextMate alpha. There is one feature from 1.5 that I sorely miss -- or at least, can't see how to replicate in v2.
> I've checked the FAQ and mailing list but can't see if this was covered before. Apologies if it has been.
> I often use quite complex regexes on large files and I want to see what result my replace has had before moving on to the next match.
> In v1.5 you did this by clicking "Replace" -- this enabled you to see the result of your substitution (and back out of it if needed). You then clicked "Find" to move to the next match, and so on.
> Now however I only see a "Replace and Find" which means I have to remember the line number of the replace then manually scroll back to see if my regex did what I expected (or not).
> Is there a new way of doing this? If so, it's not obvious to me.
> Many thanks,
I love navigating classes with the Go To Symbol ⇧⌘T dialog. So much so, in
fact, that I now have started keeping it open all the time so that I have
quicker access but also to just give me context of all the methods
available in the class.
That said, I've noticed that as you modify the file -- while keeping the Go
To Symbol dialog open -- the symbol links become out of sync and the only
way I know of to fix this is to close it and then re-open it. Is this
something that could be automatically kept up-to-date? If not, is there a
hotkey to refresh it?
Finally, as I've started to keep this window open I started thinking of
things I'd love to see added if possible:
- *Docking*. Could this window not be docked into the same location as
the file explorer? If this were done well it could be really nice.
- *Public/Private/Protected*. If there were some subtle but always-on
font distinctions between access modifiers this could be quite useful. I'd
love to also see "static" called out in some way but obviously don't want
to clutter the font palette too much.
- *Signature Balloons*. If you held your cursor over a method it would
be nice to see the signature of that method. This would save a lot of toing
and frowing in a file.
I often receive lists to publish. When they come in, there are blank
lines between each item. Adding markup is easy. It _should_ be easy to
remove the blank lines, but I'm a klutz with regex. Can someone suggest
an easy way to bet rid of the blank lines.
I often find myself wanting to achieve the "find all" functionality in
Textmate without needing to use the mouse to point to this button. Of
course when you do a ⇧⌘F the "find all" button is highlighted by default
and you can simply type in your search phrase and hit enter. This is
exactly what I would like from ⌘F (aka, scoped to a single document versus
the project). Even if the "find all" button isn't the default it would be
nice if there was some keyboard hotkey that allowed pressing this button
without the hassle of having to move your mouse across and click the
Is there a way to do this? If not, could this be considered as a useful
feature for a future release?