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