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.
Hi all,
I was wondering if it was possible to adjust the font line spacing in
TextMate? i.e. the amount of horizontal whitespace between each line of text
in the editor window.
Cheers,
Diego
Linux user for 10 years. Bought a Mac six months ago. Bought TextMate
5.99 months ago. Wrote a novel (most of a first draft) with Vim in
LaTeX compiling to PDF. Plan to write one during NaNoWriMo using
TextMate; using Markdown that compiles through LaTeX to PDF (and also
compiles to EPUB). First Post here. Enough. Staccato. Typing.
Howdy.
Presently, I've modified Kitabu (github) which gives me a set of rake
tasks that do this just fine. 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. Maybe my googler isn't working and I just couldn't
find it when I went looking.
BTW, stoked that PmWiki is the wiki engine; been using it for six years.
--
Ben Wilson
"We cannot determine the character or nature of a system within
itself. Efforts to do so will only generate confusion and disorder."
Boyd
Hello,
is it possible in Textmate to use autoindet to format programming code?
E.g the code
______________________________________________
with timeout of 86400 seconds
set theList to {"Mac OS:Users:malte:Movies"}
repeat with nItem in theList
set Ordner to nItem
tell application "System Events"
set these_files to (every file of folder Ordner whose name extension is "avi")
end tell
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
set this_file1 to (item 1 of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
open file quelldatei
end tell
end repeat
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set zieldatei to "Mac OS:Users:malte:Movies:mov_version:" & fileName & ".mov"
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
save window fileName in file zieldatei
close window fileName
end tell
tell application "Finder"
delete file quelldatei
end tell
end repeat
end repeat
say "fertig"
end timeout
is changed by my program to
with timeout of 86400 seconds
set theList to {"Mac OS:Users:malte:Movies"}
repeat with nItem in theList
set Ordner to nItem
tell application "System Events"
set these_files to (every file of folder Ordner whose name extension is "avi")
end tell
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
set this_file1 to (item 1 of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
open file quelldatei
end tell
end repeat
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
tell application "Finder" to set fileName to name of this_file
set this_info to info for this_file
set zieldatei to "Mac OS:Users:malte:Movies:mov_version:" & fileName & ".mov"
set quelldatei to Ordner & ":" & fileName
tell application "QuickTime Player"
save window fileName in file zieldatei
close window fileName
end tell
tell application "Finder"
delete file quelldatei
end tell
end repeat
end repeat
say "fertig"
end timeout
Is there any way, that Textmate could do this for other languages?
best regards
Malte Christian
Hi gang,
What I'd love is to be able to use a single TextMate project to hold all txt
files opened from the finder.
Is there a way to tell Finder to Open With TextMate and add to an open
project? Or to just add a new tab onto the existing project? Instead of TM
just opening up a new window for each file...
Or is there a way to tell TextMate, through a bundle or some other way, to
receive newly opened files into the currently open project?
Thanks hugely,
Chris
--
View this message in context: http://old.nabble.com/Open-files-from-finder-into-single-project-%28single-…
Sent from the textmate users mailing list archive at Nabble.com.
Hi All,
Apologies if this isn't the right place to post this questions!
I have recently installed textmate on the advice of 'Ruby on Rails Tutorial Learn Rails by Example' : http://railstutorial.org/chapters/beginning#top
I am up to the part where you open a file for the first time using Textmate with: mate Gemfile
This works and opens up the relevant file but all of the code is black - there is no differentiation between comments, variables etc it is just a page of plain text.
I have tried changing the themes but that simply changes the background colour vs the text colour but doesn't help distinguish between the different code elements.
In the tutorial everything is highlighted as per a proper code editor but I just cannot find how to do this - please help!!
I am sure it is something incredibly simple that I am not doing but I've watched some tutorials and searched through the help and on Google but still no luck.
Any help will be very much appreciated!!
Thanks
Matt
The information contained in this e-mail is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise, is not intended to waive privilege or confidentiality. Internet communications are not secure and therefore Conde Nast does not accept legal responsibility for the contents of this message. Any views or opinions expressed are those of the author.
The Conde Nast Publications Ltd (No. 226900), Vogue House, Hanover Square, London W1S 1JU
Hey has anyone experienced problems with textmate running a ruby file
against RVM set to 1.9.2. The "Command R" runs ruby code, but I noticed it
is running 1.8.7 (based on the errors I get when I try to run something
specific to Ruby 1.9, such as the symbol short cut for hashes...)
x={a: 1, b: 2, c: 3}... Does not work
But the ruby 1.8.7 short cut
x={a, 1, b, 2, c, 3}.... Does work.
Is there a preference setting in Textmate that tells it to use which Ruby
interpreter?
Thanks
10/3/10 9:36:02 AM TextMate[5413] This application is trying to draw a very large combo box, 145 points tall. Vertically resizable combo boxes are not supported, but it happens that 10.4 and previous drew something that looked kind of sort of okay. The art in 10.5 does not break up in a way that supports that drawing. To avoid breaking existing apps, NSComboBox in 10.5 will use the 10.4 art for large combo boxes, but it won't exactly match the rest of the system. This application should be revised to stop using large combo boxes. This warning will appear once per app launch.
Hello all,
Two questions:
1. I noticed that in the stock CSS bundle the snippets do not have a 'source' namespace.
this is inconvenient since it means they popup when they're not supposed to and take up abbreviations that I would like to use in other contexts for other snippets.
so - since there are about 40+ of these things, is there an easy way to change the source on all of them at once?
2. I have little to no experience building TM commands but I am wondering if it is possible to pass parameters from snippet expander shortcuts.
perhaps an example would be better:
In CSS bundle using snippet Tab Trigger: 'p' for 'padding', being able to input - for example - 'p20' and get 'padding: 20px;' and then later 'p10' and get 'padding: 10px'
in other words the number is a variable that gets written into the expanded snippet.
this seems like it should be possible but I'm not the man to figure it out.
that's it!
thanks,
bennett
Hello,
I started to use TextMate with an Actionscript 3 Bundle at the office where
i work and since then I'm much more productive and organized with my code,
which is very important.
So I installed also at home, however i cannot get it to work correctly here.
When I open the Bundle Editor, I see the Actionscript 3 Bundle and all the
commands, it seems to be the same at work. But they don't work here at home
(except for some, like shift+return which is a 'function' snippet).
For example there's a 'get' command and it is associated with the 'tab'
trigger. It just doesn't work, however, it worked when I left the field
"Scope Selector" blank in the Bundle Editor settings for the command 'get'.
So I must be missing something there...
Another thing, I use the 'clouds' theme at home and it also doesn't look the
same as it looks at the office.
One thing I miss is that I'm used to use class variables with an "_" before,
and those variables get a different color, which helps a lot. For example: I
have a class with a private var "_xOffset", and the constructor of that
class receives the argument "xOffset", then "_xOffset" (in blue) receives
the value of "xOffset" (in black).
Here at home I can't manage to make the variable with an underline in front
to get the color blue. Even though I installed TextMate, the as3 bundle file
and the clouds theme from the same sources, at home and at the office. What
could I be missing ?
Thanks in advance !
--
Isaac
Hi there,
I am trying to reproduce a table, which I copied the elemnts out of a
pdf-file to create a LaTeX-Table.
Fortunately there is a macro in the LaTeX-Bundle, which creates a table of
selected items automatically.
But my items, when pasted into TextMate aren´t properly formated. There a 3
blocks consisting of 10 rows. The blocks are seperated by an empty line. But
I would like to have the block (name it vector) as a column, and the second
vector as the second column...ending with a 10x3 Matrix
So, how to change this:
a
a
a
b
b
b
c
c
c
Into:
a b c
a b c
a b c
Thank you very much for your help.
--
View this message in context: http://old.nabble.com/Reformatting-several-blocks-of-rows-to-a-table--tp298…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Before I start to write my own, anybody has a Nagios configuration bundle?
Thanks,
--
Pedro Melo
http://www.simplicidade.org/
xmpp:melo@simplicidade.org
mailto:melo@simplicidade.org
On Thu, Sep 23, 2010 at 8:00 AM, <textmate-request(a)lists.macromates.com>wrote:
> On Wed, Sep 22, 2010 at 20:55, minimal design
> <textmate(a)minimaldesign.net> wrote:
> > I've looked through the docs but can't figure it out...
> > I'm trying to add CSS3 stuff to the default CSS bundle, but I don't want
> to
> > touch the original bundle off course so in my own bundle I try something
> > like:
> >
> > { scopeName = 'source.css.mcss'; fileTypes = ( 'css', 'css.erb', 'less');
> > foldingStartMarker = '/\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))';
> > foldingStopMarker = '(?<!\*)\*\*/|^\s*\}'; patterns = ( { name =
> > 'meta.selector.css'; begin = '^(?=\s*[:.*#a-zA-Z])'; end = '(?=\{)';
> > patterns = ( { name = 'entity.name.tag.css'; match =
> >
> '\b(article|aside|audio|canvas|command|datalist|details|embed|figcaption|figure|footer|header|hgroup|keygen
> >
> |mark|menu|meter|nav|output|progress|rp|rt|ruby|section|summary|time|video|wbr)\b';
> > }, ); }, { include = "source.css"; } ); }
> > and I get all the new elements highlighted like they're supposed to, but
> > that "cancels out" the standard CSS elements. I thought adding the
> > "source.css" would take care of that but obviously it doesn't... Do I
> have
> > to include the standard elements back into the regex? Is there a better
> way?
> > Thanks for any pointer in the right direction!
>
> Not sure if it'll work but you could try adding your pattern after
> including
> `source.css`, i.e.
> patterns = ( { include = "source.css"; }, ? );
>
> HTH,
> Martin
>
It seems that whatever I put last, it cancels the other one out... From the
DOc, I though that it would inherit if you use the name convention... But
the inheritance doesn't happen within patterns that have the same name? Is
that what the deal is? Or I"m doing it wrong? It seems counterproductive not
to be able to ad on to a rule, so I tend to think I'm doing it wrong, but
I've tried all the option I could think about... Anyone has done this
before? If I have to just have to duplicate and modify the whole default CSS
language, that's fine, but I want to make sure there's no better way
first... Thanks!!