Great work on the bundle so far... though I'm currently having
trouble running the executable. When choosing Build & Run or just
Run, I get the following error:
/Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/
bin/run_xcode_target.rb:175:in `run': undefined local variable or
method `file' for # (NameError) from /Library/Application Support/
TextMate/Bundles/Xcode.tmbundle/Support/bin/run_xcode_target.rb:
193:in `run' from /Library/Application Support/TextMate/…
[View More]Bundles/
Xcode.tmbundle/Support/bin/parse_build.rb:202 from /Library/
Application Support/TextMate/Bundles/Xcode.tmbundle/Support/bin/
format_build.rb:559
[View Less]
I have the following problem, returning to a latex project after 2-3
weeks:
1. Even though I have set the master file to \includeonly{chap7}
when I compile within Textmate it ignores the command and constructs
the whole document.
When I manually do 'latex, bibtex, latex,latex' there is no problem.
2. I set TM_LATEX_ERRLVL to 0 but the ouput screen always disappears.
I tried the other values (1 and 2) with exactly the same behaviour.
How can I track down the problem?
Thanks,
Christopher
recently i was giving RSpec[1] and Behaviour-Driven Development
(hereforth BDD)[2] a look and found myself repeatedly writing the same
code constructs. i quickly slapped together two snippets for the ruby
bundle that seem to help out. the snippets could be made more spiffy
perhaps by turning them into macros and make them act similar to the
rails migration macros - but they still might be of some use in their
initial form.
worth noting, if you install RSpec 0.7.* and follow along with the BDD
…
[View More]tutorial[3], make sure change all of their:
object.should_be_equal
to:
object.should_be ==
or else you will be checking for object equality rather than value
equality (as mentioned in their upgrade notice[4]). i sure wish they
would have updated their tutorial...
cheers,
jean-pierre
[1] RSpec <http://rspec.rubyforge.org/>
[2] BDD <http://behaviour-driven.org/>
[3] RSpec tutorial <http://rspec.rubyforge.org/tutorials/>
[4] RSpec update notice <http://rspec.rubyforge.org/upgrade.html>
[View Less]
Hi,
At some point in the last month something major changed with the
JavaScript bundle. In particular, so many symbols are now added to the
symbol list that it is basically unusable. I can't say exactly when
this change occurred, but I would assume that others have noticed as well.
As an example, have a look at the following lines of (contrived) code:
var i = document.createElement('input');
i.type = 'checkbox';
i.name = 'foo';
i.value = 'bar';…
[View More]
i.checked = false;
I would not expect this to add any symbols to the symbol list. But in
fact, this block of code adds the following four symbols:
type
name
value
checked
Has anyone else had this problem? Does anyone know how I can fix this?
Thanks,
Taylor
[View Less]
I am having a number of GTDAlt bundle problems, but I'll start with just one
of them.
When I run the Action--->Archive completed script, I get this error:
/Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/lib/GTD.rb:41:in `parse':
Parse error on line: /Volumes/USBGOODMAN/GTD/gtd.txt (RuntimeError)
. This is not a line I recognize. from /Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/lib/GTD.rb:223:in
`initialize'
from /…
[View More]tmp/temp_textmate.uTEk7h:5:in `new'
from /tmp/temp_textmate.uTEk7h:5
I am not a programmer so I can't understand what exactly it can't parse.
The text of the file is:
project lawrence
@call go to store due:[2006-11-17]
#completed:[2006-11-17] @home eat pie [1] due:[2006-11-17]
end
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
[View Less]
Hi!
Just tried to start to learn creating presentations with the beamer-
class and moved the templates to ~/Library/Application Support/Latex/
Templates
I switch to Latex Beamer or Latex in TextMate, type temp⇥, choose
one of the templates and with all templates, except for one nothing
happens except that the "temp" is deleted.
Any ideas what that could cause?
Niels
Hello
I created a project by dragging a folder with files .tex. I would
like to filter the files and to see only the .tex files and
not .log .pdf etc. sometimes I want to also see the .sty and .cls for
the development. I do not know the regular expressions to do this.
How to show only the files .tex, .cls, .sty, and .cfg
Thanks
Hi!
I have two questions regarding language grammars
1) Is there a way to have two language grammars working on one language?
As an example: There's the language grammar Latex in the Latex-Bundle
I have an additional bundle for own snippets and commands. Sometimes
I'm coming along a need for having something added to the
Latex-language grammar and I would like to Hotfix it w/out breaking it
with the next update (or as I just noticed I couldn't even change the
grammar). For this I would like to …
[View More]have in my own bundle a
Latex-language grammar which includes only the hotfixes and works
together with the rest of the language grammar of the Latex-Bundle. Is
this possible?
2)What's the best way to edit stuff in the bundle editor? Right now
I'm using for longer stuff always "Edit in Textmate" - is there
anything else for getting the comfort of Textmate while editing
snippets, commands and so on?
Niels
[View Less]
I have just downloaded TextMate for a try before buy and because I
write a lot of AppleScripts, wanted to open and compile my text in my
Script Editor of choice: Script Debugger 4 (set as my default). TM
defaults to Apple's Script Editor. How do I change that?
Adam Bell
I downloaded Marc Liyanage's "Open Terminal Here"[1] droplet and
modified it to open TextMate instead. Hence, "Open TextMate Here".
I've attached the droplet for anyone who's interested. I keep it in
~Library/Application Support/Finder (renamed to "Mate") and then
stuck it in my Finder Toolbar:
j.
[1] http://www.entropy.ch/software/applescript/
Ok, here's an idea.
A back/forward history thing for textmate.
Every time you change something in textmate, it logs where your
cursor is.
Then you can use a back and forward command to navigate between those
places, even between files and projects.
Would anyone but me find that useful?
I have a few idea on how to implement this.
Currently, the only thing that can automatically watch your changes
is the web preview window.
but you can use a pass-thru script in that window to do …
[View More]anything you
want, triggered every time you change something in your document.
the bad thing about that is that it would take over your webpreview
panel, and you'd have to open a webpreview panel for every document
that you want to catch the history for.
The other option is to use a command that you manually trigger. This
is lame because if you forgot to mark something then you'd lost that
step.
Another possible option.
An HTML command window that stays open and continually triggers a
shell script that logs your history.
I don't think this can work right now (i haven't checked) because i
don't think the TextMate.system javascript command grabs new
variables every time it's triggered without reopening the document.
But maybe we could convince Allan to implement something like
TextMate.update_variables or something.
Well, anyway. just thinking out loud.
thomas Aylott — design42 — subtleGradient — CrazyEgg
[View Less]
Hi,
I have some text. I know I can use TextMate to do first Soft Wrap (and I set
the colums to 80). Then, I select the whole text and do Reformat Paragraph
and Justify.
But after this, I don't want the justification to occur at the last line of
a paragraph. Therefore, I manually select the last line of every paragraph
and do Reformat Paragraph on those. Is there a way to automate this last
process, that is do Reformat Paragraph on all last lines of all paragraphs?
Also: How would I be …
[View More]able to do this without TextMate, i.e. in the command
line? I'm interested in that because I would like to create a PHP script
that does exactly this.
Cheers,
Ulai
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
[View Less]
I've got a project here with 16,500 files in it (75,000 if you count
the subversion metadata). It's a Joomla 1.5 website with a bunch of
content. I have three copies of the site in the project directory
because of the way I'm merging changes from the latest Joomla SVN
into my own source tree.
Needless to say switching to and from TextMate causes a considerable
delay - between 5 and 10 seconds on my G4 PowerBook. I like to flip
back and forth between a web browser, terminal and TM …
[View More]pretty
frequently - at times as much as maybe a few times a minute - so I'm
spending a fair proportion of my time waiting for TM at the moment.
Does anyone have any tips for speeding up TM's project scanning?
Obviously I could rearrange my project to move some of the less
frequently used files into another project - but I'd rather not do
that if it's avoidable.
It seems that TM only really needs to rescan the directories that are
open in the project drawer and any open files - a full scan could be
then be done lazily if at all. I get the impression it currently
walks the whole directory tree - is that correct? If it's not doing
that what's taking so long?
--
Andy Armstrong, hexten.net
[View Less]
Allen, great job (as usual), I'm sure I'll be using this quite often.
It would be great to add some of this to the language grammar so
context-sensitive commands could be developed, and it could be pretty-
ed up.
I would imagine that the existing support for the headers; to, cc,
bcc, reply to, and subject; would be adequate, although I am curious
if there are others that people would want to use (or could use). I
also wonder if it might be beneficial to quote the values, just to
…
[View More]make sure nothing goes haywire. But I can see that not really being
necessary.
Something really interesting would be a way to lookup email addresses
in the users' address book, though I have no idea if this is even
possible.
--oliver
P.S. Yes, I used the command to compose this message. And it was great.
[View Less]
> Does this have any advantage over the system-provided combination
> of control-command-D (which works with or without a selection).
One thing I don't like about the pop-up is that it appears for
whatever word your mouse is hovering over. This command can work with
a selection or caret placement. Which means for keyboard junkies,
they can skip one more trip to the mouse.
The only other advantage is that you might prefer using the app to
the pop-up.
Hi,
in the list I mentioned the problem that if you want to put images in
a help file written in markdown and using 'markdown_to_help.rb' for
formatting you will loose the reference for these images.
Allan mentioned to echo the base href in beforehand but then the
internal links generated by 'markdown_to_help.rb' don't work.
To solve this problem here my suggestion for an easy solution:
In your markdown file you write e.g.

