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.
TextMate 1 or 2, is there a way to auto-highlight all occurrences of
selected word?
I was from Windows using EditPlus, when I double-click or Ctrl+W to select
a word, EditPlus is able to automatically highlight all occurrences in a
different background colour, very nice and useful feature.
With TextMate I have to additionally hit Opt+Cmd+F, and highlighting colour
is same as selected word, not eye-catching. I use 'soft' and light
background for selection background but I prefer bright background (eg
yellow) for highlighted words.
Ctr-S not really meets what I need.
Thanks.
--
Sent from my mobile. Ignore the typos unless they're funny.
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:
http://en.wikipedia.org/wiki/Indent_style#Whitesmiths_style
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!
Hello,
I absolutely love the feature introduced in TM 2 with Lion: being able
to reopen all the windows [1] after any expected or unexpected events
(rebooting, upgrading, crashes, ...).
What I miss in TextMate though is reopening the windows in the same
desktop where they were before closing the app.
I often have up to 100 files opened at the same time, spread across a
number of desktops and I only reboot the OS about once in a month. But
after every reboot or TM upgrade, I need to sort the windows manually
again which is a bit annoying.
Terminal windows open in exactly the same desktop where they were
closed, the web browser (Chrome) sadly doesn't respect that, about
other software I don't care. I would really love it if TextMate would
remember in which desktop the windows were last opened and reproduce
the exact state after relaunch. I don't know how difficult it would be
to implement that change though.
What do others think about it? Should I enter the feature request in
the tracker?
Thank you,
Mojca
[1] https://support.apple.com/en-us/HT204005
I've seen various editors which can parse CSS or SASS files for rgb color
variables and then show the font in the same color
Is there any bundle which is able to do this for textmate?
I'm not entirely sure the bundle API is able to support such a feature.
If not, could it be done with a plugin?
I was on Mavericks this morning, attempting to compile TextMate (latest git
HEAD)
But I suspect its no longer possible since it appears to require a more
recent version of XCode - error in one function due to 'forced copy in
constructor'. It was related to a parents = {} parameter, I didn't dig too
deeply.
Not to worry, it gave me a good reason to upgrade to El Capitan.
So I've done that, and updated all the homebrew packages, aswell as Xcode
The github states that hg (mercurial) is optional, but I installed it
anyway to allow the unit tests to run.
Unfortunately I'm still having problems
----- environment
[carpii@imac:~/dev/textmate]$ clang++ --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
[carpii@imac:~/dev/textmate]$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
[carpii@imac:~/dev/textmate]$ xcodebuild -version
Xcode 7.3.1
Build version 7D1014
[carpii@imac:~/dev/textmate]$ sw_vers -productVersion
10.11.5
------- compilation
[carpii@imac:~/dev/textmate]$ ninja -t clean
Cleaning... 515 files.
[carpii@imac:~/dev/textmate]$ ninja io
[1/1] Generate ‘build.ninja’…
[109/109] Run test ‘/Users/carpii/build/TextMate/Frameworks/io/test_io’…
[carpii@imac:~/dev/textmate]$ ninja TextMate
[229/1107] Run test ‘/Users/carpii/build/TextMate/Frameworks/scm/test_scm’…
FAILED: /Users/carpii/build/TextMate/Frameworks/scm/test_scm && touch
/Users/carpii/build/TextMate/Frameworks/scm/test_scm.run
/bin/sh: line 1: 7210 Segmentation fault: 11
/Users/carpii/build/TextMate/Frameworks/scm/test_scm
[229/1107] Compile ‘Frameworks/file/src/open.cc’…
ninja: build stopped: subcommand failed.
Any ideas please?
Is there a 'defaults' option to disable atomic saves in TM2?
I host all my code on linux VM's on an ESXI server
Usually I mount them via AFP, but Im ditching this now in favour of Samba
Since moving to SMB/CIFS, I'm finding TM2 is now frequently complaining
that it cannot save a file due to 'Resource Busy'
When this happens, even restarting TM2 doesn't fix it, I have to restart
the Samba service on the server (which isn't a great solution)
I think it may be somehow related to atomic saves, so Id like to disable
those (given that I still have git to protect any aborted writes)
Thanks