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 …
[View More]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
[View Less]
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/…
[View More]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
[View Less]
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 …
[View More]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
[View Less]
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 …
[View More]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.
[View Less]
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:
…
[View More] 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
[View Less]
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/…
[View More]registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/
[View Less]
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/…
[View More]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.
[View Less]
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 …
[View More]terminal :
$ ./myscript.rb
it works as expected.
I think i've miss something to set env vars for TextMate...
but what ???
Yvon
[View Less]
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 "…
[View More]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
[View Less]
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
…
[View More]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.
[View Less]
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 …
[View More]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
=======================================================================================================
[View Less]
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 …
[View More]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 :-}
[View Less]
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
…
[View More]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
[View Less]
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 …
[View More]overall "project
commit" after which it works out what has changed?
Tks
Greg
[View Less]
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 …
[View More]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
[View Less]
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 …
[View More]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)
[View Less]
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 …
[View More]guys might enjoy it.
That's where it's at:
http://minimaldesign.net/downloads/tools/textmate-css-bundle
[View Less]
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\ …
[View More]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
[View Less]
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)
…
[View More]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
[View Less]
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 …
[View More]resorting to file extension
trickery?
-dave
[View Less]
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 …
[View More]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.
[View Less]
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 …
[View More]there could be all sorts of triggers that I just
don't know I'm missing...
Cheers,
Will :-}
[View Less]
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 …
[View More]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?
[View Less]
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.…
[View More]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 !
[View Less]
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 …
[View More]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
[View Less]
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 …
[View More]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
[View Less]
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 …
[View More]printout.
Thanks for any pointers.
--
- Stephen Bannasch
Concord Consortium, http://www.concord.org
[View Less]
Hi.
I'm new to textmate (although I did at least buy a license for it),
and have one of those questions that probably comes up a lot. In my
defense, I did first skim through the beta-book from Pragmatic
Programmers on "Power Editting" with TextMate, and I did try a number
of searches on both the wiki and some of the mailing lists archives.
I haven't found any mention of what I wanted to find, but maybe I just
wasn't picking the right search terms. So, apologies if this is one
of those hot-…
[View More]button topics which people are tired of hearing of...
In any case, what I want to have is a combination of hard tabs and
soft tabs, and I can't see how to get what I want out of TextMate.
What I want is my tab-intent to be a soft-tab (using blanks) at 4
spaces, but I also want hard-tabs (using the actual tab character) to
be used for 8 spaces. So, if I tab once I want four spaces, if I tab
twice then I want a single tab character, and with three tabs I want a
tab-character followed by four spaces. I can get this behavior out of
XCode, and it would be very very useful to me if I could get the same
behavior out of TextMate.
In XCode, I get this behavior via the "Indentation" preferences, by
turning on "Tab key inserts tab, not spaces", and setting tab width=8
and indent width=4. Apologies if I'm missing some obvious setting in
TextMate.
Thanks for any suggestions. Other than this one oddity, TextMate
looks like it could be very useful and productive for me -- once I can
master all that it can do! :-)
--
Garance Alistair Drosehn = drosihn(a)gmail.com
Senior Systems Programmer
Rensselaer Polytechnic Institute; Troy, NY; USA
[View Less]
Is there a way to search within a single file and have all matches be
highlighted? Or as an alternative, have the results show in a window like
the search-in-project feature does?
Thanks,
Ernest
--
View this message in context: http://www.nabble.com/Highlighting-all-matches-in-a-search-tf3145124.html#a…
Sent from the textmate users mailing list archive at Nabble.com.
I am using extensively the new label completion macro
which is really very good and fast. I have a problem though:
all my equation labels have the form \label{eq:labelname}
and the macro chokes on them. If I type
labelname
then invoke the opt-esc shortcut and chose 1 i.e.
"label based on current word", I get
\\${1:eqref}{eq:labelname}
Clearly the colon is the problem. Any workaround,
apart from changing my label style (which is one
of the standard ones, however, used e.g. by Auctex)?
Thanks,
Piero
Just updated the LaTeX bundle (revision 6490) and I am getting the
following error when I use the Build Citation command after choosing
a citation command (such as `\cite{}`, say) from the list:
/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
69:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
fileparse_bibfile'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
194:in /…
[View More]bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecall'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
163:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileeach'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
162:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileeach_pair'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
161:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileeach_pair'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
154:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
fileeach_with_index'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
153:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
fileeach_with_index'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
153:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
23:in
All the best, Mark
[View Less]
i've managed to screw up some of the default text-mate bundles.
is there an easy way to revert to the default shipping items?
the blog implies that diffs from the defaults are kept in a specific
place, and removing these would revert. but that didnt seem to be the
case for me...
tx,
/dc
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle 株式会社
…
[View More]http://www.pikkle.com
-------------------------------------------
[View Less]
i had to remove the OS-X included broken version of Ruby, and now get
this error message when using certain commands like comment out block
in textmate :
env: ruby: No such file or directory
so i assume TM is piping the text thru a ruby script to do these operations.
so, how do i tell textmate where to look for Ruby?
all systems are go in the shell ::
dc@bb > which ruby
/usr/local/bin/ruby
dc@bb > ruby --version
ruby 1.8.5 (2006-08-25) [i686-darwin8.6.2]
for now i did a hack to …
[View More]symlink from the apple default location ( usr/bin )
to where i have ruby185 installed, but this doesnt seem optimal:
dc@bb /usr/bin > sudo ln -s /usr/local/bin/ruby ruby
I do have a .bash_login
which textmate -should- source to create a shell environment before
any scripts are run?
>> Instead TextMate runs a custom script (named bash_init.sh located
in $TM_SUPPORT_PATH/lib) before executing the actual shell command(s).
This custom script contains the following code: <<
thanks for any tips.
/dc
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle 株式会社
http://www.pikkle.com
-------------------------------------------
[View Less]
Is anyone interested in a language grammar for the DOT language?
I have created a decent starting point and am looking for suggestions
as to what is lacking so far.
Elio Grieco
Here's what I want to do:
- select a function name
- hit hotkey to jump to the next place that selected piece of text is
used
the way I have to do it now is
1. select text
2. cmd+e
3. cmd+g
I just want steps 2 and 3 to become a single step. I was just hoping
I missed the hotkey somewhere.
Hi there
I hope someone can help me out.
I wanted to use TextMate for blogging to my Weblogs. One that is important
for me, since i am an artist, is that i can post to MySpace easily. How can
i achieve this?
Thanks for your help!
--
View this message in context: http://www.nabble.com/Blogging-to-MySpace-tf3121719.html#a8649255
Sent from the textmate users mailing list archive at Nabble.com.
I have released a combination of TextMate commands and a Wordpress
plugin for Wordpress 2.1 that allows for better handling of tags when
blogging from TextMate. [1]
The plugin, UTW-RPC, overrides a few functions in the xmlrpc.php
file, implementing Robin Lu’s hack[2] for Ecto and Ultimate Tag
Warrior. This automatically will make the Keywords header function
with TextMate and allow the Keywords: field to insert and display
Ultimate Tag Warrior tags from posts. (It will also provide …
[View More]the same
functionality for all other blogging clients that recognize the
mt_keywords header).
The plugin also adds a hook, metaweblog.getTags, that the TextMate
commands use to retrieve the tags from your blog and provide various
functions with. The commands are rudimentary at this point and are
provided as proof of concept. I could use some serious help with
implementing a fuzzy search on the autotag command.
Thanks,
Brett
[1]http://blog.circlesixdesign.com/2007/01/26/utw-rpc-10/
[2]http://www.robinlu.com/blog/archives/57
[View Less]
Hi all. I'm trying to set a $TM_ variable in new template to get the
project name (without filepath and extension) but I cannot find a way
to do so. I searched through many messages in this list but I cannot
find any answer to my question.
Setting ${TM_PROJECT_FILEPATH} in the template file configurator,
creating the new template it will output:
/Users/webrevol/Desktop/test.tmproj
Instead of:
/Users/webrevol/Desktop/test.tmproj
how can I get only the filename without extension?
test
Anybody?…
[View More] Many thanks in advance.
[View Less]
…when I can’t post to the list anymore.
Messages kept bouncing the past days (took them about three days,
either). Forced me to resubscribe. So consider this a “test” and
apologies for it.
Soryu.
Please ignore this mail. I’m having trouble posting to the list from
this email address. Hope this is resolved now. If not, you won’t even
see this, so why are you complaining, anyway? ;)
Soryu.
hi,
I am wondering if anyone has developed something to support named bookmarks,
e.g. within a project context.
I found Haris' blog post on a way to support global bookmarking:
<
http://skiadas.dcostanet.net/afterthought/2006/06/09/global-textmate-bookma…
>
Thanks-- that is a useful start! The HTML/link interface works well. I was
thinking of messing with it further to support naming the bookmarks that are
written to the file, and maybe associating them with a project name.
(However,…
[View More] since I've not used Ruby and am SUPPOSED to be writing a paper at
the moment it might be a while until I get to it.)
Has anyone else done something like this already? Apologies if I missed it,
nothing was obvious in the bundle list etc.
-Amy
[View Less]
On 1/25/07, Sean Schertell <sean(a)datafly.net> wrote:
> Another great version control system is Mercurial (also called "hg").
> It's also similar to CVS, SVN but lighter-weight and arguably more
> reliable.
>
> The OpenSolaris project and many other major projects have switched
> over to Mercurial full-time so it's not really a totally left-field
> system, and it's gaining traction fast.
>
> Definitely worth a look:
> http://www.selenic.com/mercurial/wiki/…
[View More]>
> There's even a TM bundle for it :-)
>
> Sean
>
Yes, Mercurial is definitely worth a look.
One of its advantage over CVS or svn is that it is a distributed
system, that means you can work and commit locally before pushing to
the remote repository. It's easier to use locally too, as the
repository and the working copy are in the same place, you can have
everything in one folder.
After installing Mercurial and the bundle, open a folder in TM, hit
ctrl + shift + M and choose "init" then "AddRemove" to add all the
files (eventually create a .hgignore file before to exclude some
files) then "commit" and BOOM ;), your folder is under revision
control.
I made the Mercurial bundle as it is now. I plan to work more on it
when I have the time, but I think it's already really usable now.
Please, give me feedback if you use it. I plan to make a
tutorial/screencast about it one day too.
--
FredB
[View Less]
I'm trying to write a macro or command (not sure which will be
better) for doing a word count on LaTeX documents. The basic task is
simple enough: I want to run the command "ps2ascii [file.pdf] | wc"
on file.tex (where file.tex is the current file I'm working on) (I've
tested ps2ascii and it works fine for the types of documents I'll be
writing).
However, I also want to strip the footnotes from my word count. To
do so, I've defined the footnotes with a custom command that I can
…
[View More]redefine as empty:
\newcommand{\fn}[1]{\footnote{#1}}
% \renewcommand{\fn}[1]{}
So, the whole task I need to do is:
1) Uncomment the \renewcommand line
2) Re-run LaTex
3) Run ps2ascii | wc on the generated .pdf
4) Display the output of that command as a ToolTip
5) Re-comment the \renewcommand line (so the file is back in its
original state)
Unfortunately, I don't know how to string these things together, nor
how to get the argument for the ps2ascii command from the current
filename variable TM_FILENAME (i.e., how to substitute .pdf
for .tex). I can add unique comments to the end of the \renewcommand
line so it can be picked out by a regex search, if that helps.
Suggestions? I'm also open to other ideas for getting the same end
result, if there's an easier way.
Colin Hahn
»Geben Sie mir Kaffee, dann mache ich Phänomenologie daraus.«
"Give me my coffee so that I can make phenomenology out of it." --
Edmund Husserl
[View Less]
While writing a latex document using the array package, I noticed that
the line
\newcolumntype{R}{>{$}r<{$}}
confuses TextMate into displaying all following lines as if they were in
math mode.
Any chance there's an easy fix?
Chris
Hello all,
I am trying to find information in regards of how to copy and paste text in
a new line, for example:
before snippet:
myText
after snippet:
myText
theText = myText
currently I am able to create a snippet that will copy the selected word and
create a new line like this:
theText = $TM_SELECTED_TEXT
but of course this replaces the selected text so I did the following
$TM_SELECTED_TEXT
theText = $TM_SELECTED_TEXT
and this works great if there is only one line of text but lets …
[View More]say I need
to select a certain word in the middle of a pharragraph then i get the
following
before snippet:
first word theText second word
after snippet:
first word theText theText = theText second word
as you can tell the snippet inserts the comman din the middle of the
sentence, is there a way to avoid that?
TIA
Helmut
[View Less]
Attached is jpg of what Markdown looks like in Preview
(markdown1.jpg) and what the same file looks like in Print Preview
(markdown2.jpg).
Excuse my ignorance.
Why does the Print Preview change the Markdown Preview fonts? I
prefer the markdown Preview look.
Is there a way to have the Print Preview print exactly what is viewed
in the the Markdown Preview?
Thank you.
Can anyone advise on how best to do interprocess communication with
TextMate:
I'd like to be able to write a script (or whatever) that will tell
TextMate to select a particular line in the front most document.
AppleScript would be the perfect fit here, but I get the feeling this
isn't possible with TextMate's current scriptability. Am I wrong?
Any other ideas on how to achieve this effect?
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
> Yeah, that's because folding patterns aren't currently
> sophisticated enough to
> allow folding for markdown lists, sections (between headings),
> quotations, etc.
> Hopefully this will be different in TextMate 2.0. We'll have to
> see how Allan
> decides to make folding work. If it's based on scope, I hope we'll
> be able to
> fold all of the above.
>
> If you want to have some other folding mechanism, you could make
> the folding
> …
[View More]pattern more complicated, but it would require mirrored beginning
> and ending
> markers of some sort.
Would it be possible to set it up so that two returns mark the end of
a section to be folded? I ask be cause I'm in the habit of using two
returns anyway to visually signal the end of a heading and if it were
possible to set this up via the Bundle editor, my life would be good.
Example:
# Heading
Some text here.
* Maybe a list.
More text here.
# Another Heading.
[View Less]
Hello everybody,
I just wanted to share this experience, to find out if someone else
can report this TextMate behaviour.
In a LateX-document I want to write the following
\emph{delay}
what comes out 90% of the time is something like this:
\emph{ldeay}.
At first I thought I just cannot control what my fingers are doing,
but having tried out \emph{de}
while watching on my fingers (getting \emph{ed}) I thought it might
be something related to
TextMate or my setup.
This is what I type:
…
[View More]cmd-i, d,e
This is what I use:
pbook 12" 1GHz
Mac OS X 10.4.8
TextMate Version 1.5.4 (1349)
Can someone report similar behaviour?
Can someone help?
Thanks
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
[View Less]
(I just joined this list, so I can't properly reply to the original message)...
In the earlier thread about MacFUSE and sshfs, Michael Reece mentioned
that his files get written with a "Dec 31 1969" modification time.
I've seen the same problem. I've only seen this problem when using
sshfs with TextMate. If I touch the file outside of TM, the timestamp
is updated properly.
sshfs works fantastic with TextMate otherwise, so I hope there's a
solution to this.
Kevin
Hi,
It's been bugging me for a while: "Shift Right" will leave all lines
consisting only of whitespace completely blank, even removing
existing whitespace.
That really bugged me, so I tried to write my own "Shift Right"
command to replace the built-in one. But it seems that the lines my
code gets are already stripped of 'trailing whitespace'.
Any idea how I can tell TM to leave my whitespace alone?
Thanks
Gerd
Hi all,
I have the following document preamble, and I want to compile in
PDFLaTeX, but TM keeps falling back to XeTeXk, and I can't figure out
why. Any suggestions?
-N
% !TEX TS-program = pdflatex
% untitled
\documentclass[12pt,english]{article}
\usepackage{babel}
\usepackage{pdfsync}
\usepackage{amsmath, amsthm, amssymb}
%\usepackage{palatino,eulervm}
\usepackage{fullpage}
\usepackage{setspace}
\usepackage{fancyhdr}
% Surround parts of graphics with box
\usepackage{boxedminipage}
% …
[View More]This is now the recommended way for checking for PDFLaTeX:
\usepackage{ifpdf}
%\newif\ifpdf
%\ifx\pdfoutput\undefined
%\pdffalse % we are not running PDFLaTeX
%\else
%\pdfoutput=1 % we are running PDFLaTeX
%\pdftrue
%\fi
\ifpdf
\usepackage[pdftex]{graphicx} \else
\usepackage{graphicx} \fi
%% LaTeX Preamble - Common packages
\usepackage[pdftex,colorlinks,breaklinks,bookmarks]{hyperref} % PDF
hyperlinks, with coloured links
\definecolor{dullmagenta}{rgb}{0.4,0,0.4} % #660066
\definecolor{darkblue}{rgb}{0,0,0.4}
\hypersetup{linkcolor=red,citecolor=blue,filecolor=dullmagenta,urlcolor=darkblue}
% coloured links
% \hypersetup{linkcolor=black,citecolor=black,filecolor=black,urlcolor=black}
% black links, for printed output
%\usepackage{epstopdf} % to include .eps graphics files with pdfLaTeX
\usepackage{natbib}
\newtheorem{hypothesis}{Hypothesis}
\newcommand{\superscript}[1]{\ensuremath{^\textrm{#1}}}
\newcommand{\subscript}[1]{\ensuremath{_\textrm{#1}}}
--
----------
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
=======================================================================================================
[View Less]
I'm working on an action to allow me to quickly open a url in textmate:
res=$(CocoaDialog inputbox --title "Open URL" \
--informative-text "URL:" \
--button1 "Okay" --button2 "Cancel")
[[ $(head -n1 <<<"$res") == "2" ]] && exit_discard
res=$(tail -n1 <<<"$res")
/usr/bin/env ruby -e "require 'net/http';require 'uri';Net::HTTP.get_print
URI.parse('$res')" | mate
Basically, I'm using ruby to grab the page and output the content to stdout,
then piping that to …
[View More]TextMate. If i call this from the command line, it
works perfectly. problem is, if i call this as an command from within
textmate, it completely freezed the app. The page does open, but tm becomes
completely unresponsive and I have to quit and restart. any ideas what I'm
doing wrong?
thanks
-dave
[View Less]
Hello all
I am new to Textmate and this list but so far really impressed by the
program and the people posting here. My background is in molecular
biology and I will mostly use TM for text (MultiMarkdown is appealing
to me) not so much code.
Although I am slowly making my way through the manual I have not found
anything that would allow me to compare two textfiles and highlight
changes between them. "Diff" is not what I am loooking for because it
is based on lines. Writing manuscripts I don't …
[View More]use carriage returns so
a single difference in a paragraph will highlight the whole thing not
just the difference only.
FileMerge (in the Apple developer tools) is much closer and also
visually intuitive, but getting long in the teeth and having
difficulties with UTF-8.
Is there a Textmate bundle that will do this kind of comparison for me?
My sincere apologies if this question has been answered already,
Christoph
[View Less]
My workplace has standardized (a long time ago) on CVS for version
control. I'm used to using Subverison with svnX and a bit of command
line tomfoolery and haven't used CVS very much.
After much searching and demoing of applications I have come to the
conclusion that all of the graphical CVS clients for OS X out there
either a) are ancient, or b) are written in Java and are slow and
resource-hungry.
I've noticed that TextMate has CVS support, so I'm wondering if
anyone here has …
[View More]any tips on using the CVS plugin?
Neil
---
hushBOOM design
Web design, development & hosting -- Writing & Editing
http://www.hushboom.com/
[View Less]
In Ruby mode, I'd been using cmd-R to run my trivial little scripts,
but recently I came back to them and cmd-R no longer works. It
simply pops up an HTML window that displays the shell error message,
'/usr/local/bin/ruby: no such file or directory.' Running scripts
directly from Terminal still works, and my Ruby is in fact in /usr/
local/bin, so I'm basically stumped. What did I unwittingly change?
Thanks,
--p.
I've bough TextMate now after using the trial version - and the short
keys when writing rhtml or plain ruby don't work any more. I can't
get <%= %> by pressing ^Z or anything like that.
Down at the bottom I've selected HTML (Rails), Ruby on Rails, Ruby,
and even just plain HTML, but it don't work with any one of them. I
suppose that HTML (Rails) is the one I want.
Any ideas?
Mikael
Thanks. You're a tad over my head here, but I looked in the
application contents and a couple of files that might be what you're
speaking of, but I don't really have Ruby knowledge. I'm just using
textmate to do work in Tex and R, mostly.
Anyway, in Contents/ShardSupport/Support/bin, there's a file called
LatexLabelCompletion.rb. Perhaps this is it?
My TeX install is at /us/local/gwTeX/bin/power-pc-current/. It's a
fairly standard installation, in that I haven't made any modifications
to …
[View More]the MacTeX installation, so it's pretty as-is.
-Nathan
>I believe that the ruby script that fetches the path to your LaTeX tools is:
$TM_SUPPORT_PATH/Support/lib/LaTeXUtils.rb
If you look at this script, it has a function for fetching the location of the
LaTeX binaries called `tex_path`, which tries several different ways of getting
>to your TeX install, and should usually work. I'm not sure why you'd
be getting
>this error, as the script should only try to use kpswitch once it has found it
in the `tex_path` function. That is, the `tex_path` function explicitly tests
for the availability of kpswitch, so if it's not there, it shouldn't be getting
used later on.
>Maybe you can share some more details about your install.
>I can't really offer too much advice, because I have pretty much nothing to do
with the TeX bundle. Hopefully Haris will come back from wherever he's been
hiding, or someone else will step in with a solution.
Jacob Rus,
Harvard College
--
----------
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
=======================================================================================================
[View Less]
I keep a bunch of markdown-formatted text files on my iDisk. I use
folding extensively in them, like this:
Some words{
* Text that is folded.
}
To the best of my knowledge, curly braces are the only way to fold in Markdown.
Sometimes I've been opening a file and seeing that the folding goes
from the top brace to some random point *inside* the folded text,
instead of to the closing brace or anything that could possibly be
construed as a folding marker.
I'm pretty sure that this is …
[View More]because when I create the file with one
TextMate on my iMac, edit it while away on my Macbook, and then open
up the changed file again on my iMac later (all the syncing and such
has happened in the meantime), somehow the metadata hasn't come along
with it. So when I open the file, I have the data on one but the
saved folding info for the old version, still. So the top brace folds
to the line number of where the closing brace *used to be*.
Now, the way I use my iDisk (and the whole reason why I use it at all
instead of Strongspace) is that it keeps a local copy on both my
Macbook and my iMac, as well as on Apple's servers. So to TextMate,
my iDisk probably looks local, and looks like it supports the extended
attributes, but maybe that stuff is lost in transit through the
network iDIsk. Either a ._something file is being skipped, or
something is causing extended attributes to be lost.
Is anyone else familiar with this kind of folding weirdness? Can any
one think of a solution besides turning extended attributes off? (For
example, if it is indeed that extended attributes are being lost, is
there a way to just force TextMate to always use ._something files?
Presumably, this would sync fine.)
Thanks,
j
[View Less]
I had the same problem, but resolved it by deleting the
~/Library/Application Support/TextMate/Support directory (without
trashing any installed bundles or the application itself, Rev 1349)
> Blogging worked with no modifications, so I would toss your TM, toss
> your Application Support/TextMate folders in both ~/Library and /
> Library (or save to desktop) and try again.
>Also make sure you Check For Updates in Prefs and get the cutting
> edge version
--
Mark James Adams
…
[View More]Drosophila Genetic Resource Center
Kyoto Institute of Technology
<http://www.dgrc.kit.ac.jp>
[View Less]
Hi there all,
I'm using TM 1.5.4, OS X 10.4.8 and I am typing up a LaTeX document. When I
go to insert a label or reference, I type "\ref{}" and then hit option-esc
to bring up the list of labels for refs and figures. I can select one of
the items that pops up, but then TM inserts inside the brackets:
sh: line 1: /usr/local/teTeX/bin/i386-apple-darwin8.6.1/kpsewhich: No such
file or directory
fig:BeliefReX
So the figure label is there, but so is an error from the lookup procedure.
I know …
[View More]that I don't have this directory because that's not where
i-Installer/MacTeX puts an installation anymore. What's causing the error
message, and how do I get rid of it?
Thanks.
--
----------
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<http://www.fas.harvard.edu/%7Enapaxton>
=======================================================================================================
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
=======================================================================================================
--
----------
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
=======================================================================================================
[View Less]
wondering whether I'm misunderstanding the script Generate References
from the wonderful Markdown2Book.
my problem of building markdown.references while using the scripts
that came with this nice tool is maybe best described with the sample
I found here:
http://lists.macromates.com/pipermail/textmate/2006-February/008160.html
In my idea I could just:
- download this sample called `manual`
- start up a new project
- put all files from the folder `manual` in it
and start writing and it …
[View More]would create a reference for pages I would
add. For example adding a page:
040_my_test
would create a markdown.reference if I start referring to this page
like [see][myTest] and run the script `Generate`.
Or would I need to put: [myTest]: 040_my_test.html
in the markdown.reference file myself?
If I do it that way it works but I do need to add the `040_` in front?
Is this the correct way to do this?
Or should the `Generate` script choose the titles of a page as a
reference itself.
tia,
Gert
[View Less]
I am having a problem with the HTML bundle.
When I use the tag triggers to insert an element with a self closing tag (like <input />) or drag in an image (<img />) it does not put it in the XHTML format, even though the doctype is XHTML strict.
In the bundle editor (using the <input> example) it says:
<input type="${1:text/submit/hidden/button}" name="${2:some_name}" value="$3"${4: id="${5:$2}"}${TM_XHTML}>
Now I assume that this: ${TM_XHTML} is some kind of variable …
[View More]which decides whether to put the XHTML bit it. But it doesn't seem to work.
Any help would be much appreciated.
[View Less]
Hi there,
Taking a dummy example string like:
KIBRA
C/T
T/T
C/C
Questions
1/ Using the keyboard, how do I make a zero-width column selection at the
last position for each of the bottom three lines? The manual suggests that
holding option-shift while moving (arrow) from the top to the bottom lines
should do it, but this doesn't create the right selection for me, and when I
push option, the selection is not converted to a zero-width column cursor
(nothing happens).
2. Can I type at the end …
[View More]of each line (given that the lines end on different
columns)?
_______________
''The people shall not be deprived or abridged of their right to speak, to
write, or to publish their sentiments; and the freedom of the press, as one
of the great bulwarks of liberty, shall be inviolable.''
James Madison
Annals of Congress 434 (1789).
[View Less]
Hello!
My TextMate has been malfunctioning lately and I've been unable to repair it.
I've tried reinstallning and purging all settings I could find, but no
difference.
Here's what doesn't work:
* Creating a new file in the project drawer (nothing happens)
* All of the popup windows (for HTML validation etc) are totally blank
Any ideas on how to troubleshoot this?
Thankful for any help,
--
Christoffer Sawicki
http://vemod.net/
If anybody is used to the // {{ and // }} folding in vim and wants the same
in TextMate you can use the following language config to do similar things
with Ruby.
#begin ten
=begin
This is inline documentation
=end
def ten
10
end
#end
The following will create a fold between #begin and #end as well as add a
fold for =begin/=end comments.
Add the following two lines to your Ruby language file in the
foldingStartMarker section . . .
|begin
|=begin # …
[View More]line 1
|[#]begin # line 2
|for|while|until
and these two to your foldingEndMarker section . . .
| ^ \s*+ [}\]] \s*+ ([#].*)? $
| [#] .*? \(end\) \s*+ $ # Sune's special marker
|^=end$ # line 1
|[#]end$ # line 2
)';
Hope this is helpful.
'njoy,
Mark
--
Cropp's Law:
The amount of work done varies inversly with the time spent in the
office.
[View Less]
Hello everybody.
I added some functionality to my cocoa-completion command. It will now
show context based completion suggestions when the type of the reciever
can be deduced. If it can not find a method based on class, then it will
revert back to the old behaviour giving you all possible candidates. The
command currently only gives context sensitive information for AppKit and
Foundation.
Here are the two cases that give context-sensitive suggestions: (^ is the
caret) hit alt-Esc as usual.
[…
[View More]NSString someClassMethod^]
[[object pathWithComponents:myArray]
instanceAndClassMethodsThatWorksOnAString^]
Due to a bug (that crashes TextMate) that I have not managed to track down
I have restricted the functionality, so that one always have to type
atleast one char before completions are available.
The command uses methods from rubycocoa
(http://rubycocoa.sourceforge.net/), so be certain to have that installed
and that it can be reached from the standard ruby interpreter (or change
the she-bang line in the command).
If you like this version of the completion command, then please tell me
and I will switch the one in svn to this.
Joachim Mårtensson
[View Less]
I have recently switched to a mac. And I tried re-installing ruby from the
default 1.8.2. To 1.8.4. I followed the install instructions from
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger.
Everything from those instructions seems to install fine. But now textmate
doesn't know where ruby is..
it's weird.. if I run ruby from the command line or irb it works fine.. But
textmate compains about not finding it. (when using the Subversion bundle).
Textmate says it's …
[View More]searching all these different directories (one happens to
actally have ruby in it). but Textmat still can';t find it..
on other thing I noticed.. is that if i do a >>whereis ruby<< it doesnt show
anything.. I'm thinking that's the problem but how do I fix it..
any ideas?
thanks all.
[View Less]
I've recently installed the CTags bundle and can't get it work
correctly. I first installed the bundle, downloaded, built, and
installed Exuberant CTags (into /usr/local/bin). When I ask the
bundle to update all tags, I get a "ctags timed out" message and it
fails to find any tags (i.e., look up of a tag fails).
Any suggestions?
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
Hello all
I am new to Textmate and this list but so far really impressed by the
program and the people posting here. My background is in molecular
biology and I will mostly use TM for text (MultiMarkdown is appealing
to me) not so much code.
Although I am slowly making my way through the manual I have not found
anything that would allow me to compare two textfiles and highlight
changes between them. "Diff" is not what I am loooking for because it
is based on lines. Writing manuscripts I don't …
[View More]use carriage returns so
a single difference in a paragraph will highlight the whole thing not
just the difference only.
FileMerge (in the Apple developer tools) is much closer and also
visually intuitive, but getting long in the teeth and having
difficulties with UTF-8.
Is there a Textmate bundle that will do this kind of comparison for me?
My sincere apologies if this question has been answered already,
Christoph
[View Less]
Hi all,
I've only recently started to use TextMate, and I'm doing what you
all did in your first week... implementing the Emacs commands I can't
live without :-)
I noticed that there is no Emacs kill-sentence support, so I
implemented it:-
http://fommil.me.uk/Emacs%20Sentence.zip
Including the commands to cut from the cursor to the end of the
current sentence, and navigate back/forward sentences.
Emacs defines a sentence (with one space after the fullstop) as
[.?!][]\"')]*\\($\…
[View More]\|\t\\| \\)[ \t\n]*
but I edited that to use extended regexes and count colons. Emacs
also cheats and uses a bunch of other special tests for paragraphs
without a fullstop etc, so I included that too
[.?!:;][\]"')]*\s+?|$\s*?$|\Z
which is unfortunately hard-coded into all the macros as I didn't
know how to create a bundle-wide constant.
There is a little bug which means if you navigate back on the first
sentence in the first line of a file, you will be off by one. This is
such a small bug that I can't be bothered to fix it, although I'm
open to suggestions for fixes.
I bound navigation to alt-left/right (as I use ctrl-left/right for
word navigation) and kill-sentence as alt-k (same as Emacs). shift-
alt-right will work as expected, but I do not know what to do about
shift-alt-left; I'd like to hear any hints on how to get that to work.
cheers,
Sam
--
http://fommil.me.uk
[View Less]
Yes! Thats it...but what about the other Tags? Like Code, Quote, Img
and so on? I think you really should add this feature to your bundle!
I like the thing that the Bundle takes the text for the URL from the
pasteboard! Good Job.
> BTW, you better follow Jacobs' advice about "Edit in TextMate" than
> "paste the text back".
I know that i can do it this way, but as i mentioned earlier i'm
working as a writer for a board so i have to write some quite big
posts BEFORE i upload them. …
[View More]You know i have to do some research and
so on. I already know that Edit in TextMate is a really good feature
- believe me. But sometimes i have to write in TextMate, save it on
harddisk and then just paste it back in the browser. Writing these
Posts with TextMate is just more fun, than this little stupid editor
which comes with the Browser Software like vBulletin and phpBB.
[View Less]
Is it possible for Textmate to show in the OS X services menu listing?
Currently BBEdit, TextEdit, and TextWrangler show. Each of these have
two options:
New Window with Selection
Open File
TextMate is not listed. How can I add TextMate to the listing? Thanks
Hello,
just try to re-indent the following snippet with textmate and wonder
about it. ;)
Is there a way to fix the indentation? In which bundle should it be
fixed? HTML oder PHP?
<html>
<header>
<body>
<?php
$array['foo'] = array(
'foo' => 'bar',
'bar' => 'foo' );
$array['bar'] = array(
'foo' => 'bar',
'bar' => 'foo'
);
?>
<?php if (test == "") { ?>
<ul>
<li>foo</li>
<li>bar</li>
…
[View More] </ul>
<?php } else { ?>
<ul>
<li>bar</li>
<li>foo</li>
</ul>
<?php } ?>
</body>
</header>
</html>
Regards, Wolfgang
[View Less]
Folks,
Is there such a beast? I'm a long-time Emacs user who's happily
switched to TM once I got a Mac.
But I miss dired...Is anyone working on or thinking about a directory
viewing & file manipulation bundle? Oftentimes copying Emacs stuff in
TM doesn't make any sense, but in this case I think it might.
(Forgive me if this has been asked before; I admit to lazily not
searching archives before posting this!)
Cheers,
Kendall Clark
Hi,
Just installed textmate and was trying to use svn bundle.
I got following error:
Couldn't find svn
If you have installed svn, then you need to either update your PATH
or set the TM_SVN shell variable (e.g. in Preferences / Advanced)
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
CocoaDialog.app/Contents/MacOS
/bin
/sbin
/usr/bin
/usr/sbin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
================================================…
[View More]======
I have checked I have /usr/local/bin in my PATH
and I have also set TM_SVN (just in case) as followed:
$ set | grep PATH
PATH=/usr/local/bin:/usr/local/sbin:/sw/bin:/sw/sbin:/usr/local/bin:/
usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/
local/pgsql/bin:/usr/local/pgsql/bin
$ set | grep TM_SVN
TM_SVN=/usr/local/bin
$
$ which svn
/usr/local/bin/svn
What am I missing ?
Thanks
Jean-Michel
[View Less]
Thanks to all.
Just set TM_SVN using the suggested method and it worked right then,
i.e. did not have to reload.
Jean-Michel
> On Jan 14, 2007, at 10:39 PM, jeanpierre(a)gmail.com wrote:
>
>> alternatively, you could set the textmate specific environment
>> variable TM_SVN to point to your subversion. since textmate
>> doesn't read your shell you will need to define it in
>> environment.plist or you can set this directly in textmate:
>> …
[View More]Preferences > Advanced > Shell Variables.
>
> Setting TM_SVN via the Preferences > Advanced > Shell Variables
> route is definitely the way to go.
>
> Haris
>
[View Less]
Hi,
Is it just me or the active bundle no longer "centered" under the
mouse when opening the bundle menu on TM's window bottom toolbar? Is
this by design?
Christian
I have not tried it yet, and it is still very much a work in
progress, but now Fuse and the ssh file system are available for OS X:
http://googlemac.blogspot.com/2007/01/taming-mac-os-x-file-systems.html
If that works well there would be no need for an ssh implementation
in TextMate, and Allan could use the time to add other cool things...
And it probably is just a matter of time before ftp will be supported
by this as well.
Gerd
> My first intention, just to see how things are working i wanted to
> make a trace output - which says "Hello World". What am i doing
> wrong? Ive tried to use the ActionScript template and i did a
> script which just says trace ("Hello World"); I did use the
> "Install MTASC Support Files" and i did a try without...nothing
> happens. Can anybody help or does know where i get some
> information? ==================================
trace() is used by the Flash …
[View More]IDE. The MTASC equivalent is TRACE(),
which you can set up on the command line to point to another
function. I'm currently using the LuminicBox logger, but everyone has
their favorite. Google 'actionscript logger' for more options. Most
of them either work over a LocalConnection or an XMLSocket to pass
information to the logger. XMLSocket loggers are faster but the ones
I've seen are less robusty (Luminic, which is a LC debugger, has a
nice tree view for your objects).
Good luck :)
P.S. If you're interested in a more complete workflow, check out my
howto on the subject at
http://www.unfitforprint.com/articles/2006/01/02/howto-develop-flash-
on-mac-osx-with-rake-mtasc-swfmill-and-textmate
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
[View Less]
For some reason, over time, about half of my Ruby files have 4-space
indents and the other half want to indent by 2 spaces. I've been
living with it, but not my source is looking a bit like it had too
much to drink last night. Questions:
1) How do I tell TM how many spaces to indent?
2) Is there some cool way to invoke the auto indenter across a whole
file (I know it will get some of the indents a bit wrong, but it's
easier than going line by line)?
Thanks
Hi,
why does the LaTeX bundle suddenly default to \emph instead of
\textit when I press command-i? This is a most unwelcome change as I
often use the scrartcl-class where \emph seems to be typeset as
underlined text instead of italic.
Any chance for a *different* shortcut for emph in the default LaTeX
bundle? I don't like messing around in the default bundles myself for
as far as I understand TM will create a "local" copy and I can no
longer easily benefit from updates in the …
[View More]default bundles … :(
Christian
[View Less]
> Hmm, well you'll have to explain what you mean. There's no way
> that the bundle can really fetch posts from a BB, etc. The best
> way to use the BBCode bundle is--assuming you use a webkit-based
> browser like Safari, OmniWeb, etc.--to make a new post in your
> browser, and then use the edit in textmate input manager to get the
> text into TextMate. Then when you save the textmate window, it
> will put the updated text back into your browser. If you use
…
[View More]> firefox, i think some sort of external editor support is
> achievable, but I don't know how. If you use Opera or Camino, I
> think you're out of luck for now (though I could be wrong about
> Opera).
>
> Hope this helps,
> Jacob
>
Nonono you misunderstand me. Go to your favourite Board and do the
following:
1. Start making a new Post/Thread/Message
2. Type in some text. Lets say "This is my text"
3. Lets say you want the word "text" to appear as a link.
4. In a normal web browser you do this by marking the text "text",
click on "URL=" then the text "text" changes to [url=]text[/url].
Did it become clearer to you what i mean?
It would be nice to have TM act like the web editor so i can paste
the text back to the browser when i fnished with my post.
[View Less]
> Yes, I made a bulletin board bundle (in fact these things were my
> first textmate bundle items, so they're probably somewhat shitty
> with out-of-date scopes, etc.). It doesn't have too much
> functionality, but it should do reasonable syntax highlighting, and
> things like cmd-b for bold, etc.
Yes it does work very well. I was just thinking that it would be
something cool if the Bundle could handle these things. So that
editing is a little more comfortable.
@…
[View More]Niels: I have the Bundle already installed! Thanks for your
information ;)
[View Less]
Hi
Today i was just asking myself, when i was editing a quite big Forum
Post. Why there is no "Bulletin Board"-like editing mode in TextMate?
I hope you know what i mean...but let me describe.
When you are on the website of your favourite board. And make a new
post, the editor comes up and you start typing.
Then you decide: this one has to be size 1, this passage has to be a
link and so on.
On the Forum you are just mark which text has to be size 1 or the
link, click the size or link …
[View More]button and your marked text is put
between the tags you decided eg [size=1]my little text[/size]
This would be very handy to have! Because i am (very) addicted to
some forum i am visiting and i am writing some large entries there
which are posted on the start-page of the site.
Thanks!
Zettt
[View Less]
Greetings, I've encountered a bug recently with textmate after 6
months of use. it just popped up so I'm presuming it's related to
something with the systems font or somesuch. but no other app has
this issue.
I use textmate primarily for editing my rails scripts , As I said it
worked fine, but now my cursor is generally 1 or 2 columns off from
the insert point.
here's an example
type a number sequence to show
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 …
[View More]
6 7 8 9 0
then hilite, copy and paste in groups of +5
1 2 3 4 5
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 0 1 2 3 4
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
6 7 8 9
same thing without spaces..
12345678901234567890123456789012345678901234567890
12345
1234567890
123456789012345
1234567890123456789
123456789012345678901234
I've tried different fonts but get the same result. some times in my
code when there is italics or bold the spacing can be very off like
by 4 chars or more.
any ideas?
osx 10.4.8, default install
thanks
-zaq
[View Less]
Howdy all --
I'm wondering if Macromates is, or is not, at Macworld. There's a
listing in the program guide, but I looked and I couldn't find the
booth.
If so, I was going to stop by and say hi. :-)
Thanks,
--
Matt Anderson
Hi all,
I'm trying to re-implement the Emacs sentence navigation/kill commands.
http://www.delorie.com/gnu/docs/emacs/emacs_235.html
I've managed to write some macros that behave the same as Emacs for
most situations except near the beginning or end of the file. To fix
this I would need to be able to match the EOF or Beginning Of File in
a regex. Reading
http://macromates.com/textmate/manual/regular_expressions
I can't see these as available characters... do they exist?
--
Sam
Dear all,
Thomas Aylott wrote a nice Filename Completion within the
Experimental bundle. With this command you can simulate the TAB
behaviour at the console writing paths or file names.
By myself I prefer to see all suggestions with their real names (not
only the rest). That's why I wrote my own humble version, and I added
a nice 'auto correction' function to it.
With 'auto correction' I mean:
Examples:
I type '/Apppli' , invoke the completion, and finally it writes '/
Applications/…
[View More]'
or
I type '~/Dyskt' , invoke the completion, and it goes back to the
first valid path and makes a pull down list of 'Desktop, Documents'
The next thing I changed is that if the completion finds only one
match it outputs it directly without asking me.
Together with the auto correction the completion makes it easier to
insert a specific file name with a typo. For instance, I have a file
at my desktop named 'test3.txt' and I type '~/Desktop/test33.txt' ,
start the completion, it changes it at once to '~/Desktop/
test3.txt' (of course, if you have no other files beginning with
'test3').
The feature to select a part of the path with the mouse to indicate
what I want to change is missing in my script, because I'm a keyboard
person. If I take the mouse to select something, then I also can
press 'DELETE' before I invoke the completion script.
As default the pull down menu doesn't list files beginning with a
dot. If you want to see them, then you have to type:
'~/.+' (to see all) or '~/.p' (to see all with a p)
I bound the script to the key CRTL+TAB and the scopes: source.shell,
string.interpolated.ruby; but here are no limits.
Please check it and don't hesitate to comment my script ;) (Maybe I
forgot something)
Cheers,
Hans
[View Less]
Hi all,
I noticed that the Cocoa autocomplete word (ESC in Tiger) works in
TextMate. Using ~/Library/KeyBindings/DefaultKeyBinding.dict I have
set ^/ to also do autocomplete in Cocoa apps. I've been using this
keybinding for a long time now, but I'm new to TextMate (bought
license today).
Unfortunately, this user set binding does not work in TextMate
although it does work in other Cocoa apps such as TextEdit. Does
anyone know why this might be the case and any hints to fix it?
…
[View More]Optimally I'd like to set "Apple /" to autocomplete, but for some
reason Cocoa doesn't allow this.
cheers,
Sam
--
http://fommil.me.uk
[View Less]
Since my ISP is slow, I've added timeouts to the blogging module. I
guess its time to check that module out and see about diffs.
Anyway, you can now add, optionally, whitespace ddd to each blog
entry in the preference file to specify a per blog timeout.
Love the openess of this system :)
The Mac web development tool we've all been waiting for is here: "IE
Preview" allows previewing TextMate's current working document
directly in Internet Explorer through Parallels -- with a single
shortcut key! Many of us are forced into testing for IE
compatibility, and this makes it far less tedious.
I'm providing the app and the script on my site, here: http://
www.ryanvb.com/ie-preview/
If you find it useful, diggs and/or comments are much appreciated!
Thanks,
Ryan van …
[View More]Barneveld
Avid TextMate User
[View Less]
Hi,
I'm using textmate for my python work.
Templates are good but i can't replace spaces increment by tabulation :
if __name__ == '__main__':
(_ _ _ _) main() # spaces
if __name__ == '__main__':
(tabulation) main()
I must change it manually each time...
How to do that with bundle editor ?
Thx, C.
>
>> Hi out there,
>>
>> Sorry to disturb you during Steve is showing the new iPhone. But i
>> have a little question. I am using TextMate to compile my LaTeX
>> Documents. I was just asking if i can use LaTeX to create a Test or
>> Quiz. And yes you can! If you are using the package exam. So i was
>> downloading some examples hit Command+R and the compiler said that
>> he is missing some exam.sty
>>
>> Can someone help me out?
>…
[View More]>
> It is possible you don't have the exam package installed. Try running
> this on the terminal and see if you get something back:
>
> locate exam.cls
>
> Btw, exam is not a package, it is a document class, so you should
> access it via:
>
> \documentclass{exam}
> ......
>
> There is a TextMate Template creating a basic exam for you (File ->
> New From Template -> LaTeX -> Exam). Here you can find documentation
> for the class: http://www-math.mit.edu/~psh/#ExamCls
You're right. When i am in the \documentclass {exam} it will do the job.
My exam.cls is located at
/usr/local/teTeX/texm.tetex/tex/latex/exam.cls
I know whats wrong now. The example.tex Files ive downloaded had
these information in the preambel:
\documentclass{article}
\usepackage{exam}
%%%% If you are not using LaTex2e, replace the first two lines
%%%% with the following:
\documentstyle[exam]{article}
\paper{445.123 FC}
\degree{BA, BSc etc}
\title{An introduction to basic set theory}
\note{Attempt any {\bf THREE} questions}
[View Less]
Hello all,
As I was monkey-bashing the keyboard around Apple-D, I managed to
turn-off syntax highlighting. Can someone tell me how to restore
syntax highlighting or provide a link that includes this help?
Why was I monkey-bashing? For some reason Project Drawer will not
open on ^-Ctl-Apple-D. The menu works just fine. Any bugs around this?
Thank you, thank you, thank you,
Peter Fitzgibbons
peter.fitzgibbons(a)gmail.com
> On 1/7/07, thomas Aylott <oblivious(a)subtlegradient.com> wrote:
>>
>> On Jan 6, 2007, at 1:59 PM, Peter Michaux wrote:
>> >
>> > Is there a way to insure that the project draw will always open on the
>> > left? About fifty percent of the time it opens on the right and I have
>> > to close it, then move the window to the right and then reopen the
>> > project drawer so it shows on the left. A hassle I would really like
>> …
[View More]> to eliminate.
>>
>> It opens up on whichever side has more room.
>> If you drag your window all the way to the right and open the drawer,
>> it'll
>> open on the left.
>
> The steps you describe are the steps I unfortunately have to do half
> of the times I open a project in Textmate which is a tedious task just
> to make sure the drawer is on the left. It would be nice if Textmate
> always made sure that the window was far enough to the right so the
> drawer would automatically open on the left.
>
> Peter
I find this to be a feature, rather than a bug. I like to keep two (or
more) projects open at once, and have one with a drawer to the right,
and another with drawer to the left. This guarantees that the corner of
the other project window will always be showing, which sometimes is
useful for toggling between windows (it would be nice to be able to use
command-`), and as a visual reminder of what I'm working on. So at most
I think we might ask for a pref to control which sides the drawer can
appear on. Personally, I'll be a lot more excited when there's a pref to
turn off the automatic rescanning of files in a project (especially when
they're on a network vol), as the lag when switching between Textmate
and other apps is very annoying.
-Toby.
[View Less]
Hi out there,
Sorry to disturb you during Steve is showing the new iPhone. But i
have a little question. I am using TextMate to compile my LaTeX
Documents. I was just asking if i can use LaTeX to create a Test or
Quiz. And yes you can! If you are using the package exam. So i was
downloading some examples hit Command+R and the compiler said that he
is missing some exam.sty
Can someone help me out?
Thanks
Dear all,
I'm hacking on a little project that is somewhat abusing the
'Pipe text through' feature of TextMate's Web Preview window
(''abusing'' in the sense that I do not want to preview HTML text).
If you open the Web Preview and uncheck the 'Pipe text through'
option you can observe how rapidly TextMate can update the
preview (set the 'Refresh after change delay' to 0.00s and type
away in some plain text -- the update seems almost immediate and
you'll have immediate typing response …
[View More]in the editor window).
Enabling 'Pipe text through' makes TextMate pipe the current
editor window contents into the specified command. Even if you
only specify 'cat >/dev/null' as that command, you will notice
that text editing will become sluggish. I assume that this
delay is all due to the overhead of *forking* the specified
command -- executing 'cat >/dev/null' itself takes no noticable
time on files of size <100k on my Powerbook G4.
I've got two questions here:
(1) Is there a smarter way to receive live updates of the
current editor window contents? Maybe via the plugin API?
(2) How about a comptabile change in 'Pipe text through's
behavior? If the file specified in 'Pipe text through' is a
named pipe (mkfifo(1)) do not fork any command but simply
write the editor window contents into that named pipe.
Otherwise, behave as before.
Item (2) sounds like a moderate change that could get us rid
of the forking overhead for at least some applications that
need live update. What are the chances that Allan has open
ears for such things?
Thanks and all the best for the New Year,
--Torsten
[View Less]
1-open a new TM window
2-write a line containing " \\\a" (some spaces, some slashes, smthng else)
3-move the cursor back in the middle of the spaces
4-double click
Result: the spaces AND the slashes are selected.
Am I the only one to hate this? I expect the spaces
only to be selected.
Regards,
Piero
On Jan 8, 2007, at 10:23 AM, textmate-request(a)lists.macromates.com
wrote:
> As a Textmate user on multiple Macs, I totally support the idea of
> keeping my stuff in a Subversion repository :)
>
> Makes life so much easier when syncing, and helps me fix things fast
> when I break my own stuff (something that happens quite a lot :)
>
> Just my .02
Alex,
I'm with you all the way, but as a SVN noob, I haven't been able to
figure out how to set up ssh + svn so that I …
[View More]could use something like
ZigVersion on my various macs. If you know of a good guide, I'd be
much obliged. (And the one that comes with SVN leaves me in the dark.)
Darkly yours,
john
[View Less]
I'm switching from Zends IDE to textmate and have encountered
something i would like to enable but have the foggiest how to or even
if it is possible.
In Zend if you double click a php variable, ie $variable_name; then
the whole variable word including the $ would be selected and not
just the word text. Is there anyway to code this via the bundle
editor. I haven't really got a clue about it myself.
K, so I just started using TextMate. I am not a huge coder but let me
say that this software rocks.
So I am wondering if any of you can tell me how to fix this error
that I am having with the blogging bundle?
When I fetch posts I get this error
/usr/lib/ruby/1.8/net/protocol.rb:83:in `initialize': getaddrinfo: No
address associated with nodename (SocketError)
from /usr/lib/ruby/1.8/net/protocol.rb:83:in `new'
from /usr/lib/ruby/1.8/net/protocol.rb:83:in `connect'
from /usr/lib/ruby/…
[View More]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'
... 8 levels...
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:546:in `popen'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:11:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.vF4NMJ:3
I am using a Wordpress Blog
I am behind a linksys router. Is there some settings or something
that I should do? Not really sure. The site prompts me for my
password and I am 99% sure that I am putting in all the right settings.
thanks,
Matthew Wallace
Web Development
http://mswallace.comhttp://flashalisious.com
Office: 615-261-8149
[View Less]
Is it possible to re-bind Cmd+J and Shift+Cmd+J? Or are they consumed
by the menu system? I was unable to locate the appropriate command
TextMate uses for these keys.
Also, is there a complete list of commands TextMate supports for key
bindings. The default KeyBindings.dict does not list everything
(e.g., movePageUp, movePageDown).
Thanks.
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
Hi,
has someone experiences with RubyOSA – a Ruby/AppleEvent Bridge (esp.
whether it is faster than osascript running in BASH)?
http://rubyosa.rubyforge.org/
-Hans
Is there an equivalent in TextMate to C-x C-f in Emacs, where you can
specify the path and name of a file to open using the keyboard? I know
about CMD-O but that brings up the GUI File/Open dialog.
Been using TM for about 2 weeks now, I'd like to know bundles others find
useful.
Thanks
--
---------------------------------------
The Code Ninja is swift with his tool, precise in his delivery, and deadly
accurate in his execution.
Wondering if there is a way that I can configure the web preview
window to open up previews using a testing server address instead of
the file path.
Instead of it previewing like this
file:///Users/mswallace/Sites/phpTuts/lesson2/arithmetic.php
I want it to open like this
http://localhost:8888/php Tuts/lesson2/arithmetic.php
thanks,
Matthew Wallace
Web Development
http://mswallace.comhttp://flashalisious.com
Office: 615-261-8149
Attached is a bundle of commands for html h1-h5.
They build on the bundle "additional html" which was just sent to the
list.
They add the feature which most brings me back to Dreamweaver: they
not only turn selections (or whole lines with no selection) into a
heading, they also work on existing headings, changing them to the
selected level.
I'd welcome feedback and/or seeing something like this included in
the proposed expanded html bundle.
If you drag-and-drop a CD or DVD on an open
TextMate window this produces a nicely formatted
list of the contents. Folder names end with / ,
and one or more tabs denote the hierarchy
of nested folders.
I'm tempted to use TM for this. Actually searching
is already ok; I might use a project to group different
media into different folders, etc.
The only thing I am missing is a way to fold the
list at the appropriate level. The fully expanded
list is something like
CDname/
firstFolder/
…
[View More]subFolder/
file1.txt
file2.mp3
file3.txt
secondFolder/
file1
file2
file3
thirdFolder/
and I would do things like: see only the
CD names, or see only stuff down to one level
of tabs, or down to two levels of tabs etc.
This should be doable with the folding system of TM.
How? ok I could discover myself, and I'll certainly do
as soon as I have one solid week free (around 2009 I guess)
BTW, if you have a cataloging bundle ready I would
appreciate it a lot...
Piero
[View Less]
Hi,
Is there a way to insure that the project draw will always open on the
left? About fifty percent of the time it opens on the right and I have
to close it, then move the window to the right and then reopen the
project drawer so it shows on the left. A hassle I would really like
to eliminate.
Thanks,
Peter
--
Fork JavaScript: http://forkjavascript.org
Today I got this error trying to post / fetch some entries
tm_dialog: you have updated the tm_dialog tool to v8 but the Dialog
plug-in running is still at v4.
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/gotchi/Library/Application Support/TextMate/Support/lib/
dialog.rb:42:in `initialize': No such dialog ()
…
[View More](TextMate::WindowNotFound)
} for command: /Users/gotchi/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\ “blog.gotchi.at”…\</string\>'
'\ \<key\>title\</key\>'
'\ \<string\>Fetch\ Post\</string\>'
'\</dict\>'
'\</plist\>'
' ProgressDialog.nib from /Users/gotchi/Library/Application Support/
TextMate/Support/lib/dialog.rb:25:in `new'
from /Users/gotchi/Library/Application Support/TextMate/Support/lib/
dialog.rb:25:in `dialog'
from /Users/gotchi/Library/Application Support/TextMate/Support/lib/
progress.rb:38:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.87V0KW:3
I tried to update all Bundles with the "GetBundle" Plugin but nothing
changed.
I am sure this topic was already mentioned but I wasn't able to find
anything in the archives or my mailbox (cause of deleting unnecessary
things).
Thanks for helping
herbert
[View Less]
Does anyone have a working command to trigger YummyFTP's insanely
cool AutoRoute feature?
I want to be able to click "CMD-Shift-U" and have my current file
magically get uploaded to the correct server and location. I've found
accounts online of people doing this, but they don't say exactly how
it's done.
Thanks in advance!
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
Could the list help me with the following: I like to have a command
that, when activated with the caret in a (unique) file-in-project
name, finds this file and loads it automatically in textmate.
The function I'm looking for is comparable to that offered by the
txmt URI with 2 differences: (1) with the txmt URI any text file can
be loaded (I only want a file from my textmate project) and (2) the
full path and file name needs to be specified (I only want to give
the file name).
Any …
[View More]help is appreciated.
-- Bert
[View Less]
Brad,
I'd not used tags before, and I like the cloud so I'll toy with it.
However, adding some tags via MT fetches:
ype: Blog Post (Markdown)
Blog: Geeks R Us
Link: http://www.geeksrus.com/archives/000978.html
Post: 978
Title: Blog Entry from TextMate
Keywords:
Tags: Software, TextMate
Format: markdown_with_smartypants
Date: 2007-01-03 21:52:26 -0800
Pings: On
Comments: On
Basename: blog_entry_from
If I tack on ', Fred' to the tags and post, the tag is tossed. What
am I missing at this …
[View More]late hour? :)
Steve
[View Less]
Hi,
I look at 'Insert Command Template' and this one of my favorites ;)
Nevertheless I have some humble suggestions to improve it:
1)
Now this command executes the apropos function within a new fresh R
session. This means that it doesn't know which libraries I'm
currently using and it doesn't know which functions I defined within
my R session. To use 'Insert Command Template' also for this you
should load the function 'getSig.r' in my current session (renamed in
'.getSig' ) and …
[View More]executes this within my session to get these
signatures too.
By doing so you would increase the speed of it enormously and you can
insert signatures for user-defined functions and functions coming
from loaded libraries.
The disadvantage of it would be that you have such queries in your
current session; ok you don't see them in the TM R console window,
but if you save it workspace you would have these.
To avoid this you could think about to write the answer of the query
into a file and load it in TM.
Or, if you don't interested in the user-defined functions you could
start a new R session which loads all libraries which are loaded in
my current session.
(I don't know whether this would also work for user-defined fucntions?)
2)
If you use the approach in 1) then you can do more elaborated things
with it because of the speed.
Examples:
-If I look for for a keyword it will insert the signature like the
old version. If there is nothing found it will look for functions
which begins with the keyword like the old version.
-If I type e.g. 'data.' it lists all methods for 'data.' like
data.class, data.frame etc. but not 'dataentry'
-If I type e.g. '.difftime' you get all functions where '.difftime'
is specified like mean.difftime, print.difftime. To insert the
signature you have to select the keyword in beforehand otherwise it
shows a tooltip.
-If I have no idea about the complete name of a function you can type
e.g. '.load.'. This would look for '*load*' as regexp. Furthermore
sometimes I cannot remember whether the a function is called
'shownames' or 'showNames', so you can write '.names.' and it looks
for '*names*|*Names*'.
I would use periods for '.foo.' for indicating this because it will
be caught be Ruby's getword function.
Of course you can do more things:
-You could catch the 'apropos()' function and run it in TM and print
the result as pop down menu
and and and
What do you think about it?
To change to code would be relatively easy.
Best,
-Hans
[View Less]
Dear group,
Thanks for your excellent PyMate. Unfortunately I have started using
shelve to save intermediate results and have found a bug. Try the
following simplest script. (which uses the underlying problem pickle)
Please can somebody check that the error below occurs on the minimum
script that I have. I have copied the PyMate output below. I
particularly want to know if I have corrupted my python bundle in
some way.
This script runs without error when using the normal textmate …
[View More]command
=============
import pickle
class testobject(object):
pass
pickle.dumps(testobject())
=============
HIDE STDERR SHOW STDERR
Python 2.4.3 - PyMate r5848
For comments contact the author.
The regular Python interpreter can be invoked using ⌘⇧R.
>>> shelvetest.py
forcing redraw!!! don't remove
PicklingError: ("Can't pickle : it's not found as __main__.testobject",)
Traceback:
function module body
in shelvetest.py at line 6
function dumps ⎋
in pickle.py at line 1386
function dump ⎋
in pickle.py at line 231
function save ⎋
in pickle.py at line 338
function save_reduce ⎋
in pickle.py at line 415
function save ⎋
in pickle.py at line 293
function save_tuple ⎋
in pickle.py at line 576
function save ⎋
in pickle.py at line 293
function save_global ⎋
in pickle.py at line 760
Thanks
---
Nigel King
[View Less]
Hi,
I just thought about a tiny improvement regarding to display plots in
Preview.
If I want to plot something, Preview opens it. Fine. After doing that
I want to change the plot for instance. The new plot will be
calculated but Preview still displays the old one. I have to 'Revert'
it or close it before running the R script.
To make a quasi-update automatically here's a suggestion:
________________
defaults write /Applications/Preview.app/Contents/Info
NSAppleScriptEnabled -bool …
[View More]YES
P=$(osascript -e 'tell application "System Events" to (name of
processes) contains "Preview"')
if [ "$P" == "true" ]; then
osascript <<-AS2 &>/dev/null
tell application "Preview"
close every window
end tell
AS2
fi
"$TM_BUNDLE_SUPPORT/tmR.rb"
________________
Explanation:
'default write' has to execute only once to enable AppleScript in
Preview. So you can comment it out if set.
The next line checks whether Preview runs or not.
If Preview is running I close every window in Preview. This is a kind
of a small hack because AppleScript returns a warning 'missing
value', so I send it to the nirvana.
Both AppleScripts could be replaced by changing tmR.rb directly.
I.e., if tmp_dir is not empty and Preview is running (system(ps -aux
| grep Preview)) then call an AppleScript to close every window.
On the other hand it would be nice to have an easy way to set pdf()'s
'onefile' argument in order to be able to print all plots in one pdf.
Maybe solvable by using a TM variable?
Any comments?
All the best,
Hans
[View Less]
Sorry for the n00b questions, this is all new to me :)
I'm working on the blogger bundle, and saw that when I make end user
changes, those are mirrored into App Support, which rocks!
However, I'm tinkering with the ruby stuff (like I want it to upload
into /images/) just getting my feet wet and really don't want to be
mucking around inside of the app's bundle. Is there any way to
locally override the bundle file in App Support?
Thanks!
Steve
I'm trying to put together a grammar and having a hard time getting
the pattern matching right.
The line I'm interested in will be in the following format--
KW: [any text except a percentage sign can go in here] % (fold)
What I want to do is apply the scope comment.line.percentage from the
% sign to the end of the line, and variable.notes to everything in
between KW: and the percent sign. I also want to be able to use
Markdown-style italics within the variable.notes section.
Here …
[View More]is the patterns block as I have constructed it thus far:
patterns = (
{ name = 'comment.line.percentage';
match = '%.*$';
},
{ begin = '^KW:';
end = '% \(fold\)|$';
patterns = (
{ name = 'markup.italic.notes.variable';
match = '\*[^\*]+?\*';
},
);
contentName = 'variable.notes';
},
{ name = 'markup.italic.notes';
match = '\*[^\*]+?\*';
},
);
This does everything correctly except the % (fold) only acquires the
scope of the whole grammar and not the comment scope. Anything
following a percentage sign on a line that doesn't begin with KW: is
matched fine.
Any help on how to construct the grammar to match the end of this
line would be appreciated!
Colin Hahn
»Geben Sie mir Kaffee, dann mache ich Phänomenologie daraus.«
"Give me my coffee so that I can make phenomenology out of it." --
Edmund Husserl
[View Less]
ok it appears this was only tested on WordPress according to the
comments. :)
I duplicated "Category" into "Category MT" and changed the xmlrpc
call to:
blog_id = cred.blog_id
res = [{'categoryName' => cred.username},{'categoryName'=>'two'}]
res = TextMate.call_with_progress(:title => "Fetch
Categories", :message => "Contacting Server “#{cred.host}”…") do
cred.client.call("mt.getCategoryList", blog_id, cred.username,
password)
end
Now I get a list of categories! …
[View More]However they are not posted, because
MT does all of its category stuff with IDs. So more work is involved.
I guess nobody is using the Blogging bundle with MT?
Steve
[View Less]
Hi everyone,
I'm trying to run a ruby script via Cmd-R, and I get this error:
RubyMate r6189 running Ruby r1.8.4 (/usr/local/bin/ruby)
>>> symlink_dotfiles.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in
`filter_stdout': undefined method `test_script?' for nil:NilClass
(NoMethodError) from /Users/sean/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:59:in `emit_html' from
/Users/sean/Library/Application
…
[View More]Support/TextMate/Support/lib/scriptmate.rb:53:in `emit_html' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:73
The script runs fine in the shell, using the same ruby executable.
Any idea where something went wrong?
Thanks!
Sean
[View Less]
Am checking out textmate (am a 10 year bbedit user). So far I love
what I see, tho I have much to learn.
I am trying the blogging bundle with movable type 3.33 (I upgraded
from 3.2 just for this issue, but that didn't help. At least I got a
better blog out of it :))
I can retrieve posts fine.
When I make a new post and try cat tab, I get:
/usr/lib/ruby/1.8/xmlrpc/parser.rb:154:in `fault': wrong fault-
structure: {"faultCode"=>"Client", "faultString"=>"Failed to locate
…
[View More]method (getCategories) in class (metaWeblog) at /usr/home/geeksrus/
public_html/cgi-bin/mt/extlib/SOAP/Lite.pm line 2180.\n"} (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:562:in `tag_end'
from /usr/lib/ruby/1.8/rexml/parsers/streamparser.rb:26:in `parse'
from /usr/lib/ruby/1.8/rexml/document.rb:171:in `parse_stream'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:722:in `parse'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:462:in `parseMethodResponse'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:410:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /tmp/temp_textmate.GnKX4C:46
from /tmp/temp_textmate.GnKX4C:45:in `popen'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:11:in `call_with_progress'
from /tmp/temp_textmate.GnKX4C:45
MarsEdit works fine.
Thanks and I look forward to learning more about TextMate!
Steve
[View Less]
Hi,
this already cropped up in the list: sometimes
the Latex bundle does not catch errors which
are however catched by TeXshop (and by
collaborators :). But if you look into the
.log file you see that the error was correctly
identified by TeX, so the problem must be in
the bundle.
To reproduce, create a new .tex file containing
\documentclass{article}
\begin{document}
\begin{equation}
\frac a b }
\end{equation}
\end{document}
(notice the unmatched brace).
If you save the file as "a.…
[View More]tex" and
run CMD-R, the error is caught (catched?).
Now the fun: save the file as "a-b.tex"
(a hyphen must be in the name) and run
CMD-R again. The error is not caught
(but is reported in the a-b.log file).
So Haris: this has something to do with
how the bundle handles files. Or not?
Piero
PS happy new year everybody!
[View Less]
It stopped working for me. I reinstalled and it still does not work.
I want to keep all my files in Markdown and convert to html ad back
to markdown for saving.
If I Shift-Apple-} it deleted the highlighted html
If I Shift-Apple-} the spinning wheel turns for a moment and nothing
changes.
Can anyone help.
Hi,
Regarding to the R-bundle command 'Command Usage':
I find this idea very good, but it supposes that on every Mac
'texscan' is installed.
So here's my suggestion for it:
1)
I don't use Ruby, only Bash with a tiny Perl snippet. It is a bit
faster.
2)
I'm looking for HTML files, not for tex files.
3)
It could happen that the structure of a help file is inconsistent,
i.e. no 'Usage' header. If so, now it outputs the first 1100
character of the help as plain text. Maybe you find …
[View More]what do you are
looking for.
4)
I suppressed the error messages coming from the 'find' command
mentioning that there is no permission to do something.
Here the code:
________________
COM=`tail`
FILES=`find "${R_HOME:-/Library/Frameworks/R.framework/Resources}"/
library -name $COM.html -print 2>/dev/null`
if [ ${#FILES} -eq 0 ]; then
echo "Nothing found for '$COM'"
exit_show_tool_tip
fi
for F in $FILES
do
cat "$F" | perl -e '$a="";while(<>){$a.=$_};$a=~m/<h3>Usage<\/h3\>[.|
\n]+<pre>(.*?)<\/pre>/sim;if($1){print "Usage:\n".$1;}else{$a=~s/<.*?
>//gms;$a=~s/\n{3,}/\n\n/gms;print substr($a,0,1100)."\n[...]"}'
done
__________________
Any comments?
Best,
-Hans
[View Less]
In a nutshell, the new XML Catalog features allow you to easily
configure TeXMLMate to substitute local resources (like DTDs and
other schemas) for remote resources referenced by URLs. This allows,
for example, convenient validation of XHTML documents against a local
(possibly customized) copy of an XHTML DTD without having to change
the URLs used in the XHTML doctype to local file paths. Parsing/
validation with local schemas is much faster and allows offline
validation.
To …
[View More]download:
http://www.ditchnet.org/texmlmate/
For more complete details see the description here:
http://www.ditchnet.org/wp/2007/01/03/texmlmate-13-released/
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools
http://scan.dalo.us
[View Less]
Hi!
I have here a problem with the Blogging-bundle and free blogs at
wordpress.com
If I try to fetch a posting I get the following error:
Received Exception: Wrong Size. Was 3732, should be <unknown>
No posts are available!
Posts are available.
I can post though but after posting it, the posting has an error in
the first line (and the date looks strange:
Received exception:Wrong size. Was 1275, should be <unknown>
Type: Blog Post (Markdown)
Blog: a Shortcut a Day
Post: 5
…
[View More]Title: testpost3
Date: -4712-01-01 01:00:00 +0100
Pings: Off
Comments: Off
testpost
The posting looks right in the dashboard of wordpress and date and
everything else looks right as well.
I am quite sure that I set up things right because it worked with my
blogs which weren't on wordpress.com - here's the content of the
setup-file:
# List of Blogs
#
# Enter a blog name followed by the endpoint URL
#
# Blog Name URL
a Shortcut a Day http://nielsk@macshortcut.wordpress.com/xmlrpc.php
Any help appreciated
Niels
[View Less]
Hi,
I just found a very tiny bug within the R function getSig.r of that
bundle.
If you type 'plot.lm' and invoke that command to get the template it
gives you a weird output because within the formals you find an item
'caption', and within this item there is a '\n'. The ruby pop down
menu, of course, interprets a '\n' as a new line.
To avoid this I would include within the getSig.r at line 12 this:
10: if (is.symbol(f[[arg]]) && f[[arg]] == "") arg else list(arg, f
[[arg]])
…
[View More]11: ),
12: function (arg, escape=function(x) ifelse(snippet, {gsub("([\\
$`}])", "\\\\\\1", x);gsub("\n", "", x)}, x))
13: if (is.list(arg))
i.e. I add a gsub in the 'escape' function to delete each '\n'
I don't know whether this will be good. The case is very rarely.
Comments?
Best,
-Hans
[View Less]
HI,
sorry for the, maybe stupid, question, but I didn't find something in
the internet.
How can I make a copy of an existing bundle? To duplicate commands or
snippets, that's simple, but for an entire bundle?
If I simply create a new folder.tmbundle and copy&paste things in it,
then I also have duplicated uuid's.
Thanks in advance
-Hans
Hi there
I am very new to programming and ive used to make programm in Flash.
Its just a little project and i do programming in my freetime as a
hobby.
My 30 days of using Flash for free are over (since a half year now ;)
and i wanted to re-wake this project and do it without Flash using
TextMate and the ActionScript Bundle.
I had a look at the Bundle Developer Site and followed the
instructions mentioned there. But i still have absolutely NO CLUE
what to do.
My first intention, …
[View More]just to see how things are working i wanted to
make a trace output - which says "Hello World".
What am i doing wrong? Ive tried to use the ActionScript template and
i did a script which just says
trace ("Hello World");
I did use the "Install MTASC Support Files" and i did a try
without...nothing happens.
Can anybody help or does know where i get some information?
Thanks for your help
==================================
Zettt
azeitler(a)zettt.de
==================================
[View Less]
I've been trying to set the foldingStartMarker and foldingStopMarker
for a simplified variant of Markdown but have had no success. The
file would look something like this
# First heading #
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse
vel nunc.
Suspendisse egestas erat vitae pede. Phasellus quis libero et tortor
commodo
auctor. Sed et erat. Aliquam sed lectus. Fusce semper elit nec ipsum.
Morbi
sem nisl, tristique id, venenatis quis, gravida sed, neque. Etiam …
[View More]ut
felis. Curabitur leo magna, molestie vitae, blandit et, fringilla
vitae, purus.
# Second heading #
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse
vel nunc.
Suspendisse egestas erat vitae pede. Phasellus quis libero et tortor
commodo
auctor. Sed et erat.
Aliquam sed lectus. Fusce semper elit nec ipsum. Morbi
sem nisl, tristique id, venenatis quis, gravida sed, neque. Etiam ut
felis. Curabitur leo magna, molestie vitae, blandit et, fringilla
vitae, purus.
# Third heading #
etc
I'd like to fold so that only the heading lines show.
The foldingStartMarker is easy:
foldingStartMarker = '^# +';
But I can't get a foldingStopMarker that works. What I'd like to use
is a blank line followed by a positive lookahead to a line that
starts with a hash and a space, but
foldingStopMarker = '^$\n(?=^# +)';
doesn't work, even though that regex works in the Find dialog box.
Are the start and stop markers restricted to single line patterns?
The manual suggests that, but it isn't explicit. Does anyone have any
ideas?
--
Dr. Drang
[View Less]
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.
Any tip?
thanks,
baptiste
__________________________________________________
Do You Yahoo!?
En …
[View More]finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail
[View Less]
> Sounds quite interesting. ;)
>
> How do i do this?
Google is your friend :)
Take a look at the documentation on the MTASC website, and take a
look at Ralf Bokel's hacked version (HAMTASC) for more fun with
command-line options.
The howto I pointed to on my blog has a ZIP that you can download for
the walkthrough. Good luck!
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Not a lot of explanation needed. These are all XHTML compliant, some
include self closing tags and do not offer the option to avoid this,
so some work may be necessary. In fact, there will probably be a lot
of disagreement over how to handle a few things, and my feelings
won't be hurt. Take this as a suggestion, and perhaps overkill. I
actually prefer to just use the generic "insert open/close tag" these
days, but agree that there are times that typing a tag and hitting
tab …
[View More]would be convenient.
Brett
[View Less]
Hi,
I have to work remotely on one website and can only test if the files
are on the server. I would like to integrate an ftp client with
textmate. I have been using CyberDuck but perhaps Panic's Transmit
would be better, I'm not sure.
If I could get the work flow down to just the following I would be happy.
cmd-s to save the file
cmd-u to upload the file (or changed files)
cmd-tab to switch to firefox
cmd-r to refresh the page
I don't know how the textmate integration would work. If I am …
[View More]working
on a variety of files from a variety of directories on the server,
should I have these files in one textmate project or should I have
them open individually. If I want to have all the files in a project
can I have just the file I'm working on or would i need to have the
complete directories on the server in which these files exist?
Thank you,
Peter
--
Fork JavaScript: http://forkjavascript.org
[View Less]
Hi there,
I have an Antville Blog running, and was just asking myself if i
could use TextMate (with the Blogging Bundle) to make a post to it.
Does anyone know if this is possible?
This has been taken from the FAQ on their site:
Auf der folgenden Seite wählen Sie bitte aus:
als System: Andere (API auswählen)
als API: Blogger (eventuell auch: XML-RPC)
als Zugangspunkt: http://blogs.macnews.de:8081
Thanks in Advance
PS: You can reach the blog at zBlog.zettt.de
========================…
[View More]==========
Zeitler Andreas
azeitler(a)zettt.de
==================================
[View Less]
I assume the guy responsible for TeXMLMate is here, right?
You really should start converting your disk image to r/o compressed
before distributing it. The disk image for TeXMLMate 1.2 gets 91.8%
savings when converted this way - 212kB, down from 2.5MB.
--
Kevin Ballard
http://kevin.sb.org
kevin(a)sb.org
http://www.tildesoft.com
I apologize for the simple question but is there a way to turn on tag
completion? For instance, when I close a paragraph tag i would like
textmate to automatically create a closing tag for me. Thanks so much.
I've just released another TextMate plug-in:
TeXMLMate
http://www.ditchnet.org/texmlmate/
TeXMLMate is a floating palette designed for checking XML and XHTML
documents for Well-Formedness and Validity while editing them in
TextMate. Includes support for DTD, W3C XML Schema, RELAX NG and
XInclude.
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools
http://scan.dalo.us
Hey guys,
I know that you're trying to create a code completion library for
Ruby (however, I wasn't a member of this list when those messages
were posted, so I'm unable to reply to them). I wondered if you are
aware of the existence of rct-complete, part of the rcodetools[1]? I
believe the current implementation in the Experimental bundle only
does static completion. rct-complete, however, can do a lot more:
http://frim.frim.nl/ss/Picture%20239.png
It actually knows the class …
[View More]get_new() returns, and thus won't suggest
test_3.
Well, good luck with your efforts, I hope to see a stable completion
library in the Ruby bundle soon!
- Pieter
[1] http://eigenclass.org/hiki.rb?rcodetools
[View Less]
The first release of the Wordpress bundle I'm working on is available
on my blog[1] and on Ale's SVN server[2].
The bundle is designed to aid in creating templates for Wordpress.
It includes snippets for inserting skeletal structures for common
template pieces (header, footer, sidebar, loop, headline, etc.) as
well as some very detailed plist based commands that serve as
references for everything from bloginfo commands to database tables
for queries. Most of the commands are …
[View More]snippetized with sample data
(ala the Codex) inserted rather than the fairly nondescript
definitions that the documentation uses.
If I can get a helping hand, I’ll add a few basic templates and a
help file, but I’m concentrating on the coding end of things for now.
I know there wasn’t much response on the list, but I’ve been getting
a lot of requests for this from the masses of new TextMate users via
MacHeist and related buzz that’s picking up around the Internets.
[1]http://blog.circlesixdesign.com/2006/12/30/wordpress-theme-bundle-
for-textmate/
[2]svn co http://svn.sofanaranja.com/projects/brettbundles/trunk/
Bundles/Wordpress\ Theme.tmbundle Wordpress\ Theme.tmbundle
[View Less]
When I do cmd-R using the Ruby bundle and RubyMate executes, is there
a way using the keyboard to get back to the file I was editing? I
hate having to move my hand to grab the mouse to click on the TM
window where I'm working.
Happy Holidays.
Bob
Hello,
Starting this morning, I have noticed that when I "archive completed"
in my GTDAlt file, it becomes completely empty. The action is
archived in the log file, but the rest of the contents of the gtd
file disappears. I also noticed that when I process my inbox, the
window that tells me the result of the processing was also empty (but
the processing worked correctly).
I'm using the current SVN version of the bundle (as well as the
current version of the dialog plugin and …
[View More]support folder).
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
[View Less]
Love the recent improvements to the Xcode bundle, thanks!
Using the Xcode bundle build&Run command, if the applications output
is wider than the "Build With Xcode" window, horizontal scrolling
will display black text on dark blue background (default theme) in
the scrolled portions. Not the most readable...
Thanks
Gerd
To further crowd a field amply covered by the GTD, GTD2, and GTDAlt
bundles, I've written my own bundle, called LGTD (Little GTD). It
uses Markdown syntax for your Next Action lists, coordinates lists
between project-oriented views and context-oriented views, and has a
command for printing lists to index cards for Hipster PDA users. I've
written a few posts about it on my blog, starting with this one
http://www.leancrew.com/all-this/2006/12/
a_little_more_gtd_with_textmat.html
…
[View More]which has links to the later posts.
LGTD does very little, but it does what I want. It may do what you want.
--
Dr. Drang
[View Less]
I'm a TM noob so bear with me.
I have installed textmate and rails and all that, everything works but TM
wont auto complete anything.... if I'm in a migration for instance, and type
mcc[tab] all I end up with is mcc.
Tab completion wont work in any of my files.
I dont know if it makes a diff or not, but I'm using the bluetooth
keyboard...
So, any advice?
Thanks,
Dallas
--
---------------------------------------
The Code Ninja is swift with his tool, precise in his delivery, and deadly
…
[View More]accurate in his execution.
[View Less]
Hey all,
usually i'm using "SpaceCadet" as syntax highlighter theme within TextMate, is
it possible to export any given file (javascript, java ruby html php...) into
html with the same colors as in the theme in use ?
Yvon
Hello,
I have just started using Textmate as my primary editor. I would very
much like to make use of some of the howto's offered in the wiki, but I
am a bit confused on how to implement them. I am assuming they are
bundles, and are implemented via the bundle editor. At the moment I am
specifically interested in this one:
- Before: Do Nothing
- Command: grep -n
'^[[:space:]]*\(public\|private\|protected\)\?\([[:space:]]\+static\|
[[:space:]]\+abstract\)\?[[:space:]]\+…
[View More]function'
- Std In: Entire Document
- Std out: Show in separate win
- Pattern: ^(\d+):\s(public|private|protected)?(\s+static|\s+abstract)?
\s+function\s+([_A-Za-z][_A-Za-z0-9]*)\s*[(](.*)[)]
- Format: $2$3 $4\( $5 \)
- Line: 1
which supposedly creates a clickable list of functions for php 4 and 5.
Looking at the bundle editor, would I set this up as a php command, or
something else entirely? And what would be the actual code placed into
the Command(s) box?
Any advice is appreciated.
[View Less]
I am working on a Wordpress Theme Bundle for TM, and would like some
input.
First of all, if this has already been done or someone already has a
head start on me, let me know.
I am planning to include:
Templates for index, archive, page and single
Snippets for loop, navigation, queries with all parameters tab-stopped
Snippets for all loop-internal hooks (i.e. the_title, the_excerpt,
the_content)
A command for turning a block into a loop
A help file with all of the template hooks linked …
[View More]to the Wordpress Codex
Let me know what feedback you have, what you’d like to see, or if
there’s an alternate way to go about this (code completion plist?)
Thanks,
Brett
[View Less]
As a FYI, all Powerbook G4 owners should check your system to see what
your system reports as the RAM quantity. Many of the motherboards have
a serious defect. Here is a link describing the PowerBook Lower Memory
Slot failure. http://lowermemoryslot.editkid.com/
BTW, I got hit with this problem and my serial number was not
recognized by Apple as in the affected set.
Please forward this PSA to Mac audiences.
Cheers,
AZ
The current Scheme (and Lisp) plugins don't seem to format
according to the normal usage for these languages.
With the following text in TextMate in Scheme mode you get:
-----
(define (x y)
(let ((a 1)
(b 2))
(+ (* a b) y)))
-----
This is hard to see in mail unless you have plain text w/fixed
pitch on... but paste it into TextMate and align it with Scheme
selected.
Normally, the 'a' and 'b' in the 'let' form would align and the
'(' before the '+' and the '(' after 'let' …
[View More]would align.
TextMate makes a mess of this, though. I've looked over the
language definitions, but it would seem there is a pretty steep
learning cliff and I'd expect that this really should be working
already, so I thought I'd check if this is supposed to work or if
this is a known deficiency.
I can make the formatting at least look properly structured if I
drop closing parens onto their own lines, but this results in tons of
wasted space:
----
(define (x y)
(let
(
(a 1)
(b 2)
)
(+ (* a b) y)
)
)
----
Any hints? Thanks!
-tim
[View Less]
Hi!
As Harris is currently working on the latex bundle, I have a suggestion:
I sometimes change the header of a section, and so also the label. Even
for figures I sometimes change the label. Then I have to search for all
references for these labels. So I would be glad if there would be a
Rename refactoring for labels and references.
Helge
I'm working on a couple of TextMate plugins, and I would like to
force text selection and possibly scrolling in TextMate's main window
([NSApp mainWindow]).
I see that TextMate uses a custom text view class called OakTextView.
1. Is the OakTextView api (header file?) available to the public?
2. Does anyone have any advice to share on how to accomplish text
selection in an OakTextView?
I can get a reference to the main window's oaktextview in cocoa
easily enough. i just don't know …
[View More]how to make it select text. I'd
prefer to do this via objc/cocoa. However, if there are applescript
hooks to this, those would be of interest too (especially if the
oaktextview api is not available).
Thanks!!!!
[View Less]
I head in a webcast that you can copy selected text in firefox and
with a keyboard shortcut have textmate create a new file and paste
the selection.
How is this done?
Can it post directly to a new blog post markdown file? Thanks
Hi Haris,
Revision 6390. Label completion is ok, citation completion fails
silently. No problem with the same files I have used when I remove /
Library/Application\ Support/TextMate, and put the environment.plist
back in charge.
> So, what happens when you type, in the terminal, "/usr/texbin/
> kpsewhich"?
/usr/texbin/kpsewhich
gives
Missing argument. Try `kpsewhich --help' for more information.
Özgür
--
Özgür Gökmen | og(a)pyromedia.org
Hi Haris and everybody else,
I split up my different questions into different emails.
>> So, for example, let's say I have a custom command for including
>> scheme and figures, and I would like to have that command colored
>> in a specific way; what would be the best and most forward-
>> compatible way of doing it? If I understand things correctly,
>> then, if I change the LaTeX language file directly, future updates
>> to the bundle are going to …
[View More]be ignored (overwritten by my changed
>> file). I guess, it would be better to put those personal additions
>> into an extra file. But what is the correct/optimal way to call/
>> include it in the LaTeX language file?
>
> I don't know what you mean about including scheme. Do you mean
> scheme code via the lstlistings environment or something like that?
> Then we should add those to the official bundle. As for figure
> environments, they should be already targeted by the scope
> mechanism, so you should be able to assign them colors as is, I
> think. Unless I misunderstand what you want to do. Both of these
> two you should also be able to do by creating your own bundle and
> including the latex grammar. However there is one tricky bit: The
> rules that match environments match the spaces before the \begin,
> so that they match from the beginning of the line (for coloring the
> background more nicely). So if your rule matches only from the
> \begin part, it does not matter whether it appears first or not,
> since the built-in rule matches EARLIER. So you would need to be
> matching those spaces as well. (I've been bitten by this myself ;) ).
Sorry for choosing a potentially confusing example. What I meant to
say is that I have a custom command for including schemes and
figures: \includescheme{scale}{name}{caption} which inserts a
centered figure environment, inserts file <name> at scale <scale>,
creates a label <name>, and inserts the caption <caption>. So, it is
not targeted by the scope mechanism ... But this just served as a
specific example.
My question was more general. In case I have a custom LaTeX command
(any command) that I want to have a syntax colored, i.e., or in case
I want to change an existing syntax color behavior, *what is the best
way to do it*?
I just don't understand yet how to do it so that it does not break
forward compatibility. I assume, it would be best to put my own
private additions/changes to the syntax coloring into a separate
language file, e.g. "LaTeX HF", instead of just writing them into the
"LaTeX" language file itself. Is that correct? But, then, how do I
either call/include it from the LaTeX file or vice versa? How do I
set up such a separate file for my private additions?
Thanks.
Holger
__
Eidgenössische Technische Hochschule Zürich (ETH Zürich)
Department of Materials
Wolfgang-Pauli-Str. 10, HCI H515
CH-8093 Zürich
Switzerland
Phone: (+41) 1 633 6474
Fax: (+41) 1 633 1390
Email: frauenrath(a)mat.ethz.ch
Web: http://www.polychem.mat.ethz.ch/frauenrath/
[View Less]
Harris: I got rid of ~/.MacOSX/environment.plist, rebooted. My path
is /usr/texbin as assigned by /etc/profile. Binaries actually do live
in /usr/local/gwTeX/bin/powerpc-apple-darwin7.9.0/. Label completion
seems to be working. However, the citation completion command cannot
locate the binaries.
\footcite{The tex binaries cannot be located!}.
On a side note, you might also consider to deal with the Documention
for Package command. See the path in the error note below. teTeX is
not …
[View More]the only distro available. ;)
Traceback (most recent call last): File "/Library/Application Support/
TextMate/Bundles/Latex.tmbundle/Support/bin/PyTeXdoc.py", line 31,
in ? docIndexFile = open(docIndex,'r') IOError: [Errno 2] No such
file or directory: '/usr/local/teTeX/share/texmf.tetex/texdoctk/
texdoctk.dat'
Özgür
Charilaos Skiadas <skiadas@...> writes:
> among you and with no paper deadlines, please remove any special PATH
> specifications that you had made just for LaTeX TM (likely based on
> previous recommendations by me), and let me know if the commands
> still work for you, and if not then also where, to the best of your
> knowledge, your tex binaries are.
> Haris
--
Özgür Gökmen | og(a)pyromedia.org
[View Less]
After I run and typesetting a document with command+R, TM shows me an
overview of the appeard errors. At the bottom left of this window,
there is a link for previewing the document. Now I have 2 question:
1. How could I achieve that the document is automatically displayed
for preview?
2. I instaled the file pdfsync.sty in the following directory: ~/
Library/texmf/tex/latex/pdfsync.sty. In the document I called the
packaged with \usepackage{pdfsync}.
How do I use pdfsync now?
Thanks
Christian
Hello,
I installed Latex with the i-installer and then used textmade to work
with it.
Wherefrom does Textmate know the install location of latex?
Thanks
Christian
Harris: Checked out revision 6378 -- the bundle, support, and
plugins. I get the following for citation completion (opt-esc). The
info you will see at the bottom is from the first entry in the bib
file. I can post the preamble of the tex file if that would help.
Özgür
/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
82:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filemap'
from /Library/…
[View More]Application Support/TextMate/Support/lib/LaTeXUtils.rb:
53:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
168:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
139:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
138:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 4: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
173:in /bin/bash: -c: line
1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
fileget_citations'
from /tmp/temp_textmate.7uvsfX:7
Found citekey: Adanir2001aa
Found key: Address
Found contents: Boulder
Found key: Author
Found contents: Fikret Adanır
Found key: Booktitle
Found contents: Fascism Outside Europe
Found key: Date-Modified
Found contents: 2006-11-11 01:33:36 +0100
Found key: Editor
Found contents: Stein Ulgevik Larsen
Found key: Juratitle
Found contents: Kemalist Authoritarianism and Fascist Trends in
Turkey during the Interwar Period
Found key: Pages
Found contents: 313--61
Found key: Publisher
Found contents: Social Science Monographs
Found key: Title
Found contents: Kemalist Authoritarianism and Fascist Trends in
Turkey during the Interwar Period
Found key: Year
Found contents: 2001
--
Özgür Gökmen | og(a)pyromedia.org
[View Less]
Harris: The bib file lives in the same working directory, so within
the brackets was just the bib filename,
not the path. Checked out Revision 6386. Quite strangely, I couldn't
get the completion commads work at
all -- on the very same tex and bib files. Neither via the key
combo, nor via the menu. Basic completion
via the esc key failed as well. Pointing to another bib file, I got
the citation based on current word
command working. Label based on current word command prints the word …
[View More]
"exit" within the brackets.
Özgür
Charilaos Skiadas <skiadas@...> writes:
> Özgür, Helge,
> this should be fixed now. The problem in Helge's case is that I was
> not expecting full paths in the bib file. Özgür if you still have
> problems let me know how the \bibliography{...} line says in your
> case. In any case, the error message should now be a bit clearer.
> Haris
--
Özgür Gökmen | og(a)pyromedia.org
[View Less]
>> And, finally, I have a probably stupid question: I would like to
>> change the menu structure (the commands) in the LaTeX bundle menu.
>> How can I do that? To be more specific, I am sure (well ...) that
>> I had done it before, and it used to work by simply dragging
>> commands from the list in the bundle editor into the menu
>> structure window of the LaTeX bundle. But it does not work
>> (anymore). I can shuffle around commands, and I …
[View More]can move them to
>> "excluded items", but I cannot add a new one.
>
> In the bundle editor, select the LaTeX bundle, and you should see
> the menu structure on the right. Then you should be able to
> rearrange those. If you want to add another command, it must first
> be moved into the LaTeX bundle.
Well, this is precisely what I tried to do (and I think it had worked
that way until a couple of days ago): I clicked on the LaTeX bundle
so that the LaTeX bundle menu structure appeared on the right. I
could shuffle around commands and separators in the menu structure,
and I could remove commands by dragging them to the "Excluded Items"
list.
But when I tried to add a new command by dragging a command from the
LaTeX bundle command list on the left side into the LaTeX menu
structure on the right side (that is the way it is supposed to work,
isn't it?), that field (the menu structure) did not accept any input.
It just did not work.
Any suggestions?
Holger
[View Less]
Hello everybody,
I noticed that the results of typesetting LaTeX files in Textmate
gives different results as compared to other TeX programs (TeXShop,
iTeXMac). In this particular case, a PDF graphic file was missing, in
which case, the TeX typesetting stops with a fatal error (at least, I
think that is what should happen), and no output is produced.
Accordingly, TeXing in TeXShop gives (as console output):
> LaTeX Warning: File `../Figures/polymerization_triamides.pdf' not
> …
[View More]found on input line 133.
>
> Error: /usr/local/teTeX/bin/i386-apple-darwin-current/pdflatex
> (file ../Figures
> /polymerization_triamides.pdf): cannot find image file
> ==> Fatal error occurred, the output PDF file is not finished!
... and no new PDF file. However, TeXing in Textmate gives:
> LaTeX Warning: File `../Figures/polymerization_triamides.pdf' not
> found on inpu
>
> Found 0 errors, and 60 warnings in 0 runs
... and a new PDF file with 0 pages which prompts PDFView to crash
upon trying to update. In other words, Textmate behaves as if there
was no error. What I find strange is that I thought that the console
output was entirely the responsibility of the TeX engine ... and I
have for sure only one TeX distribution installed. Are any parameters
passed to the TeX engine from Textmate that control this behavior? If
so, is there a reason for the current settings? Or what else could be
the reason?
On a side note, as you see in the example above all warnings are
truncated (no matter what size the console window is). Is there away
to avoid this?
Holger
[View Less]
>>> If the current TM_LATEX_ERRLVL settings are not sufficient, let
>>> us know.
>>
>> Thanks for the hint. I played around with the values. In my eyes
>> it would be useful to have one additional option where the console
>> window would not open at all *except* for when there is an error,
>> in which case it should open and remain open. The reason is that I
>> would like it to be closed after typesetting and, as a matter of
>…
[View More]> fact, the typesetting of a short file on the MacBook only takes a
>> fraction of a second anyways, so that the brief opening and
>> closing of the console window is not useful (in this particular
>> case).
>
> Well it sort of opens because this is the default output of the
> command, an HTML window. So the window opens before the command
> even starts running. Theoretically it would be possible to not open
> it until later, but it would make the code of that command even
> more complicated. It's already a pretty long shell script, that I
> try not to mess with lest my inferior shell skills brake it. If
> someone else wants to take a stab at it, then we can talk about it.
> But given that it works, and it really a minor nuisance, I'm loath
> to mess with it.
Well, that is fine with me. You are right, it is a minor nuisance. If
it can be fixed easily, fine. If not, it is not essential.
Holger
__
Eidgenössische Technische Hochschule Zürich (ETH Zürich)
Department of Materials
Wolfgang-Pauli-Str. 10, HCI H515
CH-8093 Zürich
Switzerland
Phone: (+41) 1 633 6474
Fax: (+41) 1 633 1390
Email: frauenrath(a)mat.ethz.ch
Web: http://www.polychem.mat.ethz.ch/frauenrath/
[View Less]
Ahoy TextMateys!
Prototype'd Javascript now has better escape code completion
and option-escape menu code completion.
Also,
I updated my TextMateCodeCompletion thing again to support basic
snippetization of completions.
Prototype completions contain a bunch of method arguments. Like this:
Thing.method(one,two)
Now, when you select a completion from the menu, it'll convert each
of the method arguments into snippet placeholders.
This is, of course, just a milestone in the road toward …
[View More]full snippet
completion support.
The eventual goal is that the completions list is just a list of the
names, then when you select one, a unique snippet is inserted for
that name.
The only problem is that we'll either have to duplicate all of the
completions in the escape completions list and the menu completions
list or else extend the completions list format to work with both
escape completion and menu completion.
I think the only way to extend the format is to get Allan to hack
textmate to support the new version. And I loathe the thought of
wasting my time implementing it one way and then having to
reimplement it the right way once Allan gets back.
I also reorganized the codecompletion library so that it can more
easily be used by other stuff. New methods:
to_snippet converts the choice you make into a basic snippet and
returns a string. (formerly to_s)
choice returns the choice that was chosen as a string
index returns the index of the array of the item that was chosen
thomas Aylott — design42 — subtleGradient — CrazyEgg
[View Less]
Hello everybody,
I have a number of relatively basic questions concerning the LaTeX
bundle, the "bundle mechanism" in general, as well as Textmate's
interaction with PDFView. I am a newbie to Textmate in the sense that
I bought a license about 8 months ago but I have not regularly/
seriously used it until now, and I am sure that I have not fully
understood some of the basics yet. So, please, excuse me if some of
the questions are "stupid" or have been answered on this list or in
…
[View More]Textmate's documentation. It would be helpful to just point me to the
relevant parts of the documentation in this case.
I should say, though, that I followed the discussions on this list in
the last 8 months, and I have also used Textmate on and off, I
tinkered around in order to fit it to my needs, tried (and partially
succeeded) to wrap my mind around the scope selector mechanism etc.
I must say that I am really excited about Textmate's potential, in
particular, its flexibility in regard of syntax coloring. If I
interpret the recent emails to the TeX on MacOS X mailing list
correctly, there is quite a need and a desire for a TeX frontend that
has some decent capabilities as a text editor but keeps TeXShop's
simplicity. This is why I hope that I am not alone with the following
questions (because I feel that this email will be relatively long)!
There seems to be a place for Textmate among the folks who use TeX on
MacOS X. The point is, I *want* to love Textmate, but some of the
following issues/questions keep me from using it on a regular basis.
So, here we go.
1. What is (strategically) the best way to include my own additions,
e.g., to the syntax coloring? The first thing I tried was to change
the original LaTeX language file itself, but I soon understood that
was not a good idea. The second thing I tried was create my own LaTeX
addition file (which would claimall .tex files and at the end include
the original LaTeX language file) but that also seemed to break
certain things. In relation to this first question, I think I need to
understand the following related questions:
2. Do I understand correctly that the "LaTeX bundle" is somehow
officially maintained in the sense that certain improvements and
additions are included in the official release from time to time?
3. Is there a "version system" for the bundles? I mean, is there a
way to tell that I have the latest version of the bundle (or which
one I have installed)?
4. Is a new version of a bundle automatically installed with the
Textmate updates?
5. What happens to my own additions when a bundle is upgraded? As far
as I understand, my additions are stored as "differences" to the
original file. But what exactly happens, for example, when I added/
changed a behavior that is later added/modified/deleted in an updated
bundle?
Furthermore, I have some questions concerning the typesetting
process. Let me start with two observations. The first time I
installed Textmate, the TeX console window would pop up when I hit
"Typeset", and the results would appear in relatively large chunks as
HTML output which seemed rather "slow" compared to TeXShop. The
window stayed on the screen when the typesetting was finished. The
second time I installed Textmate a couple of months later, (on my
MacBook Pro, only in case this matters), the large console window
would pop up in the middle of the screen briefly during typesetting,
and immediately disappear again when typesetting was finished (which
is relatively fast on a Macbook Pro!), not leaving me any chance to
at least adjust its size and position.
6. Can anybody give me a clue why there is this difference in
behaviors? Has the bundle changed in this respect? Does it matter
which type of processor it is run on?
7. Can one bring up the TeX console window without typesetting (e.g.
in order to change its size/position)?
8. Is there a way to switch its behavior between one of the following
options: Appear upon typesetting (i) always; (ii) upon error; (iii)
never; (iv) and close when typesetting is finished?
9. In case there is no way to switch the behavior, would it not be a
desirable feature? Would it be possible to include in the LaTeX
bundle by default?
10. Are there any advantages to display the results formatted as
HTML? Would it not be more appropriate (faster) to make it plain text?
And, finally, I have a few questions concerning the interaction with
PDFView. Let me start with a few comments again. First of all, I find
PDFView a really nice tool! Thanks to the developers! It just feels
right. Simple, with a clean interface. The only "complaint" that I
have (which is not really one) is that having two applications
interact still feels more clunky than TeXShop's integrated
solution ... I wonder whether there is any chance to see a PDF
Previewer with some basic LaTeX specific functionality (pdfsync,
click-to-magnify etc.) included in Textmate?
In any case ...
11. How am I supposed to view the current selection/cursor position
in Textmate in PDFView? Sometimes (and really not always), selecting
a word and hitting Ctrl-Opt-Cmd-O seems to work. Is there a better
way? For example, one without previously selecting something, or a
simple Cmd-click?
12. Why does it sometimes fail to take me to the correct paragraph
(showing the page PDFView had previously shown)? Is this a
shortcoming of pdfsync?
Again, excuse me for this laundry list of questions.
Thank you in advance for your answers, a big Thank You to the
Textmate/Bundle/PDFView developers for providing such great tools,
and I wish you all a Happy New Year.
Holger
__
ETH Zürich
Department of Materials
Wolfgang-Pauli-Str. 10, HCI H515
8093 Zürich, Switzerland
Phone: (+41) 1 633 6474
Fax: (+41) 1 633 1390
Email: frauenrath(a)mat.ethz.ch
Web: http://www.polychem.mat.ethz.ch/frauenrath/
[View Less]
I just made some structural changes to the completion commands in the
LaTeX bundle, both bibliography and label. It might be a bit slower,
and more importantly I might have broken some stuff. So those of you
brave enough to try it out, and without a paper deadline in 3 days,
please update via svn (both the bundle and the global support
directory) and let me know if you encounter any problems.
The reason for this change was to remove the large amount of code
duplication that existed …
[View More]in these commands.
Haris
[View Less]
Has anyone made a language grammar for editing TWiki in TextMate? It
would be quite cool to edit my entires in Textmate rather than using
the edit field in the web browser.
--
James Milne
Hi fellow TextMaters,
Every time I post to my WordPress blog I get this error[1] on the
first line of my .blog.markdown file. The post is ok on WP, so no big
deal but still annoying.
[1]: /Library/Application Support/TextMate/Support/lib/plist.bundle:
warning: already initialized constant EPOCH
Any idea about his?
Thanks for your time.
--
FredB
Hello everybody,
one more thing: Did anybody else observe the following strange behavior:
When I hit Ctrl-Opt-Cmd-O to view the file in PDFView, and then I
choose to just close the PDF file in PDF view, the corresponding
Textmate window is blank! The text is gone, the cursor in the first
line, no scroll bar! Re-opening the file brings back the text.
Holger
__
ETH Zürich
Department of Materials
Wolfgang-Pauli-Str. 10, HCI H515
CH-8093 Zürich, Switzerland
Phone: (+41) 1 633 6474
Fax: …
[View More](+41) 1 633 1390
Email: frauenrath(a)mat.ethz.ch
Web: http://www.polychem.mat.ethz.ch/frauenrath/
[View Less]
Haris: you mentioned that a command using a mouse
is unacceptable. I do not understand this and I
am intrigued, would you elaborate?
I also hate the mouse and love the keyboard, as
any other respectable geek. But this is only because
keyboard is much faster and much more accurate.
But I have no ideological stance against the mouse.
If at some point I find that using a mouse is much
more convenient for some purpose, I use it
immediately. E.g., I would not draw a
picture using the keyboard (…
[View More]neither would you
I guess).
So the point with the interface for labels is exactly that
I feel the keyboard is not the faster tool for the task;
clicking in a nice list is indeed faster. I should also
mention that I proposed to the PDFView's brilliant
developer (Andrea Bergia) to implement a click-on-
the-formula feature (you click on the formula in pdf
and the \ref is inserted in the tex file...)
Piero
[View Less]
Hi Textmate gurus,
I have only been messing around with Textmate for a few days now, but
I am incredibly impressed, and I can see why it is called "the" text
editor for Mac.
I had been using TeXshop for LaTeX (which is still a great program,
but not nearly as powerful as Textmate), R.app for stats and
numerical programming in R, and the X11-based idlde for IDL
programming, and now I am glad to be switching to Textmate for all
those needs.
One thing I am having trouble with, …
[View More]however, is getting the html R
help to appear. When I select a valid R command (one for which help
(command) in R would bring up the html help page for that command),
no help file opens, and the returned tool tip says:
/tmp/temp_textmate.eOPTfa:8:in `require': No such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/
current_word (LoadError)
from /tmp/temp_textmate.eOPTfa:8
I am no scripter, but I looked in the bundle editor at this command,
and it is a pretty serious looking ruby script. Will I have to learn
ruby to figure out what is going on here? or is it possibly
something much more simple that I am overlooking?
The first few lines of the ruby script (after the shebang and a
comment) are as follows:
require "#{ENV["TM_SUPPORT_PATH"]}/lib/exit_codes"
require "#{ENV["TM_SUPPORT_PATH"]}/lib/escape"
require "#{ENV["TM_SUPPORT_PATH"]}/lib/web_preview"
require File.join(ENV["TM_SUPPORT_PATH"], "lib/current_word")
require 'base64'
now, I don't know anything about ruby, but I am guessing that these
are perhaps some environment variables that I need to set in the
Textmate preferences? If so, what is the proper way to assign more
than one location to the TM_SUPPORT_PATH variable? do I simply put a
colon between each absolute path name? If so, that takes care of the
first three lines, but the last two are still a mystery to me.
If anyone could get me going in the right direction here, I would me
most appreciative. Like I said before, I am no sctipter, other than
the occasional shell script, but one of the really appealing aspects
of Textmate is that it seems like a good way to learn about scripting
through useful examples. If the solution to my problem is to learn
enough ruby to understand what the script does so I can troubleshoot
it, so be it, but in the meantime I wonder if there is a simpler
solution?
Thanks,
Paul
[View Less]