Is anybody using TextMate to write Docbook? If so, I'd appreciate any
information about how to set up the tools to manage the various XSL
transformations.
Thanks,
Noel
--
Noel Rappin
noelrappin(a)alumni.brandeis.edu
I'm new to TextMate and am already recommending it to my students, but I don't
understand the conventions for Scope Selectors.
Let's say I want to color all div tags in HTML red. I've tried variations on
"entity.tag.div" in Prefs > Fonts & Colors without success. I've a basic
familiarity with RegExp, and it looks like Bundle grammar supports RegExp, but I
can't see where syntax coloring might be defined in the HTML Bundle either.
(For the record, I also can't figure out how to duplicate a Theme--say, if I
want to tweak a version of the default Theme but keep the original too.)
Thanks for any help getting me going in the right direction.
jon
I just downloaded and installed the latest "cutting edge" version of
TextMate. Just after I restarted TextMate to bring up the new version
however suddenly I faced a kernel panic, and had to cold-restart my
computer.
Is there anyone else who experienced something like this?
Anyone,
In version (Version 1.5.4 (1360)) of textmate there is a new
XHTML1.1 template. The problem I now have is that when you run Tidy
from the HTML bundle on a XHTML1.1 document it converts the document
to XHTML1.0 strict. This is a little odd. Additionally it does not
do this well because the resulting XHTML1.0 Strict document is not
valid. Iit leaves the (version="-//W3C//DTD XHTML 1.1//EN") attribute
from the original XHTML1.1 document templet. So, you end up with
some odd non-valid document. I love html tidy but maybe I'm doing
something wrong. I don't know how to change it so that HTML tidy is
nicer to XHTML1.1 documents. The XML bundle version of tidy works
well for now, but its not that same because I have to select in
manually. I can't just press (opt, shift, H).
If anyone has fixed up how they have Tidy cleanup an XHTML1.1
document please share.
Thanks you for your help!
- Ethan
i must be missing an obvious thing here, but whats the easiest way to
find the path to the current document you are editing?
i know of "reveal in project" but the full path? i would expect a
right click to bring up some way to find this.
interestingly running pwd as a command inside a doc returns "/"
using ^S to search, opens up a search bar. it would be neat if this
were like a command input area ala vi ... to run commands in the cwd.
thanks!
/dc
(counting the days for japanese support in TM!)
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle 株式会社
http://www.pikkle.com
-------------------------------------------
--
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle 株式会社
http://www.pikkle.com
-------------------------------------------
The current situation
A major goal of all the scoping standardizationstuff we do in the
syntaxes is to make it really easy so make a single theme that can be
used for any language.
Unfortunately, the reality is that languages are really complex and
it takes work to make a theme look good in more than a few languages.
And then more work to keep that theme looking good as the languages
syntaxes are updated and improved.
So, what do we have?
We have a handful of deep themes and a whole hugh mess of really good
looking shallow themes.
the deep themes are constantly updated and work in most every
language. The shallow themes are usually never updated and only work
in a few languages and break on most edge cases like deeply nested
embedded source.
The future
Themes are going to be even more important in the next major release
of TextMate. Themes will be more than just style, they will really
start making inroads into real functionality.
We'll be able to color things like the current selection, the current
line, merge conflicts, tab triggers, placeholders, etc... probably
even more.
[see http://pastie.textmate.org/39665]
This means that themes are going to become much more important to the
way you use the application than ever before.
Which means that it's going to become that much more difficult to
make a theme that really works for more than a few people and keep it
updated.
Tweaked Theme Versions instead of new Themes!
I think we need to move away from a Theme-as-style type of mentality
and more to a Theme-as-functionality type of thinking.
I've put a lot of work into my Brilliance Black theme, but frankly a
lot of people think it's really ugly.
Why is it so ugly? Mostly just my color choices. People all have
different tastes.
Also, it's totally unusable on a dark CRT or LCD.
I've made a few versions of my Brilliance Black theme. Brilliance
Dull, Brilliance White, Brilliance BBS, etc…
The advantage of doing a version of an existing deep theme is that
you get a new style without having to do all the coding of the random
edge cases. It looks pretty without losing any theme-based
functionality.
ShapeShifter
Have you ever user ShapeShifter? There are all these OS themes that
you can use to change the look of the chrome on all the windows and
dock and whatever else on your system. There's also a new tool you
can use to make a tweaked version of an existing theme. You can apply
core image tweaks to all of the images in the theme and save out a
tweaked version of a theme.
I think TextMate should do the same thing.
Start with a good deep base theme like Twilight and tweak the colors.
Then save the recipe of how you tweaked that theme.
The advantage is that when Twilight is updated, all of your tweaked
themes based off of it are also updated since they're just recipes
instead of actually different themes.
And you can make really creative new versions of themes without
having to do all the work of figuring out all the crazy edge cases
and junk.
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
http://blog.circlesixdesign.com/download/utw-rpc-autotag/
The Autotag bundle for Wordpress\TM has been updated to include a new
interface, better fuzzy matching, progress reporting, header endpoint
checking and more. The bundle automates tag suggestions and
insertions in blog posts for Wordpress blogs using Ultimate Tag
Warrior. It requires the UTW-RPC plugin available at the above
address, which adds xmlrpc capabilities to Ultimate Tag Warrior
without having to hack any files.
Thanks,
Brett
hello list,
i was searching this list and also the web for an easy way to use the
diff bundle or how to apply a diff to a whole directory. strangely
this does not work as expected.
i am having a quite large diff file that should patch various files in
a directory in several sub directories. if i am trying
Bundles->Diff->Apply Patch to Files...
and selecting the base directory from where it should patch, strange
things happen.
The Output for all files is the following:
File to Patch
Skip this patch? [y]
Skipping patch.
is there anything wrong with the current diff bundle? or is it maybe
not working with more than one file to patch?
thanks for the help,
mz
Hello,
I have problems with tm_dialog. I get this message, when I start TextMate:
--snip--
2007-02-06 23:19:17.132 TextMate[6159] *** -[NSBundle load]: Error
loading code /Users/thomas/Library/Application
Support/TextMate/PlugIns/Dialog.tmplugin/Contents/MacOS/Dialog for
bundle /Users/thomas/Library/Application
Support/TextMate/PlugIns/Dialog.tmplugin, error code 2 (link edit
error code 0, error number 0 ())
--snap--
And it doesn't work with the bundles like Blogging (Fetch Post) or
TextMate (Paste online).
Thomas
Hello all,
If you have a chance, it's a fun read and great responses from Allan.
http://nslog.com/2006/11/08/textmates_undo/
In my opinion, Erik is just upset that he did not get a free license
from Allan. :)
When working on a LaTeX document, folding is
a superior way of focusing on a part of the document,
much better than splitting the document into
pieces and \include'ing them. So I use it a lot.
But when I unfold a section of my paper to
edit it, only the first level is unfolded; inside it.
the nested levels remain folded. I understand this
is exactly how it is supposed to work, but I feel
for LaTeX it would be much better to have the
possibility to unfold a section completely, down
to the deepest level, with only one keypress.
I have a much better view of the section I'm
working on if nothing is hidden (it's different
from coding I guess).
Is there a way to achieve this with the present
folding system?
Thanks,
Piero
Hi guys,
I'm trying to build a template which will consist of an HTML file and
a CSS file (eventually a number of CSS files in a separate directory)
but I'm having a few problems. I tried duplicating the Objective-C
singleton template and essentially copied and pasted the code with a
few changes. This is what my template code looks like now:
export TM_YEAR=`date +%Y`
export TM_DATE=`date +%Y-%m-%d`
export TM_USERNAME=`niutil -readprop / /users/\$USER realname`
TM_HEADER="$TM_NEW_FILE_BASENAME.css"
if [[ ! (-f $TM_NEW_FILE || -f $TM_HEADER) ]]; then
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <html_in.html >"$TM_NEW_FILE"
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <css_in.css >"$TM_HEADER"
fi
This creates the HTML file but not the CSS file. Or at least it
didn't until I reloaded the bundles and discovered "untitled.css" had
appeared in the template file list alongside html_in.html and
css_in.css. Very odd! I did some more reading and found a post in the
mailing list archives (http://article.gmane.org/
gmane.editors.textmate.general/8424/match=templates+multiple+files)
which Allan mentioned I need to edit an info.plist file.
Unfortunately I've not been able to find this file anywhere. Could
anyone suggest where it might be and what I need to edit?
Eventually I want to build a template which looks like
index.html
\stylesheets
master.css
standard.css
Would this be possible and if so, any pointers on how I might go
about it?
Cheers!
Alastair
I'm trying to fetch a post from a blog and receiving the message that
my dialog tool is at v8 while my plug in is at v5 - anyway to remedy
this problem without having to use svn?
Jose
This morning I posted a message using the Blogging bundle to a Typo
blog hosted on my desktop machine. The headers in the initial post
were pretty minimal: Title, Blog, and Format. As usual, when the
posting completed, the document was updated with several new header
fields. The Date field came back as
-4713-12-31 18:00:00 -0600
which is, pretty clearly, not today's date. At first, I didn't notice
this, and when I edited the message and tried to repost it I got an
error message:
Error: Internal server error (exception raised)(2)
Fixing the date to a valid value solved the problem, but I'm
surprised that an invalid date was produced in the first place. I've
posted only a few messages to this blog with the Blogging bundle, but
have never had this problem before. Any ideas on where it comes from?
My version of TM is 1.5.4 (1349); Typo is version 4.0.3. I can't find
a version number for the Blogging bundle, but Blogging.tmbundle has a
modified date of November 21, 2006.
--
Dr. Drang
When you edit bundle Commands/Macros/etc you have a final
trigger. Why not to add:
??
Close File should always Discard the Output and
Open File should always have None Input
but I find no other problems.
Sorry if I am posting an out of topic, but this problems raised to
me when hooking the save process to hold a saved file history stack:
------------- Command, Cmd-S (pre: SaveFile)
#!/usr/bin/env ruby
H = "/Users/me/.TM_LastFiles"
files = []
last = ENV["TM_FILEPATH"]
files << last
if FileTest.exist?(H)
IO.readlines(H).each {|l|
if l != last
files << l
end
}
end
f = File.new(H, "w")
files.each {|l|
f.puts l
}
f.close
puts files
--------------------
Why it always ignores the "if" and adds always the current file to
the files array??
????
Sorry for the text dump but I received this error after trying to run
a few lines of ruby. I'm fairly new to *nix which I think might be
related. Anywho, this is what I got:
RubyMate r6189 running Ruby r1.8.2 (/usr/bin/ruby)
>>> ruby.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in
`filter_stdout': undefined method `test_script?' for nil:NilClass
(NoMethodError) from /Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:70:in `emit_html' from
/Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:64:in `each' from
/Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:64:in `emit_html' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:73
I tried running a simple puts, too and got this.
Jose
The "folding away ugly docstrings" makes me wonder, would it be
possible wire up a command that folds elements in the document based
on their scope?
It's a bit different than folding on their nesting level, but I think
can be pretty handy. Especially for things like (ugly) docstrings :-)
Consider it a future feature request if it can't currently be done.
Thanks,
-steve
Hi everyone... I catalog my external media using the 'tree' command
and this generates a file such as the one attached.
Does anyone know of a bundle developed to allow folding for this?
Benjamin Steigmann
blissentia(a)mac.com
Hi, I have a question. When I installed textmate, it did not create
an application support folder. Why might this be?
Is impossible to access "Edit -> Indent line" since it is binding to
Cmd-Opt-]
On the other hand in Sp keyb. you must press Opt fot access ] or
[ keys....
] = Opt-]
actually the ]-key contains the *+] chars, * is with Shift, + is the
default and, I've said ] is with option.
then if you press Cmd-Opt-] you always get "Edit -> Shift right" as
if you've pressed Cmd-]
Hi,
Allan seems to be back, so here's a question: Will there be a
maintenance release soon that contains a fix for the endless loop
when editing python?
I know this is fixed in svn, but I prefer to use official released
stuff instead of svn versions... :-P
Bye,
Nico
Hi,
I was wondering what the best approach to enable this functionality
would be:
I use reStructuredText as the format of my doc strings in my python
files, and so I'd like to enable the reStructuredText snippets,
macros, etc. to fire in my python """ ... """ strings.
The scope of these strings in the Python files are:
string.quoted.double.block.python
Should I just add this scope to all of the commands in the
reStructuredText bundle, so all of the scopes for those commands
would be changed to:
text.restructuredtext, string.quoted.double.block.python
Or should I change the Python grammar to somehow set those two scopes
for the """ ... """ string matching pattern (I'm not sure if you can
do that, though).
Thanks,
-steve
Hi Everyone,
I have the strangest problem that I'll be darned if I can figure out
how to fix. When I double click a word, it selects all the words left
and right until it hits some sort of non-text or non-whitespace
character. So when typing normal text it selects the entire sentence
all the way left and right until a period or the end of the window. In
C coding, it selects until some sort of other style character " [ () ]
* _ " etc. I figured out how to list TM_CURRENT_WORD and it is not
just a word, but the whole sentence so clearly something is screwing
the way that gets parsed. Its really quite annoying and I'm pretty
sure it didn't always do this.
Any help would be greatly appreciated. I've googled around a bit,
including in the list and haven't found anything useful.
cheers,
Max
------------
Max Rietmann
mar76(a)cornell.edu