Is it possible for Textmate to show in the OS X services menu listing?
Currently BBEdit, TextEdit, and TextWrangler show. Each of these have
two options:
New Window with Selection
Open File
TextMate is not listed. How can I add TextMate to the listing? Thanks
Hello,
just try to re-indent the following snippet with textmate and wonder
about it. ;)
Is there a way to fix the indentation? In which bundle should it be
fixed? HTML oder PHP?
<html>
<header>
<body>
<?php
$array['foo'] = array(
'foo' => 'bar',
'bar' => 'foo' );
$array['bar'] = array(
'foo' => 'bar',
'bar' => 'foo'
);
?>
<?php if (test == "") { ?>
<ul>
<li>foo</li>
<li>bar</li>
</ul>
<?php } else { ?>
<ul>
<li>bar</li>
<li>foo</li>
</ul>
<?php } ?>
</body>
</header>
</html>
Regards, Wolfgang
Folks,
Is there such a beast? I'm a long-time Emacs user who's happily
switched to TM once I got a Mac.
But I miss dired...Is anyone working on or thinking about a directory
viewing & file manipulation bundle? Oftentimes copying Emacs stuff in
TM doesn't make any sense, but in this case I think it might.
(Forgive me if this has been asked before; I admit to lazily not
searching archives before posting this!)
Cheers,
Kendall Clark
Hi,
Just installed textmate and was trying to use svn bundle.
I got following error:
Couldn't find svn
If you have installed svn, then you need to either update your PATH
or set the TM_SVN shell variable (e.g. in Preferences / Advanced)
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
CocoaDialog.app/Contents/MacOS
/bin
/sbin
/usr/bin
/usr/sbin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
======================================================
I have checked I have /usr/local/bin in my PATH
and I have also set TM_SVN (just in case) as followed:
$ set | grep PATH
PATH=/usr/local/bin:/usr/local/sbin:/sw/bin:/sw/sbin:/usr/local/bin:/
usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/
local/pgsql/bin:/usr/local/pgsql/bin
$ set | grep TM_SVN
TM_SVN=/usr/local/bin
$
$ which svn
/usr/local/bin/svn
What am I missing ?
Thanks
Jean-Michel
Thanks to all.
Just set TM_SVN using the suggested method and it worked right then,
i.e. did not have to reload.
Jean-Michel
> On Jan 14, 2007, at 10:39 PM, jeanpierre(a)gmail.com wrote:
>
>> alternatively, you could set the textmate specific environment
>> variable TM_SVN to point to your subversion. since textmate
>> doesn't read your shell you will need to define it in
>> environment.plist or you can set this directly in textmate:
>> Preferences > Advanced > Shell Variables.
>
> Setting TM_SVN via the Preferences > Advanced > Shell Variables
> route is definitely the way to go.
>
> Haris
>
Hi,
Is it just me or the active bundle no longer "centered" under the
mouse when opening the bundle menu on TM's window bottom toolbar? Is
this by design?
Christian
I have not tried it yet, and it is still very much a work in
progress, but now Fuse and the ssh file system are available for OS X:
http://googlemac.blogspot.com/2007/01/taming-mac-os-x-file-systems.html
If that works well there would be no need for an ssh implementation
in TextMate, and Allan could use the time to add other cool things...
And it probably is just a matter of time before ftp will be supported
by this as well.
Gerd
> My first intention, just to see how things are working i wanted to
> make a trace output - which says "Hello World". What am i doing
> wrong? Ive tried to use the ActionScript template and i did a
> script which just says trace ("Hello World"); I did use the
> "Install MTASC Support Files" and i did a try without...nothing
> happens. Can anybody help or does know where i get some
> information? ==================================
trace() is used by the Flash IDE. The MTASC equivalent is TRACE(),
which you can set up on the command line to point to another
function. I'm currently using the LuminicBox logger, but everyone has
their favorite. Google 'actionscript logger' for more options. Most
of them either work over a LocalConnection or an XMLSocket to pass
information to the logger. XMLSocket loggers are faster but the ones
I've seen are less robusty (Luminic, which is a LC debugger, has a
nice tree view for your objects).
Good luck :)
P.S. If you're interested in a more complete workflow, check out my
howto on the subject at
http://www.unfitforprint.com/articles/2006/01/02/howto-develop-flash-
on-mac-osx-with-rake-mtasc-swfmill-and-textmate
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
For some reason, over time, about half of my Ruby files have 4-space
indents and the other half want to indent by 2 spaces. I've been
living with it, but not my source is looking a bit like it had too
much to drink last night. Questions:
1) How do I tell TM how many spaces to indent?
2) Is there some cool way to invoke the auto indenter across a whole
file (I know it will get some of the indents a bit wrong, but it's
easier than going line by line)?
Thanks
Hi,
why does the LaTeX bundle suddenly default to \emph instead of
\textit when I press command-i? This is a most unwelcome change as I
often use the scrartcl-class where \emph seems to be typeset as
underlined text instead of italic.
Any chance for a *different* shortcut for emph in the default LaTeX
bundle? I don't like messing around in the default bundles myself for
as far as I understand TM will create a "local" copy and I can no
longer easily benefit from updates in the default bundles … :(
Christian
> Hmm, well you'll have to explain what you mean. There's no way
> that the bundle can really fetch posts from a BB, etc. The best
> way to use the BBCode bundle is--assuming you use a webkit-based
> browser like Safari, OmniWeb, etc.--to make a new post in your
> browser, and then use the edit in textmate input manager to get the
> text into TextMate. Then when you save the textmate window, it
> will put the updated text back into your browser. If you use
> firefox, i think some sort of external editor support is
> achievable, but I don't know how. If you use Opera or Camino, I
> think you're out of luck for now (though I could be wrong about
> Opera).
>
> Hope this helps,
> Jacob
>
Nonono you misunderstand me. Go to your favourite Board and do the
following:
1. Start making a new Post/Thread/Message
2. Type in some text. Lets say "This is my text"
3. Lets say you want the word "text" to appear as a link.
4. In a normal web browser you do this by marking the text "text",
click on "URL=" then the text "text" changes to [url=]text[/url].
Did it become clearer to you what i mean?
It would be nice to have TM act like the web editor so i can paste
the text back to the browser when i fnished with my post.
> Yes, I made a bulletin board bundle (in fact these things were my
> first textmate bundle items, so they're probably somewhat shitty
> with out-of-date scopes, etc.). It doesn't have too much
> functionality, but it should do reasonable syntax highlighting, and
> things like cmd-b for bold, etc.
Yes it does work very well. I was just thinking that it would be
something cool if the Bundle could handle these things. So that
editing is a little more comfortable.
@Niels: I have the Bundle already installed! Thanks for your
information ;)
Hi
Today i was just asking myself, when i was editing a quite big Forum
Post. Why there is no "Bulletin Board"-like editing mode in TextMate?
I hope you know what i mean...but let me describe.
When you are on the website of your favourite board. And make a new
post, the editor comes up and you start typing.
Then you decide: this one has to be size 1, this passage has to be a
link and so on.
On the Forum you are just mark which text has to be size 1 or the
link, click the size or link button and your marked text is put
between the tags you decided eg [size=1]my little text[/size]
This would be very handy to have! Because i am (very) addicted to
some forum i am visiting and i am writing some large entries there
which are posted on the start-page of the site.
Thanks!
Zettt
Greetings, I've encountered a bug recently with textmate after 6
months of use. it just popped up so I'm presuming it's related to
something with the systems font or somesuch. but no other app has
this issue.
I use textmate primarily for editing my rails scripts , As I said it
worked fine, but now my cursor is generally 1 or 2 columns off from
the insert point.
here's an example
type a number sequence to show
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
6 7 8 9 0
then hilite, copy and paste in groups of +5
1 2 3 4 5
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 0 1 2 3 4
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
6 7 8 9
same thing without spaces..
12345678901234567890123456789012345678901234567890
12345
1234567890
123456789012345
1234567890123456789
123456789012345678901234
I've tried different fonts but get the same result. some times in my
code when there is italics or bold the spacing can be very off like
by 4 chars or more.
any ideas?
osx 10.4.8, default install
thanks
-zaq
Howdy all --
I'm wondering if Macromates is, or is not, at Macworld. There's a
listing in the program guide, but I looked and I couldn't find the
booth.
If so, I was going to stop by and say hi. :-)
Thanks,
--
Matt Anderson
Hi all,
I'm trying to re-implement the Emacs sentence navigation/kill commands.
http://www.delorie.com/gnu/docs/emacs/emacs_235.html
I've managed to write some macros that behave the same as Emacs for
most situations except near the beginning or end of the file. To fix
this I would need to be able to match the EOF or Beginning Of File in
a regex. Reading
http://macromates.com/textmate/manual/regular_expressions
I can't see these as available characters... do they exist?
--
Sam
Dear all,
Thomas Aylott wrote a nice Filename Completion within the
Experimental bundle. With this command you can simulate the TAB
behaviour at the console writing paths or file names.
By myself I prefer to see all suggestions with their real names (not
only the rest). That's why I wrote my own humble version, and I added
a nice 'auto correction' function to it.
With 'auto correction' I mean:
Examples:
I type '/Apppli' , invoke the completion, and finally it writes '/
Applications/'
or
I type '~/Dyskt' , invoke the completion, and it goes back to the
first valid path and makes a pull down list of 'Desktop, Documents'
The next thing I changed is that if the completion finds only one
match it outputs it directly without asking me.
Together with the auto correction the completion makes it easier to
insert a specific file name with a typo. For instance, I have a file
at my desktop named 'test3.txt' and I type '~/Desktop/test33.txt' ,
start the completion, it changes it at once to '~/Desktop/
test3.txt' (of course, if you have no other files beginning with
'test3').
The feature to select a part of the path with the mouse to indicate
what I want to change is missing in my script, because I'm a keyboard
person. If I take the mouse to select something, then I also can
press 'DELETE' before I invoke the completion script.
As default the pull down menu doesn't list files beginning with a
dot. If you want to see them, then you have to type:
'~/.+' (to see all) or '~/.p' (to see all with a p)
I bound the script to the key CRTL+TAB and the scopes: source.shell,
string.interpolated.ruby; but here are no limits.
Please check it and don't hesitate to comment my script ;) (Maybe I
forgot something)
Cheers,
Hans
Hi all,
I noticed that the Cocoa autocomplete word (ESC in Tiger) works in
TextMate. Using ~/Library/KeyBindings/DefaultKeyBinding.dict I have
set ^/ to also do autocomplete in Cocoa apps. I've been using this
keybinding for a long time now, but I'm new to TextMate (bought
license today).
Unfortunately, this user set binding does not work in TextMate
although it does work in other Cocoa apps such as TextEdit. Does
anyone know why this might be the case and any hints to fix it?
Optimally I'd like to set "Apple /" to autocomplete, but for some
reason Cocoa doesn't allow this.
cheers,
Sam
--
http://fommil.me.uk
Since my ISP is slow, I've added timeouts to the blogging module. I
guess its time to check that module out and see about diffs.
Anyway, you can now add, optionally, whitespace ddd to each blog
entry in the preference file to specify a per blog timeout.
Love the openess of this system :)
The Mac web development tool we've all been waiting for is here: "IE
Preview" allows previewing TextMate's current working document
directly in Internet Explorer through Parallels -- with a single
shortcut key! Many of us are forced into testing for IE
compatibility, and this makes it far less tedious.
I'm providing the app and the script on my site, here: http://
www.ryanvb.com/ie-preview/
If you find it useful, diggs and/or comments are much appreciated!
Thanks,
Ryan van Barneveld
Avid TextMate User
Hi,
I'm using textmate for my python work.
Templates are good but i can't replace spaces increment by tabulation :
if __name__ == '__main__':
(_ _ _ _) main() # spaces
if __name__ == '__main__':
(tabulation) main()
I must change it manually each time...
How to do that with bundle editor ?
Thx, C.
>
>> Hi out there,
>>
>> Sorry to disturb you during Steve is showing the new iPhone. But i
>> have a little question. I am using TextMate to compile my LaTeX
>> Documents. I was just asking if i can use LaTeX to create a Test or
>> Quiz. And yes you can! If you are using the package exam. So i was
>> downloading some examples hit Command+R and the compiler said that
>> he is missing some exam.sty
>>
>> Can someone help me out?
>>
> It is possible you don't have the exam package installed. Try running
> this on the terminal and see if you get something back:
>
> locate exam.cls
>
> Btw, exam is not a package, it is a document class, so you should
> access it via:
>
> \documentclass{exam}
> ......
>
> There is a TextMate Template creating a basic exam for you (File ->
> New From Template -> LaTeX -> Exam). Here you can find documentation
> for the class: http://www-math.mit.edu/~psh/#ExamCls
You're right. When i am in the \documentclass {exam} it will do the job.
My exam.cls is located at
/usr/local/teTeX/texm.tetex/tex/latex/exam.cls
I know whats wrong now. The example.tex Files ive downloaded had
these information in the preambel:
\documentclass{article}
\usepackage{exam}
%%%% If you are not using LaTex2e, replace the first two lines
%%%% with the following:
\documentstyle[exam]{article}
\paper{445.123 FC}
\degree{BA, BSc etc}
\title{An introduction to basic set theory}
\note{Attempt any {\bf THREE} questions}
Hello all,
As I was monkey-bashing the keyboard around Apple-D, I managed to
turn-off syntax highlighting. Can someone tell me how to restore
syntax highlighting or provide a link that includes this help?
Why was I monkey-bashing? For some reason Project Drawer will not
open on ^-Ctl-Apple-D. The menu works just fine. Any bugs around this?
Thank you, thank you, thank you,
Peter Fitzgibbons
peter.fitzgibbons(a)gmail.com
> On 1/7/07, thomas Aylott <oblivious(a)subtlegradient.com> wrote:
>>
>> On Jan 6, 2007, at 1:59 PM, Peter Michaux wrote:
>> >
>> > Is there a way to insure that the project draw will always open on the
>> > left? About fifty percent of the time it opens on the right and I have
>> > to close it, then move the window to the right and then reopen the
>> > project drawer so it shows on the left. A hassle I would really like
>> > to eliminate.
>>
>> It opens up on whichever side has more room.
>> If you drag your window all the way to the right and open the drawer,
>> it'll
>> open on the left.
>
> The steps you describe are the steps I unfortunately have to do half
> of the times I open a project in Textmate which is a tedious task just
> to make sure the drawer is on the left. It would be nice if Textmate
> always made sure that the window was far enough to the right so the
> drawer would automatically open on the left.
>
> Peter
I find this to be a feature, rather than a bug. I like to keep two (or
more) projects open at once, and have one with a drawer to the right,
and another with drawer to the left. This guarantees that the corner of
the other project window will always be showing, which sometimes is
useful for toggling between windows (it would be nice to be able to use
command-`), and as a visual reminder of what I'm working on. So at most
I think we might ask for a pref to control which sides the drawer can
appear on. Personally, I'll be a lot more excited when there's a pref to
turn off the automatic rescanning of files in a project (especially when
they're on a network vol), as the lag when switching between Textmate
and other apps is very annoying.
-Toby.