Hi,
I just saw that there is a tiny bug in the JavaScript function goTo
(id) in markdown_to_help.rb.
If you click at an item in the TOC it jumps to that anker but with a
wrong offset, meaning the beginning of the anker is hidden caused by
the TextMate header image.
To solve that problem easily I would suggest to do the following if
one predicts that the first image in the html source code is
"header.png":
markdown_to_help.rb:
old:
68: function goTo (id) {
69: document.body.scrollTop = document.getElementById(id).offsetTop
+ 8;
70: }
new:
old:
68: function goTo (id) {
69: document.body.scrollTop = document.getElementById(id).offsetTop
- document.images[0].height - 1;
70: }
Cheers,
--Hans
I've been using TextMate for Rails development for several months now,
and am a big fan.
I have recently noticed one annoying bug, which is effecting my
TextMate, and my collegue's who is working on the same projects.
When I use the RoR bundle functions for Database migrations to, for
example, rename/rename column Textmate inserts this strange string into
the document.
]0; ]0; ]0; ]0; ]0; ]0; ]0;
]0; ]0; ]0; ]0; ]0; ]0; ]0;
rename_column :table_name, :column_name, :new_column_name
I've noticed this string popping up in other places (like at the top of
a printout), but the migration issue is the most annoying. Also this
problem is recent. I have done the same operations without encountering
the bug in the past.
Has anyone else encountered this problem? I can't find any reference to
it online.
Thanks
Sam
hello :)
I'm waiting for the Leopard DVD ( 2 days ) and I would like to know if
Leopard changes some characteristics of TM 1.5.6 like speed
in some actions
Regards Alain
Hi,
I just uploaded the new version 0.903
Download:
http://email.eva.mpg.de/~bibiko/downloads/textmate/TMTools.tmplugin.zip
Help:
http://email.eva.mpg.de/~bibiko/downloads/textmate/tmtoolshelp.html
"$TMTOOLS" help me
Changes:
added: get contentOfWindow
added: get/set smartTyping
added: get allBundles
added: get uuidFor
added: get defaultBundle
added: get allBundleItems
added: do checkUUID
added: get bundlePathsForUUID
Regarding to the issue of generating dynamic commands (esp. snippets)
I attached an example bundle "SCRATCH SNIPPETS" which contains one
command: "Create New Scratch Snippet".
This command takes a selection which contains the snippet (last
line := tab trigger = name of the new snippet) and installs a new
snippet into the "SCRATCH SNIPPETS" bundle (scope is set to the
current one automatically, but this can be changed easily). After
doing that the new snippet is ready for usage.
Of course, one can also create commands, macros, etc. dynamically ;)
[This bundle requires TMTOOLS release 0903!]
A demo movie is here: http://www.bibiko.de/TMscratchSnippet.mov (1.2MB)
Have fun,
Hans
Today I tried to use the nice Markdown Bundle, I
drag-and-dropped an html file on an open window
and here is what I got:
Traceback (most recent call last):
File "/Library/Application Support/TextMate/Bundles/Markdown.tmbundle
/Support/bin/html2text.py",
line 395, in <module>
html2text_file(data)
File "/Library/Application Support/TextMate/Bundles/Markdown.tmbundle
/Support/bin/html2text.py",
line 379, in html2text_file
h.feed(html)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib
/python2.5/sgmllib.py", line 99, in feed
self.goahead(0)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib
/python2.5/sgmllib.py", line 188, in
goahead
self.handle_entityref(name)
File "/Library/Application
Support/TextMate/Bundles/Markdown.tmbundle/Support/bin/html2text.py",
line 168, in handle_entityref
self.o(entityref(c))
File "/Library/Application
Support/TextMate/Bundles/Markdown.tmbundle/Support/bin/html2text.py",
line 368, in o
self.out(data)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc0'
in position 0: ordinal not in range(128)
Regards,
Piero
I just experienced a wierdness with the textmate blogging bundle.
When I tried to fetch a post from my blog to edit, it retrieved the
post which was the one above the one in the dropdown list before the
one I selected.
I just did a little experimentation, and it looks like the problem
occurs when I select a post which was posted before a duplicated post
which I deleted. So, schematically, the list shows:
Post 10
Post 9
Post 7
...
Where there was a Post 8 with the same name as Post 9, but it's now gone.
Selecting post 7 from the list brings back the deleted post 8.
The blog is implemented with typo.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
Hi,
TM remembers the settings like TABSIZE, SOFTWRAP, etc. for a given
TM_MODE, e.g. I set TABSIZE to 8 in a Ruby document and save that
file, TM remembers the TABSIZE if I open a new Ruby document. Fine.
I wonder if it would also be possible that TM remembers the gutter
settings for a given TM_MODE?
Or is this still possible?
Thanks,
--Hans
Hello
When I use "Wrap Selection in" Environment — \begin{}…\end{} I
have indentation with "tab" character.
Is it possible to have space instead tab, perhaps is it possible
to link the the Command Convert Tabs to spaces.
Or perhaps it is possible that the command does not indent
With Tidy, it is the same problem but for all the document,
I can use convert "Tabs" to "Spaces".
I can enabling Soft Tabs but this don't work with the commands
"wrap ...."
Perhaps there is a possibilty for all texts to use spaces
instead of tab characters ?
Regards Alain
I wrote a bunch of Objective-C logging code that includes file and
line in the output in such a way that I can click on it in the XCode
build window.
Usually that works fine, but the bundle logic that finds the full
path when given a file name seems to have a flaw: For example when
the listed line is
PLDocumentController.m:117:[updateRecentMenu:] WARNING: bla bla
the link actually ends up pointing to a file named
BPLDocumentController.m *note the extra 'B' at the beginning).
Seems to me it might be a fairly easy fix for someone how knows what
he/she is doing...
Thanks
Gerd
Hi,
some asked for further examples for the usage of TMTOOLS
Here comes one.
Install the attached bundle AUTOTEXT. Open a new document, set
'language' (CTRL+SHIFT+ALT+A) to AUTOTEXT. Write something, select
something, e.g. the vowel 'a', and press CTRL+ALT+APPLE+S. The
command will highlight all occurrences of the selection within the
document.
Demo movie: http://www.bibiko.de/TMhighlight.mov (3.5MB)
Bye,
--Hans