Hi, the tidy feature used to create an xtml compliant document. Since
I upgraded to 1.5.5 it now creates an HTML 4.01 doc. How can I change
this back to XTML?
Thanks,
Dave
So...
I wrote this nice document in Markdown.
Looks exactly the way I want it in the preview window.
Uh...how do I save the generated HTML from within TextMate?
Sorry if this is a dumb question, I thought it would be obvious.
I could run the markdown.pl script from the command line but that
seems unnecessarily convoluted.
Thanks,
S
Hey all,
i thought putting :
TM_RUBY /opt/local/bin/ruby
into :
Preferences > Advanced > Shell Variables
was ok to run a rb file whith this Ruby
but i get allways :
RubyMate r6354 running Ruby r1.8.2 (/usr/bin/ruby)
>>> essai.rb
in the RubyMate Console.
then, the default Apple's Ruby :(
i think the env var name "TM_RUBY" is wrong ?
best,
Yvon
Hello:)
First I do not understand the changes in this script.
Certain users prefer to work with latex but without pstricks, why not
make two different scripts.
There is a little change in one line :
now
if [ -s "${PDF}" -a ! "$PDF" -ot "$FILE" ]; then
before
if [ -s "${PDF}" -a "$PDF" -nt "$FILE" ]; then .....
-ot instead -nt ? why ?
Greetings Alain Matthes
I am trying to wrap my mind around the RSpec gem, so I've installed
the RSpec bundle. I have a simple spec (see below) that requires the
RSCM gem that I have installed. When I run the spec from the command
line it runs find, but when I run it from within TextMate using the
RSpec bundle I get a load error (No such file to load -- rscm).
Do I need to do something special to access my gems from my spec?
spec1.rb
=======
require 'rscm'
context "A CVS log" do
specify "should parse a path name"
end
end
Thanks
Todd
Hello all.
I have been looking at Textmate and bluntly, have been blown away by the
balance it has gotten between a really narrow scope that is done really
really really well.
For example, "wrap each line" bundle command is just majic! I can't think
how many times I have had to do this by hand in Dreamweaver!
But I have a question that I am sure someone else has solved that I have not
found a solution for on the web.
That is, how do you integrate Textmate, with SVN and also manage sites?
Now, before ou just hit reply and say "SVNX" let me explain...
Dreamweaver has a nice feature, that is, it knows about all the files in the
site. if you change the location of a
file, change the name of a directory or the name of the file itself within
the site, it will run back through the entire site and update every link to
that file.
This is especially useful when you are re-coding sites and bringing them up
to the CSS age.
The problem with this, is if you do it, SVN doesn't see it and SVN then
complains about missing file X and added file Y when in fact it is a simpel
rename X to Y - the end result of this is polution orphans in the SVN
database (not a huge problem, unless you are using huge files)
Conversly, if you do the move from SVN (svn rename big_picture.jpg
little_picture.jpg) then Dreamweaver doesn't know about it and can't find
those 101 references to big_picture.jpg that just got moved (of course you
can do it with a find/replace, but this does not handle relative links).
One obvious solution is move it with SVN, then do a find / replace in
textmate.
But that doesn't handle relative links
(../../../img/myimages/little_picture.jpg being the same as
../myimages/little_picture.jpg)
So how do you do it? I think my answer lies in regex.....
Does anyone have a solution out there to this particular problem?
Regards
Mikel
Is there any more in-depth explanation anywhere about what alt-up/
down really does? I understand there's some sort of columnar
behavior, but when I use it in prose text, it seems to behave in a
rather baffling manner to me... I've been looking for an equivalent
to the (IMO very useful) ctrl-up/down functionality in Emacs (next
paragraph, or, rather, next empty line, basically) and thought
perhaps this might work somewhat like that -- and it seems to, if I
move to the beginning of the line first. (OK, so the "next paragraph"
functionality is a question of its own, I guess; is there something
like it?)
And while I'm on the topic of navigation (and things I miss from
Emacs ;-) -- if I accidentally press cmd-up or down, I completely
lose my current location. Any way of "undoing" something like that?
(In Emacs I used alt-x x or something like that, to switch position
with the position before the navigation.) It's not always that I
remember to set a bookmark before this sort of thing -- mainly
because it tends to be accidental :->
--
Magnus Lie Hetland
http://hetland.org
Sorry if this is a well-known issue, but I couldn't find anything
about it...
For some reason, completions no longer seem to work in my
installation of TextMate. Whether I press the escape button *or*
select Completion > Next Completion (or Previous Completion) from the
menu, all I gett is the system bell/beep.
Does anyone have any ideas about what could have caused this (have I
pressed some Forbidden Keyboard Combo™?) or, perhaps, how I could go
about figuring it out (or, preferably, even fixing it)?
--
Magnus Lie Hetland
http://hetland.org
I'm trying to do something a little weird and I'd like some help. It has
to do with tabs.
The local coding standard is to indent with hard tabs, 8 characters wide.
So far so good. But we want to avoid tabs within the line, after the
first non-whitespace character. Example:
int foo = 1234; // foo
int bar = 5678; // bar
int foobar = 12345678; // foobar
So before the "int" there should be a hard tab, but before the "=" and
"//" characters there should just be spaces. I'd like to use the tab key
for all of this (ie., <tab> i n t <space> f o o <tab> = 1 2 3 4 ...),
changing its behavior from hard tabs to soft tabs depending on where I am
within the line.
I wrote a command script that will actually do this and bound it to the
tab key with Activation: Key Equivalent. But, unfortunately stealing the
tab key like this breaks ordinary tab triggers and tabbing between snippet
fields.
Anyone have suggestions on how overload the tab key without losing what
it already does? I'd also accept some way of binding tab triggers
and snippets to some other keystroke.
--
Steve King, <steve(a)narbat.com>
Hi guys!
Trying out and loving textmate!
Got a question. on the HTML screen cast, it has img(tab) and image(tab) as
being bundle items for filling out self closing image tags for HTML.
Can't seem to get it working here.
I have the document as HTML, did a search
in "Select Bundle Item" for "img" and "image" and nothing comes up.
In the HTML bundle in the editor, nothing.
I can make a entry for it, but from the screen cast it looks like something
else is wrong with my setup.
Any ideas? Am I missing a key bundle?
Thanks!
Mikel
Hi!
I read on the blog-comments that someone has snippets for adding
technorati-tags to his blog-post.
I would really appreciate it if someone could send me those (and
maybe those could be added to the blogging-bundle?).
Does the Blogging bundle supports pinging to sites like Technorati?
Niels
--
Jammern für Anfänger: Niels K. (25) Jammerbacke -- auch für
professionelles Jammern zu haben
http://jammern.wordpress.com
Hi there....
I'm new to the list, but have been keeping tabs on the progress of
the AS bundle
(and sometimes using either get bundle or svn, i dont get the changes
your blog posts mention... but thats another point)
I agree with Aaron regarding -main being optional... for a few reasons:
a. main sort of binds us to either ignoring some of the benefits of
library based movie clips or using _root
b. some of my clients, are small studios, designers and other small
teams.... some of them have decent actionscript skills some have
people on staff that can really rock it.... but forcing a swfmill -
mtasc - textmate workflow would simply not work or be more than a
little unjust...
I use textmate/mtasc/swfmill to improve MY life and workflow, it
saves me time, the strictness helps me debug and it doesnt crash, i
hate the flash IDE.
But months down the line or right before launch on a project I've
long since moved on from i hate clients calling me for small pitlling
changes pulling me off other projects to do small maintanence tasks,
or helpt them tweak a now completed project by nudging things here
and there when they or there staff are more than capable. I
externalize all content, but still things continually come up that
normally any number of them would be able to do themselves via the IDE.
Adding a call to my controller class in the flash, populating the
library and then compiling it once and never touching the IDE again,
works well for me, (i customized my rb file to not call main) this
allows my clients to then open the fla if they need to down the road,
make their changes and compiling with the ide where they feel more
comfortable. But as soon as i share it with someone who has a similar
workflow, and the main call loops ad-infinitum.
Ok, so i rant a bit, but sharing across workflows is enough reason to
make -main optional.... no?
Also is there any way to avoid needing to list our classes in the
main class? It feels like including code to force compile inside the
application really mucks things up in regards to separating build
instructions from the code itself... i guess thats an MTASC issue
more than an actionscript bundle issue, i tried using -pack to work
around this but then I got class redefinition errors on the main
class....
cheers,
t
Ahoy TextMateys…
I like the cocoa completion menu thing.
Open TextEdit. Type a few letters. Hit option-escape.
I want to make a tm_dialog nib that works exactly like that one does.
Does anyone know if that is at all possible?
I like the current dialog menu that we have with tm_dialog --menu.
But it's really not ideal for doing code completion.
What would need to happen is that while you're typing you can open up
the completion panel, but keep on typing.
Escape would banish the panel
Up and down would move the selection in the completion list
and insert the rest of what you're typing
and select it
right would banish the list and keep the currently selected completion
etc...
Is that at all doable?
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
When I got the latest TextMate update, I was happy to see that
incremental search is put in. That makes me very happy, since Ctrl-s
is imprinted in my Emacs-brain.
Getting into the incremental search works fine, but when I see
something I want to edit, how do I get out of the search mode without
using the mouse? Again, copying Emacs, I should just use a cursor
key, but instead it seems that I have to use the mouse button.
Anyone have another method that I missed?
--
Mike Hostetler
http://mike.hostetlerhome.com/
Does the Show Web Preview command in Textmate 1.5.5 (Build 1372) have
a problem displaying text sized in ems? For some reason, text set in
a style sheet at 0.8 ems doesn't display at the same size as when the
page is viewed in the latest versions of Safari, Firefox, Camino and
OmniWeb.
On a possibly related note: does TextMate use Webkit for Web Preview
and, if so, is it possible to have TextMate use a nightly WebKit
build instead of the version Safari is based on?
I've searched the archives and couldn't locate any other discussions
about this.
Brooks
Hi there,
is there any way of populating a dropdown with a Hash/Array from Ruby,
using tm_dialog?
I'm using a custom Nib, but I don't have too much experience with
Interface Builder.
Dummy code:
categories = ["bar","baz"]
dialog = ENV['DIALOG']
plist = {
'title' => "Add your title",
'category' => categories # How do I use this here?
}.to_plist
str = `#{e_sh dialog} "#{NIBS}/new_message.nib/" -m -p #{e_sh plist}`
Any hints will help :)
Also... is there any way of calling tm_dialog to load a custom Nib
using the Ruby wrapper in dialog.rb?
Thanks in advance!
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
Thanks for yours answers,
I didn't know the Select Bundle Item function, and even fewer the key search.
So I've deleted the shortcut for the declaration "try/catch" and the wrapping
work in PHP section now.
PS : Yes, it is ⌃⇧W ;)
Hi there,
today, I was doing the next step in my investigation of why
TextMate's Blogging Bundle doesn't really work together with
Serendipity. This time, I was after the strange effect around the
Date header: Whenever that header is present in the document, it
causes s9y to set the creation date to the beginning of the epoch.
Aside the fact that it changes the creation date in s9y which is not
visible anywhere in the tool besides in the sorting order of entries,
which is a flaw in s9y (it's impossible to change the creation date
via s9y's interface except by... well creating the entry), this looks
like a bug in MovableType actually.
Don't ask. Read on.
dateCreated is supposed to be passed around as dateTime.iso8601 which
in turn is defined as <year><month><day>T<hour>:<minute>:<second>
(time in GMT). This is what s9y uses and this is what the rest of the
world uses.
Except MT, that is.
Even though I searched, I found no clear definition of how the date
must be formated. In one piece of their sample code, I found this
though:
<member>
<name>dateCreated</name>
<value>
<dateTime.iso8601>
2005-12-05T21:38:47Z</dateTime.iso8601>
</value>
</member>
.. which is wrong (note the dashes in the date).
The blogging bundle defaults to the mt-mode and tries to recreate
this flawed format (parse_post in blogging.rb - I wonder what the
other T at the end does though) which in turn causes s9y to fail to
parse the date correctly and set the time stamp to 0 (which isn't
right thing to do, but I'll report that to their forum).
Manually setting TM_BLOG_MODE to s9y for example fixes the date
problem, but makes one lose comment-toggling-functionality (the ping
one currently isn't implemented on s9y's side, but I intend to change
that with an upcoming patch).
So I created the attached patch bb_s9ydate.diff, which adds a proper
s9y mode which basically means it makes blogging.rb use the default
date handling, but still provide the comment-toggling features.
In addition to attaching the patch, I've also uploaded it here:
http://www.lipfi.ch/bb_s9ydate.diff
Please consider merging this one too as that date-thing sucks in
particular when using TextMate to edit s9y blogs :-)
Now I'm off to bug the s9y people about the creation date-problem and
about the support for toggling pings via the RPC-Interface :p
Thanks for your patience with reading this novel here :-)
Philip
Just to say that those who are waiting for an actionscript 3 bundle, I
started one.
You can find more information on http://4d.ratubagus.net/ .
This bundle is just started, so many things will be added week by week ...
Since i'm new to textmate, even i read a lot on the mailing list , the
wiki, the book ...
i've still many things to learn and i'm open to suggestions .
enjoy
Joachim
Yeah I checked this. Still no luck. Take a look, see what you think.
--oliver
On Apr 2, 2007, Thomas Aylott wrote:
> Make sure you call the preference as it is named on disk.
> Renaming a preference in the bundle editor doesn't actually change
> anything on disk.
> thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Hello
Since the last realease of Textmate,
when I'm writing between echo's comas, the shortcut ^majW make "try-catch"
expression, I would like it wrap selection in an Open/Close tag as in HTML
bundle. How can I do this change ?
Thanks a lot
Hi,
I've been trying to reproduce the steps in the tm_dialog screencast, but failed for some reason:
If i call tm_dialog on my test nib file in the Terminal, I get this message:
tm_dialog: you have updated the Dialog plug-in to v8 but the tm_dialog tool is still at v5
I'm not quite aware of what I've updated, it's all happened automatically as far as i can tell.
Looking at the version, it seems to be "tm_dialog r6545 (Feb 12 2007) ", or possibly "tm_dialog r6021 (2006-11-16)" if I run tm_dialog or tm_dialog_v5 in Textmate (don't know whether I'm supposed to have two of these things installed?)
How can I fix this problem?
Many thanks
baptiste
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
Is there a way to do nested transformations in snippets?
I want to do something like:
class FooFields:
[...]
foo_form = [...]
where the Foo is easily changed. Fields should be converted to form
and the whole thing should be converted from CamelCase to
under_scored.
I can do the underscored convertion, but I can't work out how to do
another search and replace as well.
I though this might work:
class ${1:FooFields}:
[...]
${2:${${1/Fields/Form/}/([a-z0-9])?([A-Z])/(?1:$1_)(?2:\l$2)/g}} = [...]
Where the first regex is input to the second regex. But it doesn't
work. Instead it doesn't seem to recognise the regex as a regex at
all and outputs:
class FooFields:
[...]
{1/Fields/Form//([a-z0-9])?([A-Z])/(?1:FooFields_)(?2:\l{1/Fields/Form/)/g}}
= [...]
Whilst writing this I have realised that I can just do:
class ${1:Foo}Fields:
[...]
${2:${1/([a-z0-9])?([A-Z])/(?1:$1_)(?2:\l$2)/g}}_form = [...]
Which is good enough as a solution, but I'd still like to know if
there is a way to solve the problem using nested regexs?
Many Thanks
Ed
Newbie here, please excuse the apparent non-TextMate related
question. Has anyone seen a bundle or suggestions on using tidy (or
something) to convert old style HTML to newer transitional XHTML
without screwing up embedded PHP (or other) code? It seems that by
default tidy can really fowl up embedded PHP structures. I have a lot
of old PHP-based documents that I'd like to get somewhat brought up-
to-date.
Thanks,
Ron
*******************************************************
* Ron Patterson, Email: rpatter(a)asd20.org *
* Web Services, Phone: 719.234.1707 *
* Academy School District 20, FAX: 719.234.1706 *
* Web Site: http://www.asd20.org *
*******************************************************
Hi every one,
I haven't been able to find any post about the topic, but I must admit the
number of post containing command and completion is indeed quite impressive.
Here is my problem. I'm French and I'm using an azerty keyboard. I can't use
the default (command - option - }) “LaTeX command completion based on
current word” shortcut. On an azerty keyboard, please note it must be typed
(command - option - shift - ‘)’) and that the ‘)’ is located two keys left
from the delete key, next to the upper figure ‘0’. Worse, even when I try to
change the shortcut to (command - option - shift - ‘)’), it doesn't work. In
fact, it looks like the shortcut doesn't trigger a thing.
I currently worked around the problem using (command - control - option -
‘)’) 4-fingers “shortcut”, but I'd like to switch back to normal. Do you
have any idea of the reason why (command - option - ‘)’) does not work? I've
been looking for such a shortcut in TextMate but haven't been able to find
one.
Thank for your help and my appologies for the potential bad spelling.
--
View this message in context: http://www.nabble.com/LaTeX-command-completion-shortcut-tf3506038.html#a979…
Sent from the textmate users mailing list archive at Nabble.com.