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