It is a relative …
[View More]path, so you can see the image with 'Show Web
Preview' while writing your markdown
In your command to display the help you can write:
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "Hypersearch Bundle Help" "Hypersearch"
"$TM_SUPPORT_PATH/lib/markdown_to_help.rb"
"$TM_BUNDLE_SUPPORT/help.markdown" | perl -npe
's/(.*?<img.*?src=")(.*?)(".*)/$1file:\/\/$ENV{"TM_BUNDLE_SUPPORT"}\/$2$3/gi'
html_footer
What I'm done here is to pipe the output of 'markdown_to_help.rb' to a
perl command which puts at the beginning of each relative path in src
within a img tag the absolute path 'file:///$TM_BUNDLE_SUPPORT/'.
This perl command, of course, could be also implemented within
'markdown_to_help.rb' or as TM wide standalone command written in
Ruby, Perl, or whatever (which I would prefer for speed).
Cheers,
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
[View Less]
I was blown away by the HTML demo on the Textmate site, the ability to
insert matching tags and intelligently tab through them seems like a great
way to create HTML. The fact that I can surround a selection and edit BOTH
start/end tags at the same time had my jaw dropping.
However, this 'magic' behavior seems to vanish once I leave the vicinity of
the tag. If I return (or edit an existing file, when I select a start tag,
it doesn't auto edit the closing tag.
I get how doing this automatically …
[View More]would create some problems. I'm just
looking for a way to someone 'refocus' Textmate on the tag in question,
matching the start end tags so when I reedit one, the other changes.
Through the hundreds of commands in Textmate, i assume there is someway to
do this. Any one have any ideas?
Thanks,
Scott
[View Less]
I updated to the most recent version (6143) and when I try to process
my inbox I get:
/Library/Application Support/TextMate/Bundles/GTDAlt.tmbundle/Support/
bin/process_inbox.rb:27: undefined method `get_contexts' for
GTD:Module (NoMethodError)
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
I'm working on a Backpack bundle and I've hit a stumbling block. I
can't get a date object into a plist. I need to read it into a nib
to set the date on a datepicker to the current date and time, but I
can't get any of the functions in the plist library to recognize it.
Any idea what I'm doing wrong? I'd post code, but I've tried so many
things it's hard to begin to describe it... I could just be slow.
Thanks,
Brett
Apologies if I'm being stupid, but since a recent auto-update, the
behaviour of holding option and ctrl with the cursor keys has altered;
I think this is related to an item I noticed in a changelog.
As it stands, Textmate is now using ctrl-left and ctrl-right for
per-word selection, as opposed to option-left/option-right (unlike
every other OSX app I have). Similarly, double-clicking is now
selecting a sentence, not a word. This is more than a mite annoying
for most work I do, with both text …
[View More]and code.
Is the behaviour I describe the default now, or has something odd
happened on my install? If the former, how do I change it... and if
the latter, how do I revert it?
Apologies if this topic has been covered - I couldn't find it anywhere
on the list.
t.
[View Less]
New WebPreview window (with Hacked Nibs)
Download the New TextMate WebPreview Window Nibs
I got rid of the drawer and moved all that stuff to the bottom.
Now it looks mildly less offensive.
thomas Aylott — design42 — subtleGradient — CrazyEgg
Dear all,
Here comes the next step:
There are quite a lot of new things in it so please also read the
HELP scratch.
In short terms:
Changes for 'Search':
- you can look across \n
- you can specify more the one regexp group
- If you select text (also across \n or \t) Hypersearch assumes that
you are looking for a string not via regexp. Thus it will change
RegExp option according to the content of your selection and escape
the string if needed automatically.
- you can display each …
[View More]RegExp group $1, $2, .. separately (useful
when using embedded parenthesis because hyperlinks don't work properly)
New function:
GetAllMatches
-based on a grouped regular expression or a single field delimiter it
outputs all matches table-like according to the chosen data format
-data formats are customizable via property lists by using TM or
Property List Editor (Edit GetAll Formats opens a project for that)
-you can create new formats based on 'new.plist' as template
-output behavior is selectable within the tm_dialog (insert, replace,
create new document,..)
-Search and GetAllMatches are based on the same plist, so you can use
Search to fine-tune your regexp and then open GetAllMatches with the
latest regexp
-five data formats are predefined:
TAB 1\t2\t3\n
HTML <tr><td>1</td><td>2</td><td>3</td></tr>
HTMLindented
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
HTMLTAB
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
CSV "1","2","3"\n
Now you can e.g.
-convert XML to TAB or visa versa;
-type a table with TAB and RETURN within your HTML document and
convert this selection to HTML syntax by specifying the field
delimiter TAB;
-get all function names or string variables out of your script file
-and and and ... see two examples in the HELP
!! Comments, bug reports, and suggestions are welcomed as always.
To install the bundle it is recommended to delete the old Hypersearch
bundle in beforehand.
Cheers,
Hans
PS I get many mails mentioning that Hypersearch is also quite useful
for learning regular expressions ;)
[View Less]
Hi all,
It appears that the 'Show TODO list' command doesn't honour a
project's Folder Pattern. For example, amongst other directories,
I've excluded the 'log' directory from my Rails project to speed up
'Find in Project', etc. As a test, I manually added a TODO to the
development log. If I 'Show TODO list', I see this:

Is it possible/easy for the TODO bundle to support this?
P.S. I'd investigate this further myself, however at this point I'm
relatively new to Ruby.
Carpe viam,
…
[View More]Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
[View Less]
hello all,
i am working with files that contain mixed ascii and binary data. if
i open the file in textMate and then resave it (without editing it's
contents), parts of the binary data are incorrectly interpreted as
line-breaks and the data becomes corrupted.
is there a way to create an ascii/binary hybrid file-type that
textMate understands so that i can edit the ascii without ruining the
binary data?
sorry if this is an obvious question, i'm still a textMate newb.
thanks in advance,
chad
I'm getting an odd error when I hit TAB after the 'blog' snippet in
the blogging bundle. Here's an output:
Title: untitled
blog: =>
tm_dialog: server version at v4, this tool at v5 (they need to match)
/Users/afrench/Library/Application Support/TextMate/Support/lib/
dialog.rb:37:in `load': Cannot parse a NULL or zero-length data
(PropertyListError)
from /Users/afrench/Library/Application Support/TextMate/Support/lib/
dialog.rb:37:in `menu'
from /Applications/TextMate.app/Contents/…
[View More]SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:603:in `choose_blog_endpoint'
from /tmp/temp_textmate.Ykuqtx:3
Looks like version of tm_dialog is out of sync. Any help would be
appreciated.
===
~Adam
Textmate version: Version 1.5.4 (1324)
Last checked for update: Nov 14 8:42AM central time
[View Less]
Not sure if this is possible or not.
I'd like to setup a window that has an editable text field along with
a drop-down of options. If the user selects an item from the drop-
down, that items value should populate the text field. When the user
is done with the window I want whatever is in the text field, whether
manually typed or pre-populated from the drop-down to be returned by
tm_dialog.
This is similar to what Allan shows in his screencast, except that
instead of an TSTableView …
[View More]I'm using an NSPopUpButton. Also, I want
the NSTextField to be editable, but I don't want anything the user
types there to update the NSAraryController/NSPopUpButton.
I've almost got this working. I've setup an NSArrayController that
I'm populating via tm_dialog. I've bound the NSPopUpButtons's
contentValues to the NSArray Controller. However, whenever I edit the
text field it ends up updating the drop-down. Doh.
Also, I want to give this window working Cancel/Okay buttons.
Is this doable? Do I need to use IB Connections instead of bindings
to tie the pop-up to the text field?
Hints/Tips appreciated,
j.
[View Less]
Hello all,
I must be missing something simple, but this morning my TM refused to
open any projects, old or new. I am using build 1324. The projects I
tried to open are all listed under Window, but they are not
visible. I closed all other apps, rebooted, but the problem remains.
Jenny
Hello!
I try to develop my first bundle for Jess, a rule base language.
For that I defined a snippet
(defrule ${1:rulename}
"${2:description}"
${3:patterns}
=>
${4:actions}
)
Now I want to invoke an other snippets
(MAIN::$1)
invoked by main->tab
at ${3:patterns}. But when I hit the tab, the cursor jumps to
${4:actions}. So, can you recommend something? I think I could simply
use key bindings. But I like much more the tab trigger.
Helge
Helge Hartmann
Antwort an: helge.hartmann(a)gmx.de
Hi,
Possibly an "I've missed the obvious solution" scenario, but is there
an easy way to print a list of the shortcuts/snippets available for a
particular bundle? Clicking on the cog at the bottom of the window
allows you to see them all, but it would be useful when learning a
new bundle not to have to take ones fingers off the keys.
I watched Allan's screencast of working with Objective-C files
yesterday and it made me realise I am probably missing out on a lot
of untapped power!
Thanks,
Nigel
I'm starting to learn [Mozart-Oz](http://www.mozart-oz.org/) and I
could not find a bundle for this programming language on the TextMate
repository. Has someone worked on this already?
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Hi there,
This is my first post to the list - many thanks to everyone on here
for making it such a valuable resource for a TextMate beginner!
If I am writing in a Markdown document and I want to save as a PDF,
it seems I have two options:
- Preview in textMate and then use the print dialog 'Save as PDF'
command
- Use the MultiMarkdown 'Convert to PDF' command to go directly to PDF
What control do I have over the format of the resulting PDF if I
generate it from the print dialog …
[View More]rather than the 'convert to PDF'
command? I like the 'out of the box' look of the print dialog PDF
better than the htmldoc-generated one, and wondered if I could do
anything to tweak, e.g. fonts, space after headings, list
indentation, etc.
If anyone knows of a good htmldoc intro document that is a little
friendlier than the manpage I'd be grateful too!!
Many thanks,
Nigel
[View Less]
Mike,
I'm trying to use wait, unwait, done & delegate actions, yet none of
them work. I type the shortcut letter such as 'w' and then press tab,
this merely replaces my task with a blank line.
Actually, I just tested manually choosing the action from the bundle
menu and it seems that the shortcuts work fine, it's the actions that
are not working. Choosing the action from the menu does the same thing.
Any info would be helpful.
Thanks
Mike
I'm currently testing out TextMate for doing some Ruby coding. It gets very high marks from the community at large and so far things have looked fairly good.
However, I ran into a bug and I need the list's help to solve it.
The code I'm writing and testing uses the plist gem [1] from rubyforge. Whenever I try to test code that uses any functionality from that gem, the test fails with the following error:
1) Error:
test_temp(TC_MyTest):
NameError: uninitialized constant Some::Plist
method …
[View More]some in temp.rb at line 12
method test_temp in tc_temp.rb at line 13
(where Some is a class I created for the purpose of trapping this bug.)
I searched for this problem and discovered another complaint about it back in July [2] along with a response [3]. The response wasn't very helpful for figuring out a workaround, so I thought I'd ask again.
How can I modify TextMate so it doesn't stomp on the ruby namespace for Plist? Alternately, how can I modify my ruby code to avoid the namespace collision? BTW, I have already "deleted" the Property List Macro Bundle from TextMate but that didn't appear to have any positive effect.
I've already tried different scoping shenanigans with modules and the :: scope operator, but it still blows up. Thanks for your help.
cr
[1] http://plist.rubyforge.org/
[2] http://article.gmane.org/gmane.editors.textmate.general/11813
[3] http://article.gmane.org/gmane.editors.textmate.general/11814
[View Less]
The firstLineMatch in the Mail bundle is '^From: (?=\w+(a)[\w-]+\.\w+)', which doesn't match addresses with names. For example, the first line of my emails is 'From: Grant Hollingworth <grant(a)antiflux.org>'.
I changed the match to '^From: .*(?=\w+(a)[\w-]+\.\w+)' (i.e., check for an email address somewhere on the line).
Hello,
while playing with the Saxon8-parser from M. Kay [ http://
www.saxonica.com ] i found myself typing a lot of <xsl:command
foo="bar"/> stuff producing lot's of typos and mixing up the syntax.
To simplify my life and to learn xslt2 i did these snippets. Almost
any xsl-instruction i found in M.Kay's documents is in the bundle -
these make up ~70 snippets. Some of them are chained-together, some
contain links M.Kay's documentation or the related W3C-docs. Some xsl
which u …
[View More]might find in the official-doc's are not 'visible' in the
bundle, because theses are only allowed as children inside another
instruction - that way the snippets might help to prevent errors. Any
'mandatory'-attribute=must have is in the snippets, characterized by
a fixed attribute-name and a placeholder for the value. Optional-atts
or sub-instructions show up as entire placeholders. Defaults are
always in first place, if a signature is provided with the placeholder.
This is not very much tested, yet. I'll continue to use and improve
it more and plan to make the xsl:functions also available - maybe
within a second bundle.
limitations : i left out one or two xsl:instructions which deal with
schema-processing and are not supported by the basic-version of
Saxon. Furthermore there is and probably will never be more
documentation than provided within this email-thread :-)
One question : I'd thought of auto-generation of snippets, as these
are simple .plist-files, i believe it to be possible to write a
stylesheet to process the html-Saxon-Doc's in order to retrieve the
info from the function-library, including all signatures. I've seen
that the plist-files contain a string-element like this :
<string>F631FE3C-7D78-4E2E-8A17-688E9890D0B6</string>
which looks like a 'unique'-(cocoa)-identifier. I have no idea what
to put into this and which consequences this might have ? any ideas
are truly welcome ;-)
have phun, andreas
--- XSL(v2) - bundle // v0.1 ---
[View Less]
Hello,
while playing with the Saxon8-parser from M. Kay [ http://
www.saxonica.com ] i found myself typing a lot of <xsl:command
foo="bar"/> stuff producing lot's of typos and mixing up the syntax.
To simplify my life and to learn xslt2 i did these snippets. Almost
any xsl-instruction i found in M.Kay's documents is in the bundle -
these make up ~70 snippets. Some of them are chained-together, some
contain links M.Kay's documentation or the related W3C-docs. Some xsl
which u …
[View More]might find in the official-doc's are not 'visible' in the
bundle, because theses are only allowed as children inside another
instruction - that way the snippets might help to prevent errors. Any
'mandatory-attribute'='must have' is in the snippets, characterized
by a fixed attribute-name and a placeholder only for the value.
Optional-atts or sub-instructions show up as entire placeholders.
Defaults are always in first place, if a signature is provided with
the placeholder.
This is not very much tested, yet. I'll continue to use and improve
it more and plan to make the xsl:functions also available - maybe
within a second bundle.
limitations : i left out one or two xsl:instructions which deal with
schema-processing and are not supported by the basic-(freely-avail.)
version of Saxon. Furthermore there is and probably will never be
more documentation than provided within this email-thread :-)
One question : I'd thought of auto-generation of snippets, as these
are simple .plist-files, i believe it to be possible to write a
stylesheet to process the html-Saxon-Doc's in order to transform the
info's from the function-library, including all signatures, into
snippets-files (plists). I've seen that these plist-files contain a
string-element like this :
<string>F631FE3C-7D78-4E2E-8A17-688E9890D0B6</string>
which looks like a 'unique'-(cocoa)-identifier. I have no idea what
to put into this and which consequences this might have ? any ideas
are truly welcome ;-)
have phun, andreas
--- XSL(v2) - bundle // v0.1 ---
PS: sending this for the second time, hope it will arrive only once.
i guess the mailer has eaten the unzipped bundle the first time i
send it ?
[View Less]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm using the (newest) PHP-Package and I would like to color normal
comments other then phpdoc comments.
So I changed the PHP Language a bit to perform this. I replace the
normal comment.block.php with this one:
{ name = 'comment.block.php.phpdoc';
begin = '/\*\*';
end = '\*/';
patterns = (
{ name = 'keyword.other.phpdoc.php';
…
[View More] match = '\@(a(ccess|uthor)|c(ategory|
opyright)|global|li(cense|nk)|pa(ckage|ram)|return|s(ee|ince|tatic|
ubpackage)|t(hrows|odo)|v(ar|ersion))\b';
}
);
},
{ name = 'comment.block.php';
begin = '/\*';
end = '\*/';
},
So I have an own scope for the phpdoc comment. I also added @license
as phpdoc keyword. It would be nice if you could add this changes to
the official PHP-Package.
I also have another question: How can I activate the spell-check in
(PHP)comments. I tried to use a Preference Item and added
{ spellChecking = 1; } to it and set the scope to "comment" but it
didn't worked.
Do you have any ideas?
Thanks in advance,
Simon Ruderich
- ----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFOQF2YRX4BO+zMikRCn6YAKDUCbqHUHmgkX8VMBag367nBI1wVgCfYqUF
sMHhifE1Hs9wR4Np6QP3Bhw=
=nHGU
-----END PGP SIGNATURE-----
[View Less]
Hi,
I just installed a new version of a bundle. TM asked me whether it
should be updated. I chose YES.
Well, the files within the bundle were updated but NOT the changed
code for commands!?
Can anyone verify this bug?
Cheers,
Hans
Hi Haris, I know you have just done a bunch of reorganization, but it
is producing an error, at least on my end, with the command, `#`:
[2]
/tmp/temp_textmate.ST54F9:41:in
Best, Mark
Hello all,
It occurred to me that it would very useful if the Latex bundle could
let one know whenever a \ref{X} occurs before \label{X}. When you
cut and paste sections, you have to check mentally that the logical
order is preserved. Sometimes, of course, you wish the order to
be reversed, as in "This theorem will be generalized later in \ref
{X}", but this is the exception rather than the rule. It would
helpful to see a list of exceptions in a separate window on command
…
[View More]such as with the handy TODO command.
This seems a natural problem for this group to tackle and would
benefit many grad students now writing their theses.
Cheers,
Jenny
[View Less]
There's a conflict between the system jpeg lib and the one installed
with I installed the Darwin Ports ImageMagick. This has been a
persistent problem that has crashed TextMate for me. Does anyone have
a workaround for this?
The example below shows an svn commit that crashed.
TIA
s.ross
CrashReporter/CommitWindow.crash.log
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.…
[View More]framework/
Versions/A/ImageIO
Expected in: /opt/local/lib/libJPEG.dylib
[View Less]
Dear all,
I just wrote a small Drag&Drop command for inserting encoded txt,
htm, html files and doc and rtf files.
The background:
I get a lot of data written as doc, rtf, html, and txt files which
are encoded in different encodings like Shift_JIS, EUC-JP, Big5, etc.
In order to insert these data in my document I wrote a tiny drag&drop
command which makes usage of the tm_dialog and the UNIX command
'textutil'.
The usage is very simple. Just drag one or more selected files …
[View More]to an
open TM document. The dialog will ask you for the source encoding and
the output format. Press 'Insert' and the tool will convert
everything to utf-8 text/html/rtf/rtfd/wordml format. See more detail
with 'man textutil'
The encoding 'no conversion' will avoid a conversion. To change the
available encodings just open the 'icf.plist' within the bundle with
TM or the plist editor. Only IANA names for encodings are allowed.
I leave the scope empty. File Types I set to 'doc, rtf, htm, html,
txt, webarchive'. But, it is easy to customize it.
Now you can drag e.g. a WORD document and insert it as uft-8 (cleaned
up) html in your current document.
For me it works perfectly. Of course, 'textutil' cannot do magic
things but for 95% of all cases it works pretty good.
Maybe some of you find it also quite useful ;)
Comments are welcomed, as always.
Have a nice day,
Hans
[View Less]
Hello.
I have released tmplugin that supports CJK input.
http://hetima.com/textmate/index-e.html
It detects input mode correctly. No action to activate required.
I have tested only Japanese. But it will works with other language
that uses Input Method as well.
Screenshot is here.
http://www.flickr.com/photos/hetima/293699370/
thanks.
--
hetima
Hi,
This should be real quick to answer, but I have
started a Rails app, dragged it into textmate, but it
is having trouble recognizing the Rails bundle.
The Ruby bundle seems to work fine, I can Tab Complete
for the commands there, but not for Rails.
Is there something that I can do to get it to
recognize the Rails bundle as well?
For example
begin[tab] works fine,
but not bt[tab] (belongs to) which is in Rails.
Thanks,
Tim
Timothy Wee
(612)889-1185
3301 Coachman Rd. #321
Eagan, MN
…
[View More]http://www.timshawn.com
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
[View Less]
Hi everybody.
As some of you may have figured out, I work a lot in HTML and CSS and
I have a fetish for descriptive titles on links. I've been rewriting
the wrap selection as link command and have it all worked out to grab
the title of the link in the clipboard if it starts with http(s). I
can't get it to validate the link, though.
Here's the text of the command:
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/progress.rb"
require 'open-uri'
link = "http://site.com"
…
[View More]title = #{ENV['TM_SELECTED_TEXT']}
s = IO.popen('pbpaste', 'r+').read
if s.match(/(http(s?):\/\/)/) then
TextMate.call_with_progress(:title => "Opening Link", :message =>
"Retrieving Title for #{s}") do
begin
fp = open(s)
title = fp.read.match(/<title>([^<>]*)<\/title>/i).to_a
[1].strip
link = s
rescue
title = "site unreachable"
end
end
end
print %{<a href="${1:#{link}}" title="${2:#{title}}" >
$TM_SELECTED_TEXT</a>}
I've tried all kinds of overly complex methods that all yield the
same results when the link is bogus:
/usr/lib/ruby/1.8/timeout.rb:42:in /bin/bash: -c: line 1: unexpected
EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileconnect'
from /usr/lib/ruby/1.8/net/protocol.rb:64:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileopen'
from /usr/lib/ruby/1.8/net/http.rb:430:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filestart'
from /usr/lib/ruby/1.8/net/http.rb:324:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileproxy_open'
from /usr/lib/ruby/1.8/open-uri.rb:525:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 5: syntax error: unexpected end of filepopen'
from /Users/brett/Library/Application Support/TextMate/Support/lib/
progress.rb:11:in
This is what I get (and should get, I think) when I run it from a
Ruby dialog:
<a href="${1:http://site.com}" title="${2:site unreachable}" >
$TM_SELECTED_TEXT</a>
It works great when the site in the clipboard is valid. Any
suggestions would be appreciated.
Thanks,
Brett
Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
[View Less]
My language grammar is very rusty, so correct me where I'm wrong. I'm trying to modify the language for the Mail bundle so reply quotes have syntax coloring:
>
>>
>>>
I've added the following to the "patterns = {" section of the Mail language bundle:
{ name = 'comment.line.first';
match = '^[ \t]*(>[ \t]*){1}.*$\n?';
},
{ name = 'comment.line.second';
match = '^[ \t]*(>[ \t]*){2}.*$\n?';
},
{ name = 'comment.line.third';
match = '^[ \t]*(>[ \t]*){…
[View More]3}.*$\n?';
},
But in my mail text, on a line starting with > the scope still says:
text.mail.markdown
text.html.markdown
Further, since making these changes, whenever I try to get scope (control shift p) on a mail document TextMate goes AWOL:
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
16465 TextMate 145.8% 0:45.73 4 101 24990 740M+ 20.5M 614M+ 963M+
I removed the Mail.tmbundle/Syntaxes/Mail.tmDelta file and it works again, so clearly something is wrong with my syntax above.
Quinn
[View Less]
I'm a little hesitant to put this out there because I'm not sure if
it's a silly idea or not. I asked a little while back about
interactive template creation. I created a portfolio website that,
when the entries are created correctly, automatically generates
client lists, recent project lists, portfolio pages, etc. I just
needed a way to enter the data and have it format a blog entry.
What I ended up doing with it was using tm_dialog to create a form
and then process that in a …
[View More]template command that outputs to a new
blog.html file. It's very specific to my needs, so I'm obviously not
sending that to the list. However, the process seemed relatively
new, so I thought I'd share it, just in case.
The template will take any key-value pairs fed to it by the nib and
substitute them for the :::key::: in the template file. You can
build as complex a nib as you like, and do whatever you want with the
keys in the template file. It's all done in ruby.
It just includes a Mad Lib and is basically a proof of concept, but I
think it has applications ranging from composing emails to blog
entries and anything that could be sped up by inputting values into a
template interactively.

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
[View Less]
Hi Folks,
I've just started using TextMate and I'm very very impressed. I've
noticed the following behaviour and I wonder if anybody could let me
know if this is a "feature" or a bug.
I make a column selection and I replace "foo" with "foobar". This
increases the width of the column selection. Here is the problem --
any continuous text that passed through the column will now be broken
and expanded with spaces. This is not what I would expect and it will
seriously limit my use of …
[View More]find/replace in column selections.
Is this a bug? Or is it an operator error?
Thanks,
Leo
[View Less]
Hi,
Thanks for the tips, all. I got it working fine when I
understood where these damn commands should be put. I
got a bit lost between macros, commands, execute line,
plugins, bundles,... as a start ;)
anyway, it works now, thanks!
PS: is there any RSS feed for this list, or a good way
to follow it? (my yahoo! webmail doesn't like the
encoding of the message for some reason, it's very
annoying)
> Commands:
> http://macromates.com/textmate/manual/commands
>
> Feel free to …
[View More]ask follow-up questions, I donât know
> exactly what
> Octave produces, or which arguments it takes, but
> making the command
> be: âoctave -fâ and input âEntire Documentâ
> with output
> being⦠uhm⦠show tool tip, maybe? sounds like it
> should get you
> started.
>
> As for path to Octave, see:
> http://macromates.com/textmate/manual/
> shell_commands#search_path
>
>
>
> > De: Allan Odgaard <throw-away-1(a)macromates.com>
> À: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 12 Nov 2006 16:33:36 +0100
> Objet: Re: [TxMt] run Octave code
>
> On 12. Nov 2006, at 15:59, baptiste auguie wrote:
>
> > Example:
> >
> > #! /sw/bin/octave -f
> >
> > load("datafile.dat");
> >
> > ...
> >
> > displays an error,
> >
> > error: load: unable to open input file
> `datafile.dat'.
>
> Itâs a relative path, so it must be, that the
> current working
> directory of your command is not the one which
> contains datafile.dat.
>
> If you do a real command (as suggested in the other
> letter) then the
> current working directory should always be that of
> the current file.
> For âR executions it is not the case.
>
___________________________________________________________________________
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
[View Less]
> You should have a look at the Help file within the
> LaTeX bundle,
> there's a number of different autocompletion
> commands in the LaTeX
> bundle. For the particular case you quoted, i.e.
> creating new
> environments, you would create it by first typing
> abstract and then
> pressing cmd-{ (cmd-shift-[ in US keyboards). (This
> is the command
> named "Insert Environment based on current word".
> You can also try to
> press cmd-{ before …
[View More]typing anything and see the
> options you get. If
> you want to autocomplete plain commands, then typing
> \ and the first
> couple of letters, and then pressing esc should do
> exactly what you
> want.
>
> Finally, you might want to have a look at the
> screencasts if you
> haven't seen them yet:
>
http://skiadas.dcostanet.net/afterthought/list-of-my-textmate-pages/
>
> Haris
Thanks, I had a closer look at these, and they
probably are efficient ways to provide autocompletion.
I sort of prefer a list that follows my typing than a
keyword though (I think it's a bad habit to type
"document" and then let TM wrap it in a \begin{}\end{}
environment. If you ever have to switch to another
editor for some reason, it's gonna be a pain.) Have
you had a chance to try Kile? I found its
autocompletion a dream.
I quite like the "ESC" way, though this key is quite
far on my keyboard. Is there a way to change the
mapping for the "TAB" which i never use for instance?
thanks again,
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
[View Less]
Hello,
I've run successfully some Octave code with Textmate,
using the following syntax,
#! /sw/bin/octave -f
my code here
i just select the whole text, and run "Execute line
inserting result". It used to work well, but for some
reason it now displays an error message when I try to
use some data files in the Octave code.
Example:
#! /sw/bin/octave -f
load("datafile.dat");
...
displays an error,
error: load: unable to open input file `datafile.dat'.
Running the …
[View More]same script in the Terminal works fine, so
the problem is really when running the script in
Octave. A simpler self containing script works fine
(not loading a file).
It's probably something to do with path directory, but
I don't know why it used to work and doesn't anymore
(possibly some update of TM in the meantime, and I
also registered and added a few bundles).
Any tips?
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
[View Less]
Hi,
I've just purchased TextMate, and I have a few
questions:
1 - when editing LaTeX code, I'd love to get a similar
autocompletion feature as Kile for Linux (when you
type \be, you get a list of possiblities that follows
your typing (\begin{abstract},...)). It's *very*
convenient and clever: it gives you the latex commands
as well as words already present in the document, and
narrows the list according to your typing.
I found some posts about a latex autocompletion
bundle/macro for TM, but I …
[View More]can't have it to work (I'm
not sure what it does exactly anyway!). I get a huge
list, from which I can't seem to choose before it
disappears and leaves me with a blank document !
2 - Is it possible to always have tab editing
available, not only in projects? Or is there a way to
open TextMate with an empty project by default (where
you just drag and drop the files you want to use)?
3 - I run some Octave scripts from TextMate, using the
Matlab mode, but I have to put something like #!
/sw/bin/octave -f and run the script using the shell
command with all the text selected. How can I add this
compilation feature to the Matlab bundle (giving the
path to Octave, and not having to select the text
before running it)?
Thanks,
best regards,
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
[View Less]
I'd like to know if I'm the only one having problem with "Go to
project". When I choose it, I get a list of my projects, but choosing
any one of them does not do anything.
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Howdy.
There is a new syntax grammar in the Experimental bundle.
It scopes a bunch of things that I think the main Ruby syntax should
be scoping.
Since so many people use Ruby, I don't want to make any major changes
to it without getting some serious feedback.
It could be that some of this stuff should be kept separate in a
wrapper grammar for ruby, i don't know.
If you are interested in Ruby and the Ruby parsing and coloring that
TextMate does, please check out this new language and …
[View More]give us all
your feedback.
Also, I updated the Brilliance Black theme (in the official textmate
svn repo) to support all this new stuff.
If you're checking out the new stuff, this theme will show it in all
it's glory.
Enjoy
thomas Aylott — design42 — subtleGradient — CrazyEgg
[View Less]
Ahoy textmateys!
Avast ye white i-beam mouse cursor!
The current one is just pure white and totally disappears when it
hovers over something white (which happens often)
So I made a new one with a bit of a shadow.
It's included in the TextMate UNO nib theme
http://textmate.svn.subtlegradient.com/Hacked%20Nibs!/TextMate%20UNO.zip
Allan, can we just update the actual app for this one?
thomas Aylott — design42 — subtleGradient — CrazyEgg
I had my first go at creating a template last night. It was fairly
miserable. Even just using what TextMate creates automatically
resulted in a "dead" template that does nothing upon hitting test or
the assigned key combination. I copied an existing template and made
modifications to no avail. Is there a tutorial that goes beyond the
docs or is there something I'm missing?
Thanks,
Brett
Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
...........…
[View More].......................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
[View Less]
James Edward Gray II wrote:
> I literally miss one feature of BBEdit: multi-file search...
> However, I see no point in complaining about this since I can add a
> bundle for it at any time.
Oh, I so wish you would do that, James; is now "any time"? ;)
Seriously tho, lately I've been using grep to do multifile searches
since it's too much effort within TextMate, and it's not worth firing
up BBEdit for. I usually have one or two files open rather than a
project, and usually …
[View More]my multi-file searches are within a folder
associated with another project completely. I only need to do this a
couple times a week so it's not too annoying, but it would be nice if
I could search a given directory like BBEdit.
Things keeping me from loving TextMate even more than I already do:
- better multifile searches
- side-by-side diff (love BBEdit!)
- better handling of very large files
- split views
- chunked undo
And to be fair, just a few of the things I love about TextMate:
- editing is fun
- amazing syntax hilighting for all the languages I work with and
many more as well
- snippets
- it's really smart
- incredible support (see thanks below)
- bundles beyond count
- creating my own snippets, commands and macros EASILY!
- it's constantly being updated (program and snippets both)
- the screencasts
Many thanks to Allan and the many people creating and maintaining
bundles, you really have created the best text editor out there (IMHO).
- Dave Winzler
[View Less]
Perhaps it doesn't exist or I don't know how but is it possible to
search in a specific directory? I know you can search through a whole
project. My project is huge and the searches take forever eventhough I
usually know which directory I want to search in anyway. I wind up
having to fire up another editor to search.
Any ideas?
thanks
Hi,
I was trying out Hypersearch and I noticed that there was similar
functionality in TextMate already. I then tried that and found a bug.
If you 'Find All in Document' - shift-control-f - and the document
hasn't been saved yet, then you get a weird error:
/tmp/temp_textmate.aZZ02d:4:in `url_esc': private method `gsub'
called for nil:NilClass (NoMethodError) from /tmp/
temp_textmate.aZZ02d:25 from /tmp/temp_textmate.aZZ02d:22:in
`each_line' from /tmp/temp_textmate.aZZ02d:22
'…
[View More]Find All in Document' is part of the TextMate bundle, so I guess I
could fix this myself, but I don't use it enough. I was just playing.
Have a nice day,
Will :-}
[View Less]
Hi Textmate Guys,
I'm trying out textmate using version 1.5.4 and I checked out bundle
revision 6074 from SVN this afternoon. It appears the perl bundle
has a few problems with indenting. Specifically with nested hashes
and closing curly braces.
Typing this code is fine (the auto-indenting works great):
my $b = {
a => {
test => 1
},
b => {
test_me => 2
}
};
But if you were to re-indent that section you wind up with:
my $b = {
a => {
test =…
[View More]> 1
},
b => {
test_me => 2
}
};
Obviously this causes lots of problems for code read ability.
Secondarily, if you have a statement like:
my ($brand_name, $product_name) = $self->{feed_db}->selectrow_array
("select brand, name from products where sku = ? limit 1", undef,
$results->{unique_product_id});
And reindent it changes to:
my ($brand_name, $product_name) = $self->{feed_db}->selectrow_array
("select brand, name from products where sku = ? limit 1", undef,
$results->{unique_product_id});
Is there a way to indent the parameters to keep alignment with the
first parameter, this helps for really long statements that take
multiple lines.
It also appears to have problems with if statements like:
if($bar) {
if($car) {
$baz;
} else {
$car;
}
}
After re-indent that becomes:
if($bar) {
if($car) {
$baz;
} else {
$car;
}
}
It would appear this is a general problem with a closing curly brace
as even,
foo(bar => {
a => 1,
},
car => {
test => 3
})
Becomes:
foo(bar => {
a => 1,
},
car => {
test => 3
})
Secondarily:
Is it possible to have a preference so that:
foo(bar => {
a => 1,
})
When indented becomes:
foo(bar => {
a => 1,
})
Lastly a more general Textmate question coming from XEmacs. I didn't
see any support for register buffers. Would there be a way to add
them? As for what a register buffer does is that it allows you to
copy to a named "register" (commonly you pick a letter), and then you
can insert a register by just entering that same letter that you
copied the contents to. You can see the docs from XEmacs about this
here:
http://www.xemacs.org/Documentation/21.5/html/xemacs_13.html#SEC102
This would require support for reading input from the user once they
hit the appropriate key binding.
Thanks,
Rusty
[View Less]
That was quick. Thanks!!
Norm
---
Norman A. Cohen
nacohen(a)mac.com
"Whatever you may be sure of, be sure of this, that you are
dreadfully like other people."
James Russell Lowell
On Nov 11, 2006, at 13:50 PM, textmate-request(a)lists.macromates.com
wrote:
> Oh man, I forgot to change it. It was pointing to the nib I was
> using for testing. I just committed a fix.
>
I have a half-baked idea for a bundle and I wanted to solicit
feedback in an attempt to more fully bake it.
When coding I commonly find myself jumping around not only within a
file but often between files. Typically to do this I'm either using
the CTags bundle or cmd-E, cmd-shift-F, click in the find window,
look at something, then try to figure out where I was. I find myself
expending way too much mental effort trying to remember where I am at
any point in time.
My idea is for a …
[View More]module which allows you to set global bookmarks per
project along with history as you follow the bookmarks. The bookmarks
would be persisted via a file in the project root called .tmbookmarks
or some such. The bundle would have these actions:
- add bookmark (also places bookmark on top of history)
- show bookmarks
- delete bookmark (presents list of bookmarks, select to delete one
or more)
- clear bookmarks (deletes all bookmarks)
- show history
- go back (returns to most recently added/followed bookmark)
- go forward
- clear history
The bookmarks/history would be presented either via tmdialog or
simply as an HTML window (similar to CTags's navigation window).
The forward/back would be a browser-type history that is populated as
you click thru your bookmarks. I'd like to tie the history into the
CTags bundle as well.
So for example, you could do something like:
- add bookmark (this would add the current file/line)
- cmd-e, cmd-shift-f, click to new file.
- go back (this would save the current file/line then jump back to
the just added bookmark)
I have to think a bit more about how the bookmarks/history will
interact. It might be better to have the history work more like a
shell's pushd/popd actions.
Also, obviously as you edit a file your bookmarks end up pointing to
the wrong line. However, I have this crazy idea that I can save two
or three lines of context with each bookmark (a la diff) so that when
following a bookmark I can validate it and resync automatically (a la
patch).
Thoughts?
j.
[View Less]
Jay Soffian wrote:
> This reminds me. I was surprised to find that the Diff bundle does
> not support using Xcode's opendiff. Is this just an oversight
> (either in the bundle or by me), or does no one care for opendiff?
>
> In general it seems like it would be useful to be able to
> generically configure all the bundles to use opendiff where it
> makes sense to use it as a replacement for /usr/bin/diff. This
> would be settable via something like …
[View More]TM_USEOPENDIFF or some such. I
> know there's certainly times when I'd prefer to have the Subversion
> bundle diff for me using opendiff.
Yup, that's pretty much what I'm looking for too.
I ended up hacking together some of the commands from the Diff bundle
to get an opendiff equivalent of "Diff Document With Arbitrary
File...", but it only works with the saved version of the current
document which limits its usefulness (can't compare unsaved changes,
can't compare new unsaved documents for instance).
Still, in case anybody else finds it useful:
(Save: Nothing)
(Input: Entire Document)
(Output: Discard)
require_cmd opendiff "Opendiff comes with Apple's developer tools."
# set utf-8 as the default encoding (used by opendiff)
export __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100
path=$(osascript<<END
tell application "TextMate"
set theFile to choose file
set the result to POSIX path of theFile
end tell
END)
opendiff "$path" "$TM_FILEPATH"
[View Less]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
yesterday I tried to use the new feature "New Project" from the
"Xcode"-bundle. I got an error that "tm_dialog" can't use the option -
d, it didn't work.
So I checked out the hole "Bundle", "PlugIns", "Support" and "Tools"
directories from the subversion repository to ~/Library/Application
Support/TextMate/ and tried it again, but it didn't work also.
Then I opened the "Dialog Plugin" from "Tools" in Xcode, compiled the
Dialog.…
[View More]tmplugin, put it in "PlugIns" and tried it again - it didn't
worked.
Later I realized I had to compile "tm_dialog.mm" in the same project
and put it in "Support/bin" and also put the before compiled
"Dialog.tmplugin" in "PlugIns". This works finally.
Now I'm asking myself if I did anything wrong or missed anything or
is this the usual way to get new tools to work?
I think it would be easier to put an compiled updated version of the
files to "PlugIns" or "Support/bin" in the subversion repository if
the source file gets updated so an svn update would get all user data
up to date.
It would also be nice if there could be a new target in the Xcode-
project which builds tm_dialog so this gets done automatically; I did
this in the terminal.
Thanks for all the info I missed,
Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFVKYFYRX4BO+zMikRCl2wAJ4pzM63D0d2PNIrAJSkMYUGyY2W7QCfexI/
H0rtEix8UvebyHzkrgg8f28=
=UzNJ
-----END PGP SIGNATURE-----
[View Less]
Allan,
I'm looking at improving the folding support in the Python bundle.
One thing that would help would be if the stop marker regex could
reference a capture made in the start marker regex. That way I could
capture the indent that was in effect when the start marker matched.
The other thing that would help (I think) would be a way to
explicitly reset the nesting level.
Also, is there a way to view what the nesting level is? Something
like TM_FOLD_LEVEL seems like it might be useful.
Thoughts?
j.
I'm trying to write a snippet that will erase
*everything within inclosing tags
and
*everything with enclosing tags including the tags themselves.
So far I've got `perl -e 's/<\${TM_SELECTED_TEXT}>(\n|.)+?/<\/$
{TM_SELECTED_TEXT}>//g'`, input is document, output is new document
where the user has the word inside a tag selected. This isn't
working... and it would be better if the user could select the whole
ending or beginning tag rather than just the word. Any pointers would
be appreciated.
Is there a simple way (within Textmate or otherwise) to convert a
page of mediawiki syntax to that for dokuwiki ?
(Mediawiki is what Wikipedia uses; here is an example of dokuwiki:
http://zshwiki.org/ ).
Thanks in advance.
Bill Scott
Hello,
I'm a complete newbie concerning TextMate customization, but there is
something I'd like to do that I would find very useful which I don't
know how to tackle.
The latest beta of MailTags allows one to create urls pointing to
Mail messages in a very robust way: the url works across several macs
synchronized to the same imap account and when the message is moved
or tagged. I'm now using these urls to refer to emails in my GTDAlt
file.
How would one proceed to add a command …
[View More]that opens such a message (in
Mail) when called on a url. The way I proceed now is select and copy
the url (which looks like message://454F0376.2010005@ens-lyon.fr),
and type "open " and paste the url in a terminal, which opens it. I
found one improvement, which is adding "open " before the url in
TextMate, selecting it, and calling ^R. What I would like is a way,
when the cursor is inside the url, to call a command that opens it,
but I don't know how to do it.
Thank you for any suggestion,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
[View Less]
Soo. I started doing some work on my website in TextMate, and wanted to get
the changes regularly/easily up; the Transmit bundle that shipped w/
TextMate was okay, buut, didn't quite do what I wanted or in a _way_ that I
wanted.. I didn't see another option so went and made one.. :) Posting here
in case it suits anyone elses needs better then the current offering.
Basically, its purpose is to sync your current project (and it has to be a
project) with a remote site. You start out by selecting
"…
[View More]Synchronization->Configure Sync" and in the file that pops up enter the
host, username, path and method (only 'Transmit' is supported right now).
These settings can be accessed through that command in the future; they're
stored in a file called ".~sync.sh" in the root of your project so are
persistant across your project.
Then, you hit Command+F12, and it grabs your password from your Keychain
(the first time it sets it), then uses AppleScript to tell Transmit to
connect, sync the files, and then close.
The "Method" actually is used to determine which AppleScript file to run to
actually tell Transmit/whatever to DO things. There's a lame attempt at a
Cyberduck one in there, but since I'm happy w/ Transmit I never made it work
:)
--Stephen
[View Less]
Hello,
I'm often switching between French and English during my work day,
and I was wondering if there was an easy way to switch the spell
checker using only the keyboard in TextMate. (For most applications I
use Spell Catcher X, but as it's an input method it does not play
well with TextMate.)
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Hi all,
I've added a comment to one of Alex King's blog posts
http://alexking.org/blog/2006/11/09/quote-of-the-night
With the 'Editor war' thread going on, I think this would be an
awesome idea for a t-shirt. Anyone care to take up the challenge of a
nice design?
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
Hi there,
I find myself launching Xcode just to create a new
project, and then work on it exclusively with TextMate…
It would be great if TextMate had a “New Xcode Project”
command so that I don't have to fire up Xcode at all !
Does anyone here knows if it's easily feaisble ?
Thanks in advance :-)
The 'Statistics (Lines Added/Removed)' command in the Diff bundle works by counting + and - characters in the first column. The current count includes the '---' and '+++' that unified diffs have in the first two lines.
The fix is to skip the first two lines.
When saving a file there is usually a pre-selected file name given in
the dialogue… such as for a markdown file it is "untitled.markdown".
The whole filename is selected… but is it possible to actually get
only the "untitled" part selected?
thx,
Dan
Hi all,
I don't know if this is already a faq, but as I have struggled with
this issue for quite a long time, I care to share my "discovery":
when I want to set a bookmark with the Command-F2 shortcut, I need to
press the Command key first, the 'fn' key second (otherwise the F2 key
increase the brightness of the screen instead of passing the value to
the application), and F2 last.
If I press the 'fn' key first and the 'Command' key second, the
bookmark is not set.
Best regards,
Giulio Cesare
Hi all,
The New note keyboard shortcut "^ {" in the GDTAlt bundle, does not
work on a swedish keyboard. I press ctrl-alt-shift-8 for this, where
alt-shift-8 stands for {.
The end result is just a '8' written out.
/Håkan
Disclaimer: I've got no knowledge of how to code bundles. I can
simply copy the wonderful work done by other people.
That being said -- before I start hacking, has anyone created a
PHPDoc Parser Bundle that would allow me to see up-to-date
documentation of my PHP codebase in TextMate, similar to the way the
TODO List bundle allows me to see where I've marked Todos? I love
TextMate as it's much easier for me to work with projects in
TextMate's formatting, but I miss using something …
[View More]like Zend that'll
parse phpdoc formatted comments on the fly.
Thanks,
Karl Katzke
Karl Katzke | Systems Analyst I | Texas A&M University Athletics |
Internet & Special Projects
Contact: kkatzke(a)athletics.tamu.edu | office: 979.458.4075
[View Less]
The bundle is very nice, lightweight and fast. Excellent.
One thing I do not like is: for me it is very convenient to use
text files containing a lot of stuff besides the
projects: e.g., additional information, a list
of the steps already taken, telephone numbers,
how-to reminders, etc etc. This is extremely handy.
When I open the file concerning a certain group of related
projects, all the info I need is already there and makes it
faster to write the details of projects or do the actions.
…
[View More]Now the problem with GTDalt is that any extraneous line
gives an error. Wouldn't it be nicer if anything which is
not contained in a project...end pair would simply be
ignored, so that the file could be used in a more
flexible way? This should not be too difficult to do
if I understand scopes (unless it's a feature...)
Thanks,
Piero
[View Less]
If I change one character in an open, previously saved TM document, switch
away from TM to the Finder, and then switch back to TM, I get this warning:
"The file for the document at ~/Desktop/yourfile.rb has been modified by
another application. There are also unsaved changes in TextMate. Do you want
to keep the TextMate version or revert to the version on disk?"
This warning is well-intentioned but (under these circumstances) false. m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://…
[View More]www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
[View Less]
Hello, folks. I Googled for about 20 minutes and seemed to find nothing.
Here is my problem.
1. I check out a project in Eclipse using Subclipse.
2. I work on the project in Textmate.
3. In Textmate, I add a file to version control, queueing it to be
committed.
At this point when I flip back to Eclipse, the Subclipse plugin thinks
the entire directory containing the new file is not under version
control. If I try to update or check in with Subclipse, that directory
is messed up. It's as …
[View More]though Subclipse doesn't think the directory is a
working copy, even though the .svn directory is still there and the
entries file is still there. I haven't done a before-and-after diff yet,
so I don't know what happened. I'm too tired to do that now. :)
Any advice? What's up? Help!
Thanks.
--
J. B. (Joe) Rainsberger :: http://www.jbrains.ca
Your guide to software craftsmanship
JUnit Recipes: Practical Methods for Programmer Testing
2005 Gordon Pask Award for contribution Agile Software Practice
[View Less]
Hi,
I just wondered if there is a way to quickly see which keys are bound
by key equivalents in the current scope. The reason is that I wanted
to assign a key equivalent to a custom macro, but all the key
shortcuts I came up with were already assigned in "text.tex.latex".
So if you know a better solution than trial-and-error, I'd be happy
to hear it.
Nicolas Schmidt
Dear all,
after some tiny stylish changes and some optimization for speed here
the latest version of Hypersearch.
As always comment are welcomed.
Best,
Hans
I'm happily using the GTDalt bundle. Nearly everything is working
perfectly. I'm seeing one strange issue:
When I run synchronize with iCal, I get a calendar per context in
iCal as Haris describes, but for all contexts, no actions are
exported. There are no errors reported and the bundle works
flawlessly otherwise.
I haven't seen this particular issue come up here and its not
mentioned on Haris' page:
<http://skiadas.dcostanet.net/afterthought/2006/07/17/gtdalt-and-ical/>
…
[View More]Any ideas ?
[Newest Bundle (AFAIAW); Textmate v.1292; iCal v.1058]
wtia,
mark.
[View Less]
Things I'd like to see eliminated.
1) Don't want blank line inserted after Doctype.
2) Don't want to credit Tidy as generator.
3) Don't want blank line inserted after closing head (</head>).
4) Don't want blank line inserted after html comment.
5) Don't want blank line inserted after closing h1 and paragraph tag.
6) Why is it wrapping the CSS found before the closing head tag with:
/*<![CDATA[*/
/*]]>*/
I don't have a problem with the way it indents, just the above concerns.
…
[View More]Besides not doing the stuff mentioned above, Dreamweaver's Source Formatting
command:
1) Eliminates all blank line feeds.
2) Does not place content within <p></p> in a separate indented line. It
keeps everything compact like so:
<p>My content here.</p>
3) *Does* place the content within <div></div> on a separate line indented
like so:
<div>
<p>Content here</p>
</div>
Yep, maybe a GUI dialog would help but for the masses migrating from
Dreamweaver, maybe providing a default Dreamweaver-like setting that
addresses the above would suffice. What's crazy is that as great as BBEdit
and other editors are, I know a lot of people that keep Dreamweaver around
just for source formatting.
---------- Forwarded message ----------From: Jacob Rus <jrus(a)hcs.harvard.edu
>
> To: textmate(a)lists.macromates.com
> Date: Wed, 08 Nov 2006 22:47:08 -0500
> Subject: [TxMt] Re: Newbie Customization of Tidy
> hcabbos wrote:
> > Can anyone point me to instructions on how to modify HTML Tidy's
> formatting
> > of documents. There's a bunch of stuff that happens that I don't care
> > for...stuff that running HTML Tidy in BBEdit doesn't do.
>
> You'll have to clarify. What exactly happens that you don't like? How
> would you prefer the command to work? Which options from tidy (there
> are several dozen, almost all of which seem pretty stupid to me :p) do
> you want TextMate to expose to the user?
>
> For more on creating TM commands, the TM manual has a pretty good
> explanation.
>
> > I'd love Dreamweaver's method of formatting within TextMate--at least
> for HTML
> > files. What's nice about BBEdit is that it allows you to point to
> Dreamweaver's
> > SourceProfile.txt file as a custom profile for source formatting.
>
> You could certainly build this feature yourself. But if you want
> someone else to help you out with that, you'll have to explain how it
> works.
>
> * * *
>
> I think it would maybe be worthwhile to put some sort of GUI dialog in
> front of a tidy command. But which options are needed? Keeping the
> interface as super simple as possible also has many benefits (such as
> keeping people from making unreadable unindented html ;).
>
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
>
>
[View Less]
Can anyone point me to instructions on how to modify HTML Tidy's formatting
of documents. There's a bunch of stuff that happens that I don't care
for...stuff that running HTML Tidy in BBEdit doesn't do. I'd love
Dreamweaver's method of formatting within TextMate--at least for HTML files.
What's nice about BBEdit is that it allows you to point to Dreamweaver's
SourceProfile.txt file as a custom profile for source formatting.
I recently did a post to my programming blog discussing my 30 day experience
with TextMate (http://sayspy.blogspot.com/2006/11/my-month-with-textmate.html )
where I said I liked the app but there just was not quite enough to tear me
away from Vim at the moment (but who knows since I just started using Vim
again and I am already missing the pretty GUI of TextMate =).
I had some personal gripes about the Python bundle in the post and Jacob Rus
suggested that I email the list with those issues …
[View More]so that they could
possibly be addressed by someone with bundle commit privileges.
I think the biggest universal issue I have is the lack of docsting support
in the various snippets. Both the function and method snippets leave out
docstring tab stops which is really unfortunate as Python best practices
practically dictate a docstring for *every* function or method (see
http://www.python.org/dev/peps/pep-0008/ for the official style guide for
Python). The class definition does have a docstring, but following
docstring conventions from PEP 257 (
http://www.python.org/dev/peps/pep-0257/) which is referenced by PEP 8 there
should be a blank line between the class definition line and the docstring
for the class but that would mess up the code folding so I can look past
that.
But that leads to the problem of code folding not working with Python when
there any blank lines within a block. Jacob said that this should be
addressed in TM 2 by making it easier to define whitespace-delimited
grammars which is great to hear.
The last big issue is the assumption that files containing unit tests end in
'Test.py'. In Python's unit test suite all files use the *prefix* of
'test_' to signify something is a test. This has the nice perk of not
requiring all test files to end in '.py' since you can directly execute
files with other extensions.
Anyway those were my biggest issues. I know most of these are minimal since
editing them directly myself is simple enough, but it would be nice if they
were part of the default bundle so I can get any other improvements made to
the svn repository for those things instead of having them ignored because I
have a local edit.
Keep up the good work. As I said, I think TextMate is a good app, just not
exactly for me (at the moment).
-Brett
[View Less]
This isn't a huge deal, but since it seems to have persisted through
a few TextMate releases and I didn't see it mentioned previously on
the list or in any tickets, I thought I'd ask about it. Does anyone
else end up with words merged together here and there when the text
is taken from an application into TextMate?
For example, if I try it on this message, the words "previously on"
in the first sentence get changed to "previouslyon".
I looked at the Input Manager and it seems to be …
[View More]a symlink into
TextMate.app, so it doesn't look like I'm using an old version or
anything. (I'm running 1324.) I primarily use ^⌘E from within Mail.
I don't know if this would happen with other apps or if it's Mail
specific. I don't recall the text ever getting messed up on the
return trip to the calling app (when I save in TextMate), but I can't
say for certain that it doesn't happen that way, too.
Rob
[View Less]
Would there be a way to add an cmd+R command to the webkit html
output to reload? Say from the TODO window or from the Py?Mate window?
Or would that be another feature request? .. (sorry Allan)
dirk
After automatically upgrading to 1324 at the weekend I've been having
problems with some functions in the Subversion bundle. If I try a
commit I get a popup window saying:
/Library/Application Support/TextMate/Support/lib/erb_streaming.rb:1:in
`require': No such file to load -- erb (LoadError) from
/Library/Application Support/TextMate/Support/lib/erb_streaming.rb:1
from /Library/Application
Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_commit.rb:13:
in `require' …
[View More]from /Library/Application
Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_commit.rb:13
I get a similar message for status checks, but updating to HEAD is
fine...
I have no idea what this means or why it hates me, but I can't help
wondering if it's because I'm running OS X Panther. As I understand
it, TM itself is Panther compatible, but some bundles aren't. Could it
be that a bundle update caused this?
If anyone has any ideas I'm all ears. Thanks.
[View Less]
Hi,
It looks like there might be a small bug in the ctrl-shift-L "Itemize
Lines in Selection" command.
I highlight text that looks like so:
---
It could be the case that there exists an $h_i \in H_s$ that is a
subset of $h_j \in H_s$. In this case, we can think of the
combination $h_i,h_j$ as a new concept class $h^\prime$ which ...
Alternatively, $h_i,h_j$ could be in the situation depicted in \ref
{fig:1b}. In this case, the VC dimension of $h_i \cup h_j$ is at
least ...
---
…
[View More]When I highlight and ctrl-shif-L to "Itemize Lines in Selection", it
hoses the second line. I guess it's finding the ":" in my \ref{fig:
1b} and thinking that I'm trying to make some kind of definition
list? Anyway, the result is this:
----
\begin{itemize}
\item It could be the case that there exists an $h_i \in H_s$ that
is a subset of $h_j \in H_s$. In this case, we can think of the
combination $h_i,h_j$ as a new concept class $h^\prime$ which ...
\item [ Alternatively, $h_i,h_j$ could be in the situation depicted
in \ref{fig ] 1b}. In this case, the VC dimension of $h_i \cup h_j$
is at least ...
\end{itemize}
----
I've just re-svn-up'd my bundles and the issue is still there, so I
just thought I should bring it up.
If my LaTeX is improperly formed as well, please let me know as I'm
no LaTeX guru ... :-)
Thanks,
-steve
[View Less]
(Re-sent to the list after replying solely to Haris the first time.)
On Nov 7, 2006, at 8:20 AM, Charilaos Skiadas wrote:
> I think I might have forgotten to tell Alan about the most recent
> updates I've done. Here is a temporary location for the most recent
> bundle. Alan, perhaps you could update the bundle on your website?
>
Done, thanks for the updates, Haris. The archive on my site[1] is
your current bundle now, and it should do the trick for Danstan.
Thinking …
[View More]broadly about the bundle and how I'm using sweave, it seems
to me that sweave ought to work for at least a few different
circumstances:
1. single .snw file sweave => typeset
2. sweave project (typeset optional; I use the sweave project to
prepare data for subsequent work, and frequently do not typeset at
this point.)
3. sweave current file => typeset (not really functionally different
than no. 1, just switched on the basis of TM_LATEX_MASTER, probably)
My current workflow is to begin with no. 2, and then work with the R
console to test code that I subsequently plug into a single sweave
file. When I'm ready, I sweave and typeset that single file (which
lets me avoid re-sweaving the whole big project each time I want to
fiddle with a table, for instance). The trick for the bundle seems to
me to be enabling smooth selection of a) master sweave, b) per-file
sweave, and c) typeset, with as few overlapping key commands as
possible.
Anyway, I'll be eager to really work on this as soon as I finish this
little project I'm working on.
Cheers-
-Alan
[1] http://textbench.com/tm/SWeave.zip
[View Less]
Hi there,
consider a sentence such as this:
...from the virtual environment's implementation.
is there a reason that the LaTeX bundle scopes a single apostrophe as
the following:
string.quoted.single.close.latex
punctuation.definition.string.end.latex
Am I using the apostrophe inappropriately in this context? i.e. is
there some fancy LaTeX code for an apostrophe?
Thanks,
Sam Aaron
Hello all,
I just found this [1], maybe it could help with the email bundle?
> Universal AddressService
>
> I’ve updated AddressService to a Universal Binary, and relicensed
> it under the LGPL.
>
> AddressService is an OS X system service that lets you select a
> part of a person’s first or last name and replace it with their
> addresses or phone numbers. It’s handy for quick entry into an
> email or chat session.
>
> I haven’t been able to thoroughly …
[View More]test it on an Intel mac, so
> please let me know if you find any issues.
[1]: http://michael-mccracken.net/wp/?p=74
[View Less]
James,
I just want to say thank you for a wonderful regex guide. That's the
first time I've been able to "get" it. I've attempted to understand
regex past the absolute basics a few times before with little luck.
I've also been learning a few things about TextMate.
Thanks
Mike Gregoire
For those who have been asking me when there will be another beta...
James Edward Gray II
Begin forwarded message:
> From: Dave Thomas <d...(a)pragprog.com>
> Date: Nov 8, 9:31 am
> Subject: New beta of the TextMate book is available
> To: Ruby on Rails: Talk
>
>
> Folks:
>
> I've uploaded the B1.03 version of Jame Edward Gray II's TextMate
> book. Here's what James says about the release:
>
> Sorry for the delay folks, but hopefully it will have …
[View More]been worth
> the
> wait. The next beta of the TextMate book is ready and it's just
> full of
> requested content!
>
> Several people have expressed to me the need for the book to cover
> TextMate's language grammars and I've been listening. The new beta
> contains a complete walkthrough of how to build a grammar, using
> JSON
> as an example. Beyond that, I've added coverage for the equally
> important preferences and themes. If you're wanting to use
> TextMate
> with custom syntaxes, this material should get you started.
>
> The other reason this beta took a bit is that I have been
> responding
> to your feedback. The community has provided tons of priceless
> advice
> for making the book better. Thanks so much for that! I've read
> through it all and tried to make improvements based on most of
> those great ideas. By all means, keep sending in the feedback.
> I want this book to be exactly what the community needs it to be.
>
> I use TextMate as my main code editor (and have for over a year) and
> I still
> learn new things every time I look through it.
>
> http://pragmaticprogrammer.com/titles/textmate
>
> Cheers
>
> Dave
>
[View Less]
The Rails bundle uses ⌃p for its params snippet, which drives me insane... everywhere else ⌃p means "up one line". When I change it to a tab trigger (and type "para"), the change won't stick. If I move to another bundle item and back, the activation type is back to "Key Equivalent". If I change it to "Tab Trigger" again, "para" shows up, but again the change doesn't stay.
The only way I've found to work around this is remove the params snippet.
Consider this bit of LaTeX:
$\frac{1}{\sigma} \cdot \xi \cdot \lambda$
the \sigma isn't scoped as a constant math character, where as \cdot,
\xi and \lambda are.
Sorry if I appear to be pointing things out rather than fixing them,
but the deadline for my thesis is rapidly approaching....
Sam
When trying to use the "Level 1 [setext]" or "Level 2 [setext]"
bundle commands I get the following output
Unknown option: n
Unknown option: 1
Usage: head [-options] <url>...
-m <method> use method for the request (default is 'HEAD')
-f make request even if head believes method is illegal
-b <base> Use the specified URL as base
-t <timeout> Set timeout value
-i <time> Set the If-Modified-Since header on the request
…
[View More] -c <conttype> use this content-type for POST, PUT, CHECKIN
-a Use text mode for content I/O
-p <proxyurl> use this as a proxy
-P don't load proxy settings from environment
-H <header> send this HTTP header (you can specify several)
-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways
-v Show program version
-h Print this message
-x Extra debugging output
Here's the actual command for Level 1:
#!/bin/sh
if [[ $TM_LINE_INDEX == 0 && $TM_LINE_NUMBER != 1 ]]
then head -n$((TM_LINE_NUMBER-1))|tail -n1|sed 's/./=/g'
else echo -ne '=\t'
fi
I'm running TextMate Version 1.5.4 (1324) and have checked out the
latest bundles and support.
Any idea why this is happening?
Thanks
Mike Gregoire
[View Less]
Hi,
only two short questions.
1) Is it possible to open tm_dialog at a specific position? (Not via
auto remember)
2) If 1) yes: Would it be possible to create a TM variable which
holds the absolute screen position of the caret?
I want to open a tm_dialog at the position of the caret like
show_tool_tip it does.
Thanks
Hans
Dear all,
here is my new suggestion to type Japanese, Chinese within TM.
- press apple+shift+i to invoke the dialog (delete the old inputCJK
in beforehand)
- activate Kotoeri or whatever
- type as usual, choose kanji etc. with space and return
- if you once again RETURN the text is inserted
- press ESCAPE to dismiss
Comments?
TODO:
1) Find a way to open the dialog at the caret position.
2) Don't display the dialog header. Only the textfield (?)
3) to invoke the dialog with a specific …
[View More]input method.
Any hints?
Many thanks in advance
Hans
[View Less]
Dear all,
here comes the latest Hypersearch Bundle.
New:
'multi jump function':
If there are more than one occurrence of the search pattern within
one line you can click at each emphasised match (or in between - see
help) to jump to its position separately.
Changes:
-keyboard shortcuts are changed to TM's defaults; i.e. option+apple
+r,i,w
-output window displays the file name
--Here I had to hack the code for 'html_header'
----
export HTML_PAGE_TITLE="Hypersearch"
export …
[View More]HTML_WINDOW_TITLE="${TM_FILENAME:-untitled} - Hypersearch"
export HTML_SUB_TITLE="<big>$MTCH $CNT found for “$RES”</big>"
"${TM_RUBY:-ruby}" -r"$TM_SUPPORT_PATH/lib/web_preview.rb" -e 'puts
html_head(:window_title => ENV["HTML_WINDOW_TITLE"], :page_title =>
ENV["HTML_PAGE_TITLE"], :sub_title => ENV
["HTML_SUB_TITLE"], :html_head => "")'
----
Maybe it would be worth to change html_header in such a way that you
can specify window_title and page_title separately. web_preview.rb
has this functionality yet.
-Error messages are shown as tooltips
-you can specify a group for regexp like '>(.*?)<\/' to highlight
everything what is between '>' and '</' (see help)
-tiny format stuff
-I set the limit of output line to 3000
--The reason why is that if I close the HTML output page (with more
than 5000 lines) TM freezes for seconds! It takes roughly a minute!
ANY HINTS???
Bug fixes:
-\t, \n now works in regexp mode instead of \\t, \\n
-search within, and output of xml/html documents is now correct
-correct display of number of matches in case sensitive mode
As usual feedback is welcomed.
Have a nice day (or night)
Best,
Hans
[View Less]
Someone had asked the other day about editing files as root. I notice
that TextMate prompts for an admin username/password when asked to
save a file to which it does not have access, but that doesn't do
much good if the file can't be read in the first place. (BTW,
shouldn't TextMate/mate warn if you pass it the name of an
inaccessible file?)
Anyway, I whipped up the attached script which I call smate. FWIW, I
guess this functionality could be built into mate itself. (Allan,
wasn'…
[View More]t the source for mate available at some point?)
HTH,
j.
[View Less]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi again,
I am using the following drag command that calls Transmit per
Apple script:
http://pastie.textmate.org/21681
at the end to do mostly a single File upload at a time.
(Called Screenshot handler)
I want to get rid of the "true" echo, that gets inserted together
with my snippet in the document window.
(The code is almost the same, as is in the Transmit Bundle,which I
customized to my needs, …
[View More]without any Idea about Applescript.)
(Thanks for all the help again)
How can I do this ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFUOUS8tSzPOYuZvQRAstxAKC5miiBEqgKDL9munkP9cPOm0XYvQCfb1Gf
n96BzBwAWj7WG7czjjdrFEY=
=Zsb6
-----END PGP SIGNATURE-----
[View Less]
hi I am new here, but I have a big question
I use textmate since some weeks and love it, before I used subethaedit
and I really loved the feature to work with some friends via subethaedit
on one document at the same time.
now I found also an editor for linux which does the same (not testetd)
http://mateedit.sourceforge.net/
my friends also love textmate, but without the collaborative feature
they will stay with subethaedit.
so my question is, if this feature is alreade implemented and …
[View More]I cant
find it or if it is planned for the near future.
cause it would be sooooo cool and helpfull.
thanks a lot
herbert
[View Less]
Is there any way to disable TextMate's refreshing of content when it regains
focus. The project I'm working on is on a samba mounted drive and,
especially since the last update, takes a really painfully long time to
reactivate when I click on it.
I'm constantly switching between a web browser and TextMate and the delay
really interrupting my productivity.
-dave
Hi all,
I've done my best to search for information about this in the ticket
system and on this mailing list, but it's one of those things that's not
very easy to search for.
Here is the scenario. I have a large project with lots of folders and
file references. I have these references grouped using the "Groups"
feature so that I can easily find everything in the project. When I
focus another application and then focus back on TextMate, the groups
and folders all collapse, and I am …
[View More]left having to traverse back to the
last area I was working in.
Has anyone else noticed this behavior? Is it a bug or a feature? If
it's a feature, can I turn it off?
I don't have specific steps to reproduce, but it seems to happen on any
project with a large set of files and a nested folder structure.
Thanks,
Taylor
[View Less]
I have a thing about shooting out emails and then remembering a bug I
forgot to check for. I apologize.
This one exits properly if there is only one address found.
Brett
Hi,
I'm using the latest TextMate version (1.5.4 (v1324)) on Panther
(10.3.9) with ruby 1.8.5 installed. Texmate works pretty well with some
minor changes in some snippets.
When pdftex has finished to compile your LaTeX document, the Typeset
and View (PDF) use the following command
'open -a "$V" "$PDF"'
However, if your viewer is Adobe\ Reader\ 7.0.8, this command doesn't
work with the open Panther comand. It is necessary to use the following
command
'open -a "$V.app" "$PDF"'
The …
[View More]problem is I have no error message in the Typeset and View window
because the find_app command find Adobe\ Reader\ 7.0.8, and the open
command error message is not displayed (open return "Bus error" message
when I use 'open -a "$V" "$PDF"' in Terminal.app)
Maybe the test ('if find_app >/dev/null "$V.app"; then ... fi') would
be different or you can use the find_app output result in $V$.
Regards,
Arnaud
[View Less]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, Sorry for bothering again.
I am having trouble with the Dynamic variables, not sure, what is going on.
Here are some test-strings of current lines, and the wrong output I get
from this variable, instead of the whole string, using the Show
TM_VARIABLES command.
1) <li <txp:zem_nth step=1
of=2>class="odd"</txp:zem_nth>><txp:linkdesctitle /></li>
$TM_CURRENT_LINE echoes: [CSS-bullet] class="odd">
2) <txp:…
[View More]if_article_category></txp:if_article_category>
ouput: nil
Which means nothing.
I first thought, that this might have been caused by the HTML output of
the Show TM_VARIABLES command, but echoing the variables does give me
the same strings.
It seems, that any HTML brackets will just strip the content off, from
the variables.
I am using latest cutting Edge. (build 1311)
regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFSNxE8tSzPOYuZvQRAqfKAKDQvO+9ovJtBj12uZ3gQ20oMRTPUACgzi1B
l2SViTvbOjQqI0gPfimbTsY=
=qWsu
-----END PGP SIGNATURE-----
[View Less]
1. I'm a happy (64-year old, retired) enduser of textmate, not a
programmer.
2. I'm using a textmate project as my "personal textbase". The
project has many markdown files. I don't use markdown as a source to
convert to html but as the real thing, as my final product (with an
occasional preview for reading convenience).
3. My markdown file is a container for one or more articles, each
about a separate topic. Every article is uniquely identified by a tag
in the form of a string "…
[View More]tagid=<tagid>".
4. I'm using crossreferences to other articles in the form of a
string "tagref=<tagid>".
5. To link from a tagref to the associated unique tagid I use the
"Find in Project" dialog. I type "tagid=<tagid>" and click the single
link in the result to load the relevant file.
6. I love to have the following command: with the caret in a
"tagref=<tagid>" reference and pushing the enter key, the relevant
file automatically loads.
7. I have no idea how to make this command; help is appreciated.
[View Less]
Hi all,
I am getting an error during commit saying "no url for ..../somefile"
where somefile is not the same each time I try and commit. Status,
add, delete etc work fine. So just for commits I have to go to the
command line which works fine.
Any ideas?
Thanks very much
bakki
Hi,
I just noticed that the replace and "find replace" commands in the
find window don't work when using it from the bundle editor. Seems
like a bug to me, but perhaps I'm missing something.
N. Schmidt
A typical problem is the bold command in the Latex bundle. Instead of
inserting "textbf{}", it inserts "env: ruby -s: No such file or
directory". The bold command seems to work if I replace the first line
in toggle_style.rb with "#!/usr/bin/ruby -s". (I have created a link
so that /usr/bin/ruby links to Ruby 1.8 installed from Fink.)
Will I break things if I change the first line of the various ruby
scripts from "#!/usr/bin/env ruby -s" to "#!/usr/bin/ruby -s"?
Thanks for your help,
…
[View More]Darryl
> On Sep 17, 2006, at 1:09 AM, Darryl Morrell wrote:
>
>> I recently acquired TextMate 1.5.3, and am overall very pleased with
>> it. However, I am running OS X 10.3.9, and several bundles do not
>> work correctly. In particular, several commands in the Latex and
>> TODO bundles do not work. Some of the problems were fixed by
>> installing Ruby 1.8 from Fink, but many others remain. Any help
>> would be appreciated.
>
> A lot of bundle commands require Ruby 1.8, and as far as I know that's
> the only problem with 10.3.9, so if there are still commands you can't
> run, then you should probably tell us what they are and what error
> messages you get.
>
>> Darryl Morrell
>>
>
> Haris
[View Less]
Hi
I updated the my Sweave bundle using the tar file from Alan's site..
Following the update the latex markings in my .snw do not show up
(the R markings do).
I noted that that the update did NOT include text.latex (or the in
the update text.tex.latex) in the scope selector for the Sweave in
R etc..
And in the Typeset & view of the Sweave bundle the scope that was
originally text.latex.sweave has changed to just text.sweave.
I am not sure if this has any bearing on my …
[View More]problems (adding the
text.tex.latex in the Sweave in R seems to bring back the latex
markings at least in my .snw file so I think it does...).
Also now, I CANNOT use my keyboard activation (the menu
activation seems to work). They keyboard equivalents open a finder
window instead! I have even tried to re-enter different keyboard
equivalents in the Sweave bundle editor without success.
Any help would be most appreciated.
danstan
[View Less]
Hi all,
Can someone please provide some applescript to open a new blank
document in TextMate. I plan to assign this to a Quicksilver trigger
so that a new text file is one key combo away at all times.
Cheers,
-----------------------------
Luke Daley
http://www.ldaley.com
-----------------------------
Hi all-
Just a quick note of appreciation for the rash of improvements to the
R bundle in the last little while. I've been using the R console for
three days solid, and it and stuff like the command template and help
commands are working great. It's turning into a seriously formidable
environment. What good stuff.
Haris, Kevin, and others -- thanks much.
-Alan
exception rendering is slightly buggy. you use the message property of the
exception object, but actually it doesn't work... dunno why.
fixed another little glitch, where you had "function <module>" being printed I
replaced it with "module body". the last modified line replaces "untitled" with
"unknown location", but you might want to see if you want it merged or not. I
just like these two items this way, YMMV ;)
ciao,
domenico
p.s.: someone PRETTY PLEASE can give me my …
[View More]progressive output rendering back? :
(
[View Less]
Dear all,
I'm a big fan of TextMate and a longtime user, but have only recently
completely abandoned Emacs and seen the light. :-) While TextMate
really lives up to my wildest dreams as a text editor, I have found
that there are a couple of little things that I miss. I write a lot
of fiction, and while editing I've found that the Emacs function
"kill-sentence" is extremely useful. I was wondering how difficult it
would be to implement something like this in TextMate, i.e. a command …
[View More]
that would either cut or select the *current sentence*... in the same
way that one can select the current word or paragraph. It seems like
there should be a way to define this using the appropriate scope, but
I'm such a nuubie that I'm afraid to start poking around... Getting
this to work in e.g. Markdown mode (where I do most of my writing)
would be enough. Any ideas?
thanks in advance,
-- Hannu Rajaniemi
[View Less]
Registering for the ADC Leopard talks, I note I have the following
choices in answer to:
What development tools are you using to build your application(s)
today? (check all that apply)
* Xcode IDE
* gcc/Xcode build system via TextMate <<----- !!!
* gcc command-line only
* Eclipse
* Other
Kudos to all.
--
Simon Pride
a: Bronxville, NY 10708
why is the new version of pymate written in ruby?
I don't know jack about ruby -- why should I learn it in order to hack on a
tool I use daily while writing python code? come on, we don't want no stinking
ruby here!
I often compose emails in TextMate and paste them into new messages
in Mail. I think there should be a automated way of doing this.
What I've come up with so far involves transforming the document into
a link and runing it with the "open" command. Something like this:
open "mailto:jo@foo.net,%20elizabeth@bar.com?
cc=sam(a)fake.org&subject=New%20Fall%20Schedule&body=Hey%20guys%21%0A%
0AI%20just%20wanted%20to%20let%20you%20know%20that%20I%20was%20in%
20town%20next%20tuesday.%…
[View More]20Please%20call%20me%20at%20818-555-1234%20so
%20we%20can%20set%20something%20up.%0A%0ASee%20you%20then%21%0A%0A--
oliver"
This works reasonably well.
Obviously, transforming the document into a single link would require:
1. A syntax
2. URL escaping
2. Some clever search/replace
But before I invest time into this I wanted to ask you guys what you
thought.
Is this a good candidate for the existing mail bundle?
Are there better ways of sending the message to mail than thru a link?
What are your thoughts?
--oliver
[View Less]
Hi,
Is there a command to select the current node and its descendants in
an XML or HTML document? I know there is the "select current scope"
command, and the "select enclosing brackets", but they don't seem to
work this way.
It would seem that a "select node and descendants" is quite possible
because the "close tag" command traverses the DOM and closes the
current node.
Greg
I love this concept, but my last version of Justin's command didn't
have image dimensions. Now it inserts dimensions if you're inside a
blank rule or creates a full rule with dimensions in source.css. Of
course, if you're inside parenthesis it will just insert the name
with single quotes, inside single quotes just the name, you know how
it goes. It inserts as a snippet and on the longer snippets it
kindly leaves you after the last semicolon of the last value, so that
if you're …
[View More]using the workflow commands adding more declarations is as
easy as hitting tab or CTRL-N then TAB for a new rule.
I'm actually finding this more useful than the drag command... it's
more accessible and doesn't require the mouse! But they both have
their place, the drag is nice when you have a lot more images and the
folder management comes into play. A big thanks to Justin Palmer.

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
[View Less]
I haven't run across this before, so I thought I'd share.
Here's a simple command for looking up the current word in
Dictionary.app:
osascript &>/dev/null \
-e 'with timeout of 30 seconds' \
-e 'tell application "Dictionary"' \
-e 'activate' \
-e 'end tell' \
-e 'end timeout' \
-e 'do shell script "open dict:///$TM_CURRENT_WORD"' &
We can't just do the shell script because, for whatever reason, it
only works if Dictionary.app is already open. Without the "Timeout"
argument …
[View More]applescript will not wait for Dictionary.app to open before
requesting the definition.
I'm sure there are better ways to code this, but it works for me.
--oliver
[View Less]
[2006-11-02: REVISION 1324]
[REMOVED] TextMate no longer pays tribute to human sacrifices, rape, nor
does it show a picture of the God of the deaths in your dock -- ticket
945BEB5D
lol, please tell me people didn't complain about the easter egg?
Also, while I'm doing things just for giggles, bloggers might want to
check out http://murl.info/14421. It's a little TM command that
triggers an applescript that pulls in whatever text is highlighted in
Vienna (RSS Reader) and formats it as a blockquote with linked
credits and inserts it into your current entry. The applescript is
separate and can be edited to work with other readers/programs.
it's just an implementation choice I find too hurried.
p.s.:
> Because the existing pymate was broken
by any means, the code stinks and it's got lots of ugly bugs hard to fix --
I'm not against a rewrite or something, I'm against a rewrite in ruby.
think about letting the build factory of -- say -- FreeBSD run on top of linux
machines. that's just weird.
come on, I didn't want to be rude and I think I was lacking a ";)" at the end
(even if the adjective "stinking" should turn a light on, how can you be
serious if you say a language stinks?).
it just strikes me as... hell, strange! and no, I have no plans on learning
ruby -- nor should I in order to fix or just tweak something which happens to
be used by... like... python programmers, you know. it's just an implementation
choice which
When I hit ^#, I get this error:
nib could not be loaded: dateInterval.nib (does not exist)
The nib is there at /Library/Application Support/TextMate/Bundles/
GTDAlt/nibs and I killed all my local mods to the bundle in ~/Library...
Any idea what's up?
- Ben
Hi,
Within TM's status bar you find 'Line: xx Column: xx'
If I use e.g. Tab Size: 4 and 'No Soft Tab' the column counter only
works for TABs from the beginning of a line but not for TABs within a
line.
Example:
I have the following line (numbers := column counter):
TAB TAB TAB Hallo
| | | |
| | | -13
| | -9
| -5
-1
OK, but
TAB TAB TAB HalloTAB World
| | | | |
| | | | -21!!! (it should be 22!!)
| | | |
| | | -13
| | -9
| -5
…
[View More]-1
The same also for 'Hallo TAB World'.
Please note: 'TAB ' means '\t' but easier to count.
Or am I completely wrong???
I'm using Cutting Edge TM 1.5.4 (1324)
Best,
Hans
[View Less]
Hi there,
I have this very simple PHP code as a test :
<?php
$chaine = "é";
echo ord($chaine[0])." ".ord($chaine[1]);
?>
The $chaine variable is initialized with «é» (e with acute accent)
just in case…
If I save this file in UTF-8 as usual and use the “Run” command,
it returns “195 169”, as it should : it's the UTF-8 representation
of the letter é.
But if I save this same file in ISO-8859-1 and use the “Run”
command once again, I still have “195 169” whereas I should
…
[View More]have “233” (representation of é in ISO-8859-1).
Note that I don't have any problem if I host the files
on a server somewhere. Therefore, it seems to be a small
bug with the PHP “Run” command which returns the UTF-8
representation no matter what…
Thanks in advance :-)
[View Less]
...ala Justin Palmer (http://murl.info/14420)
I took the liberty of taking Justin's sweet little mod of Allan's
tm_dialog example and incorporating the all-purpose CSS drag command
code. Just for giggles. (Nice lineage, huh?)
It's mapped to CTRL-SHIFT-I right now, and it's actually really
handy, especially when there aren't a ton of images in the project.
I haven't gotten a chance to really explore tm_dialog yet, but I'm
sure this could do a few more tricks ;-).

