Tinkered around with Markdown today, found it quite enjoyable to use.
Mostly. Where I found it lacking is when Markdown formatted text is
within a div block, what with Markdown not working within block-level
tags.
Lookign for a workaround, I discovered [PHP Markdown Extra][1] by
Michel Fortin, a script which expands the Markdown syntax to allow one
to use Markdown within block-level tags. Is there a way to use that
script within TextMate?
[1]:http://www.michelf.com/projects/php-markdown/extra/
For those interested in seeing the problem, I've included the samples
below. Pop them into a TextMate document composed in the Markdown
langauage. The first will convert as I would like properly, the
second, well, not so much.
**Markdown, Working**
example
=======
[markdown][1]
[1]:http://somesite.com/
**Markdown, Not Quite Working**
<div>
example
=======
[markdown][1]
[1]:http://somesite.com/
</div>
Regards,
Brooks
When editing CSS (and possibly, other things as well) I find myself
wanting to invert command+return behaviour.
At least here, command+return will hop to a new line without breaking
my current line at the caret, while return will hop to a new line
taking with it all the contents right of the caret (like always). I'd
like to invert this somehow.
Also, I totally love how typing : in css gives you the smart ;
ending, but I'd like a space after the : as well, how?
thanks
Andreas
I like it, lots :)
However, one little detail; I'd suggest changing the each snippet
from each(function(${3:this_one}${4:,i}){$0}${5:.bind(this)}); to
each(function(${3:this_one}${4:,i}) {
$0
}${5:.bind(this)});
that is, "uncompress" it so to speak. Also, I'd like to change
this_one to el or element, since I usually iterate over html
elements, but that's just my own things.
______________________
Andreas Wahlin
Webbutvecklare
Webbhuset AB
Östra Hamngatan 45, 411 10 Göteborg
Telefon: 031-339 19 19, Direkt: 031-739 18 20, Fax: 031-711 12 20
www.webbhuset.se
Privileged/confidential information may be contained in this message.
If you are not the addressee indicated in this message (or
responsible for delivery of the message to such person), you may not
copy or deliver this message to anyone. In such case, you should
destroy this message and kindly notify the sender by a reply email.
Thank you.
hi,
is it possible to split the editwindow horizontally ?
so i can edit on place while i can see an other position on this
textfile ?
and is it possible to arrange more than one file on the monitor ?
automaticaly ?
Thanks for your Help
The Maverick
Sebastian
eMail: themaverick(a)themaverick.de
Web: www.themaverick.de
Hi!
Yesterday i released a new version of the GetBundle with some small
changes.
And i posted a page on my blog where you can download it:
http://sg.validcode.net/stuff/textmate-getbundle-bundle
Also i want those of you having a Intel mac to help me out, i need a
universial binary of svn that works on both.
Thanks
Sebastian Gräßl
-------------------------------------------------
http://sg.validcode.nethttp://www.kingofthelist.com
Hi,
Just thought I'd let everyone know that I've made a new app for
use with TextMate. It is open source and described here:
http://www.cse.unsw.edu.au/~willu/ODBSuite/
Is is still early days and has many rough edges, but I think it's
useful. I'm releasing early - we'll see if I have enough time to
release often. :)
The app is a command line app, odbeditor. It acts like the 'mate'
command line program, but has a few advantages (and some
disadvantages too :)
usage: odbedit [-h] [-e editor] [-s saveScript] [-c closeScript]
filename [filename ...]
- It can be run from a remote shell. This means that you can ssh
into your box and start TextMate remotely. (Yes, there are uses for
this - it is the main reason I wrote the thing :)
- It can call out to other scripts when the program is saved or
closed (so you could scp the file somewhere, just to pull a random
example out of the air.)
- It will work with any ODB Suite editor (i.e. any editor that
works with those FTP programs like Cyberduck.)
Be well,
Will :-}
In my projects I have many 'todo.txt' and 'readme.txt' files.
I cannot from the title be sure which file I am looking at.
It would help if I could see where its located in the project
by just looking at the window title.
Thanks :-)
--
Simon Strandgaard
The root item in the project drawer, is wasting valuable screen space.
all the sub-items is indented by ~20 pixels.
20 columns * ~700 rows = 14000 pixels wasted.
The name of the root-item can be seen in the window title, so its
redundant to have it in the project drawer as well.
Well I could just hide the project drawer...
Thanks :-)
--
Simon Strandgaard
...and I'm pretty confident it doesn't get to the "view." Not much
activity to report: it brings up the html window which says
"Compiling LaTeX...." and then it thinks for a little while and then
textmate quits entirely.
Any thoughts? Thanks!
(I'm restoring my machine, so this is my restored home folder with a
reinstall of TextMate, if that might be the source of the errors
somehow.)
You can always command-click the window title. However I agree it
would be nice to see the filepath, maybe make this an option in the
preferences.
Until then, you can always set up a key command, here's what I did
(using growlnotify)
/usr/local/bin/growlnotify -n "/Applications/TextMate" -I "/
Applications/TextMate.app" -t "$TM_FILEPATH" -m "Is the current path
for $TM_FILENAME"
sorry, this is an oldie. but it didn't reach the list, and i just got
around to setting up a throwaway list address.
> I'd love to see three new items in the Automation submenus:
>
> Replay Macro > Replay [name of last macro selected]
> Insert Snippet -> Insert [name of last snippet selected]
> Run Command -> Run [name of last command selected]
+1 (or plus 20 if i have more than 1 vote)
this would be really handy (i know this, because i've used it,
heavily, in photoshop).
i'd write it myself, but i don't see a place to hook it in.
> I'm thinking the best solution might be to set up passwordless
> authentication via SSH and set the remote computer details in the
> script?
That's the way to go. You can run a command on a remote server like
this:
ssh user(a)host.com 'echo "I'm on the server!!!" '
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
allan:
in the earlier days of textmate, i was able to send to
textmate(a)lists.macromates.com with a bogus address (trying to avoid
spam).
that doesn't work anymore.
for the sake of those who read the archives, can you document the
access restrictions to the mailing list?
either in a reply, or even better, on the community page.
would be nice to have a way to send without being subscribed, if you
can think of one. a bogus subscription address that's allowed. or a
magic text cookie of some sort in the body of the message (probably
shouldn't be 'viagra' =).
unrelated, thank you:
>> a fix for the 'path of document' that's in the dictionary would work.
>
> FYI this has been near the top of my to-do for some time now
great. and congratulations on your major award.
> You are not running this as a normal TextMate command?
no. from the shell.
this is what he wants.
http://www.macosxhints.com/article.php?story=20060719155640762
i've got some handy alias.
alias cdf='cd "$(osascript ~/bin/scripts/cdf.scpt)"' # cd to current
finder dir
alias cdb='cd "$(osascript ~/bin/scripts/cdb.scpt)"' # cd to current
textwrangler dir
...and so on.
i really want one for textmate, but i've found no way to do it. not
having one for textmate is really throwing a kink in my shell
workflow. i'm just about to write an applescript to change to
textmate, system-event some obscure key combo, and switch back to
terminal. please don't make me kludge.
a fix for the 'path of document' that's in the dictionary would work.
or, if it's easier to implement, have mate --pwd return textmate's
current directory.
the mate --run-arbitrary-bit-of-a-bundle thing that's been discussed
would do the trick, too. i suspect that's way in the future, though.
best editor ever, thanks.
-- this doesn't work:
tell application "TextMate"
set p to path of document 1 of window 1
POSIX path of p
-- nothing
end tell
When coding, I prefer to have things like this:
something( "blah" );
Rather than:
something("blah");
To accomplish this, I had created a scope called "meta.parentheses"
which only applied if the cursor was between empty matching
parentheses. I then had a snippet, with the spacebar as the key
equivalent and meta.parentheses as the scope, that would insert
[space]$0[space]. This made the spacebar behave normally inside
parentheses unless they were empty, which is what I wanted.
The problem: I noticed this morning that by adding the
"meta.parentheses" scope to a particular Language Grammar, I wasn't
getting updates for that language (my local modified copy taking
precedence).
Now, I probably set this up prior to when TextMate started storing
things as deltas. Is it possible that if I duplicate the change, I
will still see updates to the grammar in the future with my delta
applied?
Or perhaps a better question: I had added my new scope to the PHP
grammar, but I'd really like the behavior in all "text" and "source"
contexts. My searching of the archives led me to some discussions of
applying a snippet to all scopes, but how can I add a scope to all
languages (without missing out on updates)?
Thanks.
Rob
I've been doing some searching today and haven't come up with much
useful information on the subject, so I'm hoping someone here might
know how to add highlighting to just the <?php , <? & ?> tags? I
tried using source.php, but obviously that's too general.
Also, on this topic, is there any place to find good documentation on
the available scope selectors?
Thanks, -Jeff
When I have directory open (in drawer) with files I work on, I create new
document with cmd+N (I'm too lazy and forgetful to hit Cmd+Shift+N ;).
When I save this document in project's directory, it remains open in TM as
an individual file, with it's own window. Even if I open the same file by
clicking in drawer, separate window remains separate and I end up same
document in both tab and window.
Is it possible to automatically "tabify" documents when they're saved in a
directory that's visible in drawer of some open project?
"Open" command does that already.
--
regards, porneL
Hi,
Was wondering if someone could help me with this I've tried but cant
seem to get it working, what i want is to get the text in the example
that reads "THIS SHOULD BUT DOESN'T" to get colored as a comment, (this
is in the scheme bundle),
; THIS GETS COLORED AS A COMMENT
(define (np n m)
; THIS SHOULD BUT DOESN'T
(if (or (= n 1) (= m 1))
1
(+ (np n (- m 1)) (np (- n 1) m))))
Thanks.
Hi,
Is is possible to create a bundle command which would run a specified
command to a remote computer via ssh? I am running Mac OS X, and I use
Samba + ssh to work on my dev environment which is a Linux box.
I repeatedly have to run a command to refresh the environment to check
changes. I tried using quicksilver and the terminal plugin to send the
command, but I couldn't figure out how to have it point the command to
the active terminal window which was already ssh'd to dev box.
I'm thinking the best solution might be to set up passwordless
authentication via SSH and set the remote computer details in the
script?
best,
Charles
Hi everyone,
I've made myself some folding markers for Fortran which look like this :
foldingStartMarker = '(^[\t ]*((?i:real|complex|integer)(.*)\s)*\b
(?i:subroutine|program|module|function)\b(.*)$)|(^\s*\b(\w*)\s*:\s*
\b(?i:do)\b|^\s*\b(?i:do)\b)|(^\s*(\b(?i:IF)\b)(.*)(\b(?i:THEN)\b))|(^\s*
\b(\w*)\s*:\s*(\b(?i:IF)\b)(.*)(\b(?i:THEN)\b))';
foldingStopMarker = '^\s*\b(?i:end\sprogram|end\sfunction|
end\ssubroutine|end\smodule|endif|enddo|end\sif|end\sdo)\b';
They seem to work quite allright except for the old-fashioned
do-loop of Fortran 77 which reads :
do 10 i=1,10
some code here
.......
10 continue
Note that the “continue” statement which ends the loop has the
label “10” which matches the loop one.
I've no idea how to implement folding markers for this syntax and
any help is appreciated :)
TIA
Hello!
I am using the Blogging->Markdown-Template. The preview looks all
right. But when I post to my wordpress blog, the Markup code isn't
converted to html.
Any idea?
greetings
Helge
I thought it might be interesting to see what themes people find best
for their various tasks. I do a lot of writing in Markdown and
Multimarkdown an like using Sunburst for that (my past favorite for
markdown was twilight). When I am writing html code, I prefer slate.
Robert
Howdy.
Currently textmate supports Descendant selectors and Grouping.
I would like to request support for Child selectors as well.
That would be like "string>source" instead of "string source"
<img style="<%= "stuff and #{ "things" }" %>" />
the word "things" is scoped as "meta.tag string source string source
string"
The Descendant selector "meta.tag string" affects both of the tag
attribute string and all of the embedded source strings.
But if it were a Child selector of "meta.tag>string", it would only
affect the tag attribute string.
thomas Aylott—subtleGradient
I'm getting this error in GTDAlt, I don't know why:
/tmp/temp_textmate.Ti4Kga:2:in `require': No such file to load --
date (LoadError)
from /tmp/temp_textmate.Ti4Kga:2
I haven't changed my ruby setup, I haven't changed my TextMate setup.
This is annoying.
-ryan
Did that happen to anyone before?
When I switch from HTML to PHP files, TM doesn't switch the syntax
highlighting automatically anymore... If I select it from the
language menu I get my syntax coloring, but then switching back to
HTML, it doesn't revert back to HTML highlighting... I constantly
have to manually switch the language from PHP to HTML...
I tried to look into the bundle and PHP doesn't have a "filetypes"
but I don't think it's supposed to anyway right?
Plus I thought the HTML bundle included the PHP one no? Or did that
revert back to separate languages in the bundle editor?
Thanks for any suggestion
- Yann
.........................................
Yann Bettremieux
Multimedia Producer
m i n i m a l d e s i g n
244 Fifth Avenue
Suite P233
New York, NY 10001-7604
USA
tel / fax: 212.931.8525
email: yann(a)minimaldesign.net
site: http://minimaldesign.net/
Somehow that recent patch to allow to set the date in Wordpress
actually made things worse: Now every time I post the same entry that
date moves back by 5 hours... The date header is show like this:
Date: 2006-08-04 15:15:54 -0500
and if I post that entry again it changes to:
Date: 2006-08-04 10:15:54 -0500
Wordpress is set to show times as UTC -0500.
Gerd
In a html document the <style> tag seems to be included in the scope
of source.css.embedded.html whereas surely it isn't css at all, only
the contents between the tag are css.
Is there an easy way for me to fix this?
Thanks
Ed
Hello List (first time poster),
I continue to receive this error when attempting to fetch posts from a
WordPress blog at 'thenormalfamily.net'
/usr/local/lib/ruby/1.8/xmlrpc/client.rb:546:in `do_rpc': HTTP-Error: 302
Found (RuntimeError)
from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:420:in `call2'
from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:410:in `call'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/
Support/lib/metaweblog.rb:31:in `getRecentPosts'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:545:in `fetch'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/progress.rb:11
:in `call_with_progress'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:544:in `fetch'
from /tmp/temp_textmate.x9FaQW:3
The confusing part is that I'm having no problem retrieving posts from other
WP blogs with the exact same configuration.
I have gone to the extent of reinstalling the blog from the DB on up. I've
tried to clean my keychain of any references to this domain.
The entry in blogging.txt looks like this:
The Normal Family http://admin@thenormalfamily.net/wp/xmlrpc.php
There are other entries in the file with the same format that work fine.
Can someone help me decipher the error message?
Thanks,
Dan J.
--
Daniel Jewett
http://www.solidether.net
dan(a)solidether.net
Hey,
First congratulations to Allan on a well deserved award... :)
Now, have you guys seen the XCode 3.0 screenshot showing the new
"ribbon scope highlighter" ?
<http://www.apple.com/macosx/leopard/xcode.html>
I think it's pretty nifty, don't you think Allan ? (hint hint hint :D)
--
Luc Heinrich - luc(a)honk-honk.com - http://www.honk-honk.com
Hi,
Thanks for the previous help. I'm a little chagrined that they
seemed obvious questions. I had looked for answers... honest. :)
Anyway, I've got another use case that I could use some help with. I
often ssh into another unix box, and occasionally need to edit a file
while I'm there. With bbedit, I had a script that would ssh back
into my mac and then open the remote file on the unix box. I'm
trying to replicate that with TextMate. The closest I've found in
the mailing list is this:
http://comox.textdrive.com/pipermail/textmate/2006-February/008384.html
My version is as follows. On the remote box I have a script called
'mate':
-----
#! /bin/sh
# Make sure we have the full path to the file
if echo $1 | egrep ^/ - > /dev/null ; then
path=$1 ;
else
path=`pwd`/$1 ;
fi
HOST=`hostname`
echo Opening $path on ${SSH_CLIENT%% *}
ssh willu@${SSH_CLIENT%% *} remoteOpen ${USER} ${HOST} "$path"
-----
On my Mac I have this script called 'remoteOpen':
-----
#!/bin/sh
remUser=$1
remHost=$2
remPath=$3
remBase=`basename $remPath`
remDir=`dirname $remPath`
tempDir=`mktemp -d` || exit 1
localfile="${tempDir}/scp:${remHost}:${remBase}"
localBackup="${tempDir}/backup"
remLoc="${remUser}@${remHost}:${remPath}"
echo "${remLoc}" > ${tempDir}/remLoc
scp -Bpq "${remLoc}" "${localfile}" && cp "${localfile}" $
{localBackup} && osasc
ript -e "tell app \"Terminal\" to do shell script \"mate -w $
{localfile}\""
if ! cmp -s "${localfile}" ${localBackup} ; then
scp -Bpq "${localfile}" "${remLoc}"
fi
rm -rf ${tempDir}
-----
I then have the following command for use within TextMate (instead of
the normal 'save'):
Save the current file then:
-----
if [[ ${TM_FILEPATH} == */scp:* ]] ; then
# this is an scp file
# it has been saved by the time we get here
# now just extract its remote name and scp it back
localDir=`dirname $TM_FILEPATH`
remLoc=`cat ${localDir}/remLoc`
scp -Bpq "$TM_FILEPATH" "${remLoc}" && cp "$TM_FILEPATH" "$
{localDir}/backup"
fi
-----
This setup saves a backup of the remote version locally. If the
local copy gets saved with the special command while you're editing,
and the data is scp'd back to the other host, then the backup is
updated. Otherwise, the difference is detected and the data is scp'd
back to the remote box when the window is closed.
Current issues:
i) Most importantly, the 'mate' command doesn't work from a remote
shell. This leads to the whole osascript workaround. Unfortunately,
while Terminal is running a script it just queues up all the input to
its other windows and waits for the script to end. This makes the
current setup significantly less useful than the same setup using
bbedit (where the 'bbedit' command does work from a remote terminal).
ii) It would be nice if there was a way to tell textmate 'run this
script when you write to that file'. Basically, make the 'mate'
command have an equivalent to the ODB Editor Suite of Apple Events.
I imagine some extra options like this:
--title WindowTitle Start editing the new file with this window
title instead of the file name as window title
--onsave scriptPath When the file is saved, this script is run
with the path to the file as an argument
--onclose scriptPath When the file is closed (or Save As... is
used to detach from the original file), this script is run with the
path of the file as an argument
and perhaps a final option:
--on-reopen scriptPath Data This is a command line option that
takes two arguments. If this file re-opened from the 'Open Recent >'
menu then the script 'scriptPath' is run with 'Data' as an argument
to get the path of the file to open.
This set of options would allow third parties to implement the
much-requested 'sftp' feature, as well as any other file access
method they wanted to.
Cheers,
Will :-}
P.S. I know - just use transmit or Cyberduck. The problem is that
they require me to connect from the mac. I could modify my
'remoteOpen' script to use them instead of scp, and that would solve
the 'detecting save' problem (point ii), but it wouldn't solve the
worst problem, point i.
I'd like to be able to set the scope of triple quoted string in a
python file to be html. I'd also like to be able to do it on a per
project basis (but entirely if necessary).
I'm doing lots of TurboGears programming at the moment and the only
time I use triple quoted strings is for html fragments, so it would be
great if they formatted as html and all the html snippets worked in
them.
Does anyone have any ideas how I can do it?
Ed
After thomas aylotts update to the CSS bundle, I've tried to run the
update bundles command from the GetBundle, but nothing happens. I
tried updating the Textmate supports, and then it chewed a bit then
spat out lots of text saying what stuff got updated, but when I try
to update bundles, nothing seems to happen.
Andreas
My escape key doesn't do autocompletion anymore. If I choose the menu
option for it, that works, and it shows the escape character next to
it. I've checked that the escape key works (it closes the Find window
for example).
Does anyone have any ideas how I can make it work again?
Thanks
Ed
In TextMate 1.5.3 (1202) the shortcut to see the DB schema of a model
in Rails (that's a recent addition, see Rails -> Models -> Show DB
Schema for Current Class) coincides with the one for "Save Project
As...".
-- fxn
Hello all,
I'm starting to set up my environment to use TextMate instead of XCode's built in editor.
The one thing I miss from XCode is its Code Sense. I really like having a quick reference of the API command I want. I know I want, say, to use CFBundleCopyResourceURL(), but I don't remember what to feed it.
Since XCode doesn't provide a way to query for that information (thanks, Apple), I had to get it "another way". It seems that the easiest way to do that is to grep the framework header files myself.
My script takes the selected word, finds it in the 10.4u SDKs, then makes a txmt:// style URL out of it, so you can click the link and go right to the proper line in the proper header file.
The script is posted below. Hopefully it will be useful to you Carbon programmers out there, or maybe the kind Unix hands will see some optimization I can use to make it faster.
_______________________________
find -L /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/*/Versions/Current/* | xargs grep -I -n $TM_SELECTED_TEXT | python -c "import fileinput, re
ourRe = re.compile(r'(.+?):(.+?):(.+)')
for each in fileinput.input(['-']):
res = ourRe.match(each)
if res:
print '''<p><a href='txmt://open/?url=file://%s&line=%s'>%s</a></p>''' % ( res.group(1), res.group(2), res.group(3) )"
_______________________________
Enjoy all!,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
Hi folks:
I am new to textmate and to the list. I have spent awhile with the
manual but either I missed this or it is not in there (or maybe it
can't be done).
I keep all my zsh configuration files in /Library/init/zsh
These include various files that are sourced, as well as shell script/
function files. Since the latter have #!/bin/zsh at the top,
textmate does the right thing, but I would also like the other files,
that set up my environment, define aliases, and so forth, to use the
same syntax highlighting, even though they do not have #!/bin/zsh at
the top.
Is there a simple way to do this?
Thanks.
Bill
I thought it might be for choosing images but I have no clue, and I
can't seem to get it to do anything besides open an output window
with an error when I invoke it.
Can anyone help clue me in?
Neil
---
hushBOOM design
Web design, development & hosting -- Writing & Editing
http://www.hushboom.com/
In hopes of figuring the language-sensitive parser out, I've been
trying to make a grammar for .ini files. It appears my
incomprehension is stark, as I can't get any satisfaction out of the
grammar
{ scopeName = 'text.ini';
fileTypes = ( 'ini' );
foldingStartMarker = '^\[';
foldingStopMarker = '.(?=^\[)';
}
... which I think specifies a folding range from the opening [ of a
section, running to the character before the [ that begins the next
section. TextMate puts a fold marker next to the section line, but no
matching marker at the bottom of the section. Clicking the fold
button has no effect.
(Yes, the stop marker doesn't account for the end-of-file that closes
the last section, but one challenge at a time.)
What am I missing?
-- F
Hello there
Has anyone thought about a language definition for the Lout document
formatting system?
I may write one myself, but I'm a bit nervous about it since Lout has
an awkwardly wide range of ways of indicating the beginnings and ends
of things.
For example, a document header for a report might look like:
@SysInclude { tbl }
@SysInclude { report }
@Report
@Title { Blah blah }
@Author { Alaric Snell-Pym (alaric(a)snell-systems.co.uk) }
@Institution { Snell Systems }
@InitialLanguage { EnglishUK }
@DateLine { June, 2006 }
@PageHeaders { Titles }
@InitialSpace { tex }
@Abstract { In this specification, we describe a blah blah blah. }
//
...with the mysterious "//" ending the metadata section.
Things like chapters, appendices, sections, subsections, and so on
are delimited like so:
@Section
@Tag { documentcontrol }
@Title { Document Control }
@Begin
...content...
@End @Section
While paragraphs don't have an explicit end, they are just separated
with "@PP" markers:
@PP
This is a pargraph of text, blah blah blah
@PP
This is the next paragraph! Whodathunk?
Figures, and many other such block-level objects, have no defined
ending:
...text...
@Figure
@Caption { The prototype }
@IncludeGraphic prototype.eps
...text...
While bulleted lists have an explicit @EndList marker, but each list
item is delimited with curly braces:
@BulletList
@ListItem {
3x resistor at 4p each
}
@ListItem {
1x AVR micro-controller at @Sterling""1.92 each
}
@ListItem {
1x IrDA transceiver module at @Sterling""2.33 each
}
@ListItem {
1x 3.6v NiMH battery at @Sterling""2.62 each
}
@ListItem {
2x LED at 25p each
}
@ListItem {
1x Charging connector at 57p each
}
@ListItem {
1x socket for AVR micro-controller at 5p each
}
@ListItem {
1x PCB at 9.75 Euros each, or about @Sterling""6.67
}
@EndList
It's all rather messy! I suspect I'd be busy for days finding new
ways to delimit scopes!
TIA,
ABS
--
Alaric Snell-Pym
Work: http://www.snell-systems.co.uk/
Play: http://www.snell-pym.org.uk/alaric/
Blog: http://www.snell-pym.org.uk/categories/alaric/
Any snippet that can type all that ugly code for me? I tried
dragging the .swf into my html like you do with images but that just
wrote some *really* ugly code (binary data). Do I actually have to
fire up - gag - cough - choke - Dreamweaver to do this?
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
Hi Sean,
> Thanks Ben -- I think my situation may be different though. My app
> isn't writing any logs.
>
> Any other thoughts?
>
> Sean
I have the problem on my iBook, but not on my Mini. TextMate rescans
the entire project directory structure for changes *every* time the
window is focussed. To my knowledge, there is currently no way to
turn this behaviour off, except to create the project by dragging
individual files into the project, instead of whole directories. It's
a PITA, but my understanding is that will stop the project reloading
on focus. At the very least, trying it that way would help you figure
out if this is a new problem or not.
Regards,
Chris.
Ahh...see I *knew* I was missing something obvious. Thanks.
It's a little strange though that some HTML bundles (like control-
shift-W) work fine in Plain Text mode, but control-shift-L doesn't.
That's what was throwing me off.
------------------------------------
Todd Dominey :: Dominey Design
http://domineydesign.com/http://slideshowpro.net/http://whatdoiknow.org/
I can't figure this out...
Here's some text:
(this is a parenthesis in quotes "(")
If I put the caret before or after the final quotation and choose
Select>Enclosing Brackets, TextMate selects the second opening
parenthesis and the closing parenthesis. Also, no text is selected
with the caret anywhere else.
How can I teach TextMate that parentheses between quotation marks
shouldn't be considered for a match? I want something like "Ignore
parentheses that are in strings" but i can't see how to do that...
Thanks
--
(<http://newlisper.blogspot.com/>)
Hello,
I am contemplating to buy TextMate, it is by far the most competent
and well designed editor I've seen for OS X - and I've been looking
for a replacement for Emacs for the last couple of years* - but
before really hitting the credit card I would like to find the answer
to a few questions that I have not found in the documentation:
1. A very handy feature of Emacs is the just-one-space command; that
is, all spaces and tabs around the point is reduced into one space.
E.g. (the bar sign is the cursor); "x | x" becomes "x |x". Is there
such a command within TextMate? If not, any suggestions for how to
create one? I did an experiment, I created a new command and had it
running perl with a regexp on the line. The problem is that I want to
have it to be run around the current position, not all spaces on the
line. Is there a way of sending the current cursor position to the
command? I.e. "x x | x" shall become "x x |x", not "x x |x"
or something like it.
2. Indent region: Something that I frequently uses is the fill-
paragraph and friends of Emacs; TextMate's Reformat (^Q) isn't as
advanced and is not language/bundle aware. i was thinking of porting
the Lisp code into e.g. perl and create a new command for it, but
before I spend any time on it I would like to know if there is
something similar already implemented that I've missed? (I usully
write HTML, Shell Scripts and Perl in TextMate but will migrate my
LaTeX files and other programming languages to TextMate as time passes.)
3. When I write HTML I would like to have e.g. lists looks like this:
<ol>
<li>AAA Lorem ipsum lorem ipsum lorem ipsum lorem ipsum
BBB lorem ipsum lorem ipsum lorem ipsum lorem ipsum
CCC lorem ipsum lorem ipsum lorem ipsum</li>
</ol>
But, I do not want it to add whitespace before the BBB and CCC, I
would like it to wrap lines visually but the file should still look
like this:
<ol>
<li>AAA Lorem ipsum lorem ipsum lorem ipsum lorem ipsum BBB lorem
ipsum lorem ipsum lorem ipsum lorem ipsum CCC lorem ipsum lorem ipsum
lorem ipsum</li>
</ol>
Is this even possible? The visual presentation and the physical file
would then differ and I don't think that makes sense for a /text/
editor. (This is not available in Emacs AFAIK but it is something
that I miss.)
Thank you.
/Jonas
-----
*) I'm fed up with the lack of proper Unicode support, no native Aqua
build that isn't a hack and the reliance on X11 where cut-and-paste
between X11 and any other OS X application s*cks. Don't get me wrong,
I lived inside Emacs for over ten years, I not only read
alt.religion.emacs - I also posted in it! When I say that TextMate is
a competent editor, then it is far from an exaggeration. But I don't
say that it is *the* editor. Not quite yet. :-)
the subversion status window is never the right size.
It's either too short and causes a scrollbar, or too long and wastes
space.
I request a way to resize the window with javascript.
And a way to make the body background transparent.
That way i can set the window size myself or set a default size the
height of the window.
Transparent would let you click through, obviously.
That would allow for all kinds of crazy useful stuff.
thomas Aylott—subtleGradient
Fortran and Comments
Hi,
while it wasn't a major problem to make some additions to the very
rudimentary Fortran bundle (I added some snippets and a compiler
command) I am struggling to get the "Continue Line Comment" from the
Source Package to behave correctly.
While the scope seems to be identified correctly and the "Comment
Line" commando behaves as expected, the "Continue Line Comment"
doesn't add a proper comment symbol (in this case preferably *), it
jumps to the next line but only adds a space instead of *. I have
tried to find any differences to other bundles where the commadn
works, but I can't find the missing piece.
I have already added the line
asterisk *
to the "Continue Line Comment ". But this didn't help either.
Any ideas where I have to look for the missing piece so that I get
the proper symbol instead of a space?
Thanks,
Carsten
Hello,
When I drag the mouse to select a function so I can move it, the
blank line at the end (between functions) won't select.
If I drag further the top line of the next function and the blank
line are then highlighted.
This is very annoying.
Any words of advice?
Please don't make me go back to BBEdit.
Thanks,
ml
Hello,
I just installed 1.5.2 (unfortunately deleting 1.5 on the way) just
to notice that my favorite TAB triggers for Rails no longer work!
rea gives me Ruby's reverse_each, ra gives... nothing, etc.
Any hints (or older Textmate ;-) available
TNX in advance.
This just started happening -- I *think* since the latest update
(1203) but I'm not 100% sure about that.
Almost every time I switch from some other app to TM, the cursor goes
beach ball on me for about 10 or 20 seconds before giving TM the
focus. It really sucks for web page development since I'm constantly
flipping between the browser and TM.
One thing that may be a factor is that my site is located on an AFP
share on another box on my network as a mounted volume. However, I
can edit using skedit with no trouble and no delay.
Any ideas?
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
I'd like to submit a newLISP bundle to the central mainframe... Are
there instructions anywhere on how to do it? (I downloaded subversion
so that might be a necessary first step.)
--
(<http://newlisper.blogspot.com/>)
Hi!
This issue has been bugging for quite some builds now. When using a
newer TextMate build, the current 1202 e.g., I can't get the test
cases of my Rails project to run from inside TextMate. This is what I
get when I try Command-R:
---- snip ----
RubyMate r4532 running Ruby v1.8.4 (/opt/local/bin/ruby)
>>> content_controller_test.rb
that’s nice
this is my important stuff
<strong>bad!</strong>
I am <at> the exit!
NameError: uninitialized constant Test
method const_missing
in dependencies.rb at line 123
method const_missing
in dependencies.rb at line 133
method load_plugin
in init.rb at line 1
method load_plugin
in initializer.rb at line 348
method silence_warnings
in reporting.rb at line 11
method load_plugin
in initializer.rb at line 348
method load_plugins
in initializer.rb at line 158
method load_plugins
in initializer.rb at line 158
method process
in initializer.rb at line 102
method run
in initializer.rb at line 42
at top level
in environment.rb at line 10
at top level
in test_helper.rb at line 2
at top level
in content_controller_test.rb at line 1
Program exited.
---- snap ----
Obviously it isn't able to load the test classes correctly. My Ruby
installation is in /opt/local, installed with DarwinPorts, and all
it's libraries are installed there as well. I had a look at the
RubyMate code in the bundle, but on first look it doesn't appear to
be broken somehow. This stuff worked fine in TextMate build 1112 with
RubyMate r3391, though I realized a lot has changed in RubyMate since
then ;)
Any ideas? Or anyone else having similar issues?
Cheers, Mathias
--
http://javaddicts.net/blog
"If programmers got paid to remove code from sofware instead of
writing new code, software would be a whole lot better." -- Nicholas
Negroponte
Hi,
I'm just in the process of switching from BBedit... TextMate is a
great combination of Mac UI and Unix power :). There are a few
things I've found that could be improved:
i) Having all the commands in bundles can make it quite tricky to
find things. Not sure how to improve this. I almost want an obvious
'search all commands' command.
While browsing the list, I noticed someone else's feature
request for a 'what does this key combo do' feature. I'd like to
second that. And add a request for an 'open a window with a list of
all current key combos' feature.
ii) I'm used to having a shell open. As I move around I might
want to either open files in TextMate from the shell, or do something
in the shell to a file that is open in TextMate. This leads to two
strangenesses:
- If you use the 'mate' command in the shell to open a file,
then the file doesn't get added to the "Open Recent >" menu. I think
it should (perhaps as an option to 'mate', or a preference).
- If I already have a shell open, I want to drag the document
icon in the window title bar to the shell to get the path to the
document (as you can in the finder with folders). Now, I can open a
new shell with in the same directory, and I could make a command to
copy the path to the current file. I'd kinda like the drag-and-drop
OUT of textmate option though. (N.B. you can do this with icons in a
project. You just can't do it with an individual file's icon.)
iii) While looking for a solution to the 'drag out of textmate'
problem, I searched the list and found that I could drag out of a
project. But I already had the file I wanted to edit open. I didn't
have a shell in that dir (so I couldn't 'mate .') and I didn't have a
Finder window in that dir any more. I couldn't find a way to 'make a
new project with a currently open file'. I'm sure I could make a new
command to do this pretty quickly, but it seems like something that
should already be there, somewhere.
Anyway, thanks for a great product. :)
Will :-}
Hello,
I am working on a site in ColdFusion and I would like to mitigate
this experience by using TextMate as my editor. I found broken links
to a once-existant bundle for Textmate, but I have not been able to
track it down. If anyone still has this or any other ColdFusion
bundle for TextMate, I would be most appreciative.
Thanks,
Eric O'Connell
IBA Webmaster
-
941-921-7443 x15
eric(a)bodytalksystem.com
www.bodytalksystem.com
Hi,
at the moment I have to write some code in ancient Fortran77 (don't ask ;-) ).
I am nearly going nuts about the fixed column structure a Fortran77 source
code has to (at least in my case) obey to:
column function
1 comment sign (c,*)
1-5 statement label
6 continuation sign if line wrap in previous line
7-72 actual code
The problem is that this fixed source form makes it very hard to work with any
special tab stop size, even with "Soft tabs" turned on as I don't need to
access any column between 1-5, but instead would like to go from 1 to 6 to 7
(and vice versa!).
In emacs I would be able to specifiy a tab stop list, i.e. a list with the
actual columns a tab should bring me to, e.g.: 6, 7, 11, 15, 19...
Is there any way to simulate something in Textmate? I am tired of adding and
deleting spaces manually in order to obey to that structure.
I apologize if this has already been discussed, a search in the WiKi and the
archives didn't bring up anything.
Bye,
Carsten
BTW: Congrats for the award Allan, TextMate really deserved it!
Hey guys,
I just started working with TM and its great. Given time, its going to
make my work much faster.
In my company we've created a large number of custom JSP taglibs. I
would like to be able to add those taglibs to the HTML bundle (or more
accurately create a new bundle from the HTML bundle for this). I was
trying to get my head around the language definitions and I got
hopelessly lost. Is there a tutorial somewhere that I can use to
figure out how to do this?
Thanks
Adam
In the midst of all the "this is why I don't switch", and "I switched
and love it" stories, I thought - as a brief interruption of the real
work on this list - I'd share my 5 lines. I am registered user #81. I
bought TextMate literally six hours after BBEdit, and haven't unpacked
BB since. In fact, if you take a look at the Codingmonkeys website,
you'll find my name there, as well, mentioned in one or two places.
Nonetheless, it's TextMate I stuck with. Since that day I purchased
it, I know what I did with it -
- wrote close to 120,000 lines of code (wc -l over my local repository)
- taught myself two new programming languages
- wrote two books
- a PhD thesis
- edited another book
- and co-wrote an article for a Sociological magazine based on the PhD
thesis that got me a rather prestigious award.
- wrote close to 5,000 weblog and wiki pages and entries
- wrote all my email
- wrangled a 41,000 line dataset for the thesis using Ruby and a
specialized bundle
- coded Flexbar (an addon for World of Warcraft, just about THE addon)
- and proposed marriage (don't ask)
there you have it. Not sure many Mac editors can claim they've been
used that versatilely.
Probably an easy question here. I'm trying to use the "Wrap selection
as link" HTML bundle, which has a key command of control-shift-L. I
copy a URL to my clipboard, wrap the text, and pressing those keys
does nothing. I even tried changing the shortcut, and it still didn't
work. Is there something I'm missing?
------------------------------------
Todd Dominey :: Dominey Design
http://domineydesign.com/http://slideshowpro.net/http://whatdoiknow.org/
howdy,
a while ago someone helped me setup the ctag stuff to work with the js
syntax i use:
On 11/30/05, Charilaos Skiadas <cskiadas(a)uchicago.edu> wrote: On Nov 30,
2005, at 3:54 PM, Jamal Johnson wrote:
> i've taken a look and to be honest i'm terrible with regexp's and
> could use some help. i'm trying to define a way to see objects in a
> certain format in my JS files:
>
> var CustomObject = Class.create();
> CustomObject.prototype = Object.extend( (new ViewObject()), {
> member1 : true,
> member2 : "someString",
> member3 : "anotherString",
>
> someFunction : function(){
> //doSomething
> },
>
> someOtherFunction : function(){
>
> }
> };
>
> so then in the tmCodeBrowser i'd see something like:
> Objects
> - CustomObject
> - member1
> - member2
> - member3
> - someFunction
> - someOtherFunction etc....
>
> something along those lines anyway. can one of you point me in a
> starting direction for howto setup the .ctags.tmcodebrowser file to
> do this for javascript files?
>
Try adding this to .ctags.tmcodebrowser
--langdef=javascript
--langmap=javascript:.js
--regex-javascript=/^(.*)
>
> .prototype *= *(.*)/-\1/o,object/
> --regex-javascript=/^[ \t]*(.*) *: (([^f]*)|(f[^u]*)|(fu[^n]*))[\t]*
> $/---var: \1/o,object/
> --regex-javascript=/^[ \t]*(.*) *: *function/---fun: \1/o,object/
>
> This might do something close to what you want. Just make sure to not
> ask TmCodeBrowser to sort things. With the simple regexp additions,
> you cannot recognize things in multiple lines, so there is no way of
> grouping the variable and function definitions with a particular
> object, this way at least visually they will be close to what you want.
>
> I believe that if one really wants to, one can write a parser and add
> it to the ctags source code and recompile, that is provided that Gerd
> Knops provides you the source code, or is willing to add the parser
> ofr you. I am guessing someone out there has already written a parser
> for javascript that maybe does what you want it to better, but I
> wouldn't know anything about it.
>
> I was under the impression that tmcodebrowser supported actionscript,
> which might be close to what you want, but I couldn't find it in
> the .ctags.tmcodebrowser format.
>
> Haris
but for some reason now codebrowser doesn't work at all for me, even with
simple js files. has anyone else been having issues?
i am using the most recent 1.05 release, at least that's what it says under
config. thanx!
- jamal
> >
> > ------------------------------
> >
> > Message: 7
> > Date: Fri, 23 Jun 2006 01:03:28 +0200
> > From: Allan Odgaard <throw-away-1(a)macromates.com>
> > Subject: Re: [TxMt] A TMBundle for Textpattern beta relaease
> > To: TextMate users <textmate(a)lists.macromates.com>
> > Message-ID: <F3B8D746-E6D6-428B-A2AE-690899C83B22(a)macromates.com>
> > Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes;
> > format=flowed
> >
> > On 22/6/2006, at 23:01, marios wrote:
> >
>> >> Would it be possible to include an include statement, like the one I
>> >> included in the patched version ?
> >
> > Not sure exactly which one you are referring to.
If the HTML Bundle gets something like:
{ name = 'text.html.txp';
match = '(</txp:.*?>|<txp:.*?>|<txp:.*?\s{,8}/>|<txp:([a-z]{3})_.*?/?>)';
},
then I wouldn't have to include a whole clone of the HTML Bundle.
Wouldn't that also make it more compatible with the rest of the Bundle
Suite?
It's the HTML Bundle that interferes, I couldn't find any way to tell
the HTML Bundle not to match TXP tags.
> >
> > However, you can add ?disabled = 1;? to the rule to disable it. You
> > shouldn?t prefix it with X?es, as that?ll just give run-time errors
> > (for ?language not found?.)
I should have taken a better look at the syntax rules, thanks for
pointing that out.
> >
>> >> Just one quick question, some default assorted Grammars, have
>> >> disappeared from the Bundle Editor after the last Software update
>> >> to r1112.
> >
> > Which ones?
The HTML ones. I tried This:
1)I deleted the UUID from the cloned html Bundles(assorted ones),
since that didn't led to any change, I tried:
1) I discarded all bundles, included the TXP bundle that I had created
and left in the Bundle Editor.(I did that manually, not from the Bundle
Editor)
2)I SVN updated all bundles, reloaded Bundles from command line
Since that didn't lead to any change, I double clicked on the HTML
Bundle in /Library/Applicationsupport/Bundles , but no luck.
> >
>> >> Although they are there in their default locations, they just don't
>> >> show
>> >> up in the Bundle Editor.
> >
> > Only the languages? If it is the languages you copied to your own
> > bundle, it is because you did not give the copies a new UUID then --
> > i.e. use duplicate in the bundle editor (rather than copy on disk.)
See above, sorry, regards, marios
Still didn't check out Brad Choates new
Blogging Bundle, and watch your cast, that's really terrific.
I'd better watch that in depth ASAP,
regards, marios
Hello,
For my work I need to do quite some copy and pasting of ip-numbers.
If I have a logfile open in TextMate and doubleclick an ip it will
only select the parts between the . and not the entire ip.
Would anyone happen to know a workaround, a macro or a fix?
Thanks in advance for any advice you have :)
--
Tanja
... Be a rebel. Accept your body.
When I open an existing project the directory structure appears in
the drawer while the currently selected file contents appears within
the window (which is blank when you first open an existing project).
If I have the root project folder selected (text window still blank)
I am unable to get the status of the subversioned folder ('svn
status'). In order for me to get the status of the project I must
open at least one file and then select the root project folder again
and then I can get the status. This is true for other subversion
commands as well (you need at least one file open in order to perform
subversion commands on your project).
Is this behaviour intentional? I feel like subversion commands
should work independent of whether files are open or not .. it should
work on the files/folders in the project drawer only.
Rom
Yay, for Allan, and everyone involved. i really do believe this is
totally deserved, i LOVE this App. so glad i bought it, even though i
don't have much use for it these days, apart form adding my "<a
href="http://axman6.homeip.net/blog/"><img
src="http://axman6.homeip.net/blog/wp-content/uploads/2006/08/weblogo-al7.png"
alt="Axman6" style="border: 0px;"/></a>" signature (hope that works
:s) to things, with an 'Al.' tab-trigger. but whenever i have to do
any work on my site, I'm very thankful for the Awesome TextMate.
Thanks again Allan
Cya, Al.
On Aug 8, 2006, at 11:52 PM, Ken Anderson wrote:
>... winning the Apple Design Award for Best Developer Tool!
>
>Daring Fireball reports that there was "raucous applause when this
>[award] was announced."
>
>Kudos!
Ken
--
Al.
☠☢✯☢☠
(If ^^those^^ are boxes,
you need unicode!
or a Mac)
... winning the Apple Design Award for Best Developer Tool!
Daring Fireball reports that there was "raucous applause when this
[award] was announced."
Kudos!
Ken
--
Kenneth M. Anderson | Phone: 303-492-6003
Associate Professor | Fax : 303-492-2844
Dept. of Computer Science | <mailto:kena@cs.colorado.edu>
University of Colorado, Boulder | <http://www.cs.colorado.edu/~kena/>
I'm trying to setup TextMate to automatically wrap after 72 columns, but
not having any luck. I disabled soft wraps and set the wrap columns to
72, but TM v1.5.3 is not wrapping as I type. If I select 'Reformat
Paragraph' then the wrapping works as expected.
Am I missing something?
-Ryan
TextMate is one of the best editors I have used on the Mac, and things
like its macros, snippets, and tab triggers almost make me switch right
away. Especially column-based typing is awesome.
However, there are a couple of limitations that are important enough for
me to keep me from switching. In rough order of importance:
- Function parser is line-based
The functions popup or the symbol browser (Command-Shift-T) work
line-based, i.e. they don't recognize functions such as
void foo(
int param1,
int param2)
{
}
We have a coding style that requires this layout for most functions,
so the function popup/symbol browser is next to useless for us.
I understand that this is because the regular expression based
function parser can only work line by line, but still this is one of
the most severe limitations for me.
- Loses insertion point when document is changed by another app
If another application changes a document that is currently open in
TextMate, TextMate notices this when you bring it to the front, and
reloads the changed document. This is good; however, it loses track of
where you were editing, and scrolls all the way to the top, setting
the insertion point to the beginning of the text. I suppose this is
intentional, because an existing selection may no longer be at the
right place after the other application inserted or deleted text
before the selection; however, in the majority of cases it makes more
sense to me to keep the current selection and scroll position, even if
it may be slightly off. For example, when I use TextMate for coding
but Xcode for debugging, I often fix minor typos in the Xcode editor
while debugging, and it is very annoying to have to go back to where
you were editing in TextMate after that.
- Find has no "whole words only" option
I must be missing something here. This seems like such as basic
feature of any serious text editor.
- Option-RightArrow stops too often
When stepping word by word through a sequence such as "abc / def",
Option-RightArrow stops after 'abc' (which is fine), and then it stops
*before* 'def', which is not; it should directly jump to after 'def'.
In other words, it should jump from one end of a word to the end of
the next word, skipping all non-words. Xcode and CodeWarrior do this
right (in my opinion); in BBEdit it's even worse than in TM though.
- Bundle commands should be available without an open window
Some bundle commands are already available now when no window is open
(e.g. "Relaunch TextMate"), but they don't do anything when chosen.
For some commands this would be very useful though (e.g. Xcode/Run, or
most Help commands).
- Undo is per-character
Typing sequences should be consolidated into a single undo step.
Doesn't anybody use undo for typing? This is basically unusable in
TextMate.
- Shift Left/Right should extend the selection to whole lines
I often put the insertion point somewhere in the middle of the first
line of a paragraph, hit Shift-DownArrow until I'm in the middle of
the last line of the paragraph, and then choose Shift Right; this will
insert a tab in the middle of the first line, which makes absolutely
no sense to me. Same for "Source/Comment Line". I think these
commands should first extend the selection to the beginning of the
first and end of the last selected line; I can't think of a single
situation where you wouldn't want this. BBEdit gets this right.
- Remap keys for Shift Left/Right
If there's a multi-line selection, I'd like Tab and Shift-Tab to be
bound to Shift Right/Shift-Left. I see no reason why I should have to
hold down Option too.
- Control-RightArrow should jump by CamelCaps sub-words
Right now, Ctrl-Left/Right jump to the beginning/end of the line;
there's already Command-Left/Right for that, so I think
Ctrl-Left/Right would be free to jump over the sub-words of a
CamelCapsVariableName. See Xcode.
- Show key binding for a particular key
With all those bundles and scope-based bindings, it can be very
difficult to figure out what command a particular key is currently
bound to in the current context. There's the Bundles/TextMate/Show
Keyboard Shortcuts command, but it generates a huge list that you have
to wade through. It would be very useful to have a function that lets
you type a key and displays what it is bound to.
--
Stefan Haller
Ableton
http://www.ableton.com/
Hi everybody,
I'm working on Microsoft Windows clone of TextMate: Intype. Intype is
compatible with some types of bundle items, such as grammars. I wonder,
if licensing of these bundle items permit to use them in Intype. I just
can't find license for them. :(
Regards,
Martin
hi.
i just implemented this hint [1] for commenting out rhtml-parts.
perhaps its a good idea to put that into the official bundle.
niko.
[1] http://rails.techno-weenie.net/tip/2006/6/6/
comment_out_ruby_code_in_rhtml
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
Howdy.
Just came across http://macromates.com/wiki/Suggestions/
StylingHTMLOutput
This is a great step in the right direction in making all this random
stuff more a part of the app.
Maybe we should implement this as a custom output option. So that you
could have both HTML Output Window BASIC and HTML Output Window
THEMED (or whatever). That way you get that whole header and footer
and theme switcher and whatever for free.
Custom Nibs?
We could implement it as a custom nib instead of having to rely on
doing all this junk in HTML and javascript.
If we're going to do that, we could start making our own custom nib
outputs.
An HTML preview output for with some mini-browser functionality could
easily replace the Live Preview window.
A commit window-esque output could be used for a bunch of stuff.
Hmm, maybe that's a bad idea.
thomas Aylott—subtleGradient
I just upgraded to 1.5.2 (v1103), and received the attached error following a
Subversion commit. Other commands like diff and info seem to work fine.
Any ideas?
Commit
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle
/Support/svn_commit.rb:49:in
`matches_to_status': undefined method `rstrip' for "M ":String (NameError) from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle
/Support/svn_commit.rb:49:in
`map' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle
/Support/svn_commit.rb:49:in
`each' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle
/Support/svn_commit.rb:49:in
`map' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle
/Support/svn_commit.rb:49:in
`matches_to_status' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle
/Support/svn_commit.rb:110
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle
/Support/svn_commit.rb:24:in
`call' from
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/Builder.rb:226:
in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/Builder.rb:148:
in
`method_missing' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle
/Support/svn_commit.rb:24
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle
/Support/svn_commit.rb:18:in
`call' from
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/Builder.rb:226:
in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/Builder.rb:148:
in
`method_missing' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle
/Support/svn_commit.rb:18
On Aug 7, 2006, at 8:00 AM, textmate-request(a)lists.macromates.com wrote:
> Sorry for the delay in responding, I have been away from
> internet access (I guess you could say "vacation"). This was
> caused by an update to the TextMate library dialog.rb that
> caused a method I was calling to return an array with one
> element (namely the text you entered) instead of the element
> itself. It should be fixed now if you update the global
> support directory.
Thanks Haris, that did the trick. And I figured you were on vacation,
since you're usually right on top of these things ;)
Hope you had a good one, and thanks again for fixing this.
- Dave
Sorry for the delay in responding, I have been away from
internet access (I guess you could say "vacation"). This was
caused by an update to the TextMate library dialog.rb that
caused a method I was calling to return an array with one
element (namely the text you entered) instead of the element
itself. It should be fixed now if you update the global
support directory.
On Aug 5, 2006, at 7:35 AM, Oliver Hagmann wrote:
>Yes. Same happening here. Using the latest bundles, revision
>and support folder.
>Oliver
Haris
Hi everybody,
Hope this hasn't been answered anywhere else, but I couldn't find it.
I just updated my Textmate to a newer version, and now I don't see
the "Show all modifications" link on the Subversion menu (the one
that pops up when I hit Control-Shift-A).
I have:
.....
Diff with Revision
---
Resolve conflicts with FileMerge
Resolved
---
Help
.....
I don't see Show all modifications in there at all. Any suggestions?
I really liked that functionality.
Thanks in advance!
Cameron
Another question I can't solve on my own. When I type ' - a single
quote - I don't want to see a closing one inserted automatically
(this is Lisp, after all). The newLISP language bundle has this:
smartTypingPairs = (
( '(', ')' ),
( '[', ']' ),
( '{', '}' ),
( '"', '"' ),
);
so obviously it's some sort of default behaviour. Can I switch it off
in this bundle yet leave it available in others?
thanks
--
(<http://newlisper.blogspot.com/>)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I made a few changes to the GTD bundle, basically cleaning up the
list view commands. Please let me know if you have any comments.
Thanks.
Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFE1LFL4oDM7Rgs0h0RArKJAJ4xPjsWbuzhNc9vyPwIgX8sYbV9YgCfbJo+
ijqOjuINMWx+V+BJaI7xY7E=
=Kznu
-----END PGP SIGNATURE-----
Hi,
When I try saving a file, the save dialogue appears, whose name field
is, let's say, "untitled.html". In this case, all the letters
including html are highlighted.
It'd be useful if only "untitled" is highlighted so that, when user
starts to type in file name, the extension is untouched. In this way,
users can save a few letters of typing (e.g., html, js, sql, rb, m).
I understand, in some cases, extensions can be different than by
default (e.g., both html and htm are okay for HTML documents).
But, personally, in most cases, I'm OK with default extensions. Does
anybody have any thoughts on this?
Takaaki
--
Takaaki Kato
Hello,
another question regarding the LaTeX bundle:
There have been requests for making footnotes collapsable in the
past. I still find this highly desirable, but there does not seem to
be an easy solution for this at the moment. (Background: I work with
a document with a lot of footnotes, many of them being rather long.
It would be much easier to read and edit the main text if the
footnotes could be collapsed.)
I'd like to ask if another thing could be implemented more easily: It
would already help a lot if the footnotes would appear in another
color (or with another background color), so that it would be
possible to see where a footnote starts and ends immediately.
Is this possible?
Thanks in advance,
best regards
Matthias
--
Matthias Damm
mad(a)macpla.net
PGP key: http://macpla.net/MatthiasDamm.asc
PGP fingerprint: CED3 6074 7F7D 3148 C6F3 DFF2 05FF 3A0B 0D12 4D41
On Jul 25, 2006, Gerd wrote:
> On Jul 24, 2006, at 6:14 PM, Brad Choate wrote:
>
> >The second one sounds as if you have a file or files selected in
> >the project drawer that have no local changes.
> They do, svn on the command line, or using the svn bundle with one of
> the changed files selected in TM works fine. It is just the
> "Subversion Status" panel from which it doesn't work.
>
> Gerd
Has this been fixed/addressed yet? I've checked the archives but I
can't seem to find a resolution. I'm still getting the "File(s) not
modified; nothing to commit." when I try to 'Commit' from the SVN
'Status' window. I'm fully up to date with the app (cutting edge) and
the svn repository. And yes, I do have the top level folder of the
project selected when I run the 'Status' command.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
Sometime in the last few days I've had a problem using GTDAlt's
broke for me, when I use '#' to bring up the due date dialog and hit
return to accept 'today', instead of inserting the date it displays
this:
/Library/Application Support/TextMate/Bundles/GTDAlt.tmbundle/
Support/bin/GTDUtils.rb:27:in /bin/bash: -c:
line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filedowncase'
for ["today"]:Array (NoMethodError)
from /tmp/temp_textmate.kKMNI2:10
Is anyone else seeing this? BTW, I just updated Bundles as well as
the Support folder, and still have the problem.
I'd like my functions to appear in the popup menu. My function
definitions look like this:
(define (func-name arg1 arg2)
(print "the arguments were " arg1 " and " arg2))
and the bundle I've been given has this:
{ name = 'declaration.function.lisp';
match = '(\b(?i:(def\-new|define(-macro)?))\b)(\s+)((\w|\-|\!|\?)*)';
captures =
{ 2 = { name = 'keyword.control.function-type.lisp'; };
4 = { name = 'entity.name.function.lisp'; };
};
},
I can understand why it also covers other types of definition ( eg
(def-new and (define-macro ) although I rarely use these, and it sort
of looks Ok at first glance (I don't know whether some of those
parentheses should be escaped...). Nothing appears in the function
pop-up menu, though. Should I expect this to work as like this or has
something else gone wrong, or does it rely on other things being set
as well?
--
(<http://newlisper.blogspot.com/>)
System is OS X 10.4.7. TM version 1.5.3 (1200). Same error occurs on
another system with unknown information (we corresponded over email...).
To reproduce:
1. Create a new command. Enter a short, non-shell script printing out
'$' at some point.
Ex:
#!/usr/bin/env python
print "test: $SIG{}"
2. Make sure the output mode is set to "Insert as Snippet".
3. Run command in a document.
Expected result: Document shows the result of the program. e.g.
"test: $SIG{}"
Actual result: Document shows result with characters removed
following and including '$'. e.g. "test: {}" Note that the removal
stopped at what is generally a "special" character.
Comments:
The expected result occurs when the output method is changed to
"Insert as Text" or "Replace selected Text" (i.e. when the text in
not further manipulated in any way, for indentation and the like).
Similarly, the expected result occurs when '$' is escaped. Entering
the line 'echo "test: $SIG{}"' at the command prompt returns "test:
{}" which seems to indicate that the text mangling is resulting from
being passed through the shell.
Andy Kish
First, I apologize if this is a duplicate. The mailing list
subscription was being incredibly slow, so I don't know if my first
message was sent.
System is OS X 10.4.7. TM version 1.5.3 (1200). Same error occurs on
another system with unknown information (we corresponded over email...).
To reproduce:
1. Create a new command. Enter a short, non-shell script printing out
'$' at some point.
Ex:
#!/usr/bin/env python
print "test: $SIG{}"
2. Make sure the output mode is set to "Insert as Snippet".
3. Run command in a document.
Expected result: Document shows the result of the program. e.g.
"test: $SIG{}"
Actual result: Document shows result with characters removed
following and including '$'. e.g. "test: {}" Note that the removal
stopped at what is generally a "special" character.
Comments:
The expected result occurs when the output method is changed to
"Insert as Text" or "Replace selected Text" (i.e. when the text in
not further manipulated in any way, for indentation and the like).
Similarly, the expected result occurs when '$' is escaped. Entering
the line 'echo "test: $SIG{}"' at the command prompt returns "test:
{}" which seems to indicate that the text mangling is resulting from
being passed through the shell.
Andy Kish
Hi there
I'm using v. 1197 and it seems that the
View > Wrap Column > Use window frame is broken.
Even with this option on, I have long comments line
which do not wrap and I have to scroll
horizontally to see them.
TIA
I actually don't believe this happened ... but really ... it just did.
I've been working on a project of mine. It was opened via:
File > Open Recent > ProjectFolderName
So some background.
There is no .proj file or whatever it is .. it's not a "TextMate
Project" .. I just drag my project folder onto TextMate.
It's been open for a while, and has many folders/files inside it ...
it's a mixed Java/Python project and I was shuffling some folders
around via the Eclipse Navigator pane (I switch between TextMate and
Eclipse, depending on wether I'm in Python or Java mode).
While I was in Eclipse, I moved my python source folder to a
different directory .. did some more coding for a while and came back
to TextMate.
Everything's kosher. The folders updated correctly in the TextMate's
project drawer. I opened some python files .. doing some housekeeping
and I decided that I'd like to add a new python file.
So I [Right Click > New File ...] on my python folder in the project
drawer and enter the name for the file "utils.py" and hit Create.
The file opens up and *bang* there's a mess load of code in it. In
fact, it was code from another utils.py file that is somewhere (very
far away) on my HD.
Weird ... now there are two utils.py files in my project drawer.
Though clicking on either one brings up the same file.
So I right-click > remove it .. quit and restart textmate and
everything's ok. No utils.py file anymore, so I right-click > create
it and now it's blank.
Everything's seemingly normal at the moment ... I'm not even sure I
can repeat that, just wanted to send it out there.
-steve
Hi all -
I did a search through the archives but I didn't find an answer on
how to accomplish what I'm looking for.
The current method that TextMate uses to escape entities is by using
the short name ('), which unfortunately doesn't work with
Windows IE. I'm trying to figure out if there's a way to convert
these instead to the numeric version (e.g. ’).
Is there any way to do this? Or a bundle that I can install that will
do this?
Thanks,
Neil
--
Slumming at the BeatnikPad: http://www.beatnikpad.com/
The person you love is 72.8% water.
I'm using the standard heading snippet to automatically add an ID to
a heading, like this:
<h3 id="${1/[[:alpha:]]+|( )/(?1:_:\L$0)/g}">${1:Some Title}</h3>
But now I want to mirror the transformed ID value in a permalink
later in the snippet like this:
<a href="http://somesite/links/#$1>permalink</a>
If I mirror $1 I get the untransformed text.
------------------------------------------------------
Is there a way to mirror transformed tab-stops?
Today while using TextMate 1.5.2 to edit a .as file in my project, I noticed
that the the file name in the file tab ended with a tilde (~).
I also noticed that the edits that I was making to my text file were no longer
"taking". That is, I could edit text, save the file, but the edits would have
no effect... as if they had never been made. Frustrating.
I closed the file, re-opened and now TextMate (and my edits) are back to
normal. The edits I had made to the file were gone, but I was able to get back
to work and re-enter my edits.
What is the significance does the tilde at the end of the filname in the file
tab have? Is this a feature? or a bug?
thanks very much,
Steven
osx 10.4.7
Power PC
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi,
The key binding for this command is 'Shift-Ctrl-Command-S', however,
whenever I try to use this sequence I get the same dialog. I wonder
if it could be changed to an alternative binding in the repository?
Cheers,
Chris
A small request for the Markdown bundle. Would it be possible to
revise the MultiMarkdown commands so that they use `mktemp`? As it
stands, when I find I need to do multiple revisions I am having to go
in and delete temporary files. Thanks very much.
All the best, Mark
Just committed an addition to my subversion repository using the
subversion bundle (which is great, btw) and I got the following
strange message:
2006-08-01 20:30:22.315 CommitWindow[25956] The plugin /Users/
markkalderon/Library/Application Support/SIMBL/Plugins/
megazoomer.bundle (org.ianhenderson.megazoomer) is using a deprecated
interface to SIMBL. Please contact the appropriate developer (not the
SIMBL author) and refer them to http://culater.net/wiki/moin.cgi/
CocoaReverseEngineering
...
Adding Research/Color/Notes/assumptions.txt
Transmitting file data .
Committed revision 103.
OK, so there is an issue about SIMBL and megazoomer, but why is this
message appearing when I commit?
All the best, Mark
I just started using GTDAlt and am really enjoying it. I have one bit
of feedback, though.
Whenever I execute a command, the entire file gets overwritten,
including all the data in the resource fork. This means when I hit
the command to "Clean current file", suddenly all of my folded
project blocks get unfolded.
I've tried to figure out a way to do this more elegantly, but I
honestly don't have any suggestions, hence the reason I'm bringing it
up here. Do any other bundles deal with this gracefully?
thanks,
ryan
Allan,
did you make any recent changes to the Bundle svn feed? For some
reason NewsFire no longer picks up entries (works fine in Safari, but
i think it's much more forgiving of formatting errors). Last one i
received was Sunday at 6.30 (CST).
Sebastian
Hi everyone,
Just a quick question - is there any way I can format an ActionScript
(.as) file in much the same way as the "Auto Format" command in the
default Adobe Flash IDE? When I try using 'Text > Reformat
Paragraph', it simply runs all the lines together.
Thanks,
Ben
I don't know if this exact thing has been up, sorry if it has. But I
thought perhaps one could have sort of a local svn of the bundles,
with only one "level" of fallback (sorry, I don't speak technical svn).
So that when you customise an item in a bundle, it will make a copy
of that specific entry, and place it first (or last) of all the items
(snippets, languages, commands etc), with a big delimiter between
"your" stuff and the bundle default stuff.
This could upen up for revert commands, and perhaps even diff
commands. Also, if you delete something from the original, it can
show up among your things with a big linethrough.
Perhaps one should also be able to see what sort of "own" things has
been forked off original things, so you can compare with the
original. Also, you can add your entirely new items into a logical
bundle, and you will see that it is yours entirely and not built off
an original.
I hope I've made myself clear on the whole idea, and I hope it's not
something that's already come up :)
Andreas
I am sure most of you already know, but google code hosting is a nice
place for hosting your bundles' svn repositories…
see http://code.google.com/hosting/faq.html for details.
Dan