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