Brett …
[View More]Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
[View Less]
* the grammar now scopes module definitions, class definitions, function
definitions a.s.o. as meta.definition.*
* the symbol list only shows meta.definition.* stuff (I like it this way, but
if there are any objections I'd like to know which are your usage patterns)
* lookup in hoogle: hoogle is the documentation search engine for haskell
libraries; code stolen mercilessly from the web searches bundle
* load in ghci: useful if you're debugging your purely functional code
(sometimes it …
[View More]happens... :P). it loads the current file in GHCi and leaves you
at the interactive terminal. if you use HUGS or other haskell implementations
feel free to "generalize" it, I'm a GHC-only type of person... ;)
* LAZY.tmtheme got enhanced to support more and more Haskell goodness. minor
updates to Prolog and PHP support too.
this time my stuff should be easier to merge... ;)
ciao,
Domenico
[View Less]
Dear all,
thanks for the feedback.
I changed the following:
- the tm_dialog remembers the last screen position
- add an history list for search patterns
-- default 5, but changeable via environment variable (see help)
-- if you choose the last item from the history list it will be placed
on top of that list
- self-repair mechanism
-- if the syntax of the plist is not valid, Hypersearch will use the
default one
- look for an empty string will open a tooltip
- the HTML window will be …
[View More]displayed if there is something to display
(thanks Brad)
Feedback is always welcomed.
All the best,
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
[View Less]
Would it be possible to add Rename functionality (svn move) to the
Subversion bundle? Basically, it would be great if we could just ^A
on a file, select Rename, enter a new file name (or full path for
moving the file) in a simple text field dialog and let svn move do
its magic. Any chance this could be implemented? Thanks.
Sebastian
hello (sorry for my bad english)
I have several questions in connection with the themes.
1) For the LaTeX users with TM : Which topic do you use?
2) Generally, is it possible that a theme can be excellent for
several languages?
I think that it is very complicated ...
In the TextMate manual :
"Changing theme is global i.e. it is currently not possible to select
a specific theme per file or file type."
But is it possible to have a theme for a specific scope or bundle ?
is it possible …
[View More]that this option will be a future feature ?
3) I work especially with Latex and CSS and for Latex, it seems to me
that only two themes are proposed:
Blackboard and Brilliance Black but at each time i' ve some problems
with LateX .
Blacboard is perhaps simple and the best but do there exist other
themes to use LaTeX?
I would like to make some changes but it is relatively difficult. For
example, I often use pgf/tikz and I suppose that many uses pstricks.
I would like to be able to emphasize
\begin {tikzpicture}… \ end {tikzpicture}
and reserved words of tikz in a certain color. I think it's the
same for pstricks.
Perhaps, one among you is able to describe the procedure because I
suppose that it will be the same one for all the packages.
How to make? Do you have recommendations so I can do that myself?
4) Do you know if somebody began a bundle for the authors of classes
and packages (.cls and .sty)?
There are specificities for these files. Best, undoubtedly, is to do
myself these themes and grammar but i need also recommendations to
learn and iunderstand how to proceed !
Greetings Alain Matthes
[View Less]
Hi,
I have tried to do search but couldn't find a solution for this, so
any assistance would be helpful. I want to be able to create a
comment box round a selection - say round the text "comment box"
as below (Eg shown uses Stata style comments). I need
functionality primarily for use in the R and Stata bundles. Thanks
in advance for any leads.
/**************
* *
* comment *
* box *
* *
* *
**************/
danstan
Hi all,
I was wondering if anyone has any suggestions as to how one might use
Textmate to interface with Matlab? I can have a command execute a given
.m file, but Matlab is a much heavier process to load than perl is from
the command line, so that becomes a very unattractive option.
Ideally I'd like to have Matlab running in a terminal (the java
interface is just too slow for me), and edit with Textmate in such a
way that commands could reach the already loaded session.
cheers,
-don
=…
[View More]=========================
Don Kalar
Graduate Student,
Cognitive Neuroscience
UCLA Department of Psychology
1285 Franz Hall, Box 951563
Los Angeles, CA
90095-1563
==========================
[View Less]
Hi,
i've run into a little problem:
I've made a "draft" via webinterface of wordpress, but when i press
"Fetch Post" i don't get to see the "Draft"
Is this a missing feature (sinds it isn't also in the "headers" part
Or is that the xmlrpc.php that has the limitations
Regards J.
Hi,
I am slowly developing a Cheetah bundle, adding functionality as I go.
Now I like to add the correct behavior invoked when I trigger cmd
+/ , the Comment Line/Selection command.
Cheetah command looks like this:
## a comment
How do I tell the "Comment Line/Selection" command how a comment in
Cheetah looks like?
Cheers
dirk
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, to all of you TM and TXP friends,
The next version of the TXP Bundle is available for download. Version
0.7, because version 0.6 will remain unreleased. The only purpose of
version 0.6 was to pile up in-house evaluation data, before then
refactoring the Language Grammar, which is based on a little different
concept.
If you had any previous version, it is recommended, to through those
away …
[View More]prior installing this Bundle.
In a nutshell, the concept is to follow the same shortcuts and Behavior
as is in the HTML Bundle, so the typing becomes homogeneous with the
former in one go.
Most shortcuts have been changed, but you will find it to be more
convenient , once yo get used to it
Furthermore the scope names have been simplified and plugin tags are
only matched in generic manner for both single and container tags
I am still working on a concept to refine the matching of the plugin
tags, but this will take time.
If you still use older versions of this Bundle, it is recommended to
through these away.
A last check shows, that there is no Errors in Console, however, it
would be nice, if yo could check the latter on yours and confirm that
at some point
The Language Grammar that drives this Bundle, spans more than 4300 lines
of code an there are 86 Bundle items, which puts it in the range of
some of the most comprehensive Bundles done ever.
I would recommend, to place your customizations in a separate Bundle,
instead of this one
It will be necessary to install the custom Theme as well, since there is
currently no Them other available that would give us the Syntax
highlighting we need, and since I had t change the Scope names, the
current Theme that you have, will not give you what yo need
You may wish to start off, calling the documentation,which is basically
the same of what follows below, by just pressing ⌃ H, from any TXP
scoped document window.
The first http://www.consking.com/screencasts/txp_bundle_typing_1.mov/
Screencast, that is pretty trivial, walks you through the Typing Basics.
I used the H.264 settings to render it, which AFAIK means, you need
Quicktime 7 to watch it.
It's about 32 MB/ ~12minutes.I didn't bother much to get it down more in
file size, since it will only result in ugly artifacts in most cases.
One last thing, I would like to mention:
Although it took me much longer than expected, I've gained a big deal of
things doing this, which I am quite grateful for, so you can take this
as an example, that even Non-programmers can take advantage of this
Power tool, to create a Language Grammar for about any CMS Language you
can think of. if you wanted to.
With best regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFTe3b8tSzPOYuZvQRAuObAJ9crxe24GxdH/aMwHuUwF1QhhLjdwCdEYbg
XheT1ATizrVmMwM8iZU0R7o=
=E5DV
-----END PGP SIGNATURE-----
[View Less]
I just noticed that <%= %> and <% %> have been moved from Rails to
Ruby. But it does not work now in either. I tried text.rhtml for scope
but it didn't help either. Did a svn up also.
ANy help will be greatly appreaciated.
Thanks,
bakki
Is it possible to have web preview window always on top of other windows?
I haven't found that in prefs and it doesn't seem to be any basic option
in Interface Builder.
--
regards, porneL
If anyone wants to modify my blog linking commands to work with
Markdown, feel free ;-). I'm so used to HTML that I didn't even
think to code it in (sorry) and I'd never use it, so I'll leave it up
to someone who will...
Brett
Excerpt functionality *is* built in to the xmlrpc in wordpress, you
just have to send it the mt_excerpt header, as mentioned on this list
previously.
If you edit the blogging.rb file in the blogging bundle support
directory (or make a copy in a new bundle) and add:
@post['mt_excerpt'] = @headers['excerpt'] if @headers['excerpt']
around line 224 (it's not especially important, as long as it's in
that block) it will send a header in this format:
Excerpt: your text without line breaks
…
[View More]You'll want to edit the language file to include the [Ee]xcerpt
header so it highlights properly.
Then you'll want to add
doc += "Excerpt: #{self.post['mt_excerpt']}\n" if self.post
['mt_excerpt'] && (self.post['mt_excerpt'] != '')
at about line 400 in blogging.rb so that it will retrieve the
excerpts when you fetch the post or after posting.
That's it. Excerpts should work for you then.
Brett
Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
[View Less]
The 'Open Module' command in the Perl bundle looks for a line like
use ModuleName;
but quite a lot of code uses instead
require ModuleName;
Changing line 9 of the command to
if ($line =~ /^\s*(?:use|require)\s+([^\s;]+)/) {
fixes this.
--
Andy Armstrong, hexten.net
I just tried to post a blog entry that is scheduled for a future day…
is that possible in the blogging bundle? It seemed to ignore my
manual set date?!
thx,
Dan
Hello
This bundle is awsome and very useful.
For people who works with LaTeX and with a lot of files with iso
8859-1 encoding, i make a widget after having looked at the sreencast
#!/usr/bin/env bash
for file in "$@"
do
/usr/bin/iconv -f ISO-8859-1 -t UTF-8 "$file" > "$file".utf8 && mv
"$file".utf8 "$file"
done
Now i can drop all the files of a directory and get utf8 files
(attention : with this script , the old files are lost, perhaps a
backup is necessary before)
…
[View More]Thanks Andy, for this great tool
Alain Matthes
[View Less]
Ok, this is it, I'm getting back to work. No, actually it's time for
a movie with my wife. Looks like I'll be working Sunday ;-).
This is a Wordpress plugin, a blogging.rb patch and a Search Posts
command. The plugin returns related posts with title, permalink and
ID. The blogging.rb patch/command will give you a dialog to enter a
search term or phrase (unless there is text selected) a dropdown to
pick a post, fetch it and open it in a new window.
I hope somebody finds it useful.…
[View More] I know I do.
Brett
[View Less]
This is a quick patch file for metaweblog. If you install the plugin
(seriously, it is, in my opinion, very cool), you'll need this to run
the command in TextMate.
I have gone a step further and modified the plugin by one tiny line
and now I can run a search for posts by keyword using the plugin, and
open them just like Fetch Post. Difference being I can open any post
I've ever written and I can narrow the field down instantly... I
will post the updated plugin, a patch for …
[View More]blogging.rb and a Search
Posts command all together.
Brett
[View Less]
In my enthusiasm I forgot that I made a 3 line addition to
metaweblog.rb in order to make the related posts plugin work. I'm
going to paste it here (sorry, Allan) but I will make a diff file in
a minute.
def getRelatedPosts(blog_id, username, password, data)
call("wordpress.getRelatedPosts", "#{blog_id}", "#{username}", "#
{password}", data)
end
Brett
Another unproductive day at the office yields more of my usual tricks.
I was writing a blog post and realized that I often want to link to
an article I've written myself. This tends to be a good practice,
even if just to keep new visitors delving a little deeper into your
site. But none of the current linking tools in TextMate were
especially good at handling this. So I started problem solving.
Solution 1: Lookup Word/Selection on blog and link. This command
was my first idea. …
[View More]It's just a modification of the google lucky
linking command that takes your selection, lets you choose which blog
from your endpoints and then runs a google search with a
site:your.blog.com in the search string. So it's limited to results
from your own site, and links to the first result returned.
Solution 2: That wasn't effective enough. Posts aren't always on
Google if they're too old or too new and there was no control over
which post was chosen. So I modified the Fetch Recent Posts command
to insert a link to the chosen post. If you run it without any input
it will ask you for the text of the link.
Solution 3: That wasn't complicated enough. This last solution is
for Wordpress users only, I'm afraid, but it's a doozy. The plugin
included here is a heavily modified version of the Related Posts
plugin. It runs a FULLTEXT search on your posts with your selected
text and returns relevant posts in an array. The whole thing is an
XMLRPC hook. No hacking required. I finally figured out how to do
this today, so I'm going to modify my Ultimate Tag Warrior hack to be
a plugin as well. I'll get to that later. There's a command with
this called "Link to Related Posts" that will query the database and
present the related posts in a dropdown.
[View Less]
Haven't seen anybody mention this yet. If you go to
Bundles->Textmate->Install Edit in Textmate, the instructions are a
very cool halloween theme. Not sure what kind of window this is
for..I looked at the help docs and they look normal. But yeah, pretty
cool
If you got away from the satanic animal sacrifice version, you here's
a screenshot: http://www.javaspot.net/images/textmate_halloween.png
http://www.randsinrepose.com/archives/2006/10/31/
bright_patient_design.html
<snip>
I'm not a power user, but I know what I expect out of a good editor
and, well, BBEdit is a good editor, but whenever I fire it up I feel
like I forgot to read some imaginary manual called, "BBEdit Rocks.
Really." I suspect the fact that I didn't grow up with BBEdit is part
of the issue. The fact that I'm a pure Mac OS X guy with zero pre-Mac
OS X experience probably contributes to feeling like …
[View More]I'm missing part
of the BBEdit joke. Yeah, Zap Gremlins. Ha ha. I get it. Clever, but
great design?
My BBEdit ambivalence allows me to check out new editors as they
stream across my consciousness and, to BBEdit's credit, it's lasted
four years. I've test driven several editors during that time and
BBEdit remained my technical tool of choice, but it was only a matter
of time until someone else knocked my socks off.
The buzz around TextMate started many months ago, but it's when folks
started to ask me to order it that I started to pay attention. There
is no copy protection known to man that any bright engineer can't
circumvent, so when an engineer asks you to purchase the software
they're saying, "This is the shit. We should pay these guys for this
fine piece of work."
You bet I downloaded it.
After two steady months of TextMate, I'm happy to declare it my
editor of choice because it demonstrates a design philosophy I love.
Bright, Patient Design. I'll explain
...
</snip>
j.
[View Less]
Hello,
is there any way to add support for non-image files when dragged onto
the TM window; these files should be linked and uploaded to the
serves as are images?!
thx,
Dan
>> something i didn't understood, suppose i write a wrapper to mate
>> "sudo_mate" even launching TextMate like that :
>>
>> sudo /Applications/TextMate/TextMate.app/Contents/MacOS/TextMate
>> blahblah
>>
>
> In my experience, any time I need to edit a file I don't have
> access to, TextMate will realize that and authenticate me so I can
> save the file. This probably requires you to be in the admin group,
> but then so does sudo (by …
[View More]default), right? The only possible
> drawback is that new files might not get root as the owner. But
> maybe in that case you could just do:
>
i just dis a small over a file on my desktop :
~/Desktop/sudo_textmate%> ls -al
-rw-rw-rw- 1 news admin 122 Nov 3 11:01 essai-sudo-config
i open it with TextMate, add "Hello world !" inside and save it.
TextMate didn't ask in authetification and the file has now those
user:group :
~/Desktop/sudo_textmate%> ls -al
-rw-rw-rw- 1 yvon yvon 140 Nov 3 18:16 essai-sudo-config
(yvon being my login name)
this should be considered as a bug afaik ?
TextMate would have either not open the file or ask for
authentification ...
I'm usinf TextMate Version 1.5.4 (1324).
also for mate it is, in my opinion, about the same because on my box
mate leaves in :
~/Desktop/sudo_textmate%> which mate
/opt/local/bin/mate
where all the bins are aware of which root|user opened a file...
best,
Yvon
Le 3 nov. 06 à 16:20, Rob McBroom a écrit :
> On Nov 3, 2006, at 12:06 AM, Une Bévue wrote:
>
>
>> something i didn't understood, suppose i write a wrapper to mate
>> "sudo_mate" even launching TextMate like that :
>>
>> sudo /Applications/TextMate/TextMate.app/Contents/MacOS/TextMate
>> blahblah
>>
>
> In my experience, any time I need to edit a file I don't have
> access to, TextMate will realize that and authenticate me so I can
> save the file. This probably requires you to be in the admin group,
> but then so does sudo (by default), right? The only possible
> drawback is that new files might not get root as the owner. But
> maybe in that case you could just do:
>
i just dis a small over a file on my desktop :
~/Desktop/sudo_textmate%> ls -al
-rw-rw-rw- 1 news admin 122 Nov 3 11:01 essai-sudo-config
i open it with TextMate, add "Hello world !" inside and save it.
TextMate didn't ask in authetification and the file has now those
user:group :
~/Desktop/sudo_textmate%> ls -al
-rw-rw-rw- 1 yvon yvon 140 Nov 3 18:16 essai-sudo-config
(yvon being my login name)
this should be considered as a bug afaik ?
TextMate would have either not open the file or ask for
authentification ...
I'm usinf TextMate Version 1.5.4 (1324).
also for mate it is, in my opinion, about the same because on my box
mate leaves in :
~/Desktop/sudo_textmate%> which mate
/opt/local/bin/mate
where all the bins are aware of which root|user opened a file...
HOWEVER other people don't have this experience with TextMate, they
have veryfied TextMate doesn't change file owber and asks for
authentification.
then the prob comes from my machine...
i'm wiping out TextMate and related to get a fresh install...
best,
Yvon
[View Less]
On Fri, 3 Nov 2006 05:24:16 +0100, Allan Odgaard wrote:
> On 3. Nov 2006, at 05:09, Une Bévue wrote:
>
>>> This calls mate as super user, but mate only passes a file name to
>>> TextMate, which is still running as your regular user -- so this
>>> doesn’t work as you expect.
>> ok thanks, and using :
>> sudo open -a <absolute_path_2_TextMate> <my_config_file> would open
>> another TextMate ?
>
> No, it would effectively do the …
[View More]same as mate (i.e. sending the
> filename to TextMate).
>
> There basically is no way you can currently do what you want -- but
> since ‘sudo mate’ is (by several users) expected to transfer the
> super user privileges to TextMate (for just that file), I will look
> into how this could possibly be pulled off sometime in the future (it
> would be a nice little feature).
One hack would be to use something like my RemoteEdit scripts.
The script would need to:
i) make a temporary copy of the file
ii) open the file in TextMate for editing
iii) On save or close, copy the temporary file back over the
original.
hrm. In fact, as my scripts use scp, and that works locally as well
as remotely, my remoteEdit script should work just fine for this. :)
http://www.cse.unsw.edu.au/~willu/RemoteEdit/
sudo remoteEdit /my/local/file
should just work... but it doesn't. sigh. It has problems
forwarding the ODB suite AppleEvents between root and the normal
user. It might not be too hard to work around that though.
*wanders off to think*
Cheers,
Will :-}
[View Less]
I often use TextMate's "anonymous project" feature, where I drop a
folder onto TextMate, and it automatically creates a project for me.
Unfortunately, I've noticed that if I rename this folder or move it
to the trash, TextMate gets confused. It apparently can't find the
project and displays all the files in the file drawer in red text.
Also, if I happen to have an unsaved file open beforehand, TextMate
insists that I type my administrator password (why?) every time I
switch apps, …
[View More]since I have the "Save files when focus is lost" setting
on.
This wouldn't be so bad, except that sometimes -- and I haven't
figured out what causes this -- TextMate prompts me for my password,
then beachballs permanently after I enter it, and I have to Force
Quit. This has happened to me on quite a few occasions, and just
happened again today. (I'm using version 1.5.3.) Has anyone else seen
this?
Anyway, shouldn't TextMate be able to track folder changes? I don't
understand why it has to get all confused just because I move or
rename a folder.
Trevor
[View Less]
I've had a problem with TextMate (and with OmniOutliner), where
writing in very long lines was extremely slow. Very slow.
I've just updated the utility FruitMenu, since the update claimed to
fix a problem where writing in OmniOutliner was very slow. Guess
what, writing speeds in both applications have dramatically improved.
It might be a coincidence, but then maybe not.
/Peder Axensten
The SWIG bundle should derive from source.c++ as SWIG interface files
may include C++ code.
Also, how do you guys maintain bundles. I have my checkout in /
Library, and I want to make changes without a .tmDelta being created
so I can commit. Should I just checkout to ~/Library instead?
Thanks,
-- Daniel
Hi List,
I'm playing around with templates for Actionscript, at the moment
all's working fine except the class path of the new class I'm
generating.
I'm using the TM_DIRECTORY variable in combination with the
TM_NEW_FILE_BASENAME as in the original AS template and attempting to
parse it with a regexp to change it from a file path the the class path.
i.e. change _workingcopy/com/native/project/package/ClassName to
com.native.project.package.ClassName
My limited grasp of regexp is …
[View More]tripping me up however.
As I understand the problem, I need to look for "com" as the start of
the class path, strip out anything before that and then convert
subsequent slashes to full stops.
So far I've got as far as
(.+)(com)(.\w+)\3*
Which as I understand it, matches "com" and then "/[somefoldername]",
and then repeats the 3rd match pattern ("/[somefoldername]") until
the end of the path on each path segment.
Am I close? How do I now go about replacing each / with a . in the path?
Thanks for any help!
Sam
[View Less]
Haris, cool. thanks for helping! yea, now you got me into this bash-scripting thing..
based on your hint i adjusted the compile-section in the "typesed and view" command and it seems to work now. thanks again!
# Compile.
run_tex "$FILE" 2>&1| latexErrWarnHtml.py -v
# If there is a "nlo" nomencl-file, then run makeindex and compile again
if [ -e "${M%.*}.nlo" ]; then
makeindex "${M%.*}.nlo" -s nomencl.ist -o "${M%.*}.nls"
run_tex "$FILE" 2>&1| latexErrWarnHtml.py -v
fi
RC=$?
…
[View More]if [[ $TEX_PSTRICKS ]]; then
dvips "$DVI" -o "$PS" && ps2pdf "$PS"
fi
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
[View Less]
hi,
i would like to use textmate to create latex docs that use the nomencl package. that means i should tweak the compilation process. if i have the file mytest.tex i could compile it manually like following:
1. compile within textmate (TM_LATEX_COMPILER = latexmk.pl)
2. from the directory of "mytest.tex": makeindex mytest.nlo -s nomencl.ist -o mytest.nls
3. compile again within textmate
earlier i used texniccenter on windows where i created a project related output profile postprocessor:
- …
[View More]executable: C:\apps\editor\texmf\MiKTeX\bin\makeindex.exe
- arguments: "%bm.nlo" -s nomencl.ist -o "%bm.nls"
how could i achieve this with textmate?
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
[View Less]
Hi there!
Im new to TxMt and love it - but please forgive my silly question:
While writing some PHP (same if Language is set to HTML or Javascript)
the Auto-Paired Command for inserting a ; before the newline (⇧⌘↩)
results in something like
'/tmp/temp_textmate.Y6Mady:13:in'
⌘↩ works fine... I just don't get the Problem...
Pls. give me a hint - thanks!
cz
Hey all,
this moring i've make use of command :
sudo mate <file name>
in order to edit a config file.
i've discovered afterwards TextMate had change the file owner from
"news" to "yvon" (my short login name).
then i had to chown over it.
is that a normal behaviour or does i, as I think, forgot something ?
best,
Yvon
I just did an update of my bundles and noticed TerminalMate was included.
I tried running it from the bundle menu, but received:
/Library/Application
Support/TextMate/Bundles/TerminalMate.tmbundle/Support/lib/terminal_mate.rb:7:in
`initialize': No such file or directory -
/Users/john/Library/Application Support/TerminalMate/server.bin
(Errno::ENOENT)
from /Library/Application
Support/TextMate/Bundles/TerminalMate.tmbundle/Support/lib/terminal_mate.rb:7:in
`open'
from /Library/Application
…
[View More]Support/TextMate/Bundles/TerminalMate.tmbundle/Support/lib/terminal_mate.rb:7:in
`initialize'
from /tmp/temp_textmate.hdCXx2:4:in `new'
from /tmp/temp_textmate.hdCXx2:4
Either I did something wrong, or it's busted ;)
jt
[View Less]
I tried running TerminalMate (v 0.2.2) when in haskell mode, and the
terminal window popped up, but did not start the ghci process. I can
start ghci from the terminal window so it's in the path. Any clues?
Thanks,
Penny
Le 3 nov. 06 à 08:29, Jay Soffian a écrit :
I have a feeling though that this is a pretty bad idea with potential
to wreak all sorts of havoc.
why do you have such a "feeling" ?
i've tried to "wrapp" TextMate using a ruby script :
before asking to TextMate openung a file, my ruby script memorize the
file user and group properties.
i thought i'd have been able afterwards to restore (using an obvious
chown) those properties.
unfortunately i loose the control in the mean time (the …
[View More]script exits
before TextMate save the file)
just "a work in progress" ;-)
Yvon
[View Less]
Dear all,
I rewrote the Hypersearch bundle to use the marvelous tm_dialog.
While doing this I also changed the following things:
- Hypersearch displays also the number of matches, not only the
number of lines
- Error handling for non-valid regular expressions
- some tiny format things within the HTML output
- add a command 'Reinit' to reset Hypersearch after a crash (It could
happen that while using Hypersearch TM, Mac, or the world crashes.
This could cause that the temporary plist …
[View More]file contains non-valid
XML code.)
- the dialog now makes use of a NSSearchField instead of NSTextField
-- now you can press ESCAPE for deleting the field content; or press
twice for canceling the dialog
Please check this release for any bugs.
Have a nice day
Hans
[View Less]
I'm writing my posts in Blog (Markdown), and when I post the Format
is markdown_with_smarty, but my posts come up with no text filter
applied. Any idea what's going on?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Forgive me if this horse has been beat to death.
I'm trying to post to a Mephisto blog using the Blogging bundle and
for the most part it works as advertised. However, all of the posts
are logged as drafts rather than being published. This isn't a big
deal because it's easy enough to login and publish the entry.
However it's somewhat annoying.
The applicable code in blogging.rb seems to be:
@publish = true
...
when 'status'
@publish = false if $2 =~ /draft/i
end
When I include …
[View More]Status: Publish in the headers, it still posts as a
draft. Am I missing something somewhere or does the Mephisto XLMRPC
still need some tweaking?
--
Steve
stephen(a)exitwound.org
[View Less]
Since Chris asked for it, i'll give you my 2 cents on the new styles
for the Subversion status dialog :)
I think i preferred some aspects of the old stylings over the current
ones. The new styles seem very crowded (more padding in the table
cells, please!) and are a bit hard to navigate. I also miss the color
coded action 'buttons' which gave quick visual cues on the status of
a file. I'd love to see that return. I'm also not a big fan of the
new console output and the horizontal …
[View More]scroll bars that appear for
longer messages. It would be great if you could bring back the
wrapping of longer messages instead.
Thanks for all the great work.
so long,
sebastian
[View Less]
> In general, I'm surprised that there hasn't been more progress on the
> python bundle, given how many people claim to use it.[^1] I suppose I'm
> as guilty for this as anyone.
roads of life brought me away from Milan where I used to live (now I'm in
Bozen) and away from a working internet connection, so my ability to give back
to the community has been hindered quite a lot. I hope I'll be back somewhen
next month, if Italian telcos help me.
So.. I'm playing with editing my neat little bundle to make life easier, and
something has occured to me. We have this awesome, powerful text editor with
infinate customizability... and while editing our customizations, we're
stuck with an icky, featureless little text control. :)
I'm editing property lists and bash scripts in the bundle editor, and then
switching out of it to go into into the main app itself and edit some
external commands I'm writing in the support.. and its just …
[View More]inconvienant :)
I almost want to just open up the bundle directory as a project in TextMate
and edit the files themselves... or, make a Bundle Editing Bundle :P All
the power of TextMate for editing text-- which is all a bundle really is--
is so close, yet so far, when in the bundle editor... :)
How do other people manage their bundle-making? Do you do it all in the
Bundle Editor? There has to be a better way; which is not to say the editor
is BAD or anything. I just miss all my TextMate features when actually
working /on/ bundles.
--Stephen.
[View Less]
Does anyone know how to indicate a separation of words on
capitalization?
I'd like to be able to option+[left | right ] into a StudlyCap'd or
camelCase'd words and have it catch on the uppercase letters in the
miDDle of the word.
Thanks,
===
~Adam
Hi all,
I have been using subversion on a Debian Sarge server where I commit
from both TextMate on Mac and Emacs on Linux workstation. Everyting
worked great and I was upto revision 13 (this sounds spooky around
halloween :) and yesterday when I firedup Textmate it upgraded to
1.5.4(1311). I commtied at the end of the day to rev 13 with no
errors. However when I tried svn update on my Linux ws I got
svn: REPORT request failed on '/svn/zstaff/!svn/vcc/default'
svn: The REPORT request returned …
[View More]invalid XML in the response: XML
parse error at line 126: Extra content at the end of the document
. (/svn/zstaff/!svn/vcc/default)
I am using web-dav with Apache2 on the server with digest auth. Now my
repo is borked I cannot do anything with it. Posted to the subversion
list and haven't gotten any answers.
First of all does this have something to do with the TextMate update?
That is the ONLY thing that changed.
I am no subversin expert and would appreciate any help in
troubleshooting and fixing this problem. Is there any way to recover
the repo? Googling for it hasn't helped. I think the first line of the
msg can happen to a variety of conditions. But I couldn't find
anything on how to fix the problem due to XML parse error in .
/svn/zstaff/!svn/vcc/default
thank you very much,
bakki
[View Less]
I have a simple testing harness written in Python. Internally, it
uses the Python unittest module.
When I hit cmd-r to run the testing scripting, pymate is eating the
output from the test run *unless* I "print" at least a single newline
prior to the TestCases' invocation.
Anyone seen this before? The workaround is trivial -- add a bare
'print' statement prior to passing control to the tests.
b.bum
Hi,
if I'm writing a new command or whatever with the bundle editor and I
did a mistake it could happen that TM crashes immediately after
executing what I did. After reopen TM I have the problem that all
changes I made within the bundle editor are gone.
I realized that TM only saves all changes if I quit TM.
Is this right? And if yes, is there a way to save what I did in the
bundle editor explicitly?
An other thing is that if change something in a command I have to
click at an …
[View More]other command for instance in order to save my changes.
Is this also correct?
Maybe it would be useful to have a button within the bundle editor
for saving??
Cheers,
Hans
[View Less]
Soo, I saw this tm_dialog thing, and it inspired me to do some fancy stuff
and figure out how to actually make TextMate bundles. And since I code for
MUSHes periodically, and its a royal PITA, I thought I'd fix it to be not
painful anymore.
If anyone's interested in it, you can grab it from
http://ixokai.net/MUSHCode
>From the readme I stuck in the .zip, if anyone's curious :) .....
The MUSHCode TextMate Bundle
----------------------------
1. The Language
The language specification …
[View More]is currently very simple, but really,
MUSHCode isn't too complicated of a "language" :) Notably, it adds attribute
setting commands to the symbol list as long as they are the first thing to
show up on a line, and are in the format of: &(header)(separator)(footer).
The header must be alphanumeric. The separator must either a period, a dash
or an underscore. The footer can contain any alphanumeric or separator
characters.
2. Integrated Unformatter (Command+Shift+U)
This will run the selected text or the entire document through the
unformatter included with the bundle and compress the MUSHcode. The
following rules are used by the unformatter process:
* Any lines beginning with a # are considered comments, and will be
omitted from the file.
* All insignificant whitespace (including newlines) will be compressed.
* If a line begins with a -, a newline will be inserted into the output.
This does not have to be the only character on the line, but can be.
* If a line begins with a ", the line will be processed as raw text. All
whitespace (including newlines) will be preserved and converted into %b
substitutions, unless it is more then 5 characters in a row in which case
the space() function will be used instead. The following characters will
also be escaped: % [ ] ( ) { }
* Comments can contain 'directives', which contain instructions or
options for other parts of the Bundle. These are in the format of: #
directive: value
The following directives are currently in use:
site -- This indicates the site that this code is for.
Example: # site: yourgame.com 4201
user -- This indicates the wizard/user that will contain your
code. Example: # user: Potrzebie
object -- This maps a dbref to an alias. Example: # user:
spelldb = #1234
At present, the above directives are only used by the Grab Text
function, although other features will take advantage of them in the future.
3. Grab Text (Command+Shift+G)
This is mostly a proof-of-concept more then it is a feature people will
want to use, but it was fun and taught me how to do some things :)
NOTE: This requires you to install Python 2.4 and PyObjC 1.7 (the only
build that has Universal support)
The purpose of the Grab Text function is to connect to a game, obtain an
attribute (or attributes), and display it to you (to copy into your current
document).
When you invoke the function, it will prompt you with a dialog box that
asks for the site, port, username, object and attribute. The site, port and
username will be read from the directives in the current file if present,
but they can be overridden. In the object field, you can specify objects you
have defined in the object directives above instead of remembering the
dbrefs.
Next, the system will prompt your password to this account. It will only
do this the first time you connect to the specified site with this username.
After you provide the password for the first time, it will be stored in your
Keychain and automatically obtained for any future invocations. If you ever
change your password, you'll have to modify it with the Keychain Access
application in the future.
Once it has all the connection information it needs, it will connect to
the MUSH and 'grab' the specified attributes. The 'attribute' field can
contain wildcards to obtain more then one. This isn't the fastest operation
in the world, depending on your internet access-- be patient!
Once it has all the data, it will display it to you in a window. You can
copy/paste from here and then work on the code in your document.
The display window also has a 'Reformat' button that will run the
MUSHcode through a -very- simple 'prettifier'-- although its not very
pretty. I'm really how to best go about 'formatting' MUSHcode in a pretty
way right... Ideas/implementations? :)
---------
This is just the module so far. I have a lot of ideas, and sorta want to
turn TextMate into a neat little MUSHCode IDE. I have a couple *really* big
coding projects I maintain and.. its all a bit of a pain. So, I'm wanting to
make my life easier :) Some features I am thinking of implementing:
* A 'quote' or 'put text' feature to take the selected text (or the entire
document), run it through the unformatter and deliver it onto the game
directly. This would make use of the 'object' directives, so you can include
things like:
&cmd.xp/vote #VoteSystem=$cmd.+xp/vote *:...
and it will automatically replace "#VoteSystem" with the specified
dbrefs.
* The ability to split up a large project into multiple files in a single
project, and have it "install" or "quote" the entire project at once.
Perhaps with a specified order; directives to make one file depend on
another and thus affect ordering of the installation/quoting would be fairly
easy.
* At this point, the combination of Grab and Put gives me some very
interesting possibilities: a 'compare' function to connect to the game and
compare what is online to what is offline and show me what's missing.
Perhaps with pretty HTML diffs even.
Any other ideas? :)
[View Less]
Hello
On the list OS X TEX , the tests of installation of TeXLive are
increasingly numerous, and I think that in little time, TeXLive will
be the only distribution available. Also I have a first question:
1) If a user installed two distributions: tetex and texlive for
example, TM can it work with both? Is there a variable to indicate
which distribution to him used?
2) Documentation is planned only for tetex “/usr/local/teTeX/share/
texmf.tetex/”}. It is possible to envisage the same …
[View More]thing for texlive ?
3) Often, the most recent packages are not in the current
distributions. We install them in “~/Library/texmf/” or in “/usr/
local/teTeX/share/texmf.local/”.
Is there a possibility of having access to new documentations?
4) If, I want to do all that myself, which is the good method :
a) for the choice of the distribution?
b) for documentation in “~/Library/texmf/”?
Thanks and Greetings
Alain Matthes
[View Less]
Hi. Love the app, changed my life, can't wait for multibyte
character support, etc. :-)
I went to create a new LaTeX document yesterday and began, as I
always do, by typing "temp" and tabbing it to drop me into my
template selection menu, only instead of that happening, it throws
back a single, cryptic error:
/tmp/temp_textmate.1K8O1q:8: undefined method
The characters after "temp_textmate." are always different, for
whatever that's worth.
I have no idea how to approach this …
[View More]problem, and a quick search of
the archives doesn't turn up much. Are LaTeX templates still working
for other people?
--p.
P. Tuttle Starr
808.291.8923
pts(a)midaregami.net
http://www.midaregami.net/log/
[View Less]
Hi,
the subject of this mail might not be very clear, but I'd like to
make a project command (like Charilaos proposed here: http://
lists.macromates.com/pipermail/textmate/2005-October/006283.html )
that restarts apache in a complicated way (because all the easy ways
do not work for me) and then loads (or reloads) a given test url in
the browser (in my case that's Safari atm).
I've come a long way, but still have some small questions:
1. How can a shell variable be used in a …
[View More]osascript oneliner?
Currently I have
osascript <<APPLESCRIPT
tell app "Safari" to open location "$MY_TEST_URL"
APPLESCRIPT
which is working, beautifully. It opens the url in $MY_TEST_URL in
Safari (in the background = without losing the focus in TextMate),
and when this page is already opened in a window or a tab it just
refreshes that window or tab.
But if I try to make it into a oneliner the variable replacement fails:
osascript -e 'tell app "Safari" to open location
"$IR_LABSITE_TESTURL"'
2. Can a command in one bundle access the support folder of a
different bundle?
Or can a command from a different bundle be triggered from the current?
I'd like to use the apachectlUsingKeychain.sh shell script that comes
with the Apache bundle, but is there a way to access that bundle's
support folder? Or do I have to copy the script to the support folder
of my own bundle?
3. What does the '-ne' in 'if [[ $(ps -xp $PPID|wc -l) -ne 2 ]];
then' do?
Inspired and guided by the Relaunch TextMate command in the TextMate
bundle, I made the following which works:
echo "$PWD" | sudo -S apachectl stop
for (( i = 0; i < 50 && $(echo $(ps -ax | grep [h]ttpd | wc -l))
> 0; i++ )); do
sleep .2;
done
echo Apache has stopped
echo "$PWD" | sudo -S apachectl start
for (( i = 0; i < 50 && $(echo $(ps -ax | grep [h]ttpd | wc -l))
< 4; i++ )); do
sleep .2;
done
echo Apache has started again
It works in my few tests, but I'm afraid it will fail when it is
taking apache too long to stop (or too long to start), so I trying to
built in a test, just like in the Relaunch TextMate command. But what
does that '-ne 2' stands for?
Thanks,
dirk
[View Less]
Hi,
I'm using tm_dialog with a NSSearchField for my Hypersearch bundle.
With NSSearchField I can provide the user with a history list of
recent searches.
Is there any way to bind an array to 'recentSearches' parameter? I
tried it with NSArrayController but I had no success.
I would be pleased for any hints!!
Many thanks in advance
Hans
http://subtlegradient.com/articles/2006/11/02/filename-filepath-
completion-for-textmate-screencast
Part of the official TextMate Experimental Bundle
(at the moment)
Filename / Filepath completion.
If figures out where your cursor is and if you’re in the middle of
typng a filename or path and does an ls. Then pops up a menu to
choose the filename you want.
Just watch the screencast
thomas Aylott — design42 — subtleGradient — CrazyEgg