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