I've just been troubleshooting why so many of my files have hard tabs
in them. Now I see that whenever I create a new file in TextMate, it
defaults to hard tabs. Two questions:
(1) How do I have TextMate automatically assume soft tabs 2 when I
create a new file?
(2) Is there a way to have TextMate convert hard tabs to soft tabs on
save, so I can easily fix this mess?
I think once upon a time I knew that I had to manually set soft tabs
for each new file, but at some point I forgot.
~joe
On 15 Oct 2010, at 17:32, brad tittle wrote:
>> I installed a bundle for Titanium Developer. Every time I use the
>> Ti. trigger I get a popup "failed to load /Users/userdir/.gemrc". I
>> have .gemrc in my directory. My searches haven't been too fruitful
>> for an answer.
>>
>> Does this file need to be permissioned specially? Is there some
>> other magic involved? Or is it related to ruby issues.
>>
>> Ti. actually does bring up the list.
>>
>> The directories referenced in .gemrc do exist.
>I don't know anything about Titanium Developer, nor Ruby, but if that
>error message is verbatim then the error is with a setting somewhere:
>"Failed to load /Users/userdir/.gemrc" should be /Users/[your
>login]/.gemrc. It's probably set in the bundle somewhere. Select
>Bundles->Bundle Editor->Show Bundle Editor menu option and have a
>browser through the bundle.
>If that error is not verbatim, and you substituted your login name for
>'userdir', then I don't know the solution to this.
The error was actually "Failed to load /Users/[userdir]/.gemrc" where
[userdir] is my login.
The error shows up when I do "gem install ..." also.
It is mostly an annoyance right now.
--
Brad Tittle
Tech Support
Hi,
is it correct that curly brackets feature a special behaviour in Textmate? I mean the fact that if I enter a Curly bracket { and hit enter, it will create a newline after the tab. This is not the case with other brackets:
So with curly brackets I get:
{
Cursor
}
With other brackets I get:
(
Cursor)
Note that this is _not_ set in the indentation rules section, to my understanding. I want to mimic the behaviour of Curly brackets for other brackets as well. I know that I can use this trick used in the Snippet: "Special: Return Inside Empty Open/Close Tags" in the HTML bundle to mimic this behaviour, which I am happy to do. I just wanted to know whether I get this correctly, that the special behaviour of curly brackets is unique and built into Textmate.
Thanks a lot,
Stephan
Hello... I feel like there is a super-simple answer to this, but I've spent more than enough time trying to figure this out on my own, so now I get to ask the TM community.
I'm making a simple drag command, and part of the output involved a backtick. I'm using Ruby as the language of choice for the command itself, and it seems to be having trouble with the backtick.
I know that the backtick, on it's own, means to run the string at the command line. But I'm doing something like this:
puts "`"
(Thats double quote, backtick, double quote; in other words, print a backtick, please)
I've actually reduced my command to this simple line in trying to figure out where it's going wrong, and this does not produce any output. As another example, this:
puts "abcd`efgh"
Will output abcd and that's it.
Now, when I open a new ruby document, add those lines, and run it straight from TM, I get every character I would expect.
This would lead me to believe that somehow, in process of writing ruby that gets interpreted as a snippet, the backtick is actually being used as a backtick, not just another string character. Do I need to escape this somehow? I've tried this:
puts "\`"
Which still produces nothing.
Any insight is greatly appreciated. Thanks.
+dru
Hi,
my HTML and PHP bundles use different numbers of characters for indentation via TAB: In HTML it’s 3 chars, in PHP it’s 4 chars.
How can I adjust this to 4 characters both?
Thanks for any tipps!
Tom
I installed a bundle for Titanium Developer. Every time I use the Ti.
trigger I get a popup "failed to load /Users/userdir/.gemrc". I have .gemrc
in my directory. My searches haven't been too fruitful for an answer.
Does this file need to be permissioned specially? Is there some other magic
involved? Or is it related to ruby issues.
Ti. actually does bring up the list.
The directories referenced in .gemrc do exist.
TIA
--
Brad Tittle
Tech Support
My ruby Completion is gone when I try to change the ruby I am using. This is
one of my favorite features of programming ruby with TM. Is there a way to
get this working with the ruby I want to use.
I want to use ruby-1.9, which I have installed using RVM
When I put the following TM variable.. the Completion is gone:
TM_RUBY /Users/Ted/.rvm/bin/textmate_ruby (specifically I get Parse error)
When I remove it.. Completion works again.
Ted
--
View this message in context: http://old.nabble.com/Ruby-completion-not-working-with-another-version-of-R…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all-
I'm writing a macro:
selectBlock:
copySelectionToFindPboard:
findWithOptions:
All I'm doing is getting some text between square brackets, pasting it into the find dialog, and hoping to search with "wrap" enabled.
Trouble is, the findWithOptions: wants to hardwire my find selection:
{
action = findNext;
findInProjectIgnoreCase = 0;
findInProjectRegularExpression = 0;
findString = "[^f100914110843]";
ignoreCase = 0;
regularExpression = 0;
replaceAllScope = document;
wrapAround = 1;
}
I tried removing the findString property, but then I lose the wrapAround for some reason. That is, the property is in the macro text, but wrap doesn't work when the macro is executed.
Any idea what I'm doing wrong here?
Thanks!
Charles
Hi Ben,
Delighted to see another writer who doesn't buy into Microsoft/Open/Neo/Office bloatware.
I'm not a TextMate power user, but I do have some personal snippets that you could have or build on if you create an "Author" Bundle (select sentence, swap this word and next, that sort of thing). I've also got a syllabus template and snippets that I've been hacking together for a while.
Good luck!
jon
______________________________
Still Water--what networks need to thrive.
http://still-water.net/
On Oct 13, 2010, at 3:27 AM, textmate-request(a)lists.macromates.com wrote:
> I'd rather drink the TextMate kool-aide
> and create a Bundle that does what I want. I bought Scrivener (the
> document project tool), but it's not quite my style---I don't like the
> text in RTF, don't like how it manages content under the covers. I
> probably shouldn't care about that, but I did write a novel in LaTeX.
> Published an unwieldy Sci-Fi milieu "mock encyclopedia" in LaTeX, too.
> So, I'm used to under the covers. :-)
>
> Looking at the assorted bundles, I noticed the TODO bundle has some of
> what I want (ability to display output via pop-up screen like word
> counts). But, I'm looking for some sort of tutorial or guide to
> creating a bundle.