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]
Just a couple quick commands for the blogging bundle that use an
applescript to insert the current iTunes track or album into your
post. I figured if Ecto could do it... TM better be able to.
If you're not sure where to stick the script (/Library... ~/
Library... Pristine Copy, etc.) just drag the "Determine Script
Location" command to the bundle that you want the commands in (i.e.
the Blogging Bundle) and run it.
Brett
Well, I thought I had it all set up right. I came in this morning and when I
hit shift+2, I get this error:
tm_dialog: server version at v5, this tool at v4 (they need to match)
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/dialog.rb:19:in
`load': Cannot parse a NULL or zero-length data (PropertyListError)
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/dialog.rb:19:in
`menu'
from /tmp/temp_textmate.V1zbOv:5
My dialog plugin and gtdalt bundle are all up to date. The dialog bundle
lives in Application Support--->Textmate-->PlugIns.
Anyone know what is going on? Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi there,
I had this hideous bug in on of my rjs templates. The bug was in this
line:
page[:login].visual_effect
:blind_down
now, most of you (who know rjs) will think that's a perfectly good
line. However, there is a bug in it. That line gets converted to this
javascript:
$("login").visualEffect
("blind_down");
It turns out that the character between the .visual_effect and
the :blind_down is *not* a standard space. It's some sort of carriage
return/line feed which is displayed as a space in TextMate (and Mail
it seems too).
Now, not wanting to spark up any editor wars or anything, but BBEdit
displays the lines like this:
page[:login].visual_effect
:blind_down
$("login").visualEffect
("blind_down");
so it's now obvious where the bug is... and why my div wasn't
blinding down ;-)
Is there any way I can get TextMate to alert me to the fact that this
character *isn't* a space? And therefore stop this hair-pulling bug
from happening again :-)
SAm
Hi,
Editing a LaTeX file seems particularly slow on my powerbook, even for
a relatively small file (a mere 200 lines). Every time I enter a new
character, the editor freezes for like 1/10 of a second... Has anybody
experienced the same kind of pb?
Regards,
Emmanuel
Hi all,
When I run this in TextMate with the Execute and Update command I get this:
RUBY_VERSION # => "1.8.2"
But, when I use irb in a terminal window I get this:
irb(main):001:0> RUBY_VERSION
=> "1.8.4"
Why aren't they the same? I am reading the Pragmatic TextMate book and it
shows 1.8.4 inside of TextMate.
Thanks,
-Eric
i am seeing some strange rubymate output when working with threads -
at times text is not printed on separate lines (when using puts rather
than print) and at others, the text is not printed at all. any
suggestions to resolve the rubymate behavior or pointers to where i
could?
regards,
jean-pierre
sample 1:
mate = Thread.new do
puts "Ahoy! Can I be dropping the anchor sir?"
Thread.stop
puts "Aye sir, dropping anchor!"
end
Thread.pass
puts "CAPTAIN: Aye, laddy!"
mate.run
mate.join
output from rubymate:
Ahoy! Can I be dropping the anchor sir?CAPTAIN: Aye, laddy!
Aye sir, dropping anchor!
expected output:
Ahoy! Can I be dropping the anchor sir?
CAPTAIN: Aye, laddy!
Aye sir, dropping anchor!
sample 2:
homicide = Thread.new do
while true
puts "Don't kill me!"
Thread.pass
end
end
suicide = Thread.new do
puts "This is all meaningless!"
Thread.exit
end
Thread.kill(homicide)
output from rubymate:
<nothing>
expected output:
Don't kill me!
This is all meaningless!
Don't kill me!
I'm using the current (as of a few minutes ago) Subversion repository
for TextMate bundles, and I'm having a problem with the LaTeX mode's
highlighting. The problem is with the "lstlisting" environment (and
possibly others).
With the default Mac Classic theme, this environment is supposed to
have a light blue background. However, while writing a recent paper,
the highlighting often did not work the way it's supposed to. To
demonstrate the problem, I've attached three LaTeX files. The
rightway.tex file shows how the highlighting is supposed to be; the
wrongway1.tex and wrongway2.tex files show incorrect highlighting. Is
there a simple fix for these problems?
Thanks,
Trevor
P.S. Although the rightway.tex file highlights the environment in
blue as it should, it also changes the word "is" to bold. Why does it
do this?
I have Preview as my LaTeX viewer, and in the Typeset and View command,
is there a way to first close the Preview window with the current
document open (if there is such a window).
http://blog.circlesixdesign.com/2006/11/19/textmate-backpack-
interface-pre-release/
I've posted the initial version of the Backpack (http://
www.backpackit.com) bundle on my blog. It's got the following
commands with dialogs:
Create Reminder
Quick Destroy Reminder
Quick Edit Reminder
Destroy Multiple Reminders
List Reminders by Date
Add as Note
View/Edit Notes
Change Backpack Account
It has rough Keychain access support that works pretty well. It is,
at this point, a demonstration of what we could do. It could be
integrated in a lot of ways with a few other bundles. Right now I'm
using it to quickly post reminders that will be sent to my cell
phone, and client notes from documents that I'm working on. I can
log in and work through a tree view of all my notes on all my pages
and even edit them from the same interface. This bundle works great
with the free version of Backpack.
There are a couple of commands I left out. Some of the text based
commands have the possibility of sending malformed dates which will
break your Backpack page. 3 Backpack accounts later, I think I've
got the bugs worked out, but I'm not ready to risk anyone else's
pages yet. Also, a couple of gem-dependent commands... like one that
uses Chronic (human readable dates - i.e. Next Tuesday at 5pm) for
reminder entry.
If you try this out, please let me know if you run into bugs and
problems. I have not had a chance to test this on anything other
than my G5 and my PPC laptop.
Thanks,
Brett
recently I installed the svn client from source and wanted to try out
the subversion bundle in Textmate.
I figured out that I need to set the path variable in TM prefs, since
i use tcsh as my shell, and textmate obviously not (bash?).
I already have a working copy of my project checked out, and when i
change a file in TM, I tried to commit, but it always gives me an
authentication error. Now my test server grants me anonymous access,
so i don't have to specify any credentials, and i think Textmate is
giving some username here.
I couldn't find out where to change this. In CVS I had shell
variables to set this, but I couldn't find any info on this on the
subversion site quickly and in the help file that comes with the
bundle. (maybe a TM variable in advanced prefs?)
Can anyone lead me in the right direction please.
Thomas Krajacic
Haris,
Thank you for the quick response. I was looking for the "Run Command"
menu that was listed, in the screencast, under the Automation menu; I
seem to have found it under the Bundles -> HTML -> Insert Open Close
Tag.
Thanks for your help,
Farhan
Hi,
sorry if my question is a bit off topic but I couldn't find any
information.
I'm just writing a tiny perl script which converts non-ASCII
characters coming from 'defaults read ...' to utf-8 because I want to
simplify the interaction between BASH and tm_dialog. This works
perfectly even with utf-16 surrogates.
But then I was a bit naïve! I thought that 'pl' outputs non-ASCII
characters in the same way, but it didn't.
E.g. an German umlaut 'ö' stored in a xml plist format is outputted
as '\U221a\U2202'!!
Has someone an idea what kind of 'format' it is? I found no
documentation.
Or could it mean that 'pl' do not support utf-8 string at all?
Thanks for any hint
Hans
Hi all,
I'm new to TextMate. I was watching the screencast by Allan on HTML. I
noticed his copy of TextMate has the "Automation" menu. This menu is
not in my version of TextMate (v1.5.4 - 1324) and I'm running 10.4.8.
I would greatly appreciate the help.
Thanks,
Farhan
I fixed up the scoping and interpolation of some of Perl's quote-like operators: q//, qq//, qw//, qx//, and m//. s///, tr///, and heredocs still need some work.
Attached is the diff and test script.
I'm using movabletype 3.33 when I post an entry I get an error
posting it
/usr/lib/ruby/1.8/xmlrpc/parser,rb:154:in 'fault':wrong fault-
structure: {"faultCode"=>"server","faultString"=>"Can't call method
\"param\" on an undefined value at /web/script/onegoodmove/
onegoodmove.org/mavabletype/plugins/commchallenge/lib/
commchallenge.pm line 48. \n} (RuntimeError)
I get a similar error when posting from del.ic.ious Can't call method
"param" on an undefined value at /web/script/onegoodmove/
onegoodmove.org/movabletype/plugins/commchallenge/lib/
commchallenge.pm line 48.
Any help is appreciated.
Hi All,
Got inspired of the "Sync with Transmit" bundle, and created this
little bundle:

