Thanks for the feedback,
Danstan,
The only way I've been able to figure out to run selections is to save
the selection to a temporary file and run the temporary file. Alan
suggested saving the file in /temp/somthing.do, rather than in the
current working directory. I think that makes sense and will give it
a bid. I looked at the R bundle's implementation of running a
selection, and as best I could tell (not very well, granted) it relies
on some AppleScript that Stata doesn't recognize. Simply stealing the
R implementation was my first instinct, but I couldn't get it to work
(which doesn't mean, it can't work, just that I couldn't get it to
work).
Alan,
Thanks for the suggestions, I think I'll probably use both of them,
Tim
I added support for some more valid (if unusual) Perl quoting.
* added <> delimiters for q, qq, qw, qx, m
* allow whitespace before delimiters (broken for s///)
* fixed s[][]
* fixed s()()
I'm a little confused by string.regexp.replaceXXX. Was it intended to replace string.regexp.replace.perl?
Hello there :]
I was always annoyed by this black line in the "Go To Symbol" toolbox :
Damit, it should be gray like in the "Select Bundle Item" toolbox !

In order to fix this, just put the "SymbolChooser.nib" file there :
/Applications/TextMate.app/Contents/Resources/English.lproj/
Confirm the replacement, restart TextMate and enjoy.
Urbanose
Hi,
I've thrown together a language grammar for spotting clichés in text
(attached). I've based the regexp pattern on the list[1] at the Plain
English campaign website. Incidentally, I was prompted to browse the
Plain English website when I read this in the latest release notes:
> When setting shellVariables as a scope dependent preference, it will eclipse
> only those settings (with less specific scope selector) that sets a variable
> also being set by the one with the more specific scope selector.
:-)
I need some advice though, because I've never tried writing a language
grammar before:
1) is the scope text.plain the best one to extend? The intention is
that this grammar is applied to all English text
2) Can I extend text.plain so my grammar gets used when "Plain Text"
is selected in the language selector? At the moment I have to select
"Check for Clichés"
3) Is the name of the selector OK? I chose "meta.cliche"
4) I originally tried the selector name "meta.cliché" but the fonts &
colours highlighting didn't work with that name. I had to drop the
accent. Bug?
Thanks
Jon
[1]: http://www.plainenglish.co.uk/cliches.htm
Hello all,
I've tried creating my own template which consists of two files (a
header & an implementation). It all works fine but when I execute the
template one the implementation file opens up & shows up in the
browser although the header physically exists in the folder -> so I
have to reopen the project to make it show up. I've duplicated my
template from the Singleton Obj-C template and I can't figure it out
why it is misbehaving. Any hints are greatly appreciated.
Kind regards,
M
Hi All,
I'm getting the following error when I use the subversion bundle.
I've not used it for a while but it used to be working fine. Any clues?
/Library/Application Support/TextMate/Bundles/Subversion.tmbundle/
Support/format_status.rb:22:in `require': no such file to load -- /
Users/jebw/Library/Application Support/TextMate/Support/bin/
Builder.rb (LoadError) from /Library/Application Support/TextMate/
Bundles/Subversion.tmbundle/Support/format_status.rb:22
Thanks
---
Jeremy Wilkins
Ibex Internet Ltd
Parkside Business Park
Parkside Rd.
Kendal
Cumbria
LA9 7EN
Tel: 0845 226 8342
Fax: 08718 729374
http://www.ibexinternet.co.uk/
Hi all,
I was wondering about this:
http://e-texteditor.com/blog/2006/textmate_on_windows
Is the account given on the site fully correct? Does anyone see any issues?
Just thought I would ask before I jumped to any conclusions.
-Eric
Hi all,
I'm having a problem with my HTML bundles behavior concerning single
tags and HTML completion. When I use the snippet for inserting a tag,
it inserts the tags properly, but does not automatically include the
trailing slash for single tags like <br> and <meta>. It also doesn't
work when I specify the doctype as XHTML. Has anyone else had this
trouble or has it been previously addressed? I was wondering if, since
the snippet in the bundle is written in Ruby, if the problem could be
with the version of Ruby I have installed on my system.
Thanks
-Ron
For those who care to check it out: http://blog.circlesixdesign.com/
2006/11/22/backpack-bundle-updated/
If you previously used the bundle, please note that you'll need to
run the "Change Backpack Account" command and re-enter your username
and API Key, as the storage mechanism for the key has changed for the
time being. Also note that the "Token" refers to the API Key (found
at the bottom of your "Account" page) and not your user password.
The changelog is included in the post, but I'll give the list of
features here so you can decide if you're interested ;-).
Features
* Stores your username and API key once and allows you to switch
accounts when necessary
Pages:
* Add and remove pages
Reminders:
* Create reminders from selected text or from scratch, using
“Minutes from now” or date picker
* Destroy a single reminder from a popup list
* Destroy multiple reminders from a multi-select dialog
* Select a reminder from a popup list and edit it
* See a list of upcoming reminders sorted by “Today”, “This
week” and “Future” (color coded)
Notes:
* Add selected text or document as a note, or edit a blank note.
Notes are added to a selected page (a page must be selected)
* View/Edit a note from a tree dialog, select a page->note->edit
note and save. Titles can be edited by double clicking. Only last
selected note is updated.
* Destroy note from similar dialog. Allows previewing of notes
so you don’t have to decide by title alone.
Account:
* Change your username and token at any time from a dialog.
I'm looking for ideas and suggestions (and take criticism well, when
it's politely offered).
Hi all -
I hadn't upgraded Textmate in quite a while and just recently did so
(I think I had 1.2, and I'm at 1.5 now - needed to do this to get the
GetBundle Bundle to work) and I noticed that the HTML (PHP) language
selection is gone - now either HTML or PHP is all red, rather than
both languages being colored correctly at the same time. I was
reading a little in the lists and see that PHP is more of a 'top
level' language now, but for those of us who have pages filled with
HTML and PHP I'd love to see these files colored that way they were
before.
For comparison, I have a HTML (ASP) bundle that seems to work like my
old HTML(PHP) bundle. I tried recreating my old bundle using the ASP
one as a guide, but no luck. Can this be remedied? Thanks.
ryan
Hi,
after my successful attempt to output a "designated" test url in
Safari, I'd now like to make a command which shows the rendered html
in a TextMate browser window. That is show _the actual html itself_,
not the browser-interpretation of that html.
My system of scripts and templates generate html. Now I like to see
that output html with nice code coloring in my favorite theme.
I see roughly two solutions: output the result of 'curl "$MY_URL"' in
a TextMate HTML browser window or create a new (html) document from
that output.
I would like the HTML Browser window variant much better.
For (1) because it keeps only one window –i.e. it refreshes itself
when it's already open, instead of opening a 2nd window–, (2) because
I won't be tempted to edit the output HTML, and (3) because when I
might become really smart –for which the changes are extremely slim,
based on previous records ;)– I might be able to give blocks of html
code a href to jump back to the specific code in the specific
template file (I just *love* the TODO bundle. It saved me so much
time. Life has become much more convenient :-))
My first problem is the with output of Apache restarting: it's not
quiet.
I need Apache to restart for all the last versions of my templates to
become effective, but the following code
echo "$PWD" | sudo -S apachectl $APACHE_CMD
(line 43 from apachectlUsingKeychain.sh in Apache Bundle Support
Folder) outputs "Password:", since sudo is asking for that. Is there
a way to make this statement quiet?
2nd, about the Create New Document variant. How to set the scope of
such a newly created document? Right now there is nothing indicating
to TextMate that is might be html, so the output stays unstyled.
Finally on to the core of this email: How to get HTML pretty printed
in a (HTML parsing) browser window?
I am looking at examples like pastie [1] or TextMate Theme Sourcerer
[2]. Are the solutions used in these web 2.0 projects also available
for my TextMate commands?
Best
dirk
[1]: http://pastie.caboo.se/
[2]: http://projects.serenity.de/textmate/codestyler/source.php
Dear all,
here comes my first approach for a BASH function to export
<key>=<value> out from a property list.
#
# exportpl set BASH variables according to the property list <key>=<value>
#
# if <value> is an array tag a BASH array will be returned
# if <value> is a date tag output format YYYY-MM-DDTHH:MM:SSZGMTshift
#
# all variable values are UTF-8 encoded
#
# if a given key is not specified in plist an empty string will be returned
#
# each variable is named TMD_<key> (with prefix TMD_)
#
# Usage:
#
# exportpl <data|file> {key1 key2 key3 ... keyn}
#
# data := string containing valid plist data
# file := plist file [.plist extension is not necessary]
# key1...keyn :=?valid key(s) for plist
#
#
# Examples: ('output' is an array with 8 items)
#
# a)
# KEY=("returnCode" "output")
# . "$TM_BUNDLE_SUPPORT"/bin/exportpl.sh
"$TM_BUNDLE_SUPPORT"/bin/test.plist ${KEY[@]}
# echo $TMD_returnCode
# echo ${TMD_output[0]}
#
#
#
# b)
# . "$TM_BUNDLE_SUPPORT"/bin/exportpl.sh
"$TM_BUNDLE_SUPPORT"/bin/test returnCode output
# echo $TMD_returnCode
# echo ${TMD_output[5]}
#
# c)
# DIA=$( cat "$TM_BUNDLE_SUPPORT"/bin/test.plist | tm_dialog -m test )
# . "$TM_BUNDLE_SUPPORT"/bin/exportpl.sh "$DIA"
# #all key(s) for $DIA are exported
#
What should I add/change/etc. ?
I used the objectC2Perl bridge to parse the plist data. The only thing
I don't know yet whether the perl library 'Foundation' is installed as
default. Tomorrow I will check this at a fresh Mac installation
without 'Developer Toolkit'.
Cheers,
Hans-Jörg
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
when i try to use "Log" I get following error:
(a project is open, and i am in a file, that i just successfully
committed to a svn repository)
anyone knows what could be wrong?
I never installed any bundles. just the default TM install.
NoMethodError
reason: undefined method `text' for nil:NilClass
trace:
/Applications/-moreApplication/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/format_log_xml.rb:22:in `author'
(erb):32
/usr/local/lib/ruby/1.8/rexml/element.rb:939:in `each'
/usr/local/lib/ruby/1.8/rexml/xpath.rb:53:in `each'
/usr/local/lib/ruby/1.8/rexml/element.rb:939:in `each'
/usr/local/lib/ruby/1.8/rexml/element.rb:398:in `each_element'
/Applications/-moreApplication/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/format_log_xml.rb:18:in `each_entry'
(erb):28
/Applications/-moreApplication/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/format_log_xml.rb:165
Hi Michael:
I've put the stuff here: http://xanana.ucsc.edu/xtal/
textmate_extra_bundles.tgz
Please remember this is still rather rough, and I'm not sure I'm
doing things right.
Almost everything I have in this either would work with bash or will
work with trivial modifications (I could change "print" to "echo" and
figure out a workaround to the different array indexing conventions
(zsh defines the first element of an array as having index 1, bash
and every other computer language seem to agree on 0).
So if some of these things were to be incorporated, I suggest that a
separate zsh bundle not be made. bash has become more and more zsh-
like in syntax, and the stuff like [[ condition ]] used in zsh is
already in the Scripting Bundle.
If there is to be a new shell script bundle, I would suggest having
two scripting bundles: One that is Bourne/Korn-like, and one that is
tcsh-like, in its syntax. This is a more natural divide. The current
Scripting Bundle isn't really useful for tcsh scripts apart from the
syntax highlighting and commands. It probably isn't worth the
trouble to have a separate zsh bundle. Most people script in bash.
I like zsh because I learned ksh and it is quite elegant, but isn't
as portable (yet) as bash. I've been happily using (and adding to)
the bash-centric scripting bundle for a couple of months now.
In my zsh bundle, I've got a bunch of shell/osascript snippets. I
think changing print to echo is all that would be needed to make them
bash-compatible (at least the ones I just tested). I don't know if
they would be of general interest, but they permit the scripter to
use some simple OS X gui elements in their shell scripts, which is
kind of entertaining.
I modified the "Run Script" command to permit the user to enter
arguments to the shell script before running it. Although I wrote
the command in zsh, there is no reason why bash or tcsh users can't
use it. Maybe it should be shift-command-R (if that is not taken) to
allow the user the choice.
I also put in some conditional test snippets and a few other generic
things that may or may not be of interest.
HTH,
Bill
William G. Scott
contact info: http://chemistry.ucsc.edu/~wgscott
The problem was that I had a category called out-of-office and evidently it
couldn't handle the hyphens. Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi citizens:
I found myself extensively modifying the Shell Script bundle for zsh-
specific things. I eventually experienced what drunks refer to as a
moment of clarity: Maybe having a separate ZSH bundle would be a
good thing. So I renamed the bundle to zsh, then edited the Shell
Script (bash) Language file, changed scopeName to 'source.zsh', and
then changed all other instances of source.shell to source.zsh in
the Scope Selector window in the other files.
It seems to work, but then when I went to put the default Shell
Script bundle back in, it instead reversed changes I had made in
stuff in the new zsh bundle.
So I deduced I am doing something wrong, that TextMate still
identifies this with the previously named bundle, and the two won't
co-exist until I fix the problem.
However, since I took a rather backward approach, I am not clear on
what else I need to change in order for TextMate to recognize my
attempt at a zsh bundle as something separate from the old Shell
Script bundle. I've made some new bundles de novo, but I an not
clear on how to fix the mess I made here.
Thanks.
Bill
PS: Once I have something nonpathological, I am happy to share it.
I got rid of the menuenabler bundle that was causing one of the error
messages. Now what I get is:
/Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/gtdalt_ical_synchronization.scpt:
execution error: The variable the_cal is not defined. (-2753)
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I tried to convert a Markdown file to RTF, but all german Umlauts
were broken.
To fix this I added "-inputencoding UTF-8" to the textutil command in
the Bundle Editor. This is not a clean fix because the input file
could have any encoding but I don't have a better idea how to fix this.
I also tried the other commands, but they have some problems too:
The "Convert to LaTeX" commands are not working. They fail with the
following message:
- -:3: parser error : Extra content at the end of the document
<ul>
^
unable to parse -
And "Convert to PDF" fails because it can't find htmldoc, don't know
if it should be installed on my computer.
Could anybody please look into these problems.
Thanks in advance,
Simon
- ----
> 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)
iD8DBQFFWPNiYRX4BO+zMikRCm5MAJ47incaZnE1sB60t6zlDWSaPIyyTgCgvd57
JVz7yakx3ptHvmCk3gvCpEQ=
=oxjq
-----END PGP SIGNATURE-----
Hi -
Textmate's (or the Latex bundle's) ability to tell when to use
xelatex instead of pdflatex has stopped working for me. Documents
that compiled quite happily yesterday won't do so today. I checked in
the Latex bundle's "Typeset and View" command to see whether anything
had changed, but the relevant lines are still there:
> # Set up TeX compiler, fallback to xelatex if document indicates it,
> if grep -Esq '\\usepackage{.*(xunicode|fontspec)|program=xelatex' "$M"
> then DEF_TEX=xelatex
My xelatex documents all have \usepackage{xunicode} and \usepackage
{fontspec} in them, so this should work just fine, and has been
working fine. But it doesn't now. Instead Textmate tries to run
pdflatex on the document, resulting in a failure.
The only thing that's changed is that this morning I updated the
Latex bundle and the Support folder from the subversion repository.
Has something changed in there that would cause this problem?
Best,
Kieran
Hi Haris,
let's compromise :)
It's again my request that arbitrary text lines (for notes)
can be included in gtd files (and simply ignored
by the parser). Are you really against it? This would
give much greater flexibility to the format, with
only some minor risk, but that's my opinion.
But if you are really against, what about the following format:
1) gtd files can be divided into two sections, separated
by some delimiter (e.g., a line like
#### PROJECTS AND ACTIONS ####
or something similar)
2) above the delimiter line I can write anything, it's ignored
by the parser
3) below the line I write projects and actions and here the
syntax is strict: only projects and actions are allowed.
With this kind of format, the flexibility would be enhanced
as I need. At the same time, any mistake in writing
tasks or projects would be spotted by the parser.
What do you think? (Please?)
Ciao,
Piero
So yes, updating the Support files worked! Now I am getting error reports
when I sync to ical. Not all of my to do's are being synced, just some of
them. (Happy to send you the file).
Here's the output:
2006-11-20 15:22:30.155 CocoaDialog[5467] *** -[NSBundle load]: Error
loading code /Library/InputManagers/Menu Extra Enabler/Menu Extra
Enabler.bundle/Contents/MacOS/Menu Extra Enabler for bundle
/Library/InputManagers/Menu Extra Enabler/Menu Extra Enabler.bundle, error
code 2 (link edit error code 0, error number 0 ())
/Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/gtdalt_ical_synchronization.scpt:
execution error: The variable the_cal is not defined. (-2753)
Thanks again for your patience and help.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi,
I'm using Ruby scripts with RubyMate (r6075). But even the simplest
scripts cause many errors.
This is showed on top of the content in the output (before <html>):
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
escape.rb:2: warning: method redefined; discarding old e_sh
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
escape.rb:7: warning: method redefined; discarding old e_sn
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
escape.rb:12: warning: method redefined; discarding old e_as
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
escape.rb:17: warning: method redefined; discarding old e_url
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
escape.rb:24: warning: method redefined; discarding old htmlize
/Users/simonruderich/Library/Application Support/TextMate/Bundles/
Ruby.tmbundle/Support/RubyMate/run_script.rb:10: warning: already
initialized class variable @@execmatch
/Users/simonruderich/Library/Application Support/TextMate/Bundles/
Ruby.tmbundle/Support/RubyMate/run_script.rb:11: warning: already
initialized class variable @@execargs
/Users/simonruderich/Library/Application Support/TextMate/Bundles/
Ruby.tmbundle/Support/RubyMate/run_script.rb:45: warning: already
initialized class variable @@matename
/Users/simonruderich/Library/Application Support/TextMate/Bundles/
Ruby.tmbundle/Support/RubyMate/run_script.rb:46: warning: already
initialized class variable @@langname
And this error in the "normal" output:
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
scriptmate.rb:49: warning: instance variable @args not initialized
Even with these errors the script works.
I'm using the newest svn checkout of all data.
I also noticed that the Ruby method e_sh is available in a Bundle
script even if lib/escape.rp is not loaded. Maybe there could be a
relation.
Thanks for all information and ideas,
Simon
----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
I just downloaded and reinstalled the latest version of Textmate. It says I
have version 5861 of Support which is the same on the server.
Could there be a problem with my Dialog plugin?
I have revision 6187 in the PlugIns folder.
Alternatively, could my TM_SUPPORT_PATH variable be set wrong? It seems like
I shouldn't have to set it.
This is so strange because I had it working before I updated the dialog
plugin.
Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
hi list!
I may have found a workaround to solve this old problem:
http://one.textdrive.com/pipermail/textmate/2004-December/002039.html
PROBLEM
Sometimes, coders choose to use an indentation width different from the
(hard) tab width. An example C file may look like this:
static VALUE
rb_str_insert(VALUE str, VALUE idx, VALUE str2)
{
[4 SPACES] if (pos == -1) {
[TAB] pos = RSTRING_LEN(str);
[4 SPACES] }
[4 SPACES] else if (pos < 0) {
[TAB] for(i=pos;i--;) {
[TAB][4 SPACES] ...
Emacs and Vim allow this (eg. :set sw=4 ts=8). Of course, nobody should
use this, but there *are* some codes in that style (notably the Ruby
source code), and I want to use TextMate to edit them.
Changing tab width doesn't work here:
- setting it to 4 spaces makes the code unreadable;
- setting it to 8 spaces makes automatic indentation indent everything
twice as deep as the original code, thus breaking the style.
Converting all the tabs would break the version history and make diffs
harder.
SOLUTION
So I wrote two little Ruby one-liner commands to convert back and
forth between
both styles.
Convert TAB -> 8 SPACE:
"${TM_RUBY:=ruby}" -pne 'gsub(/^\t+/) { " " * 8 * $&.size }'
Convert 8 SPACE -> TAB:
"${TM_RUBY:=ruby}" -pne 'gsub(/^ {8}+/) { "\t" * ($&.size/8) }'
Both:
Input: Selected Text or Document
Output: Replace Selected Text
Activation: Option-Command-X
When I have a code like the one above, I just:
- set the tabs size to Soft-Tabs: 4,
- use "Convert TAB -> 8 SPACE",
- edit, compile, and test with spaces only
- convert it back with "Convert 8 SPACE -> TAB" before a diff or commit.
I think this covers most cases; you can easily modify the commands to
your needs.
LIMITATIONS
Of course, the scripts don't handle cases where you explicitely want
tab or spaces,
like in heredocs or something. Your version system should save you.
Or you can
select only the part you want to convert and run the commands on it.
Oh, and I didn't test it much yet. But it seems to work ;)
I hope this makes Patching Ruby easier for TextMate users!
Enjoy :)
[murphy]