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.
Is there a way to make * include hidden files in Find All dialog?
Currently I have to use {.*,*} to get the needed result but it's not very convenient to type that every time I do a search.
Another nice little tweak would be to search * instead of using the last glob pattern when you leave the glob field empty. And even better would be to make this default pattern configurable. That way I could've just emptied the glob field when I want to search {.*,*}
Thanks.
Sometimes when I'm working on a project and jump between branches TM suddenly stops scrolling to the current file when I press "Go to current file" (⌃⌘R) even though the file gets selected.
This is happening for a few months already. I usually fix this by restarting TM, but it's not the best workaround since I lose all the undo history.
Am I the only one getting this? Or I'm just the only one getting annoyed by this?
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
Hi,
I’ve noticed for a while that if you load a file that takes a while to syntax highlight and prompty press "⌘⇧T” (the function browser), textmate spins the beachball, becomes unresponsive and never seems to come back (hard crash out).
best, tim
Would be unfortunate if MiniTest isn’t supported in Rails since it appears that many Rails developers use TextMate, and Minitest is the default testing framework.
(Not to take away from RSpec, it is popular. I started with MiniTest and since I’m a Newbie I’m reluctant to add more confusion by changing testing methods.
Am I right in understanding that the Ruby on Rails bundle has the testing baked in and doesn’t use the version installed on the users computer?
More info on the change and background:
Rake commands have been changed to Rails commands. This was done to avoid confusion (no way to tell whether to use rake or rails). https://github.com/rails/rails/issues/18878
Overview of Rails 5 changes: https://www.youtube.com/watch?v=OaDhY_y8WTo
A Guide to Testing Rails Applications — Ruby on Rails Guides <http://guides.rubyonrails.org/testing.html>
>
> Rails 5 uses `rails` instead of `rake` for everything, including running
> tests.
>
> I may look into this if I find some time, but unfortunately all Rails
> projects I?m working on use RSpec instead of Test::Unit, so this is not
> really a problem for me personally and thus rather low-priority ?
>
> (On a side note: the RSpec bundle works fine with Rails 5 :-)
>
>
> Stefan
>
> Am 17.03.17 um 09:05 schrieb Koen Punt:
>> What's the problem with rake?
>>
>> Koen
>> On Mar 16 2017, at 11:47 pm, Greg <web(a)web.knobby.ws> wrote:
>>
>> I usually use the command line for testing (I?m more or less a
>> newbie to testing), but thought I?d try staying in TextMate, but see
>> it's still using Rake.
>>
>> I wish I could help, but I?m already in over my head.
>>
>> Greg
I usually use the command line for testing (I’m more or less a newbie to testing), but thought I’d try staying in TextMate, but see it’s still using Rake.
I wish I could help, but I’m already in over my head.
Greg
I'm hoping a TM dev could point me in the right direction of where TM's
inode caching takes place please?
I'm struggling to find it, but I think it might be one of the sources of my
issues using TM on a mounted remote filesystem
Quite often, if I change git branch on the remote filesystem (done via ssh
cmdline) it can end up with TM 'quick open' opening a completely different
file. This issue persists until the volume is unmounted and remounted.
I'd like to compile a custom TM which disables inode caching if possible
Thanks
Hello Ed, All,
None of my previous theories worked out, but I think I’ve had a break
through on this.
I can trivially reproduce it now by switching between iTerm2 and TextMate,
very quickly. Finder might work too, but I’ve been using iTerm. The key
seems to have less to do with which app, and more to do with how fast. My
machine is slow which may make the problem worse.
What I do know is if I reset my configs to their defaults (by removing
~/Library/Application Support/TextMate), this problem is eliminated. Adding
folders back one at a time TextMate still works until I add the
Session/Info.plist back.
I’ve attached my info.plst and made a video of what I see while I’m working
on this; https://youtu.be/C0nyIr5_dTQ
Ed, does removing this file do anything for you?
Everyone; Does this make any sense? Does anyone know where to begin solving
this bug? I sure don’t.
Thanks,
Graham Heath
On February 15, 2017 at 7:48:39 AM, Ed Wong (scampy(a)me.com) wrote:
Graham, I don’t have Diff Gutter enabled, just the standard line numbers,
folding arrows, bookmarks in the gutter.
Ed
On 14 Feb2017, at 3:56 PM, Graham Heath <graham.p.heath(a)gmail.com> wrote:
Thanks for the answers. What all is happening here is still a mystery but
I’ve got an update;
I’ve now had 24 hours without incident. My current theory is this relates
to SCM Diff Gutter, as after disabling it I haven’t seen the issue, but
thats just a theory. I’m re-enabling Emmet today, and I’ll add my linters
tomorrow.
Ed, do you have SCM Diff Gutter, or anything adding icons to your gutter?
Thanks,
Graham Heath
On February 10, 2017 at 9:08:03 PM, Ed Wong (scampy(a)me.com) wrote:
1: have more than a few TextMate windows or tabs open?
Usually many windows with many tabs. Some windows are minimized (those that
I’m not actively working on at the moment).
2: have a customized window bar title?
Yes - full document path.
3: have expensive to render documents?
A few files with > 5000 lines but generally < 1500 lines of PHP, ObjC,
HTML, JS or CSS. Some customizations done to PHP bundle and Mac Classic
theme.
4: SCM integration?
Git on some projects.
Hope this helps.
Ed
On Feb 10, 2017, at 5:33 PM, Graham Heath <graham.p.heath(a)gmail.com> wrote:
This continues to happen to me a few times a day, exclusively in TextMate.
Some days are worse, maybe better after a reboot, but thats not for sure.
Some more theories for you Ed, and anyone else :)
Do you …
1: have more than a few TextMate windows or tabs open?
2: have a customized window bar title?
3: have expensive to render documents?
4: SCM integration?
Here’s what I’m thinking _might_ be happening for each of these. Hopefully
one of these sparkles for someone.
1) TM is confused about what tab / window should have focus, and fails to
pick one.
2) I have a pretty complex stack of replacements to build my window title,
perhaps one of these replacements has a edge case that causes an error
3) TM may be selecting the right tab, but the selection doesn’t happen in a
reasonable time and aborts
4) The timing between focus and TM failing to select a tab seems related to
when the title bar updates when SCM is working
I’ve been experimenting with disabling plugins and add ons. Today I’m going
to try disabling the SCM plugin :(
If that doesn’t work I guess I’ll build TM and see what I can find. Short
of building it, there’s not a way better debug this issue, is there?
Thanks,
Graham Heath
On February 1, 2017 at 7:05:23 AM, Ed Wong (scampy(a)me.com) wrote:
Hi Graham,
My TM setup is pretty basic. No plug-ins, Shell Support installed, Git
support sometimes depending on the project.
I think Allan may be right though as I’ve seen this behaviour with Safari
and Finder as well so it could be an general OS issue.
Ed
On Jan 31, 2017, at 10:23 PM, Graham Heath <graham.p.heath(a)gmail.com> wrote:
Allan, I’m sorry to say, that this is behavior that I associate with
TextMate, not the os at large. I will keep an eye out for it and let you
know if I change my mind. But, as you’ll see below, I don’t really blame
your code either, I’m just wondering whats causing it. Its so erratic that
its probably not something simple.
Jacob, Ed, and others; Do you have any plugins? I haven’t done the full
reset, but I have disabled things that I feel might be offending. Its too
early to say, but I wonder if a plugin might be triggering when the app
gets focus, but something isn’t going quite right.
Tossing this on the pile; I’m using a early 2013 mbp that does seem to have
issues with apps hanging or freezing fairly often, so maybe whatever’s
causing that, is causing this.
Thanks,
Graham Heath
On January 14, 2017 at 11:44:42 PM, Allan Odgaard (mailinglist(a)textmate.org)
wrote:
On 14 Jan 2017, at 5:54, Graham Heath wrote:
> I’m regularly experiencing a bug where TextMate seems to receive
> partial
> focus. The title bar will appear to be selected, but the tabs never
> come
> into focus […]
This issue has existed with macOS for as long as I can remember, and I
have seen it for other apps as well, though it is visually much more
obvious with TextMate because of the tabs bleeding into the title bar.
I do not think the issue is with any of my code, since window management
is not the responsibility of the individual app and I am not aware of
code in TextMate that could affect this.
_______________________________________________
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
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
Hi all,
since a few days, my textmate2 commands using ruby won’t start and just yield an error :
env: ruby18: Permission denied
I can’t recall any major change in my system recently.
Has anyone an idea?
David Bourguignon
All of a sudden I have *.pyc files showing up in my project drawer. I have
not changed any textmate config files or application versions.
I am using 2.0_b10, but have also tested 2.0_rc4.
I have also restarted my computer. I am using OSX 10.12.3.
I am using the default config values for inclusion and exclusion:
*/Applications/TextMate2.0_b10.app/Contents/Resources/Default.tmProperties*exclude
= "{*.{o,pyc},Icon\r,CVS,_darcs,_MTN,\{arch\},blib,*\~.nib}"
include = "{*,.tm_properties,.htaccess}"
binary = "{*.{ai,bz2,flv,gif,gz,icns,ico,jpg,jpeg,m4v,nib,o,pdf,
png,psd,pyc,rtf,scssc,swf,tar,tbz,tgz,tif,tiff,zip},Icon\r}"
I’ve hit a bug when using “Comment Line” in Terraform documents,
although it only occurs on certain lines.
# Steps to reproduce
1. Install the Terraform bundle. TextMate > Preferences > Bundles >
Terraform.
2. Create a file called "~/Desktop/example.tf" and change the document
syntax to "Terraform".
3. Enter the following contents in the file (between the '===' bars):
===
variable "aws_region" {
default = "us-east-1"
}
===
Note that line 4 contains whitespace, although the exact whitespace
chars seem to be arbitrary.
4. Place the cursor as follows:
a) At the start of line 1
b) Select all of line 1
c) Select all of line 4 (whitespace)
d) At the start of line 4.
After each, press ⌘+/ to Toggle Comment.
# Expected results
a/b) Line 1 will be commented out.
c/d) Line 4 will be commented out.
Note: in Terraform syntax, a comment is denoted by /* ... */
# Actual results
d) Works correctly.
All of a)-c) result in 'Failure running “Comment Line”.', with different
errors:
a) Comment Line:140:in `<main>': undefined method `to_a' for
"\u0000variable \"aws_region\" {":String (NoMethodError)
b) Comment Selection:140:in `<main>': undefined method `to_a' for
"variable \"aws_region\" {\n":String (NoMethodError)
${0:}
c) Comment Selection:140:in `<main>': undefined method `to_a' for "
\n":String (NoMethodError)
${0:}
Broadly similar – it just seemed a little odd that it doesn’t also
affect the case where your cursor is on a line containing whitespace.
# Environment
* macOS 10.12.1 (16B2657)
* TextMate version 2.0-rc.7
* ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
I'm using Textmate on Yosemite 10.10.15
The AS3 bundle has been updated for TM2 and I have that one installed
Each line I type adds an extra indent to the one before, where they should line up
If I delete the extra indent and start typing it just adds the indent again
I have two installs of TM2 both on Yosemite 10.10.5 and each one displays the same behaviour.
I tried another bundle (I forget which – maybe python) and the indent behaviour was normal.
How can I work out where the error is and how to trouble-shoot it, please?