Hello. I was looking for some help from some RE experts.
We have a lot (as in hundreds of files) of javascript code that uses
the following declaration format:
function
MyJScriptFunction()
{
}
Because the "function" keyword and the function name are not on the
same line, the Javascript parser cannot populate the function list
with functions declared like this.
Is there a way to tweak the Javascript bundle so that it recognizes
functions declared as described above?
----------------------------
B.C.
Hello,
I've been using the blogging bundle for the past month with no
problems. However, yesterday I came back to university and am now
inside the network, with all sorts of restrictions. When trying to do
any of the commands such as posting to a blog, getting the category,
or looking the current word up in google and linking (my personal
favourite) I get the following error:-
/usr/lib/ruby/1.8/timeout.rb:42:in `new': execution expired (Timeout::Error)
from /usr/lib/ruby/1.8/net/protocol.rb:83:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:55:in `timeout'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:64:in `initialize'
from /usr/lib/ruby/1.8/net/http.rb:430:in `open'
from /usr/lib/ruby/1.8/net/http.rb:430:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:419:in `start'
... 9 levels...
from /Users/Joanna/Library/Application
Support/TextMate/Support/lib/progress.rb:41:in `call_with_progress'
from /Users/Joanna/Library/Application
Support/TextMate/Support/lib/progress.rb:38:in `dialog'
from /Users/Joanna/Library/Application
Support/TextMate/Support/lib/progress.rb:38:in `call_with_progress'
from /tmp/temp_textmate.IbaTBN:45
I was wondering if anything could be done about it, if I needed to
change some preferences or something.
Thanks, Joanna
Hi all,
I have the key F12 bound to the action "showGuessPanel:" in Cocoa,
which is then re-implemented by TextMate. However, the correction
list is always empty in TextMate when it is full of best guesses in
Cocoa apps.
Test case:
- set up a Cocoa keybinding in ~/Library/KeyBindings/
DefaultKeyBinding.dict (F12 is unicode UF70F) to "showGuessPanel:"
- restart TextMate
- open a new plain text document (with online spell checking enabled)
- type "apparentley " (including the end space to indicate end of
word)
- press F12 (or the keybinding you previously bound)
The guess list is empty, whereas if you do this in a Cocoa app such
as TextEdit, the spelling pane would contain the ranked best guesses
for the correct spelling of the word.
I would actually be happier if there was an action that inserted the
"best guess" without requiring feedback, but I'm not aware if such an
action exists. Is there perhaps a way to macro this within TextMate?
--
Sam
Shift+Cmd+{ has stopped converting Markdown to HTML
Shift+Cmd+} has stopped converting HTML to Markdown
I reinstalled HumaneText.service in Library/Services and get the same
result.
I have the language set to either Markdown or MultiMarkdown and
neither work.
This has been such a great tool. I do not know what I could have down
to have it stop working. Thanks everyone.
Howdy -
More newbie questions. Just from a different one this time. I keep
getting variations on the following
tm_dialog: you have updated the tm_dialog tool to v7 but the Dialog
plug-in running is still at v5.
tm_dialog: either checkout the PlugIns folder from the repository or
remove your checkout of the Support folder.
tm_dialog: if you did checkout the PlugIns folder, you need to
relaunch TextMate to load the new plug-in.
/Users/pedrud/Library/Application Support/TextMate/Support/lib/
dialog.rb:127:in `load': Cannot parse a NULL or zero-length data
(PropertyListError)
from /Users/pedrud/Library/Application Support/TextMate/Support/lib/
dialog.rb:127:in `menu'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Bundles/Blogging.tmbundle/Support/lib/blogging.rb:603:in
`choose_blog_endpoint'
from /tmp/temp_textmate.OrBy4u:3
I believe that the clue is in the first line, however, how do I
update the dialog plug-in to v7? Thanks in advance for any help.
Peder
Hi,
> Running Octave scripts from Textmate using Matlab bundle works
> fine, but I'm not sure what sort of output I should use. I have set
> it to 'Show as HTML', since I don't want to create a new file for
> each run and the tooltip option is too volatile. The only problem
> is the text comes out without any line breaks, which is very
> painful to read especially when it comes to vectors and matrices.
You could try wrapping the output in a <pre> tag
Hi,
i missed your reply until now for some reason, thanks. I'm not quite sure how to do what you suggest, though. My 'runOctave' command is the following,
# just to remind you of some useful environment variables
# see Help / Environment Variables for the full list
echo File: "$TM_FILEPATH"
echo Word: "$TM_CURRENT_WORD"
echo Selection: "$TM_SELECTED_TEXT"
octave -f -q
i tried adding the strings "<pre>, pre, | pre, ..." randomly around that, but with no success. Could you give me further hint or link me some help page?
I also get a very annoying problem: my code calls some functions located in other files, many of them are not read correctly for some reason and generate an error due to a wrong line ending apparently. If i just open them and save them, it works fine. Since running a code in Octave can call many functions, i'd save a lot of time in fixing that problem.
Many thanks,
baptiste
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail
I am having trouble running a fairly simple Ruby program (below).
The error that I get in TextMate is:
csh: Bad : modifier in $ (/). /bin/bash: line 4: : command not found
Here's the program (from David A. Black's Ruby for Rails book):
puts "Reading Celsius temperature value from data file...";
num = File.read("temp.dat");
c = num.to_i;
f = (c * 9/5) + 32;
puts "Saving result to output file temp.out";
fh = File.new("temp.out", "w");
fh.puts f;
fh.close;
I'm sure there's an easy fix. Thanks,
Jamie Forrest
Hi,
This is my first post to this list. I've been a user of BBEdit for
many years, and out of curiosity I've decided to check out TextMate.
I'm actively involved in the MacTeX effort, mainly for testing, and
I've written a set of Applescripts and shell scripts for BBEdit to
play nice with LaTeX. For these scripts I made sure they play nice
with the tricks TeXShop uses for multi-file projects, since TeXShop
is the standard entry-level application that most will use when they
start with (La)TeX on Mac OS X, and if you're compatible with the
starting point, you make it a lot easier to upgrade to a serious editor.
I must say that I like what I've seen so far, but I have some
suggestions:
Textmate runs either the current file or a file pointed to in some
environment variable. I guess there is an easy way to set this
variable, but TeXShop uses a method that is not all that hard to
implement; I did so for some BBEdit AppleScripts [1]. The core is
actually implemented in a (rather ugly) shell script, you may be able
to reuse parts of the script.
TeXShop defines some meta comments, describing the source, and how it
can be typeset. From the help-files:
%!TEX TS-program = command
-- use command to typeset this file (pdflatex, latex, pdftex, texexec
(context), …). If you encounter one of the classic tex formats
(latex, tex), you should prepend with simpdf (simpdftex, simpdflatex)
to handle some code which will not work in pdftex, like pstricks,
simpdf(la)tex will take care of the final conversion to pdf and
previewing.
%!TEX encoding = encoding
-- this file is encoded in encoding (a string using the Apple system
names, see below for a list). Since all sane encoding use the same
lower 7 bits, you can start reading in US ASCII until this string is
encountered, and re-open in the correct encoding.
%:Marker
-- use Marker in a tags menu.
%!TEX root = Document
-- Use Document as the root for typesetting the current file.
It would be useful to have a "open selection" command that opens a
referenced file, and an open master command. I have some of those in
my scripts in my bundle [1], for regular tex files, and graphics
files (either open the original metapost source, of open the graphic
in preview or so).
I have a sample project that shows most of the issues, mail me off-
list if you are interested.
Regards,
Maarten Sneep
You haven't had real fun with regular expressions until you've
written a vi regular expression to search for a vaguely remembered
regular expression in a document which describes how they work.
References:
[1] http://www.nat.vu.nl/~sneep/tex/CompileTeX-BBEdit8.dmg
[2] http://mactextoolbox.sourceforge.net/articles/japanese.html
List of supported encodings in TeXShop. There is one item to take
care of in editing TeX sources for Japanese users. The details for
that can be found at [2].
MacOSRoman, IsoLatin, IsoLatin2, IsoLatin5, MacJapanese, DOSJapanese,
SJIS_X0213, EUC_JP, JISJapanese, MacKorean, UTF-8 Unicode, Standard
Unicode, Mac Cyrillic, DOS Cyrillic, DOS Russian, Windows Cyrillic,
KOI8_R, Mac Chinese Traditional, Mac Chinese Simplified, DOS Chinese
Traditional, DOS Chinese Simplified, GBK, GB 2312, GB 18030.
Hello all,
I'd like to propose two additions to the C bundle.
First, an easy snippet: typedef.
I know I can never remember how typedef works, so I propose this
snippet:
typedef ${1:WhatItIs} ${2:NowCallIt}
Second, a modification on an old favorite: the class snippet.
Most of the classes I write are subclasses of something else.
Except the class snippet echos my colon and subclass declaration.
Meaning, I end up with class declarations like:
class Customer : public Person
{
public:
Customer : public Person (arguments);
virtual ~Customer : public Person ();
private:
/* data */
};
(Note the ": public Person" echoed on both the constructor line,
and the deconstructor like).
I suggest modifying the class snippet like so:
class ${1:name}${2: : public } $3
{
public:
${1:name} (${4:arguments});
virtual ~${1:name} ();
private:
${0:/* data */}
};
There are a few things I don't like about this, mainly that if
you don't inherit from something you know have to type
"'class', tab, delete, tab, arguments. It also might handle
multiple inheritance poorly, or protected/private inheritance.
Maybe some TextMate snippet wizards (or people with more involved
C++ classes than I) can revisit my snippet to make it work better
with these cases.
Hope this helps,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
I'm trying to get my head round the whole scope, language grammar, thing
for one trivial reason - I'd like to mark <?php and ?> tags in a
different color.
So my question is this - is there a good tutorial that would help me
understand how to build and edit a theme to my own liking?
has anyone worked out how to specifically target <?php tags (other than
the whole embedded section...)
TIA
Tony
--
Join me: http://wiki.workalone.co.uk/
Thank me: http://www.amazon.co.uk/gp/registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/
Hi,
I just updated installed Bundles via GetBundle.
While I am writing perl and running the script, error is experienced.
"csh: setenv: Too many arguments. /bin/bash: line 2: : command not found"
It looks like it has problems with environment variables.
However, I do not change the environment or anything else.
How can I check and fix this?
Cheers,
CM
Hi there,
would it be possible for the blogging bundle not to ask for the blog
for everything when I've already added the "Blog: " header?
See attached screenshot...
(I'm using the latest SVN bundle)
TIA
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
I realize that this seems to have been covered a couple of times,
however, I am new to most of this and need a better clarification.
I've been using TM to write to my blog without any problem. The past
two weeks I've been very busy and haven't posted to my blog. Then a
couple of days ago I tried to do so and got the following when I try
to Fetch Post:
/usr/lib/ruby/1.8/xmlrpc/client.rb:551:in `do_rpc': Wrong size. Was
37509, should be <unknown> (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:31:in
`getRecentPosts'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Bundles/Blogging.tmbundle/Support/lib/blogging.rb:547:in `fetch'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in `popen'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Support/lib/progress.rb:11:in `call_with_progress'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.XQJVcg:3
Additionally, when I attempt to fetch my categories (cat TAB), I get
the following:
/usr/lib/ruby/1.8/xmlrpc/client.rb:551:in `do_rpc': Wrong size. Was
7283, should be <unknown> (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /tmp/temp_textmate.iNdaKE:46
from /tmp/temp_textmate.iNdaKE:45:in `popen'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Support/lib/progress.rb:11:in `call_with_progress'
from /tmp/temp_textmate.iNdaKE:45
Can anyone suggest anything to help? I really appreciate it.
Thanks,
Peder
P.s. By the way, I don't exactly feel my skills in the terminal are
good enough to input the change that Brett has shared with everyone.
Hey all,
I've carefully read the TextMate manual 8.2 search PATH
actually my ~/.profile, ~/.MacOS/environment.plist have the same
value than the shell i'm using (zsh).
in fact i've writen two ruby scripts to update these files according
to zsh setup.
then, my PATH hits first /opt/local/bin where is theMacPort Ruby.
when i use a ruby file with the following shebang :
#! /usr/bin/env ruby -wx
from TextMate i get :
/usr/bin/ruby: No such file to load -- ubygems (LoadError)
from terminal :
$ ./myscript.rb
it works as expected.
I think i've miss something to set env vars for TextMate...
but what ???
Yvon
So,
I've used DarwinPorts (aka MacPorts) to install the latest version of
the BASH shell (v3.1.17). I've set it as my default shell within the
NetInfo database. I also have it on the list of acceptable shells in
my etc/shells file
I'm just wondering how you force TextMate to use this shell as opposed
to the built-in BASH shell.
When ever I run (done by selecting the "Filter Through Command" menu
item in the Text menu. I select input none, and am working in a blank
document, and I select "Insert as Text" as the output): echo
$BASH_VERSION
I get back: 2.05b.0(1)-release
In the terminal I get:
3.1.17(1)-release
Can anyone help?
-Brian
I just started looking more into the SQL bundle and using it to
execute the statements I'm creating but I keep getting an error in
the results display saying that it can't find mysql — and it, of
course, lists all the places it looked.
Is it possible to set the mysql path in the shell variables or is
there something else I have to do so TM can find my mysql?
Thanks,
Mike Stickel
Screenflicker Developments
http://screenflicker.com | http://gonecksgo.com
e: mike(a)screenflicker.com
Hi,
How can I set up TextMate such that it will not open any documents at
startup, not even documents I had open when I last quit TextMate?
Cheers
Ulai
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
Hi,
I got some mails regarding to Hypersearch > GetAllMatches which can
transform a table written as a TAB b TAB NEWLINE ... to an HTML
formatted <table>. The question was whether it is possible to write a
snippet like 'table TAB' to insert an HTML table based on the user's
dimension input.
I wrote such a semi snippet as a command and I want to post it here.
Maybe it is also interesting for others.
The basic idea is to ask the user for the dimension and style with the
help of a Cocoa inputbox.
Syntax:
row column {style}
delimited by whatever (of course no digit;)
Examples:
3 x 4
will include three rows and four colums where each <td></td> is
written in a separate line
2 3 1
will include two rows and three colums where each <td></td> is written
in one line per row, i.e <td></td><td></td><td></td>
4
will include four rows and four colums where each <td></td> is written
in a separate line
Its scope is text.html and the used shortcut is crtl+shift+t and you
can use TAB to jump to the next cell.
The only question I have is whether it is possible to invoke this
command like a normal snippet via e.g. 'tablexy TAB'.
-Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Hey Everyone,
Just curious if anyone has tried out this bundle:
http://david.olrik.dk/articles/2007/02/09/textmate-remote-editing
If got a lot of large projects that I can't use Textmate on cause it's too damn slow using Macfuse. Just curious if anyone else has tried an had success with this bundle.
Bill
____________________________________________________________________________________
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.
Hi all,
I found a strange LaTeX compiling behavior.
I tried compiling a LaTeX document this morning, and I got the
following warning above the "Compiling laTeX..." header in the
compiling window.
/Library/Application Support/TextMate/Support/lib/web_preview.rb:70:in
`html_head': undefined method `+' for nil:NilClass (NoMethodError)
from -:4
What does this mean?
Thanks for whatever help you can give.
Best,
-N
--
----------
Nathan A. Paxton
Ph.D. Candidate
Dept. of Government, Harvard University
Resident Tutor
John Winthrop House, Harvard University
napaxton(a)fas.harvard.edu
http://www.fas.harvard.edu/~napaxton
=======================================================================================================
When you have to stay eight years away from California, you live in a
perpetual state of homesickness.
- Ronald Reagan
The most courageous act is still to think for yourself. Aloud.
-Coco Chanel
=======================================================================================================
Hello!
I thought it would be great to run the Rails autotest (url) from a TM
window to turn the file paths with line and column numbers into
clickable links. With a normal command it would be very easy but since
this command is running all the time I was wondering if somebody know
how to capture its ouput, parse it (convert links etc) and then write
it to a html output window.
Thanks
Martin
--
burnfield.com/martin
Hi,
Just another feature suggestion. Use case:
I've been making some changes in a source file. I've been making
the changes in two locations in the file in parallel, trying to keep
them roughly in sync as I make the changes. When I get to the end, I
notice that there was a simpler set of changes for one of the two
locations.
I'd like to be able to select a region of text and 'undo in
selection'. It is just like normal undo, but it skips over commands
in the undo list that don't affect the selection and only undoes
commands that do affect the selection. (For bonus points, the
'skipped' undo commands could be left in the undo queue, so if I
start using normal undo then they start being undone.)
I suspect that this isn't a particularly common request, so I
don't really expect it to ever be implemented, but I thought it was
better to mention the idea than not.
Be well,
Will :-}
Hello all,
I'm a new textmate user- my intention is to use it for web
development. one of the most useful bundle commands, obviously, would
be the "open document in running browsers".
however, when i run that command, absolutely nothing happens. textmate
just sits there, staring at me.
am i missing something? to me, it would seem that if i'm working on an
html document, if i were to run that command, it would have safari
(which is already running) open the document to show me what it would
look like. same goes for firefox or IE (shudder).
i've searched through the archives of this list and no one seems to
mention my problem. also- this has happened on two seperate computers,
so i don't think this is a local system issue.
i should mention that i'm mostly familiar with html/css code - hardly
low-level stuff. so bear with me.
any help would be greatly appreciated. thanks!
chippper
Hi,
Just new to textmate and trying to get SVN working. I've pointed textmate
to my /usr/local/bin/svn area but when I request a status against a file I
get the following error. Are there any tricks of the trade to get svn
working in textmate?
Status Actions File
subversion/libsvn_wc/questions.c:110: (apr_err=155021)
svn: T" with working copy '/Users/greg/source/testapp/app/controllers';
please get a newer Subversion clientsvn
Also does textmate subversion allow one to perform an overall "project
commit" after which it works out what has changed?
Tks
Greg
attached is a patch for the TextMate bundle which includes the command Open
URL in TextMate. This command will prompt the user with a dialog where they
can enter a url. That document is then downloaded and opened in TextMate as
a new document.
The default behavior is to pre-populate the dialog with the selection if it
exists.
-dave
Hi,
This keeps catching me out...
From the subversion status window, I click the commit button. From
the commit window, I type in my commit message, then from the option
menu/button I click "Choose None". Then in the list I check the file
that I want to commit.
I get this message at the bottom of the status window:
svn: Commit failed (details follow):
svn: '/Users/evansj/rails/project/CMPluginExamineContext-m' is not
under version control
N.B. CMPluginExamineContext-m is not the name of the file I tried to
commit, and does not even exist in my project.
If instead of using the menu button I *manually* untick all the files
that the commit message doesn't apply to, it all works fine.
I am using the latest svn for the whole of /Library/Application\
Support/TextMate/
Thanks,
Jon
In CSS, I block out parts of the code with comments like...
/*--------------------------------------------------*/
/* Heading */
I am a little obsessive compulsive, in that each of the comments
should use 50 hyphens to keep them all neat and tidy... in a mono-
type font.
Is it possible to make a snippet that will add the relevant number of
spaces after the words?
So in the example above, the word "Heading" uses 7 characters, plus 1
for the space on the left, leaves 42 spaces on the right.
I was considering the use of...
/*--------------------------------------------------*/
/* $1 ${1/./\0x0D/g} */$0
Where the "\0x0D" is the hex code for the back space key.
Any ideas?
This message contains information which may be confidential and privileged.Unless you
are the intended recipient (or authorized to receive this message for the intended
recipient), you may not use, copy, disseminate or disclose to anyone the message or
any information contained in the message. If you have received the message in error,
please advise the sender by reply e-mail, and delete the message.
Thank you very much.
(A)
I hope it's cool to post this here (let me know if there's a more
appropriate channel 'cause I'm gonna have a HTML one ready soon ;).
I finally cleaned up a bit the CSS bundle I've been using for a
while. It's pretty much an adaptation of the default, but with a lot
of stuff added, especially in terms of tab triggers. I find it
particularly appropriate to work w/ tab triggers in CSS files since
it's a pretty linear process with virtually no text manipulation... I
think some of you guys might enjoy it.
That's where it's at:
http://minimaldesign.net/downloads/tools/textmate-css-bundle
I remember some keen rsync bundle or command that someone had posted
but that's a bit too big a hammer for what I'm doing. I'd like to scp
my current working file in much the same way as I commit it to svn.
Has anyone worked on something like this?
Thanks,
Steve
Hello,
I have some problems with the Blogging bundle. When I try to fetch the
articles I get this error message:
---snip---
tm_dialog: failed to establish connection with TextMate.
/Users/thomas/Library/Application
Support/TextMate/Support/lib/dialog.rb:53:in `initialize': No such
dialog () (TextMate::WindowNotFound)
} for command: /Users/thomas/Library/Application\
Support/TextMate/Support/bin/tm_dialog -a -p \<\?xml\
version\=\"1.0\"\ encoding\=\"UTF-8\"\?\>'
'\<\!DOCTYPE\ plist\ PUBLIC\ \"-//Apple\ Computer//DTD\ PLIST\
1.0//EN\"\ \"http\://www.apple.com/DTDs/PropertyList-1.0.dtd\"\>'
'\<plist\ version\=\"1.0\"\>'
'\<dict\>'
'\ \<key\>details\</key\>'
'\ \<string\>\</string\>'
'\ \<key\>isIndeterminate\</key\>'
'\ \<true/\>'
'\ \<key\>summary\</key\>'
'\ \<string\>Contacting\ Server\ "bohnomat.de"…\</string\>'
'\ \<key\>title\</key\>'
'\ \<string\>Fetch\ Post\</string\>'
'\</dict\>'
'\</plist\>'
' ProgressDialog.nib from /Users/thomas/Library/Application
Support/TextMate/Support/lib/dialog.rb:26:in `new'
from /Users/thomas/Library/Application
Support/TextMate/Support/lib/dialog.rb:26:in `dialog'
from /Users/thomas/Library/Application
Support/TextMate/Support/lib/progress.rb:38:in `call_with_progress'
from /Users/thomas/Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in
`fetch'
from /tmp/temp_textmate.pmHLCP:3
---snap---
I hope someone can help me.
Thomas
Hi all,
The "Browse Tables" command returns a "mysqldb not found" error with
the latest cutting edge version of TM (1349) and a fresh checkout of
the SQL bundle on my computer using version 5.0.27 of MySQL.
mysql_config is in my PATH and I've followed the instructions for
installing the python module and the following relevant bit of code
from the checkinstall.py file runs without exception.
#!/usr/bin/env python
try:
import MySQLdb
except:
print 'mysqldb not found'
sys.exit(-1)
several months ago on the mailing list problems with "Browse Tables"
was attributed to Intel incompatibles, is that still an issue (I'm
using a MacBook Pro, but the MySQLdb module I got claimed to be
universal <pythonmac.org>)?
Any suggestions?
Peter
It's quite helpful that TM's project files are xml (plists, i believe). I
recently had a need to update the paths to a whole bunch of resources in a
project I'd setup. It was a fairly easy find/replace operation, but I had
to perform it in TextEdit because I couldn't get TM to open the file as a
text file instead of as a project. I suppose I could have resorted to some
form of file renaming shenanigans, but I'm wondering if there is another
way. Does anybody know how to do this without resorting to file extension
trickery?
-dave
I used to use
%&pdftemasclases
and other pre-dumped formated as usual in LaTeX but Cmd-R in TextMate
doesn't seems to recognize it.
Another good thing it should do could be to retypeset it until no
warnings and rebuild bibtex... etc.
For my own personal use I created the Portable Game Notation bundle,
I hope that it may come in handy for a few people on this mailing
list. I've included text from the Help command at the end of this
message to give details on what the bundle actually does, but just in
case you don't want to wade through all that text -
Portable Game Notation is a file specification which describes a game
of chess which is used in most chess applications, and is a popular
way to transfer games over the internet. As well as a language
definition and a Help command, a couple of snippets are included
which may save time describing the initial state of the game. There
is also a useful command included within the bundle to launch the
current game selected in the symbol list in an external Application.
The bundle is available from http://homepage.mac.com/
andy.herbert/.Public/Portable%20Game%20Notation.tmbundle.zip
I appreciate this bundle may only appeal to a niche interest group,
but any criticism and comments will be appreciated.
Further details included within the Help command follow:
## Portable Game Notation Bundle Help
The ["Portable Game Notation"](http://www.very-best.de/pgn-spec.htm)
specification provides a method for describing a complete game of
chess in human readable form, it is also a popular file format used
in home computer chess programs.
This bundle provides syntax highlighting, snippets, and a command to
view individual games in an external editor.
Syntax highlighting is available for the following scopes:
* Tag pairs for each game (Such as "Event" & "Site")
* Values for each tag pair
* Ply numeric
* Individual moves
* Individual moves involving captures
* King-side, or Queen-side castling
* "Check" notifications
* End-game result
* Comments between moves
In addition the entire move-list for each game can be folded within
TextMate, and spell checking is only enabled for in-game comments.
Individuals games stored in each PGN file can be immediately accessed
through Textmate's Symbol List (⇧⌘T), which displays
the values stored every game's tag pairs. An external editor can also
be used to visually display the moves in the current symbol scope.
### Creating a new game with the "Insert Seven Tag Roster" snippet
Each game described in a PGN file must include seven tags to describe
the setting for the game. The "Insert Seven Tag Roster" snippet
provides an easy way to include this information by typing
"tags⇥".
When the snippet is inserted then navigating through each value can
be achieved by pressing ⇥.
Default values for each tag are generated automatically, but certain
information such as the names of each opponent are expected.
For convenience the current date will be inserted in the required
"YYYY.MM.DD" format, although this can be altered as required.
### Describing each player's strength with the "Insert Elo Tags" snippet
Optional information on the strength of each opponent's play can be
defined by using the "Insert Elo Tags snippet", these values are to
be added with the rest of the tags in each game definition, and
describes the FIDE Elo rating for each player. A default value of "-"
indicates the rating at the time of the game is unknown.
### Viewing the current game in an external application using "View
Game"
An external application may be used to view the game currently
described by the value in the symbol list by defining the environment
variable "$TM\_PGN\_VIEWER" as the name of an installed application
(e.g. "Vektor3"). When the key combination "⌘R" is used
Textmate will launch the specified program as a seperate process.
Defining shell variables used within TextMate can be achieved by
using the key combination "⌘,", selecting the "Advanced"
preference pane by using the mouse, and finally selecting "Shell
Variables" as a sub-option.
Hi,
I'm just using the HTML bundle for the first time. I was thinking
it would be great if the tab triggers for more discoverable. Hence
this feature suggestion:
When hitting tab would trigger a tab-trigger, change the cursor.
It would only need/should only be a subtle change - change its colour
from black to navy blue. You'd then get an indication that something
would happen if you hit tab. You could try it - and undo if it
doesn't do what you want.
At the moment there could be all sorts of triggers that I just
don't know I'm missing...
Cheers,
Will :-}
Textmate's ability to write a new grammar which includes an existing
one is nice, but I'd like to do the opposite: make all existing
grammars include an extension...
I frequently use "structured comments", such as comments beginning
with "TODO:" to note bits of code that I've only stubbed out, or
"OPT:" for optimization opportunities. I'd like to be able to syntax-
highlight the most severe of these types of comments so that I always
notice these things as I'm scanning through a file.
I could just extend the grammar for each programming language with a
few new rules, but a much much better solution would be to add the
rules everywhere, such that anything within a "comment" scope and
which matched my rule got an additional "todo" scope.
Does Textmate already have a simple way to do this?
Is there a better approach to accomplish what I'm looking for?
Hello (sorry for my bad english)
I use textmate with the theme Eiffel to create my latex code.
When i want to put this code on my site, i use two commands of the
TextMate's Bundle :
Create HTML From Document and Create CSS From Current Theme
This works very fine : http://altermundus.fr/pages/lx/tb.html
But :
The css is very heavy and the source code also and it's very
difficult to modify this code
The same code is at this page on the site of Kjell Magne Fauskes
http://www.fauskes.net/pgftikzexamples/ (clic on the Sign diagram)
Kjell uses pygments a module of Python. The css and the code are more
simple and the result is correct
Two questions :
1) is it possible (perhaps with a better theme create only for
latex) to get a css more simple and a lighter source ?
2) is it possible to use pygments ( http://sourceforge.net/projects/
pygments/ or http://pygments.pocoo.org/ ) from TextMate with
Python's Bundle
Greetings Alain
ps : The result of the css with textmate is very fine but is
difficult to modify it directly by hand !
Sorry about that. Realized that I had forgotten to quote the first parameter
to the embedded applescript, which would cause issues with paths containing
spaces.
Here's the updated version of the bundle.
This addition to the Xcode bundle adds Xcode debug support to the bundle.
This does _not_ rebuild the debug configuration before invoking debugging,
however that can be added trivially to this.
Ian Baird
Hello :)
When writing bundles, the current environment contains the variables
TM_INPUT_START_(LINE|LINE_INDEX) to contain the corresponding data
from the beginning of the selection. If I need to have a look at the
text at the beginning and end of the selection I would use these
variables for the start and TM_LINE_(NUMBER|INDEX) for the end.
Fine - as long as I just select downwards (placing the selection
start-point to the left and/or higher than the selection end-point.
If I do an upward selection this will leave me with no information
about the (lower) end-point at all as the current position equals the
start position.
Is it possible to have some additional TM_INPUT_END_(LINE|INDEX)
variables to definitely catch the end-point data no matter what kind
of selection (downward/upward) has been used?
It would also be convenient having both the start-/end-point line
content (not only the current) as an environment setting which saves
reading the whole document for one of two lines again.
thanks so far
Wolfgang
Dear Haris (or whomever else!),
The latest SVN versions of the latex bundles don't seem to respect the
value of TEXINPUTS. Instead, the bundle has the lines
# Add our tex directory to the TEXINPUTS variable so e.g. pdfsync is
found (even when the user hasn’t installed it)
# preceeding colon stands for default search paths. Search them first so
if user installed pdfsync it'll use that one
export TEXINPUTS=":$TM_BUNDLE_SUPPORT/tex//"
The problem is that this doesn't actually *add* to the TEXINPUTS; it
overwrites it.
It should probably be something like
export TEXINPUTS=":${TEXINPUTS}:$TM_BUNDLE_SUPPORT/tex//"
but with some better shell-substitution to take care of possible
previous values or lack thereof for TEXINPUTS.
Yours,
Andrew
Hi everyone,
Has anyone ever integrated a 3rd party diff tool into Textmate? I use
Guiffy and would like to use it when I view Subversion revisions in
Textmate.
Thanks!
Raphael
Hello all,
I've tried the TM CodeBrowser plugin (a very good idea btw) and I
can't get it to recognize methods within OO JavaScript objects very
well (prototype.js for example). I searched the list archives and
found a broken link to CodeBrowser2...anybody have any advice?
Thanks,
Michael
The Textmate help section on printing states:
"There are plans to improve the printing capabilities, but until
then, there is also a command in the Source bundle (View Source as
PDF) which produces a PDF from the current source using enscript and
has syntax highlighting enabled for supported languages."
I have v 1.5.4 (1324) of Textmate and don't see this option in my
Source bundle.
Is it still available somewhere.
I'd like to be able to print and get the syntax coloring in the printout.
Thanks for any pointers.
--
- Stephen Bannasch
Concord Consortium, http://www.concord.org