I have tm set up as my default editor with the following line in
~/.subversion/config:
[helpers]
editor-cmd = tm
tm and tm_wait are installed in /usr/local/bin and the path is set in
the bashrc. When I enter
svn commit .
Textmate opens up the temp file svn.commit, however when I save svn
doesn't seem to recognize the file status, still saying the file is
unchanged. What am I doing wrong here? Thanks,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
If you have TextMate 1.1b11 installed and is coding with PHP, then
please visit [ http://www.imediatec.co.uk/tm/phpcc/ ] and help out
testing a new PHP Code Completion solution for TM.
All 3653 php functions supported with completions, snippets, tooltip
information and full PHP Online documentation inside TM.
Please note! This bundle is still in development, so please let me
know what you would like to have added, changed, etc. etc.
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
So I'm trying and trying and just can't seem to get .rxml files to
open (in Version 1.1b11)... not at all! I checked the file
association and I've set it to TextMate, but it won't let me drop the
files on its icon nor click to open them from the drawer. It's very
strange.
By the way, the .rxml files are for Rails, so they're basically Ruby
code. I did eventually get ONE .rxml to open in tm (but only one!)
and it didn't take on the right formatting, so maybe the program
isn't aware of them at all? Just kinda weird.
Any ideas on how to get these files to open?
Best,
Raymond
--
Raymond Brigleb, Needmore Designs
Website http://needmoredesigns.com/
Email ray(a)needmoredesigns.com
Phone 503.490.4595
Hi, I'm an avid user of the PHP-Smarty bundle that was included in
Textmate 1.0 and is one of the main reasons I'm using TextMate. This
bundle worked fine in the 1.1 betas until beta5 when the new "theme"
system was introduced.
As such I was wondering how much trouble it would be to convert this
bundle to the new system and if there's a guide of some sort. If given
permission from the original author I could probably add it to the
bundle repository as well if I get it working.
Regards, Joakim Bodin
--
Joakim Bodin <joakim.bodin(a)gmail.com>
http://www.ripley.se
"That's what comes with yellow cross on blue."
Still experimenting with the new theme system, I came across this
problem in the default PHP bundle : I want to hilight "->" operator,
like in :
$smarty->template_dir
Tried to add my own, no success (the ctrl-shift T tooltip says the
scope is source.php).
Then I realized the right syntax existed in the Bundle :
<dict>
<key>match</key>
<string>(::|->)|\b(abstract|cl(ass|one)|extends|function|i
(mplements|nterface)|new|parent|self|__(autoload|c(all|lone|onstruct)|
destruct|get|s(et|leep)|toString|wakeup))\b</string>
<key>name</key>
<string>keyword.construct.php</string>
</dict>
(note the -> )
It seems correct, but it turns out that "->" is not matched in the
string "$smarty->template" but it is when it's surrounded by spaces :
"$smarty -> template".
Am I wrong to say it looks like a parsing bug ?
Dominique.
Hi to all,
I'm finally moving to TextMate ß11 and I'm experimenting with some
personal customization.
I like to keep variables black and make language related very
contrasted with blue and red colors, ... including "equal" variable
affectation symbol, like in :
$a = 2;
Question : what scope the "equal" symbol should belong to ?
Same question with the "->" symbol like in: $this->property .
Thanks.
Dominique PERETTI
http://www.lachoseinteractive.net/
SvnX, a GUI for svn on Mac OS X (http://www.lachoseinteractive.net/en/
community/subversion/svnx)
Hi all,
I gave TextMate a try, I absolutely love it's feel. I'd definetly buy
it, if only it would support more text encodings besides Unicode and
iso-latin-1. Specifically, as a hungarian I'd need iso-latin-2
(iso-8859-2), but I assume there other people from other parts of the
world with similar concerns, needing different encodings.
I think SubEthaEdit solves this right, with an editable encodings list,
and an option to either convert the current text to the new encoding,
or "reopen" the text with a new encoding.
I'd be glad to help out with testing or coding or whatever to make this
work.
cheers,
Zoltan Varady
I tried dragging an image into the release notes (after setting the
theme to Markdown>Markdown) and got a bunch of binary data. Is this a
bug or did I not misunderstand the release notes? ;
Something that has been driving me crazy is that only when I am on an
XHTML page I could use XHTML snippet and only when I am on Rails
pages can I use Rails snippets. I should be able to use Rails
snippets in XHTML pages.
How can I got about doing that?
I was wondering if anyone had got the built-in HTML drag commands for
<img> and <css> to work in Textmate 1b5?
Currently if I drag a html or PDF file from the project window into a
HTML file I'm working on it will create a <a href=""> link, but if I
drag an image file or css file onto the HTML file, Textmate will insert
the raw source of the dragged file.
Any ideas where I am going wrong? I am using the following drag
commands (built-in):
<img>
File Types: png, PNG, jpeg, JPEG, jpg, JPG, gif, GIF
Commands: img=$TM_DROPPED_FILE alt=`echo $img | perl -pe
's/^(.*\/)?(.*?)(\..*)?$/$2/g' | tr '_-' ' '` sips -g pixelWidth -g
pixelHeight $img | awk '/pixelWidth/ { w=$2 } /pixelHeight/ { h=$2 }
END { printf("<img src=\"'"$img"'\" width=\"%d\" height=\"%d\"
alt=\"${0:'"$alt"'}\" />", w, h) }'
<css>
File Types: css
echo "<link href=\"$TM_DROPPED_FILE\" rel=\"stylesheet\"
type=\"text/css\" />"
Apologies if this has already been covered.
Mike
On running command "Markdown Preview" I get the following error:
/bin/bash: line 1: /lib/html.sh: No such file or directory /bin/bash:
line 20: htmlHeader: command not found
/bin/bash: line 22: /bin/Markdown.pl: No such file or directory
/bin/bash: line 24: htmlFooter: command not found
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi,
Would it be possible to have included files in code-completion
settings in the theme editor.
I'm thinking of making property-specific completions for the css
syntax, and it would be helpful if frequently used sets of keywords
could be included as often as necessary to avoid it being really
massive. (things like colours, units, top left right etc.)
Also, on a similar note, would it be possible to block general
completions for a specific scope, ie. have a property such as
"use_general_comps" which could be set to 0. I find that pressing
escape often brings up options that shouldn't be present in the
particular scope, but are in other parts of the document.
eg:
.blah {
font-color: black;
}
#foo {
display: b<esc>
}
Pressing escape after "display: b" would offer "block", as part of
the 'display' property's completions, but would not suggest "blah"
from the class of the other selector, or even "black" from the font-
color's value. In a big file you can end up going through loads of
unnecessary stuff when one press is all that's necessary. (I know i
could type "blo" and then esc, but that's more typing).
In my opinion, for the way I work, this would be a very fast system
of coding.
Thanks,
Max
This is a lazy request.
Hoping towards moving more of my information into text files, I would
like a way of directly launching resources from URLs in a text file.
Imagine that I copy a bit of email that includes a web URL or a mailto
link to an inbox.txt file. When I go through inbox.txt, I would like
to just hit a key combination when the cursor is on the URL and have
it send to my browser or my mail program.
emacs-wiki/planner does this well (it even highlights clickable URLs).
Outside TextMate, one can also use ICeCoffEE
(http://web.sabi.net/nriley/software/), but that doesn't work in
TextMate.
So, how hard would it be for someone to write a command thingy to make
such functionality available in TextMate? I suppose one would have to
identify the beginning and end of the URL that the cursor is on and
send it to the system's "open" command. I don't have the time to
investigate this myself.
-- Kai (http://semantics-online.org/geek)
It's been a while, but I've finally got some free time to improve the
Markdown bundle. I see brad and duff have done most of the hard work
of getting the bundle to work with the new syntax selection (thanks
guys!), so what I'm looking for is requests for further improvement.
What are you guys using it for? What snippets, commands, etc would be useful?
I'm also going to put some time into improving the regular expressions
(esp. with the new regexp toolkit) and hopefully will be able to do a
better job of matching some of markdown's more complicated structures
(eg. lists and code blocks).
Hadley
hi there,
I use tm as editor for subversion commits from the commandline (as
opposed to from within TextMate) and as of lately, the messages I
edit in tm somehow aren't saved for the svn command... after saving
and closing the document window svn prints:
tomster@Burroughs# svn ci
Log message unchanged or not specified
a)bort, c)ontinue, e)dit
any idas?
thanks,
tom
--
Tom Lazar
http://tomster.org
In the HMTL bundle, and in the XHTML bundle as well, there are snippets
like this:
<h1>${1:`echo $TM_SELECTED_TEXT`}$0</h1>
activated via a tab trigger, "h1" in this case. I am completely missing
the point here. Why is the echo command there? How can there possibly
be a selected text when activating through a tab trigger?
The way it is right now, if I type h1, press tab, type my heading, and
press tab again, the heading is selected. Was that the intended
behavior? If so, could someone give me an example of how this is
usefull? I haven't played much with html, so I might just be missing
something obvious here.
If this is not the intended behavior, should we change all those
snippets to simply <h1>${1:heading}</h1>$0, or <h1>$0</h1> ? Are these
snippets redundant in the presence of Ctrl-space, and if so would it
make sense to have them have a slightly richer outcome, like <h1
class"$1">... ?
Ok, enough questions for now,
Haris
Folder exclude patterns stopped working in beta9 for me.
!(.*/\.[^/]*|\_darcs|vendor\/rails|CVS|~\.nib|\.(framework|app|pbproj|pbxproj|xcode|bundle))$
but both
_darcs and vendor/rails show up and are included with command-t
--
Tobi
http://www.snowdevil.ca - Snowboards that don't suck
http://www.hieraki.org - Open source book authoring
http://blog.leetsoft.com - Technical weblog
Hi,
I've just upgraded to b9. In project mode (otherwise it does not
occur) if I type a ~ or ´ TextMate offers to delete the file with
the "Would you like to move the selected files to the Trash?" dialog
box.
I did an update svn checkout, trashed TextMate preferences, and tried
in two different machines (running Tiger). I had to go back to b8.
Any hints?
Regards,
Rui
Whenever a LaTeX document has sectioning commands, I get the following
in the console:
TextMate regex error: undefined group option
pattern: \{[^{}\n]*(?R)?[^{}\n]*\}
Don't know if it's the expected behavior or not, thought I'd report it.
( I also get various messages of the form "TextMate debug: $1 bits
used" upon exit, where $1 is a number depending on what bundles have
been loaded, but somehow I don't feel that worried about that. )
Haris
So I wanted to open souce in Safari in TextMate even after javascript html
injection, if any one is interested you can add this to the scripts menu, I
pipe it through tidy though one wouldn't need to.
sam d
--start
tell application "Safari" to do JavaScript "document.body.outerHTML;" in
first document
set s to the result
set filename to random number from 1 to 10000
set the temp_file to ((path to the temporary items folder) as string) &
filename & ".html"
open for access temp_file with write permission
write s to (temp_file as alias) as string
close temp_file
set f to POSIX path of temp_file
do shell script "tidy -i '" & f & "' '" & f & "'| ~/bin/tm -a"
--end
Suppose you have two snippets, like:
\\begin{${1:name}}
$2
\\end{${1:name}}
and
\\emph{${1:emphasized text...}}
and suppose we want to insert the second snippet while editing $2 of
the first snippet. Then the snippet will not expand. On the other hand,
working only with the first snippet, once we are done editing $2 and
press tab, we will conveniently move out of the snippet.
One the other hand, we could have the first snippet as:
\\begin{${1:name}}
$0
\\end{${1:name}}
This has the advantage that the second snippet will work while editing
$0, but the disadvantage that tabbing will no longer take us out of the
first snippet.
Questions:
1) Is there a workaround to make both things possible?
2) More generally is it possible, or planned in the future, to support
activating a new snippet while in the process of completing another
snippet?
3) If there is no workaround, do people have a preference on which of
the two situations is more useful?
thanks,
Haris
Hi,
I'm setting up my environment on Tiger from scratch and TM is giving
me lip with the "Pipe text through" in the Web Preview. Markdown.pl
lives in:
~/usr/local/bin/Markdown.pl
which i what I've placed in the Pipe through field. Permissions on
the script are correct: chmod +x /usr/local/bin/markdown.pl
TM tells me: "/bin/bash: line 1: /Users/tim/usr/local/bin/
Markdown.pl: No such file or directory"
by .bash_profile has: export PATH=$PATH:/usr/local/bin:/usr/local/
php5/bin:/usr/sbin
in it. Any ideas. I probably missing something really basic.
Thanks,
-t