Hey guys, two big things in TM2 that kinda drive me nuts and have me think
of re-installing TM1.5, and I'd like to see if I can fix them:
When having a directory opened as a project (my default way of working),
closing the last open file closes TM. In 1.5, TM stayed opened (the project
view) with an empty editing pane. You could then click on a file to open
it..
There was an option in TM1.5 when clicking on a folder to "Create new
file", and I sorely miss this. Any way to bring it back?
Thanks for any tips.
--
Wells Oliver
wellsoliver(a)gmail.com
TextMate seems to be smart enough to figure out that some file is already open in certain project, so calling "mate file" on already open file just brings existing TM window to front, also when file isn't open, but lays within some project window, it does bring this window to the font and opens the file inside it.
But.... when we try to "mate dir" where dir is already open in TM, it opens new window (copy) again! Can we please change this behavior? I often end up with multiple copies of the same dir/project, which often leads to unwanted modifications and real mess.
Cheers,
--
Adam Strzelecki | nanoant.com | twitter.com/nanoant
Thanks, this works nicely.
>
> ------------------------------
>
> Message: 4
> Date: Tue, 31 Jul 2012 12:05:04 +0200
> From: Allan Odgaard <mailinglist(a)textmate.org>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: selecting text
> Message-ID: <BD050B17-3506-4FA3-BAB6-D745F56CE3FC(a)textmate.org>
> Content-Type: text/plain; charset=utf-8
>
> On 31/07/2012, at 08.56, Rodney Ramcharan wrote:
>
>> [?] Is there a way in TM to select text by line numbers? For example, I need to select code from lines 30 to 70. Rather than manually holding down the shift and arrow keys from lines 30 to 70 is there a way to tell TM to highlight that specific range.
>
> If you are using 2.0 then hit ?L (Go to Line) and enter: ?30-70?.
>
> See ?Selection String Syntax? in the Help Book for all supported (range) specifications.
>
>
>
Suddenly spell checking (check as you type) stopped working. Also check spelling behaves in a strange way. I have inserted a misspelt word, I have clicked on it, and corrected it. Then I run Spelling -> Show spelling and grammar. In the dialog I see the word I have already corrected.
I am on TextMate 9147
All the best
Guido
> Hi there,
> Is there a way in TM to select text by line numbers? For example, I need to select code from lines 30 to 70. Rather than manually holding down the shift and arrow keys from lines 30 to 70 is there a way to tell TM to highlight that specific range.
> Thanks,
> Rodney
Hello there,
I was following the instructions on this page to check out all bundles for TextMate using SVN:
http://wiki.macromates.com/Main/SubversionCheckout
When I issued this command:
svn co http://svn.textmate.org/trunk ./
Encountered the following error message:
svn: Can't create directory '.svn': Permission denied
Would appreciate it if someone could offer me some assistance.
Happy programming,
Unnsse
Mountain Lion introduces a small bug in the synchronization
with Skim. I post here a temporary workaround for those who might
be interested and future reference.
Inside Skim>Contents>SharedSupport there is a small bash script,
displayline, which uses osascript to pass some info to Skim.
Apparently, Mountain Lion changed the way variables can be
passed to an AppleScript, so the following patch should
be applied:
lines 42,43,44 of displayline are
-e "set theLine to $line as integer" \
-e "set theFile to POSIX file \"$file\"" \
-e "set theSource to POSIX file \"$source\"" \
and they should be modified as follows:
-e "set theLine to ${line} as integer" \
-e "set theFile to POSIX file \"${file}\"" \
-e "set theSource to POSIX file \"${source}\"" \
(just add curly brackets in three places).
With this modification the command Typeset
in LaTeX should work again. This workaround
was suggested by Christiaan Hofman.
Enjoy
Piero
Hi All
There's a great new blog entry from James Gray on the TM2 Layout engine http://blog.macromates.com/2012/the-layout-engine/
In TM2, comments in source code are set to wrap, even on no-wrap lines. But the defaul wrapping is to stay to the right of the comment start.
This leads to lines like the one I append below :-)
You can fix this to your pleasure, and learn about Style settings.
Goal: Set comments to wrap, not under their start column, but, say, with a 20-char indent from the left margin of the code in the line
[12:43pm] timbates:Infininight: you are the master of assumed knowledge: Which match, where?
[12:43pm] Infininight:that one
consists of two parts: a match and a format string
The match string counts out the characters you want to wrap to. In the default case, all the way out to the comment char and any spaces immediately afer:
match = '.*(##?)\s+';
Then the format just blanks all the non-white-space characters
format= '${0/\S/ /g}';
The wrapping for source lines is in the Source bundle, under settings. There are settings for all the difference comment characters... Pity this isn't munged into one, but anyhow...
All I had to do was set match
match='^ *.{5}';
This now wraps the long comments to a left margin equal to the indent of the line plus 5 more characters
Here's an example
http://pastie.textmate.org/private/uyfbafdeaepyxn5o2otpw
Here's an example of what I wanted to fix
long source linelong source linelong source linelong source line # thin
comm
ent
that
is
very
hard
to
read
:-)
Happy TM-2 ing!
I've googled this and found no help.
I'm using Textmate 2, and since I installed it I get this behavior: control-K correctly kills (cuts text from the cursor until the end of the line) but control-Y does not correctly yank that text back. Instead, I always get the string "TODO" as the yanked text.
I've pulled up the bundle editor, but I can find no bundle that is overriding the control-Y key. (Nor the control-K key).
Any suggestions how to get the original behavior?
---Nathaniel
Hi.
At work we have AFP-mounted shared folders.
I can open files in TM2 on these no problem, but when attempting to save I get:
The document "XXXX" could not be saved.
Atomic save: Invalid argument
No console messages that I can see.
I'm using Version 2.0 (9090) on OS 10.7.4
Any ideas?
Thanks very much,
Alastair.
Not sure how often the performance issue has come up yet, can't find much about it in the archives except a mention that the file browser might make trouble. So please excuse me if this has already been discussed and I just missed it.
TM2 really is slow. I get heavy CPU spikes on various occasions; switching tabs, bringing focus to the application, saving etc. This gets really bad and it takes seconds to perform actions. At times it eats 100%+ CPU for minutes and is hardly responding.
Also, memory usage/management isn't that great. The amount of memory used constantly climbs, closing stuff doesn't help. (Working with a few files leaves me with 500 MB memory used, even after closing all editor windows).
It's almost impossible to work with it.
I know, this is alpha and stuff, but I'd really like to put TM2 to the test and just can't. I've used it at work for some time now but had to stop because it severely slowed me down. (Who tests this in their free time? ;-))
Is this just me? I see nobody else complaining.
I constantly get this behaviour and if there's anything I can do to help debug or profile, let me know.
– Matthias
TM1 used to remember the fold status of my documents. I'd close a
document leaving most of it folded away apart from the sub I was
working on, then it would be easy to pick up from where I left off
when I re-opened the document.
It doesn't seem to remember the fold status any more. Anyone else seen
this behaviour?
It's not critical, it just bugs me every time I open a document I
folded neatly away.
--
Justin C, by the sea.
Hello
I have 3 revisions of TextMate: 1623, 1631, 1635 on my OS/X 10.6.8
I believe that TextMate1 is up-compatible, so I would like to discard older
revisions. How to do it keeping "Open with...TextMate", and other system
features unbroken.
TIA
--
View this message in context: http://old.nabble.com/Rid-off-old-revisions-tp34171405p34171405.html
Sent from the textmate users mailing list archive at Nabble.com.
This seems to have been introduced in build 9147. I do a "find in files"
(⌘⇧F). It seems to find all occurrences but the line numbers shown are
incorrect so when I click on one of the matches it opens the file but
positions the cursor in the wrong place.
I'm running OSX 10.7.4.
Curt
I've (once again) got fed up with saving things only to find that git is rejecting the commit due to trailing whitespace, and have had another look at automatically stripping it.
I've tried the bundle at https://github.com/bomberstudios/Strip-Whitespace-On-Save.tmbundle, which hasn't been working for me for ages, and the solution at http://reinteractive.net/posts/4-stripping-whitespace-out-of-textmate-2, which saves the file with the whitespace unstripped and *then* strips the whitespace (and unhelpfully moves the cursor to the end of the document, too). None of them results in me achieving my goal of a file on disk which doesn't have trailing whitespace, and a buffer in TextMate which shows as saved.
Is there some solution I'm missing?
(The ideal would be for whitespace stripping to be built in, not just as a manually-executed command in the Source bundle, but something in the app preferences that could also be turned on/off in .tm_properties — that would mean every TM2 user cloning a no-trailing-whitespace-allowed repo would get a .tm_properties file that causes it to do the Right Thing for that project, regardless of how the user has their preferences set up. Allan, is there any chance of this in a future build?)
Thanks
--
John Yeates
Is there a way to set the font size for the file browser? I have it set to 11 in Finder and would like to have it like hat in the file browser as well.
And when deep in a folder structure it becomes hard to navigate as the file browser just "compresses" file and folder names. Things get cool names like "e…p" (ext_localconf.php) or simply just disappear. I know I can work against this by making the file browser wider but when it already occupies half of your screen it gets amusing.
– Matthias
Hi,
I'm running latest TM2 build on Lion 10.7.4. I can't seem to run any bundle command and keep getting error like this:
Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/escape.rb:23:in `e_url': private method `gsub' called for nil:NilClass (NoMethodError)
TM1 works just fine.
--
Tuan Anh Tran
e: me(a)tuananh.us / t: (+66) 849027417 / w: http://tuananh.us
Hi,
only a minor issue. If I select a text chunk containing line breaks and drag&drop that selection to my Desktop I will get a file *.textClipping. Fine. Now I drag&drop that *.textClipping file to TM2 (9147) the content will be inserted BUT each line break is lost, i.e. they are replaced by grey shaded <CR>'s.
Cheers,
--Hans
I have both:
softWrap = true
softTabs = true
set universally in my .tm_properties file, yet I occasionally open files that ignore both of these settings, requiring me to set them manually from the menu bar. Has anyone else seen this?
Reading this: http://blog.macromates.com/2009/interactive-input/
Did the steps:
> cd /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
> svn export http://svn.textmate.org/trunk/Support/lib/tm_interactive_input.dylib@11735
When I press ⌘R on a simple python script using:
variable = raw_input()
... it still fails like this:
EOF Error: 'EOF when reading a line'
Making a simple Ruby program, I got similar error:
TypeError: can't convert nil into String
The comments to the blog post seems to stray somewhat from the topic,
so I couldn't figure out if there was something I was supposed to do
differently ...
--
Phil :)
Hi,
It is extremely annoying that in textmate 2.0 when you accidentally click a
second time on a selected tab it opens it in a new window.
Is there any way to disable this "feature"
Thanks,
Mike
Could someone point me to the current instructions on finding and
installing bundles on TextMate 1 please?
I have a copy on GetBundles installed under ~/Library/Application
Support/TextMate/Bundles (dated 6 Dec 2008) but that seems to (mainly)
no longer work: for example, an attempt to install a JavaScript bundle
(by textmate) gets an error saying ``Could not install "JavaScript" from
"https://github.com/textmate/javascript.tmbundle/tarball/master"'', same
thing happens for other bundles.
If I attempt to update GetBundles via GetBundles, I get an error
dialogue saying ``It seems that the bundle "GetBundles"
has been already installed under versioning control (svn) Please update
that bundle manually or remove/rename it and use "GetBundles" to
install'' --- the help (question mark) button on GetBundles
I suspect I'm suffering from installing TextMate on multiple machines
``decay'' and need to rediscover the correct way of doing things. I
suspect I installed GetBundles with the following commands in terminal
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd !$
svn co http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/
osascript -e 'tell app "TextMate" to reload bundles'
(these were from https://gist.github.com/2722805 and
http://solutions.treypiepmeier.com/2009/02/25/installing-getbundles-on-a-fr…)
I have TextMate version 1.5.11 (1633) installed on Mac OS X 10.7.4
Phil Molyneux
Given the following ruby script:
#!/usr/bin/env ruby
puts RUBY_VERSION
…and that I'm setting TM_RUBY = "/Users/myname/.rvm/bin/ruby-1.9.3-p0@primes" in the .tm_properties for the project, hitting Cmd-R in the script window shows 1.8.7. Running it from the command-line shows the expected 1.9.3.
Does anybody know what's going on here? It would be lovely to be able to use TM2 with different projects using rvm, and have everything Just Work :)
[Ideally, TM2 should detect that rvm is being used and get the ruby and gemset from the project's .rvmrc, if supplied, or from rvm's defaults otherwise. Even better if the following sequence 'rvm use 1.8.7 --default; rvm use 1.9.3; mate foo' would pick up 1.9.3 from the shell's env rather than using the default.]
--
John Yeates