All you need is that your public SSH key is added to authorized_keys
on the remote server =)
Warning: The directory you specify in REMOTE_PATH will be nuked on
first full project sync.
--
Best regards,
David Jack Olrik <david(a)olrik.dk> http://david.olrik.dk
GnuPG fingerprint C290 0A4A 0CCC CBA8 2B37 E18D 01D2 F6EF 2E61 9894
["The first rule of Perl club is You do not talk about Perl club"]
Hi all,
Most of the commands with output "Show as HTML' are broken for me. By most,
I mean all except for RakeMate and Ruby's Documentation look up (Previews,
Run commands, all Subversion commands, Textile/Markdown's documentation).
I tried creating a new command - echo "hello world" - with Output: "Show as
HTML" and it didn't work.
What ends up happening is a blank, white window is open. I clicked on view
source, and there's nothing there.
I noticed this about two weeks ago, and I couldn't fix it. I've updated all
my bundles and the support folder. I gave up, and deleted everything under
'/Library/Application Support/TextMate', '~/Library/Application
Support/TextMate' and anything related to textmate under
'~/Library/Preferences'. And I did a clean re-install. But I still can't
execute those commands.
Has anyone ever had the same problem? I know for sure, I've got my
.bash_profile set up correctly, but I'm using zsh (could that be it?).
Thanks in advance, and thanks to everyone who tried to help me on IRC.
- Hugh
I just installed the svn update to GTDAlt (r6072) that reportedly has
the fix for date handling.
I opened a new GTDAlt document, made a new project, added a new
context item and tried to insert a due date (either using # or via
menu) and received an error about a non-existent nib file on the
desktop. Looking at the code for "set date", I found this line that I
think needs to be fixed:
str = `#{e_sh dialog} ~/Desktop/testing.nib -mp #{e_sh plist}`
I'm not sure which nib the command be looking in but hope that either
Allan or Charilaos might be able to help fix this.
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
Great! That fixed solved the problem. I now have ical sync!
Couple of small things, nothing big to worry about:
1) When I've checked off a to do item in ical and then sync, it succeeds in
syncing back with the textmate file, but I also get this error:
/Users/lawrencegoodman/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/gtdalt_ical_synchronization.scpt:
execution error: iCal got an error: NSReceiverEvaluationScriptError: 4 (1)
It doesn't seem to affect functionality, but I thought you might want to
know about it.
2) In the instructions, it says:
- shift-, (<) reduces the date by one day.
- shift-. (>) increases the date by one day.
- ctrl-, reduces the date by one week.
- ctrl-. increases the date by one week.
- ctrl-shift-, (ctrl-<) reduces the date by one month.
- ctrl-shift-. (ctrl->) increases the date by one month.
These commands don't seem to be working. Have they been eliminated?
Thanks again for all the help.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
one more question arose:
when i just use the SVN_EDITOR shell variable in tcsh and then do a
commit from the commandline, TM opens and I can enter the commit
message. However, when I save the file, the terminal tells me that
the message has not been changed and gives me the option to abort,
continue and edit again. Isn't TM supposed to deliver the message to
the svn client correctly after saving the opened message log file?
thanks again for helping
Thomas Krajacic
Okay, let's say I've got an NSScrollView tied to an arrayController.
Heck, let's say I've got a few tied into eachother to create a tree.
The plist passes nested arrays to allow a user to, say, pick a
Backpack page->note->edit the note and return to TM where the script
takes the updated note and returns it to Backpack.
I've got the first half all finished, but the plist that comes back
to TM just contains the whole array including the edited note and
there's no easy way to tell what's changed. How do I pass back the
id's of the selected page/note and the note body separately or marked
as modified?
Any help would be greatly appreciated.
Thanks,
Brett
One of the nice features of iTerm and Aqua-Emacs is that selecting
text copies into the paste-buffer, and clicking the middle mouse
button pastes in text from the buffer, as with X11 programs. (That,
and focus-follows-mouse are the two features I miss most from other
unix operating systems).
Is there a way to do this in TextMate, and if not, is there any
chance it might one day be implemented as an optional feature?
Bill
So I figured out what was wrong with my GTDalt installation:
1) I had the GTD file with a suffix of .txt instead of .gtd. I suppose I
should have figured this out, but I don't remember reading it in any of the
instructions.
2) I had to upgrade the dialog plugin. As a newbie, I typically rely on Get
Bundle to fetch my packets, but with a plug-in you need to do it through
Subversion and the command line. I also needed to create a folder in
Application Support/Textmate called "PlugIns."
Now everything words as it should except:
Ical sync continues to create calendars, but not add to do items. I get this
error msg:
/Users/lawrencegoodman/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/gtdalt_ical_synchronization.scpt:
execution error: /Users/lawrencegoodman/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/get_lists.rb:5:in
`require': No such file to load -- ../lib/GTD.rb (LoadError)
from /Users/lawrencegoodman/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/get_lists.rb:5
(1)
Anyone know what this means?
Thanks for the help.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Strange behaviour of Bibliography Completion and Label From Document
commands accessed through option-esc. Description of the problem, and
workaround based on my correspondence with Charilaos (Harris) Skiadas
are below for archival purpose. Thanks Harris!
-- Working system
PowerPC G4, Mac OS X Version 10.4.8, TexMate Version 1.5.4 (1324),
TexLive Full Installation (2006/11/07) [Tex (based upon TeX Live)] /
MacTeX (10 November 2006)
-- Description of the problem
option-esc results in:
\footcite{sh: line 1: /usr/local/TeXLive/bin/i386-apple-darwin8.6.1/
kpsewhich: cannot execute binary file sh: line 1: /usr/local/teTeX/
bin/i386-apple-darwin8.6.1/kpsewhich: cannot execute binary file
cite_key}
\ref{sh: line 1: /usr/local/TeXLive/bin/i386-apple-darwin8.8.1/
kpsewhich: cannot execute binary file sec:section_name}
\ref{sh: line 1: /usr/local/TeXLive/bin/i386-apple-darwin8.8.1/
kpsewhich: cannot execute binary file fig:label_name}
TeXLive and MacTeX installations modify /etc/profile, and set the
path as:
PATH="$PATH:/usr/local/TeXLive/bin/powerpc-apple-darwin-current",
which is actually an alias for /usr/local/TeXLive/bin/powerpc-apple-
darwin7.9.0/.
The scripts of both commands use first `which kpsewhich`, and only if
that fails, `locate kpsewhich` to find out where kpsewhich lives.
Running the which kpsewhich command in the terminal returns:
/usr/local/TeXLive/bin/powerpc-apple-darwin-current/kpsewhich
Running the locate kpsewhich command in the terminal returns:
/usr/local/TeXLive/bin/i386-apple-darwin8.8.1/kpsewhich
/usr/local/TeXLive/bin/powerpc-apple-darwin7.9.0/kpsewhich
/usr/local/TeXLive/man/man1/kpsewhich.1
/usr/local/TeXLive/texmf.texlive/doc/man/man1/kpsewhich.1
The `which kpsewhich' command in both scripts fails -- according to
my humble opinion, due to the fact that what is finds is not the
actual file but an alias. Then `locate kpsewhich` points to the first
kpsewhich it finds on the system, which is an intel binary. Thus it
declares "[...] cannot execute binary file". (If you have the Basic
Installation of TeXLive, which does not come with intel binaries, it
will declare "[...] cannot find binary file".)
-- Workaround
Bibliograpyh Completion, and Label From Document commands are based
on the following scripts: LatexCitekeys.rb, and
LatexLabelCompletions.rb. Both of them live in /Applications/
TextMate.app/Contents/SharedSupport/Support/bin. Edit both scripts,
replacing the following loop -- lines 51-55, and 11-15, respectively:
if `which kpsewhich`.match(/^no kpsewhich/) then
kpsewhich = `locate kpsewhich`.split("\n").grep(/kpsewhich$/)[0]
else
kpsewhich = "kpsewhich"
end
with a statement indicating the correct path to the powerpc kpsewhich
binary.
kpsewhich = "/usr/local/TeXLive/bin/powerpc-apple-darwin-current/
kpsewhich"
or
kpsewhich = "/usr/local/TeXLive/bin/powerpc-apple-darwin7.9.0/kpsewhich"
should both work.
Check your /etc/profile or better run "echo $PATH" in the terminal to
confirm your path.
--
Özgür Gökmen | og(a)pyromedia.org
TextMate's zoom button (the green jewel in the title bar) maximizes
windows to the full screen. Great on my 12" PowerBook. Highly
annoying on my 24" iMac. I'd rather it maximize vertically only. This
behavior seems to vary across OS X applications (Safari only
maximizes vertically e.g.). Any chance there is a hidden preference?
Thanks,
j.