Hello fellow maters,
A while ago we had a command that would align statements at their =
signs…
Would it be possible to incorporate that feature into the table-
macros fo LaTeX? So that the tables cells are aligned at the & signs?
And possibly make a command out of this that would re-format existing
tables?
just wondering if anyone feels like it ;)
Dan
…in his final stages of actually beating that thesis writing monster…
Hello everybody,
I am almost sure that this has been discusse on the list some time
ago, but I did not find anything right now.
For my Ph.D. dissertation, I am working with a LaTeX document which
is split up to many small files, one for each chapter.
I am using the TM_LATEX_MASTER variable which is set as a project
preference, and which points to the master document.
Now I would like to do the following: In order to print only a single
chapter of my dissertation I would like to use another central
document which ignores the TM_LATEX_MASTER variable. It should be
part of my project, however.
Is it possible to set the TM_LATEX_MASTER to a different value only
for this file?
TeXShop allows setting the main document by putting something like
%!TEX root = ../main.tex
at the beginning of a document. Does something like this exist in TM
as well?
(I know that I could also use the includeonly command, but that does
not work too well, since I also would like to change some things in
the central document for this specific file.)
Thanks in advance,
best regards
Matthias
--
Matthias Damm
mad(a)macpla.net
PGP key: http://macpla.net/MatthiasDamm.asc
PGP fingerprint: CED3 6074 7F7D 3148 C6F3 DFF2 05FF 3A0B 0D12 4D41
hi.
i made a command which converts textile-code to html (duh!). and
back (yeah!). well not really. what it does is embedding the
textile-content within a html-comment and on revert it ditches all
the html and just returns the comment.
i made this command because i think textile is a really fast way of
producing formated content (i know you're there, markdown-fans!).
but the problem is, the files don't stay editable. with textile,
that is. so now i can save an html-file with embedded textile and it
is ready for presentation and i can come back at any time and edit
the same file without having to keep a copy of the textile-file.
i'm a bad coder. i didn't manage to use the entire document rather
than the saved file as input. perhaps s/o else can help.
here's the code:
-------------------------------------------------------------
if [[ `head -1 $TM_FILENAME` == '<?xml version="1.0" encoding="utf-8"?
>' ]]
then
TEXTILEBEGINSAT=`grep "begin textile code" -n $TM_FILEPATH |\
awk -F ":" '{print $1}' `
DOCUMENTHASLINES=`wc -l $TM_FILEPATH | awk '{print $1}'`
LINES=`calc $DOCUMENTHASLINES - $TEXTILEBEGINSAT`
cat $TM_FILEPATH |\
tail -$LINES |\
grep -v "end textile code-->" | grep -v "</body></html>"
else
if [[ -z $TM_FILENAME ]]
then title="Textile Preview"
else title="${TM_FILENAME%.*}"
fi
{
. "$TM_SUPPORT_PATH/lib/html.sh"
htmlHeader "$title" '<style type="text/css">
body {
background-color: #eee;
}
.contents {
background: white;
font-family: Verdena, sans-serif;
font-size: 13px;
border: 1px #888 solid;
padding: 0 1em;
}
</style>'
beginTag div 'contents'
cat $TM_FILEPATH | "$TM_SUPPORT_PATH/bin/Textile.rb"
endTag
echo "<!-- begin textile code:"
cat $TM_FILEPATH
echo
echo "end textile code-->"
htmlFooter; }
fi
--------------------------------------------------------
the command uses "input: none" and "output: replace document" and
"scope selector: text.html.textile".
it would also be nice, if the command could change the scope to html
and back to textile. is this possible?
regards, niko.
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
The Blogging bundle is really nifty, apart from one small problem –
it doesn't want to set the date to anything other than Right Now when
used with WordPress 2.04.
If I add a Date: header and change the date to some point in the
future the post still shows with the current time and I have to edit
the date through the WordPress interface.
I don't know whether it's WordPress or the bundle that's causing this
- can anyone help?
BTW, is it particularly easy to add extra fields? I'd quite like to
add support for the event end time field for the EventCalendar plugin
(http://blog.firetree.net/2006/07/21/eventcalendar-31-beta/)
Thanks
--
JY
Currently we have tab triggers, key commands, and drag commands as
ways of activating commands in TextMate. It would be very useful to
be able to trigger commands when a file is saved, activated, or
deactivated in the ui as well (there may be others but these are the
ones that came to my mind). One example of where this would be
useful is saving a GTD project file and having it automatically
update a conext file with any necessary changes.
What do others think of this? Allan, how difficult would something
like this be?
Matthew
Hi,
Currently, trying saving a Pascal file shows a save dialogue whose
field is "untitled.p". However, this ".p" extension doesn't seem to
be associated *well* with TextMate.
TextMate has a icon for Pascal document, but ".p" files don't show up
with TexMate doc icons. After some trial and errors, I found that
".pas" is associated with TextMate, showing a proper icon.
By supporting ".p" as a Pascal file as well, I don't bother to
associate thsese files with TextMate each time, using Get Info and
Change setting with "Open With...".
Takaaki
I have an action "@tum GPC-Daten/w√§ssrig mit nach hause nehmen"
which cannot be marked as done via the html-list of nextactions (set
its mark).
Btw, the odd symbols were an umlaut which either got killed somehere
in the GTDAlt bundle.
Yeah, I know, those guys with the weird keyboard layouts… ;)
Dan
I know textmate documents are usually just plaintext, however I have
a military client who wants to know if textmate documents have any
tracking in them, like microsoft word? For example every word
document contains a serial number.
He just wanted to be confident that textmate DOES NOT do anything
like this to protect privacy.
I assume it doesn't, but i just wanted to doublecheck.
Thanks!
can anyone explain why this definition in the perl language bundle
includes the newline as part of the comment?
line_comment =
{ name = 'comment.line.number-sign.perl';
match = '#.*$\n?';
};
it causes weird things in the mason bundle i use, where if a line of
perl includes a comment, textmate assumes the following line is also
perl, when it frequently is not.
% if ( $something ) { # something is up
<p>hi, something is up!</p> textmate thinks this line is perl and
the syntax highlighting is wrong
% }
if i want to change the line_comment pattern, but not miss any future
updates that might come with the perl bundle, what is the right way
to go about it?
---
michael reece :: software engineer :: mreece(a)vinq.com
I am sending the patch I have created for the css language definition
to the list for anyone who is interested to check out. I am also
including an example of why I created it. The example saved as
a .css.rb file and can be executed with cmd-R in TextMate to produce
the resulting css file in the same folder.
I have tried every possible way I can think of to do this without
changing the CSS language definition and don't believe it is
possible. If someone can do it, I would love to learn! :)
There is a post from Allan here: http://comox.textdrive.com/pipermail/
textmate/2006-April/009943.html that says this kind of thing may be
supported in 2.1 at the earliest, but for now it is not possible.
Enjoy!
Matthew
The example:
#!/usr/bin/env ruby
require 'erb'
css = <<HERE #css
<% width = 50 %>
#header
{
/* the header is twice as wide as the content */
width: <%= width * 2 %>px;
}
.some_content, .some_other_content
{
width: <%= width %>px;
}
HERE
File.open(__FILE__.sub(/\.rb$/, ''), "w") do |file|
file.puts ERB.new(css, 0, '%<>').result
end
HERE
File.open(__FILE__.sub(/\.rb$/, ''), "w") do |file|
file.puts ERB.new(css, 0, '%<>').result
end
The patch:
7d6
< { include = '#ruby'; },
12d10
< { include = '#ruby'; },
64d61
< { include = '#ruby'; },
69,70c66
< patterns = (
< { include = '#ruby'; },
---
> patterns = (
73c69
< }
---
> },
80d75
< { include = '#ruby'; },
138,148d132
< ruby =
< { name = 'source.ruby.embedded.css';
< begin = '<%+(?!>)=?';
< end = '%>';
< patterns = (
< { name = 'comment.line.number-sign.ruby';
< match = '#.*?(?=%>)';
< },
< { include = 'source.ruby'; },
< );
< };
Hi,
I recently got interested in starting to learn ruby. Since then I
have done a few things. I have installed the newest ruby (1.8.4) to
my /usr/local/bin/ . I also learned about TextMate, so I went and
downloaded it. I played around with it and noticed that i could run
the ruby script within textmate using Run Script. However, when I do
this, i get two errors. One is /bin/bash: line 3: cat: command not
found. This is at the beginning. After it says program exited
normally, it says /bin/bash: line 8: rm: command not found. Also, it
doesn't show any of the script as having run normally (didn't output
anything). Does anyone know whats wrong? Thanks!
I am not a computer programmer, but want to create a language for
mysel;f as part of a bundle. I have made some progress, but there's a
code being used here and I can't figure out what it means.
I am referring to what comes after the word match, i.e.
match = '[_]([^\\_ ]|\\.| .[^\\])*[_]';
match = '^[^\t].*((\.|\-|\?|\:|\;|\,)\s*)';
or
match = '\/\/\s*.*$';
Is there a website somewhere that might help me to decode this?
Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Does anyone have a copy of the TM bundle for Liquid mentioned here:
http://blog.leetsoft.com/2006/03/16/liquid-textmate-bundle
The site it links is down and my attempt at a bundle is amateurish at
best :P If you've got a copy, can you send it to me off-list? Much
appreciated!
--
Stephen Caudill
http://exdolo.com/
I have made a small addition to the css language definition that
allows for embedding ruby code in the css. I would like to
contribute this addition to the bundle and am not sure of the
appropriate way to do so. Can anyone fill me in on the best way to
submit bundle updates to the community?
Thanks,
Matthew
Hey all,
i'm in search of a * GOOD * xhtml indenter that's to say indenting
like :
<a href="..."
onclick="..."><img src="..."
alt="..."
title="..."/></a>
and not (* BADLY *) like :
<a href="...">
<img src="..." .../>
</a>
because in that case blank spaces are added ...
if it doesn't exists, is it simple to write a "snippet" (never done) ?
best
Yvon
Is there anyway to recover a file lost when TextMate crashed? I was
submitting a post using the blogging bundle. When it asked for the
name of the post, I tried to scroll up in the document to see my
paragraph. After that, TextMate would not respond at all. I could not
get back to that dialog box or access the document.
Since I had just copied all the text, I thought it was safe to Force
Quit TextMate. After restarting TextMate I was shocked to find my text
was not on the clipboard. Now, I am desparate to recover that file.
I've checked in /Users/JN/Library/Caches/TextMate for any files, but
didn't have any luck. Anyone else have any ideas where TextMate might
store a file that is being edited but is not currently saved?
Maybe I missed this in the release notes, but TM used to reopen all
my working files when I launched it, and now it doesn't.
I'm searching the help and release notes to no avail... has this been
disabled?
Cheers,
--
Josh DiMauro
josh(a)metacarpal.net
http://blog.metacarpal.net
When trying to use the "Fetch Post" command in the Blogging Bundle I
get this error...
/usr/lib/ruby/1.8/xmlrpc/parser.rb:469:in `parseMethodResponse':
Missing return value! (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/client.rb:410:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/metaweblog.rb:31:in `getRecentPosts'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:541:in `fetch'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:540:in `popen'
from /Library/Application Support/TextMate/Support/lib/progress.rb:
11:in `call_with_progress'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:540:in `fetch'
from /tmp/temp_textmate.0T31h8:3
TextMate 1.5.2 (1183)
WordPress 2.0.3
Using the Blogging Bundle that's in SVN as of this morning
burn http://mad@burn.madworld.com/xmlrpc.php?rsd
Any ideas?
Thanks,
Madison
I tried adding the following comment to the blog with no luck:
once again - you are my hero!
I hadnt really been using "wrap selection as link" before today...
One thing that caught me though -- can you grep the selection for
http, and/or edit the snippet to be:
<a href="http://${1:`
# if the clipboard contains a single line, let's use that
export __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100
if [[ $(pbpaste|wc -l) -eq 0 ]]
then pbpaste|sed 's/&/&/g'
else echo http://site.com/
fi
`}">${TM_SELECTED_TEXT:Link text...}</a>
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
Hi,
Is there any way to specify the language of a file from the mate command?
I'm using mate in the middle of shell pipe lines so there isn't any
filename to pick up on.
The simplest example is "svn diff | mate". While I can set the
language to diff, that becomes the default for all piped in text, so
"cat README | mate" will use the diff language instead of plain text.
Am I missing something very obvious? (mate -h doesn't appear to show
anything relevant).
cheers,
mick
Perhaps I'm doing this wrong, but I'm trying to figure out a way to do
wrap text using the command-ctrl-shift-w shortcut while preserving my
code formatting.
If i have this:
<ul>
1
2
3
4
</ul>
then select my prospective list items, command-ctrl-shfit-w, and i get this:
<ul>
<li> 1</li>
<li> 2</li>
<li> 3</li>
<li> 4</li>
</ul>
but i'd really like this:
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
is this possible? is there any "special" way to select text so that
i'm just selecting the items i want and not the formatted-related tabs
or spaces? or is there yet a better way?
--
eric
If you have spelling checking as you type on is there anyway to get
the popup menu with the suggested spelling corrections (and other
context related stuff) without having to use the mouse?
Googling hasn't shown up anything for Tiger in general, but I would
be happy with something just in Textmate.
Thanks,
Dave.
Another ridiculously easy question that apparently I cannot solve
myself. :-/
I have the canonical "Hello World" program in a window:
#!/usr/bin/newlisp
(println "hello world")
I can run this by Select All followed by Execute Selection Inserting
Result easily enough, but I have spent some time looking for a more
straightforward Run or Execute command that just needs one
keystroke, but with no success. I may be bringing a BBEdit-way of
looking at things...
--
(<http://newlisper.blogspot.com/>)
Hi there. I've started trying out TextMate as a possible replacement
for BBEdit. It's really nice. I have a couple of questions that I've
not yet been able to find answers to in the help.
The opening parenthesis flashes quickly when I cursor forward over
the matching closing parenthesis. It doesn't appear to do it for the
other three cases: (the four being forward/backward : opening/
closing). Also, the flash is too quick and not very easy to see. Is
there a way of changing the behaviour in a bundle or is it part of
the UI that can't be changed...?
Also, how do I change the Select Enclosing Brackets menu command to
be ⌘B - I keep on getting some whistle when I forget that the
default is ⇧⌘B.
thanks - hope these questions aren't too easy for you :-)
--
(<http://newlisper.blogspot.com/>)
I can't find a decent looking theme that I really like. What I am
wondering is what's the easiest way to get the entire list of scopes
for a particular language?
I want to start with PHP, and work my way to xml, sql, etc.
Regards,
Eric
First, upon posting a new article, I got an error that this line (510
of blogging.rb) was trying to mod a frozen string:
filename.sub!(/\.[a-z]+$/, '') if filename
Commenting that line out, I still got a 301 error from the script.
I'm pointing it to
http://myusername@mydomain/backend/xmlrpc
Anyone have any answers? Thanks,
Ben
Hi,
I've been wondering if there's a list for all the bundle names and
brief explanation.
I use svn to get all the bundles from the repository, and, finding a
new bundle, I'm like, "What's this bundle for?". I google often, but
some of them don't seem to be programming/scripting-related.
I, of course, filter bundles I don't use, but there might be some
bundles I might want to use. No one knows what each bundle is for. It
would be great if there's a wiki for this purpose. As the number of
bundles increases, I feel the need for a list or something.
Brief explanation and official webpage for the language and script
(if any) would be useful.
There's a wiki of a list for bundle requests, but I don't find a list
of existing stuff.
If anybody is up for this task, I'll join by doing what I know and
find on the web. If anybody's interested, please let me know.
Takaaki
Hi guys,
I had been playing around with the language grammars and snippets,
and started thinking that Allan probably has thought of some better
way to edit the grammar.. I felt really stupid when I came across
this blog that stated the obvious: while in bundle editor, naturally
select Edit in TextMate.. - Voilá, the Language is set to 'Language
Grammar' and colored nicely.
So if there happends to be any grammar-editors unaware of this
obviousity, just thought I'd let them know.
And for a suggestion to the bundle editor and help, this feature
might be nice to mention as a hint (eg. by the help button in bundle
editor). A tip of the day maybe: "Did you know that you can call the
'Edit in TextMate...' input manager also inside TextMate's bundle
editor. This should make language grammar editing much easier." or
smtn...
Sorry if this is plain obvious to anyone else...
>> Does the blogging bundle work with proxy servers, and if so, what
>> do I have to configure/change (shell variables in TM?) to make it
>> work correctly?
>>
>
> Support would need to be added for this. There is a Ruby Proxy class,
> so it might not be that difficult -- if you are familiar with Ruby,
> you may want to give this a shot yourself :)
I only had to do a small change in order to make the blogging bundle
work with proxy servers. Attached you find the patch for the file
blogging.rb, which is located in the Support/lib folder of the
Blogging.bundle. The patch is for the Blogging.bundle included in
revision 1183 of Textmate.
I changed the new2(...) method to set the proxy and added a text
about "how to configure proxy settings" to the template text for the
Blogging.bundle config file (com.macromates.textmate.blogging.txt).
To enable proxy support, you have to set and enable the TM_HTTP_PROXY
environment variable (host:port of proxy server) in the Textmate
preferences (Advanced->Shell Variables). If the variable is not set
or disabled, the Blogging.bundle still works fine. So the patch
should not break anything for non-proxy users.
A more elegant solution could read the proxy from the network
settings for the current "Location" (configured in "System
Preferences->Network"), but I haven't found out yet how to read these
settings from ruby.
Please review / change / improve these modifications, so the
Blogging.bundle with proxy support could soon be available in future
Textmate updates. :-)
Marc
--
Marc Brogle - M.Sc. in Computer Science - Research Assistant
Institute of Computer Science and Applied Mathematics
University of Bern, Neubrueckstr. 10, CH-3012 Bern, Switzerland
http://www.iam.unibe.ch/~brogle Phone/Fax: +41 31 631 8668/3261
Hey all,
in all of my projects i've a folder dist having a symlink to "/
Applications", this makes any search too slow, obviously.
then i wonder if their is no automatic way telling TM not to have
this symlink ???
(i know how to remove manually the reference to)
best,
Yvon
as some of you might know, I'm becoming more and more… sight-
challenged. is there a way to increase caret width (which ATM is just
1 pixel) within textmate?
ciao,
domenico
I am wondering if TextMate has any kind of emacs-like 'set mark' feature.
I found an old list msg that indicated it did not in 2004:
<http://one.textdrive.com/pipermail/textmate/2004-October/000938.html>
but it looks like it was in the pipe, though I haven't run down any
newer info.
(I can see that my cocoa keybinding of 'ctl-space' to 'set mark' does
not work even though most of my key bindings are preserved in
textmate).
Hello, I'm a recent TextMate convert (from vim...)
I don't seem to be able to set up TM to handle tabs the same way.
Here's the relevant snippet from my vimrc:
set tabstop=8 " Leave default for printing etc
set softtabstop=4 " But use spaces between real tabs
set shiftwidth=4
set noexpandtab " Use 'real' tabs (^I) when
possible
This works great, real tabs (^I) are left alone at the usual 8
spaces, however I
like to indent my blocks by 4 at a time. This tells vim to use a
real tab if it
can, and "pad out" with spaces at the end if the current indent isn't
a multiple
of 8. Here's what it looks like in vim:
<?php$
$page = new PageController($
'shop.tpl',-$
array($
> 'showAds' => FALSE,$
> 'icon'> => 'shop'),$
'Online Store');$
$page->render();$
?>$
If I configure TM to use soft tabs at 4, then all my previous code
looks wrong
because it sets hard tabs to 4 as well. If I set it to 8, then my
existing code
looks fine but I'm not getting my desired softtab indent of 4.
This is a pretty annoying problem for me because I have hundreds of
thousands of
lines of code formatted this way :( Kind of ironic since I did it
this way to
maximize compatibility!
I guess what I'm looking for is the ability to set soft tab size
independantly
of hard tab size - the former to 4, the latter to 8. Is this possible??
(I suppose if there's no other option, I could convert all tabs to 8
spaces in
all my files. However I like using tabs because it cuts down on file
sizes a
tiny bit. )
Thanks,
Skye
Hello,
I've set up my blog's xmlrpc url in the blog settings. When I try to
"fetch post" I receive the following error:
ruby: No such file to load -- jcode (LoadError)
I've searched the list archives and the help file and don't see any
mention of this... I also curl'd the header and received a HTTP/1.1
200 OK, so the url is fine.
Any help would be appreciated.
Thanks,
jeremy
With much help from Allan and Michael I've redone the Dawn theme to bring it
inline with the official scopes being applied in a rampage to the bungle
syntaxes at the moment. You can grab it here ->
http://www.grayskies.net/attachment/Dawn.tmTheme and hopefully some people
will have nasty things to say about it so I can improve it.
David
I've updated this command to make it a bit more robust, and to deal
with a couple of important cases. The first is aliasing, since R help
pages are grouped into sets of closely related functions. So now if
you run the script on ".C" you should get "Foreign", etc., like in the
R app. The second is non-local links: the script will now play nice
with http/ftp links in R help pages. I've assigned a key equivalent of
⌘⌥? -- I don't think this clashes with anything in the source.r
scope...
It's probably worth putting this in the R bundle at this stage
(someone with repos access...?). Please let me know if you have any
issues!
Cheers,
Jon
On 14/07/06, Alan Schussman <alan(a)schussman.com> wrote:
> On Jul 14, 2006, at 1:24 PM, Jonathan Clayden wrote:
>
> > On 14/07/06, Ana Nelson <nelson.ana(a)gmail.com> wrote:
> >
> >> Once you open an R help page in this way, the hyperlinks don't work.
> >> Anyone know if it's possible to fix that?
> >
> > Back to Ruby! This is a little quick and dirty, but it seems to
> > work fine:
> >
>
> Very cool, Jonathan and Ana. I had been sending help commands to R
> itself, but that usually meant my R window came to the front along
> with the help window. This allows one to keep R out of the way until
> it's wanted. (And the links work, which is great.)
>
> -Alan
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
[Tiger 10.4.7 on MacBook Pro]
After launch, I move the Textmate window to my second display,
working and saving files. What I would like to have happen the next
time I open Textmate is for it to remember that it was open on the
second display and open there. I can't seem to find any setting to
allow this.
Other apps, including Netnewswire and iCal do this. If the second
display is not present when they load, they simply load on the
primary display.
Thanks for your help.
Regards,
-Bob
I'm going to take a stab at writing this one up this weekend, but
before that I'm wondering if anyone else would find this useful or has
already done similar (or knows of an even more productive way...).
I've usually got a handful of colors that I use throughout a
stylesheet; I'd say around 3-6 and that's about it. I'm thinking that
a tab-complete on hex color values already in your stylesheet would be
ridiculously helpful. so 'border-bottom: 1px solid #[tab]' would spit
out a menu of all the colors already in your stylesheet as hex values.
Even more sick would be identifying each item with their color
somehow, either by coloring the menu items (would suck w/ whites,
greys) or providing a box colorized next to each item indicating that
color. Would this be feasible?
Thoughts or suggestions would be great.
--
eric
Hi. I adore texmate to death but I'm trying to get more automation out
of it. I know that there's a keyboard shortcut to close the last
previously opened tag, but is it possible get TM to close all the tags
on the current line you're working on? So i can be writing
<li><a><span> and with a keystroke or two get </span></a></li>.
Also, I can't seem to find anything related to automatically wrapping
text in html tags. E.g. selecting a few blocks of text and
automatically wrapping them in <p> tags. BBedit has its nice HTML bar
where you can do this kind of thing in a few clicks, but i've always
found it a bit clunky
Thanks for any input.
--
eric
When I type "date" in TM and pressed option + R which should executes the command, but somehow TM poped up a little tip window saying "Didn't Find Xcode Project File, You may want to set TM_XCODE_PROJECT variable"
I have not done any TM setup or setting, just dragged TM.app to applications folder.
Can anyone give me some help on this, do I need any setup before being able to execute command in TM?
I have tried accessing Sereniki: TextMateSetupTutorial, but it seems the link isn't working, searched in google no luck, could anyone give me some help on this, I really appereciate your help. Thank you!
Sorry for my poor English
_______________________________________
YM - 離線訊息
就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。
http://messenger.yahoo.com.hk
I have a couple commands that insert a comment in my code for fixes
made in our software... They useually look like:
// [eric] date - comment text
Since the last 2 updates, it seems to have stopped working. The
error I get is below:
> shell-init: could not get current directory: getcwd: cannot access
> parent directories: No such file or directory
The command is simply:
> // [eric] `date +%m/%d/%Y` - $1
Any reason that would occur?
Regards,
Eric
The blogging bundle works like a charm, when I use if from home
(without a proxy) with Wordpress 1.5. It really is a great bundle for
Textmate!
Unfortunately when I use the blogging bundle at the university (where
I need to go via a proxy to connect to the Internet), I get the
following error message:
/usr/lib/ruby/1.8/timeout.rb:42:in `new': execution expired
(Timeout::Error)
from /usr/lib/ruby/1.8/net/protocol.rb:83:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:55:in `timeout'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:64:in `initialize'
from /usr/lib/ruby/1.8/net/http.rb:430:in `open'
from /usr/lib/ruby/1.8/net/http.rb:430:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:419:in `start'
... 7 levels...
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:540:in `popen'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:11:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:540:in `fetch'
from /tmp/temp_textmate.nKslYr:3
Does the blogging bundle work with proxy servers, and if so, what do
I have to configure/change (shell variables in TM?) to make it work
correctly?
Best regards and thanks
Marc
--
Marc Brogle - M.Sc. in Computer Science - Research Assistant
Institute of Computer Science and Applied Mathematics
University of Bern, Neubrueckstr. 10, CH-3012 Bern, Switzerland
http://www.iam.unibe.ch/~brogle Phone/Fax: +41 31 631 8668/3261
Hi there,
Is there a bundle for the wikipedia syntax? I tried Standard ML, YAML,
Markdown, multi markdown, and none of them seem to grok wikipedia source
code.
Hej everyone,
I just stumbled over this:
The path to the .tex file looks like this
/Users/chris/Aka Flieg/D38/file.tex
Using “Show in TeXniscope (pdfsync)” in Textmate works but it does
not the other way around. So when I cmd-click
in TeXniscope nothing happens. The console.log says:
2006-07-20 08:51:52.788 open[7515] No such file: /Users/chris/Aka
Flieg/D38/txmt:/open?url=file:/'/Users/chris/Aka Flieg/D38/
file.tex'&line=48
Is there a way to change the editor argument in TeXniscope ("txmt://
open?url=file://%file&line=%line")?
Thanks
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
I'm having some problems using the Blogging bundle with typepad. I had
managed to get it working but now I seem to be getting this error
whenever I try and contact the server to fetch a post.
/usr/lib/ruby/1.8/xmlrpc/parser.rb:98:in `dateTime': wrong
dateTime.iso8601 format (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:538:in `tag_end'
from /usr/lib/ruby/1.8/rexml/parsers/streamparser.rb:26:in `parse'
from /usr/lib/ruby/1.8/rexml/document.rb:171:in `parse_stream'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:722:in `parse'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:462:in `parseMethodResponse'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:410:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:31:in
`getRecentPosts'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:541:in
`fetch'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:540:in
`popen'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/progress.rb:11:in
`call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:540:in
`fetch'
from /tmp/temp_textmate.M7wcXA:3
My settings for the Blogging bundle look something like this:
# Blogging Weblog List
# Enter a weblog name followed by the endpoint URL
# Weblog Name URL
Blog Name http://username@www.typepad.com/t/api#000001
Any ideas? I'm guessing the TypePad API is returning something unexepected?
Cheers
Steve
This me be a stupid question and/or not possible, but I come up
against this a lot....
As a php guy, I use the "if" snippet which, of course, has tab stops.
The problem is that there is no way of triggering another snippet --
"$_" for example, with first "getting out of" the if.
Am I missing something obvious?
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
Hi there!
When I run "typeset & view" in Latex mode or try to open any bundle's
documentation I always get nothing but an empty window. I have
deleted my prefs and 'reinstalled' TextMate from the .dmg but still
get the same stuff. Are there any caches I should empty? Any other
thoughts?
Any help is greatly appreciated!
Gregor
I am attempting to modify the LaTeX Language Grammar so that I may
style superscripts and subscripts distinctly. I tried to add the
following:
{ name = 'constant.superscript.latex';
match = '\^(\w{1}|\{.*?\}|\\\w*)';
captures = { 1 = { name = 'meta.supersript.latex'; }; };
},
{ name = 'constant.subscript.latex';
match = '_(\w{1}|\{.*?\}|\\\w*)';
captures = { 1 = { name = 'meta.subscript.latex'; }; };
},
However, when I invoke the "show scope" command in the TextMate
bundle, neither of these scopes will appear. (For example, if I type
"Suppose that $\{x_n\}$ is a sequence..." and put the caret after the
underscore, neither "constant.subscript.latex" nor
"meta.subscript.latex" appears in the show scope tooltip.)
I am new to regular expressions, but if I do a find and replace with
those expressions, they do seem to find all occurrences of subscripts
and superscripts. I think I probably don't understand the LaTeX
language grammar, since I have trouble understanding even the
shortest of grammars!
Also, are my naming conventions even close to correct?
For reference, I'm using TextMate 1.5.2 (r1180) and revision 4405 of
the LaTeX bundle from the repository.
Thanks for your help,
Mike Miller
when a project is open, stand-alone editing windows and other windows
(preferences, bundle editor, html view, you name it) don't react to
the cmd+W keystroke (as would be appropriate), but only to cmd+shift
+W. the "Close" shortcut in the File menu is still associated to cmd
+shift+W, while cmd+W is bound to "Close tab". closing all open
projects causes the "Close" shortcut to become again cmd+W.
stupid but annoying.
this bug was probably introduced in the latest revision, or at least
I didn't notice it earlier.
bye,
domenico
Hello all,
I've noticed that when editing using the HTML bundle the Insert
Closing Tag command (Opt+Cmd+.) inserts a closing tag but doesn't
seem to match the indentation of the opening tag.
For example (all tabs are inserted by Textmate automatically):
<ul>
{1 tab}<li>
{2 tab}Lorem ipsum [now press Opt+Cmd+.]
{2 tab}</li> [now press Opt+Cmd+. again]
{2 tab}</ul>
In the above I think it should (or at least I would like) the final
closing li tag to be set 1 tab in, to match the opening li tag, and
the final closing ul to be set with no indent, to match the opening
tag. I think it used to maintain the indent structure, but this might
just be wishful thinking on my part.
Can the bundle be modified to do this?
Thanks in advance,
Matthew
Hello. When I'm doing LaTeX and use \cite or \ref and Option-esc, I
get the dialogue with all the right choices. But when I select one,
the following is inserted into my document:
(\ref{/Applications/TextMate.app/Contents/SharedSupport/Support/bin/ :
11: warning: Insecure world writable dir /Users/apape/bin, mode 040777
lem:twocausalmodels})
How can I suppress/cure the error message? Thanks!
--duus
I'm currently trialling TextMate and like it a lot but would like to print
in colour etc... I see from the Manual that a workaround is to View as PDF
from the Source bundle, but I can't see this option. Am II missing
something?
THanks in advance
Denis
i keep a folder of saved terminals (*.term files) which i use to open
color-coded terminals (blue.term, red.term, green.term, etc).
after using the CTRL-SHIFT-o from textmate to open a terminal at the
current files directory, double-clicking my .term files in finder no
longer opens a terminal, until i close all terminals and re-open
Terminal.app, then the *.term files work again until i next CTRL-
SHIFT-o from textmate.
I was trying to do a new scope for being inside of a certain command
parentheses
eg. trace( 'here is the new scope' ), so that I could do some special
tab triggers inside that scope, but I wasn't able to do it. I tried
all kinds of
combinations for begin and end in the language grammar with no luck.
Apparently I somehow mess up the regular expression.
Can any of you help out ?
Re: Version 1.5.2 (1180)
I was pleased to see that it's possible to enter column editing mode
by hitting the Option key after making a selection but it seems to
behave in an odd way. If I select two complete lines of text and hit
Option then the caret also moves into the line below, which is not
useful because I just wanted to add comments to the start of the
selected two lines. Is this a bug or the way it's supposed to work?
thanks
Martin Baker
www.digital-heaven.co.uk
Hi,
I have a problem with chinese characters that appear to overlap each
other a little in textmate.
Am I missing something or is there a way to fix this – other than
inserting whitespaces in between?
I am using QIM as input method and it works for me.
Kolja.
Thomas,
when I commit directly from the status window there are two visual
glitches (IMHO):
1.
You can see two M's here, but nowhere a visual explanation what
changed? Is there an easy and aesthetic way to add some feedback on
this? (I know, one could just look up the def in the svn manuals… ;))
2. The commit-log from this status window shows a very small font for
me, is it possible to increase this?:
3. The mouse-over effects are fabulous!
Dan
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My subject line pretty much says it all. I would like to implement a
tab command that will delete the current line in a document. The
best that I have been able to do so far is to remove the text, but
not the line. I'd imagine that I could do it by iterating through
the document and deleting the line in some complicated script, but
I'm hoping for a simple solution. Is there a simple solution? Thanks.
Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFErf4M4oDM7Rgs0h0RAkjqAKCuq3kJUPlAF+u864DnZRidAaKk0gCfY2dK
q+LWd28wNst5yWCDjfR60HY=
=xuoQ
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I just implemented two new functions: cleanup and remove.
Cleanup moves all of the completed tasks (context = DONE) to the
bottom of a selected task list/project.
Remove removes all of the completed tasks in a selected task list/
project.
Alaskamike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEuw+d4oDM7Rgs0h0RAvlBAJoCOi4ocGRwVG17zj3tTNYKvmSHRACgsv82
mJvfD1RdmUbJeiVyZJOOQSQ=
=3IKE
-----END PGP SIGNATURE-----
Anyone know what Application Allan is using for the screencasts? I'm
on short notice here and need to make several for a little "teaser".
Can't seem to find one I actually like.
Regards,
Eric
here are my two cents on the subject.
I'm plagued with a marked attention deficit :P, so when I found out
about WriteRoom I was sold on the idea of full-screen distractionless
editing.
now, I'm not too fond of feature requests, but I'd like allan to take
a look at WriteRoom and think about offering similar functionality
within TextMate (snippets + fullscreen = wow!) — megazoomer just
doesn't cut it, the whole text is jammed over the left border, too
ugly to be true!
on the other hand, since I first used a mac I expect the maximization
button to act like it does in Finder, i.e. increase window height
until the whole content is shown. that was the behaviour I got on
BeOS too (I was an eager BeOS user back in the day). I guess offering
those two modes (full screen and vertical window zooming) would be
very nice.
ciao,
domenico
Sorry about the subject.
The thing is, I type $('') quite a lot, so much that even a tab-
trigger isn't ideal. I'd like to have a key-trigger of $ to just
activate the thing. The dealbreaker though is that I also use $$
sometimes, and of course an american might use $ for some other reasons.
So I wonder, can you have some "smart" entering here, like the
parentheses in a way.
The behaviour I'd like is that if I just type $, it will expand to $
('$1')$0 (shorthand snippet syntax), but if I hit delete directly
after typing $, it will revert the thing to a simple $-character.
Hope I'm making myself clear :)
btw, Martin Ström, this could be integrated into your new prototype/
scriptaculous bundle ˆ_ˆ
Andreas
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have fixed the script for GeekTool export, so it works now.
Running the command (ctrl-shift-G) creates a file callled
"todoList.txt" in your GTD folder (whatever it is called). The all
you need to do in GeekTool is set up a shell command with:
cat /Users/foo/pathToGTD/todoList.txt
If you try it, please let me know how it works!
Alaskamike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEuYyU4oDM7Rgs0h0RApQ9AJ9fhuGre1C1j5o2/bZiJXUjDXiFpACdFnxH
VBoQW0dECxmUix5YuVxmazI=
=/GZa
-----END PGP SIGNATURE-----
I have one request for the wonderful blogging bundle. I have come to
rely on it 100%, and today I ran into the following problem. I needed
to update a post that was not that long ago, but given the amount of
activity on my blog does not show up in the list of 20 newest posts
that "Fetch post" shows me. Is there a way to get "Fetch post" to
"move to the previous 20 posts" and so on?
Or perhaps a way to search for a post to fetch by name?
Haris
Hi all,
Previous conversations on related topics to this don't seem to answer
the question (correct me if I'm wrong!), so:
Can I turn the input to a command script into a shell variable, i.e.
is there a UNIXy way of reading stdin into a variable?
To be more concrete, I have a simple command for looking up the
current word in the R help files (which are in HTML) and displaying
the page in TM's browser. The basic command is
#! /usr/bin/ruby
text = STDIN.read
file = `find /Library/Frameworks/R.framework/Versions/Current/Resources/library
-name #{text}.html -print`
html = `cat #{file}`
print html
This works, but seems like an inelegant solution, and for more complex
tasks it would be useful to know how to avoid needing ruby and make
this something like
var=[something]
cat `find /Library/Frameworks/R.framework/Versions/Current/Resources/library
-name $var.html -print`
TIA!
Jon
I've just added the following command to my Sweave bundle for using
the command line interface to R rather than the GUI:
M=${TM_SWEAVE_WD:=${TM_DIRECTORY}}
echo -e "setwd('$M')\nSweave('$TM_FILEPATH')" |
"$TM_BUNDLE_SUPPORT/../../R.tmbundle/Support/tmR.rb"
Note this assumes both R and Sweave bundles are located in the same
directory. The /../../ is to back up from the Sweave bundle Support
directory and go into the R bundle Support directory.
Command output should be set to "Show as HTML"
I have only tested this on example-1.Snw
Or here's a simpler, if less pretty, way of doing that taken from the
Sweave manual:
echo "library(\"utils\"); Sweave(\"$TM_FILEPATH\")" | R --no-save --
no-restore
I prefer all the nice HTML you get from using tmR.rb though.
Alan et all,
Don't know how practical, but I thought I would put it out there -
I do a lot of converting of Words docs to html. JT's tidy MS Word
command is a godsend, but there are things that I need to search and
replace for -- things like empty p tags, apostrophies, quotes,
emdshes, etc
I never have (yet) qotten my head around grep/stdn etc, so I end up
using search/replace.
My question is whether it would be feasible to convert search/replace
macros to their command equivalents, which I could then just append on
to msword tidy?
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
I have been trying to create a snippet that can transform the text at one of the tab stops but am having difficulty, I have consulted the hlp system and it describes how to transform a tab stop when using mirror typing, but I don?t want to have a mirror, I simply want to force one of the tab stops to be uppercase, no matter what character I type, almost as though I switched caps lock on when entering that tab stop and off again after leaving it.
Does anyone know if this is possible? And if so how?
Many thanks
Chris
i would like to be able to perform a simple browser-like back/forward
through the files that i'm viewing/editing. since my normal usage is
to be working with many files simultaneously and i'm using the
project drawer to jump around, i'm always losing track of where i
was. it would be a HUGE time saver to have a "back" command that
could cycle through the last few files that i've loaded into the editor.
note that i've tried using the prev/next file tab commands, but that
just doesn't cut it as the tab placement is completely random based
on the way i work and there are usually a couple dozen of them.
does anything like this exist?
thx.
-scott
Hey all,
if i do, in a ruby file :
#!/usr/bin/env ruby
require 'plist'
plist=Plist.parse_xml(my_info_plist)
within TextMate i get :
NameError: uninitialized constant Plist
altought this script is running well from terminal doing a :
> ruby essai.rb
the ruby used is the same (/opt/local/bin/ruby)
i did setup within textmate some enverironnement variables :
TM_RUBY => /opt/local/bin/ruby
RUBYOPT => -rrubygems
GEM_HOME => /opt/local/lib/ruby/gems/1.8
they all correspond to what i get in the Terminal ie :
> which ruby
/opt/local/bin/ruby
> echo $RUBYOPT
-rrubygems
> echo $GEM_HOME
/opt/local/lib/ruby/gems/1.8
the, i don't understand where the prob comes from...
Hi,
is it possible to change the subversion bundle to allow the diff
actions to take the selected folder in the project drawer as its target?
Thanks in advance,
--
Pedro Melo
JID: melo(a)simplicidade.org
So: I notice that there isn't a Velocity (VTL) bundle available, and
it's listed as something people are interested in. I also can't see
one in the Subversion repository.
As a result: I'm interested in one, and I'm working on one. So far
(after 1-2 hours work) it covers syntax highlighting for keywords in
Velocity lines, as well as single-line comments; there's also some
basic snippets for commonly used methods (set, cparse, parse, if,
foreach). It also inherits all the HTML highlighting/functionality,
obviously.
If anyone else is interested in this bundle, I'd be very grateful for
feature requests and suggestions on what syntax highlighting should
cover. I'd also be interested to know what it *shouldn't* do.
At some point I'll see if I can get an SVN login and put it into the repository.
Anyhow, thought this might be of some interest.
t.
Thanks to Chris, Torsten, Allan and Thomas for the awesome new
subversion bundle.
I do have a few minor feature requests for your consideration:
- Add Commit button directly to the Status window so commits can be
done straight after reviewing the changes
- Add propedit svn:externals command to menu (on selected file) and
allow the externals editing in a subversion window
- Add svn:ignore command to menu (on selected file)
- In the status window, allow setting svn:ignore via shortcut on ?-
files (similar to the Add link)
Any chance you find any of this worth implementing?
Thanks again for your great work.
Sebastian
Hello,
I'm having some problems with the blogging bundle in TextMate. I've
run 'Setup Blogs' and configured it properly. I hesitate to post the
configuration here for public consumption, but if I will email it
directly if need be.
When I try to post or fetch posts, I get this error:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:9:in
`expand_path': couldn't find HOME environment -- expanding
`~/Library/Preferences/com.macromates.textmate.blogging.txt'
(ArgumentError)
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:9
from /tmp/temp_textmate.3tWil3:2:in `require'
from /tmp/temp_textmate.3tWil3:2
Any help would be appreciated.
-Zach
Hey All,
I know there aren't any bundles for Coldfusion out there so HTML
bundle has worked ok. But the one thing that is really annoying is
opening a coldfusion document with comments in it.
HTML comments work fine:
<!-- something here -->
CFM comments have problems
<!--- something else here --->
It shows like it's an incorrect syntax and everything below that
point gets dimmed out like it's a comment. Any ideas on how to make
these types of comments look right for me? Something quick and easy
is preferable.
Thanks.
Josh
I admit it: I have not really understood what changed in the
subversion bundle, as I am getting bugs in two places:
* Log on a file produces:
> No Match
> mhh, something with with the regex or svn must be wrong. this
> should never happen.
> last line: Geänderte Pfade:
> please bug-report.
* Blame on a file produces:
> No Match
> mhh, something with with the regex or svn must be wrong. this
> should never happen.
> last line:
> 11 dekay
> 2006-01-21 21:07:26 +0100 (Sa, 21
> Jan 2006) %!TEX root = ../
> Doktorarbeit.tex
> please bug-report.
I suppose this is because of some parsing of the svn output that
doesn't escape the contents of the output - and since Latex likes the
use of % and \ this could cause problems?
* View revision… of a file produces an untitled document (it would
be nice to have a complete filename with the revision in it?)
Dan
I've just begun with svn ... and I've googled and tried :)
how do you supply your password to the svn bundle, I try to commit
but it says I haven't supplied a password (which I haven't since I
don't know how)
help appreciated as always
Andreas
I've recently been messing with the Remind language grammar, and I
would welcome some comments and test files, especially from people
who are use some of the more obscure features. Here is the file:
http://skiadas.dcostanet.net/uploads/Remind.tmLanguage
Atm there is not support for multiline commands (i.e. a command
continuing in a separate line). I hope to add it soon.
Haris
Hi,
I've tried to edit a post via the bloggin bundle. I was able to
retrieve the post, edited without problem, but at posting time, I get
a error to name the endpoint.
THe problem is that the Blog: header (of a moveable type blog) is
missing the #blog_id at the end, although is present in the config file.
Thanks,
--
Pedro Melo
JID: melo(a)simplicidade.org
I am trying to modify my view lists command. It is based on the TODO
bundle command, but I am trying to use string comparison instead of
regexp to test lines. As far as I can tell, the sorting is going ok,
but I'm having trouble with the output. It seems to show everything
except for the task itself (the content). Here is the code, any idea
what's going wrong? Thanks.
Mike
#!/usr/bin/env ruby
$myPath = ENV['TM_DIRECTORY']
$tags = [] #user defined contexts
def readContexts(a)
# processes contexts.gtd into script
context, tabCommand, tabString, regex, color = a.split(/\|/)
$tags.push({:label => context, :regexp => regex, :color =>
color, :matches => []})
end
require "#{ENV['TM_SUPPORT_PATH']}/lib/textmate"
require "erb"
include ERB::Util
def TextMate.file_link (file, line = 0)
return "txmt://open/?url=file://" +
file.gsub(/[^a-zA-Z0-9.-\/]/) { |m| sprintf("%%%02X", m[0]) } +
"&line=" + line.to_s
end
# the contexts.gtd file is read, and converted into $contexts
file = File.open($myPath+"/contexts.gtd", "r")
file.each do |line|
readContexts(line)
end
# sorting happens
$tags.each do |tag|
context = tag[:label]
myFiles = Dir.entries($myPath)
myFiles.each do |fileName|
if (fileName[-3,3] == "gtd") and (fileName != "contexts.gtd")
lineno = 0
mFile = File.open(fileName)
mFile.each do |line|
lineno = lineno + 1
re = /\s/
ctask = re.match(line)
if ctask.pre_match == context
results = {
:file => fileName[0..-5],
:line => lineno,
:content => ctask.post_match
}
results[:match] = html_escape($1)
tag[:matches] << results
end
end
end
end
end
tmpl_file = "#{ENV['TM_BUNDLE_SUPPORT']}/template.rhtml"
puts ERB.new(File.open(tmpl_file), 0, '<>').result
> It's not happening here. Is this consistent? Is it always the Finder,
> or whatever the “previous application” is?
Always the finder.
> Do you use any programs like LiteSwitchX? I do, but I don't know if
> this would affect things.
Nope. Fresh Tiger install, though I did copy over ~/Library/
Application Support/TextMate and ~/Library/Preferences/
com.macromates.textmate.plist.
> Do you notice this only with the date dialog, not with the choose
> context dialog or other dialogs?
Just tested the choose context dialog and got the same issue.
> Do you have your own CocoaDialog installed, or just the one that
> comes with TextMate?
Just the one that comes with TxMt.
Thanks for your assistance, hope this helps. Best regards,
Ben
I know I got turned onto the wonderful Vera monospaced font through
this list, so I thought folks might be interested that there's an
effort to greatly improve Vera.
Vera's an open source font, but is apparently not maintained by
Bitstream. So it's been forked as Deja Vu. From glancing at the
project's history page, and playing around with it a bit, it seems
every bit as good as Vera, and has far better international support
-- I noticed less-common diacriticals and Cyrillic glyphs, to start,
and it seems there are many more. They are intent on making it a
full Unicode font.
More info here:
http://dejavu.sourceforge.net/wiki/index.php/Main_Page
Although most of the installation instructions seem complicated, for
us OS X users it's easy: just download the zip file, and add the .ttf
fonts to your system.
--John
Hi peeps. I was told this was the best place to put this. I've had a
hunt round the mailing list archives and dug up an elegant solution
here or there for Vim-style comment block behaviour, but nothing
obsessive-compulsive enough to quite satisfy me. So here's mine! I
hope you find it useful.
#!/usr/bin/env ruby
# TextMate command to continue block comment
# Preserves whitespace before and after asterisk
# Save: Nothing
# Input: Selected Text / Line
# Output: Insert as Snippet
# Activation: Key Equivalent
# Scope: comment.block
line = ENV['TM_CURRENT_LINE']
caret = ENV['TM_LINE_INDEX'].to_i
before = (caret > 0) ? line[0..caret-1] : ''
after = line[caret..-1]
before =~ /^(\s*)(\/)?\*(\s*)/
if $&
spc = $2 ? ' ' : ''
printf before + "\n#{$1}#{spc}*#{$3}$0" + after
else
before =~ /^(\s*)/
printf before + "\n#{$1}$0" + after
end
This is also my first ever custom command, so it might look a bit
rough. Also, it doesn't insert the space after the asterisk by
default, but by its very indentation-preserving nature will happily
add it after you type one out on the first line.
I guess if there IS a way to do this with a snippet after all, I'm
going to look a bit silly.
Hi,
While tracking down some unrelated issue, I ran into a problem with svn
blame. It breaks when you apply it to files that are not versioned:
> NoMethodError
>
> reason: undefined method `+' for nil:NilClass
> trace:
> /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/format_blame.rb:49
> /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/format_blame.rb:43
Could someone please have a look at this?
Thanks,
Jeroen.
> I can't reproduce this here. Can you give us a precise step-by-step?
1. Open todo.gtd.
2. Create a project and an action
3. Hit "#"
4. Hit "Enter" to set the date to "today"
5. Focus goes back to Finder instead of TxMt
- Ben
After entering the date in the CocoaDialog popup, TxMt is losing
focus. The date is still getting written to the file. Any thoughts on
what might be the issue?
Ben
i am trying to convince the perl bundle to properly fold pod
documents. has anyone tried this with success?
i have tried modifying the Start/Stop markers from
foldingStartMarker = '(/\*|(\{|\[|\()\s*$)';
foldingStopMarker = '(\*/|^\s*(\}|\]|\)))';
to
foldingStartMarker = '(/\*|(\{|\[|\()\s*$|^=head\d)';
foldingStopMarker = '(\*/|^\s*(\}|\]|\))|^=cut)';
which works fine for a simple block:
=head1 HELLO
Hello, World.
=cut
but not for blocks that have more than one =head marker:
=head1 HELLO
Hello, World.
=head2 OOPS
Now head1 and head2 both show folding carets, but only the one
one by head2 does anything when you click it.
=cut
i tried to get clever and use perlish zero-width positive look-ahead
regex -- something like (^=head\d(.|\n)*(?==cut)) -- but textmate
doesn't appear to support such patterns.
any suggestions?
I found this full screen SIMBL bundle today that allows one to work
with any app in full screen mode. Works great in TextMate.
http://ianhenderson.org/megazoomer.html
Ciao
Martin
Hi
Is there a list of which static TM variables are currently available?
I was wondering if for example TM_AUTHOR already exists. I think it
could be of good use for many things. E.g. filling in the author of
S5 slides automatically or when converting a MultiMarkdown document
to LaTeX.
Cheers. Oliver
After the last update to textmate the keyboard shortcut
(command+period) to auto close html tags seems to have broken. This is
the error message that occurs:
<p>/tmp/temp_textmate.IBrgoT:7: undefined method `match' for
#<String:0xc59ac> (NameError)
Does anyone know how or if this can be fixed?
Thank you.
Michael
Hey Drew,
> ---------- Forwarded message ----------
> From: Drew McLellan <lists(a)allinthehead.com>
>
> I'd like to see this as an editing mode, automatically managing real
> tabs/spaces for me.
>
> I use tabs for aligning assignment blocks, and so often find myself
> going back up to add extra tabs when the left side of the assignments
> becomes longer than I expected. Example (using 4 spaces for a tab here):
>
> $a = 'A';
> $bb = 'B';
> $ccc = 'C';
>
> If I were to enter a forth line with a really long variable name, I'd
> *love* for the behaviour to be result in:
>
> $a = 'A';
> $bb = 'B';
> $ccc = 'C';
> $really_long_name = 'foo';
>
> .. but for that to be done with real tabs. I think the suggested
> convention of using a blank line to clear the alignment is a good one.
>
> Not sure if that's useful input or not, but there you have it :)
I've built a TM filter command that will realign assignment blocks.
It'll run on the current selection or on a block of statements
touching the current line. You can find it at
http://random-dreams.org/freeware/textmate/assignment-block-tidier.txt.
It's been on my shortlist since then to write a version that can
realign entire statements, lining up commas and closing parenthesis
and such. I'll probably get to that this month.
Regards,
Chris.
HI all
I may be missing something entirely obvious, but when I have a
document's language set to Mail and hit ^Q I seem to get the
behaviour from Text->Reformat Paragraph, rather than Mail->Reformat
Quoted Text. Can anyone give me a hint as to what I'm missing, or is
this a bug?
Thanks!
Grahame
I am wondering if there are settings that can be adjusted for setting up
printing support in TextMate. I would like to print line numbers and
change the font to a more printer friendly choice. Also (dreaming
here), being able to print landscape on the page in a two col style
would be killer. Any thoughts?
I just added a new feature to the "Show Actions" commands. The html
windows generated now contain a checkbox, using which you can toggle
whether the corresponding action is marked as completed or not. Each
time you click the checkbox it writes on the corresponding file.
It hasn't been checked much, so, you know, make backups and all that.
Any errors encountered will show up in Console.app.
You will need to switch away and back to textmate to see the changes
in the gtd files.
Haris
Hmm, can't seem to find the answer to this question, so here goes.
I want to override certain items in the Textmate.app/Contents/
SharedSupport/Support/ folder into my own local form, so that I don't
loose them each time Allan updates TM. How would I do that ?
Thinking mainly about the items in the css & scripts folders within
there, but even other items. I've tried my own local copy inside ~/
Library/Application Support/TextMate/Support/ and every permutation
of that, but no success.
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
Haven't seen this on the list:
<http://nickgravgaard.com/elastictabstops/>
The idea sounds quite interesting IMHO. Any chances to see something
like this in a future TextMate release? :)
Christian
Hi Andreas,
> From: Andreas Wahlin <andreaswahlin(a)bredband.net>
> It would be nice to get other symbols rather than just =, I smell a
> good JSON cleanup :)
> I suppose you change these two lines?
> relevant_line_pattern = /^[^=]+=/
> column_search_pattern = / *=/
>
> into something .. :/
> How'd you change hat to include at least : (semicolon) into the
> pattern matching?
I don't think just changing the patterns will solve the problem. The
reason I haven't gotten to the align-statements version is I'm going
to need to break the statements on language elements and then compare
those structures across lines to decide where to add spaces. It's
non-trivial. To be honest, I haven't had time to figure out the data
structures, yet. As I said, it's on my shortlist, but it's been a
busy couple of months.
Anyway, the code is AFL, so feel free to make whatever modifications you'd like.
Regards,
Chris.
Hi folks,
Methods w/ Generic return types aren't being noticed as symbols and
so aren't appearing in the symbol list and can neither be jumped-to
with Command-Shift-T
So .. a method like this:
public ArrayList<String> getNames() {
}
won't be recognized as a symbol .. I guess the "<Something>" is
tripping it up.
I've been trying to change the "type" part of the
meta.definition.method.java rule from this:
(\b(void|boolean|byte|char|short|int|float|long|double|(\w+\.)*[A-Z]\w
+)\b(\[\s*\])?)\s* # type
to:
(\b(void|boolean|byte|char|short|int|float|long|double|(\w+\.)*[A-Z]\w
+(<(\w+\.)*[A-Z]\w+>)?)\b(\[\s*\])?)\s* # type
but it's not cutting the mustard.
That definition, btw, is found on line 69 of the java language bundle
by way of copying the Java language definition straight from the
bundle editor, into a normal textmate window.
I tried escaping the "\<" ... but I don't think that's necessary (and
it didn't work)
Any language/regex gurus willing to offer some advice?
Thanks,
-steve
Hi,
I just start using Textmate and find the Reformat Paragraph command a
little bit confusing. When editing a text file, I usually leave two
spaces at the end of a sentence, but after "Reformat Paragraph" it
will leave only one space.
Since I've used emacs for quite a long time, it's natural to compare
with the fill-paragraph command in emacs. The behavior in emacs is
(1) if there is one space after a sentence, fill-paragraph will do
nothing; (2) if there is more than one space, fill-paragraph will
change it to two spaces.
Is there a way to change the behavior of "Reformat Paragraph" to match
fill-paragraph in emacs?
I searched the mail archive and find there was a discussion on
Reformat Paragraph in LaTeX mode. I agree that the current
implementation of Reformat Paragraph is completely useless when math
mode or other enviroment is inside a paragraph. Is anything going to
change for that?
Thanks,
Di
getting this error this morning in the commit window, with I think the
latest checkout of bundles
2006-07-07 10:25:25.826 CommitWindow[943] *** -[NSBundle load]: Error
loading code /Library/InputManagers/SIMBL/SIMBL.bundle/Contents/MacOS/SIMBL
for bundle /Library/InputManagers/SIMBL/SIMBL.bundle, error code 2 (link
edit error code 0, error number 0 ())
Sam D
I am doing this:
grep $TM_CURRENT_WORD references.bib | cut -d{ -f2 | cut -d, -f1
and displaying output as a tool tip to remind me of my BibTeX keys
when entering citations in a document.
It would be fun if there were an Output option "Insert as Drop Down
List" so I could choose from the options that come up and choose to
have one inserted.
Textmate feature request:
Something I've noticed missing, which may or may not be intentional,
is that when using the EDIT > FIND > Find in Project... command -
there is no "status" nor "result message" given.
If I search my project for a string, and my project is fairly large,
Textmate does not show any type of "searching" status message to let
me know that it is still working on fetching the results.
Once my search is complete, and no results are returned, I have no
idea that my search returned nothing, because there is no "There were
no results for this search." type of message.
Perhaps including just the status of the search itself would be
sufficient to solving the second problem.
Version 1.5.1 (1100)
Thank you,
Colin D. Devroe
# http://cdevroe.com/
# http://9rules.com/
# http://chancecube.com/
A new site (version beta for the site and the files latex)
http://altermundus.com/ .html, .tex, .sty .cls only with textmate
Allan thanks !
Alain Matthes
Just to let everyone know,
I just updated the subversion Status window with some crazy new stuff.
If anyone has any errors or problems, let me know.
thomas Aylott—subtleGradient
Howdy
Does anyone other than me find it strange that the Ruby syntax
doesn't even handle basic stuff like keyword operators?
Don't get me wrong, it's one of the most touched language syntaxes
out there.
It finally just got folding the other day :-/
Anyway. I added a few things to Mats Experimental Ruby & Rails Ruby
language syntax[1] and made my own version of it[2]
Mostly just cosmetic stuff.
I also updated my Brilliance Black theme[3] to color the new stuff i
added.
I had been waiting for language injection, but i just couldn't stand
all the gray anymore.
Eventually i'm going to add a Ruby.bracketed language to add nested
group coloring and junk ala javascript bracketed[4]
To actually use this new Ruby Experimental Extra syntax[2] you'll
need to already have Mats Experimental Ruby & Rails Ruby language
syntax[1] installed.
Well anyway, enjoy.
If anyone has any objections with my adding this stuff to the
official ruby syntax, speak now.
[1] http://comox.textdrive.com/pipermail/textmate/2006-May/010382.html
[2] http://textmate.svn.subtlegradient.com/Bundles/Rails%20Extras%
20subtleGradient.tmbundle/Syntaxes/Ruby%20Experimental%
20Extra.tmLanguage
[3] In the official TextMate repo
[4] http://textmate.svn.subtlegradient.com/Bundles/
thomas Aylott—subtleGradient
I'm trying to use Filter Through Command, but it doesn't seem to be
working right. For example:
1. Create a new document and add the characters "ABCXYZ"
2. Select all text
3. Go to the Text > Filter Through Command dialog
4. For the command, enter "tr -d X"
5. For the input, choose Selection
6. For the output, choose Replace Selection
7. Click Execute
Expected result: The selection changes to "ABCYZ"
Observed result: Nothing changes
Is this a bug, or am I doing something wrong?
Note that the command appears to work for other output choices (e.g.,
Show as Tool Tip). It's only the Replace Selection option that's
giving me trouble.
Trevor
I am not sure if this is the correct place to post this request
I am using the combination of the Latex, Sweave & R Textmate bundles
for my project.
My main project fie is a latex file which calls include files that
are tex files created by Sweave.
Essentially, I do almost all the work in the Sweave mode which
compiles my main tex file when I CMB-B it. My problem is that when
I CMD-click my synched TeXniscope file I end up being taken to the
intermediate (tex) file that Sweave created. Since this looks so
similar to my sweave file I at times end up editing that tex file
rather than the sweave equivalent (snw) when in reality I should be
in the Sweave as the true source to edit.
Is it possible for the TeXniscope sync to go to the Sweave (snw)
source file rather than the tex equivalent in this case?
Thanks in advance.
Danstan
Haris -
Sometimes it would be handy to put some note or comment in a gtd
file, such as short project description, or whatever. Is there
already a way of doing this, eg.
project foo
-- Goals and results/deliverables of the project
-- Other info
-- ...
@email ...
@errand ...
end
Thanks and regards
- Stefan
Hello all,
I haven't been following much the excellent work that Mike Mellor
has been doing with the GTD bundle, but I've had my own ideas of how
GTD should be done in TextMate, so I've created another GTD bundle
that's closer to my philosophy. You can find more about it, and
download it, here:
http://skiadas.dcostanet.net/afterthought/2006/06/20/yet-another-gtd-
bundle/
Enjoy, let me know in what ways it is lacking.
Haris
Hello :)
With the last version of TextMate 1.5.2 1128, now when when I go from
a file to another in a project, i've the multicolor wheel...some seconds
Perhaps it's the time to put the caret at the good position ??? i
don't know but is it possible to stop this new feature ???
How ?? thanks
Alain Matthes
Hi all,
I am new to TextMate. Just downloaded TextMate 1.5.2, dragged it to
my Application folder on Mac OS X 10.4.7, and I wanted to start
experimenting with Rails bundles.
Should I be able to do Command+Option+Shift+Down from an
ActiveController action and receive a Go To context menu? Well, it
just doesn't happen as expected on my MacBook Pro.
I don't have any fancy setting and I haven't change TextMate default
config. I haven't buy a license. I thought I'll give myself 30 days
evaluation to see whether my productivity improves with TextMate. Is
this the culprit, it doesn't work because I haven't register my
TextMate copy?
FYI, I can invoke the context menu using my mouse by going to Bundles-
>Rails->Go To. For example I can go to my view, and it works
flawlessly.
Does 10.4.7 broken the ability? Can anyone please verify the
behaviour I'm experiencing?
More weird facts:
1. From my RHTML file, Command+Option+Shift+Down work as expected. I
see the Go To context menu.
2. From my model file, I should be able to type vuif and press Tab so
TextMate can expand it to validates_uniqueness_of right? Well, sadly
that didn't work too :(
Am I alone? What should I do to get the right behaviour?
Thanks a lot!
John
Is it possible to control font-size via a command or applescript or
something?
----------------------------------------
I guess this is just a work-around so that I can write a command that
switches:
1. Language
2. Theme
3. Font size
in one step.
I use mutt as a mailer, and mail are edited with names like
/tmp/mutt-ratagaz-501-4904-5. Is there a way to teach textmate that all file
whose name matches the pattern /tmp/mutt-* must be openend with Mail bundle ?
--
Erwan
In many Mac apps, you can use the first letter of a messagebox button
to invoke the action and dismiss the messagebox. This would be really
cool in TM, as it is so keyboard oriented. Example:
I open httpd.conf to look at how things are set up on my local server.
Inadvertently I hit a key, marking the file as dirty (edited). Cmd+W
gives me the "Do you want to save the changes you made..." modal
messagebox. The behavior I'd love to see is for D or Cmd+D to mean
"Don't Save Changes".
Is there any way to accomplish this?
Thanks,
--s.ross
Allan,
do you think you could change the filter list in the bundle editor so
there is a chance for bundle developers to provide a short
description of each bundle? Either via ToolTip or an extra column in
that listing?
And speaking of cool stuff for bundle developers: is there any chance
of having bundle developers create custom file icons? ;)
Dan
When I write LaTeX files I run "Typeset & Preview" quite alot, and
therefore was annoyed by the fact that I manually have to scroll the
preview window to the current line in my TextMate.
Hence I customized the "Typeset & Preview" command using TeXniscope's
quite useful AppleScript interface. I replaced the line
--- start ---
open -a "$V" "$PDF"
--- end ---
with
--- start ---
open -a "$V" "$PDF"
osascript << EOF
tell application "TeXniscope"
refresh the front document
the front document goto line $TM_LINE_NUMBER of source "$TM_FILEPATH"
end tell
EOF
---- end -----
Perhaps you find that useful.
Michael,
i saw in the change logs that you added these patterns to the Rails
bundle. But your changes did not come through for some reason...
Could you pls resubmit? Thank you.
Sebastian
On Jul 2, 2006, at 5:47 PM, Sebastian Friedrich wrote:
> the new Ruby folding patterns Allan added are really useful, but
> why are they not inherited by the ruby.rails scope? could anybody
> with commit rights fix that? Thanks. Sebastian
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
I haven't seen this reported before, but when I fetch a post in the
blogging bundle (from wordpress 1.5), the top of the file has this:
> 2006-07-01 20:23:44.729 CocoaDialog[17281] InputManagersManager
> startup
> 2006-07-01 20:23:49.061 CocoaDialog[17282] InputManagersManager
> startup
> Type: Blog Post (HTML)
which is gonna break things, no?
-ryan
Hi,
I have the unfortunate job of writing a bunch of Windows Script
Components (psuedo COM objects written in scripting languages). In my
case, it is just some VBScript wrapped in some XML.
I hacked up a really lame VBScript bundle by basically ripping off
the ASP bundle. What I would like to do is have the VBScript portion
of the XML file be treated by TextMate as VBScript.
The script portion of the document looks like this...
<script language="VBScript">
<![CDATA[
' VBScript here.
]]>
</script>
Can I get some help from the bundle gurus please :)
Thanks,
LD.
I often need to import data into R using the read.table command, but
my data files have header and footer information which shouldn't be
parsed by read.table. Here is a script which takes selected lines
from the active document and imports them to R using read.table:
-----
header_row_grep_text="run"
ignore_lines_at_end=2
# Find the header row, which always (and uniquely) contains the text
specified above.
X=`grep -n $header_row_grep_text $TM_FILEPATH | cut -f1 -d:`
# Determine the number of lines in file.
Y=`wc -l $TM_FILEPATH | cut -c 1-8`
# Tell R to read the data in this file, starting with line X which
has the variable names.
osascript -e 'tell application "R" to activate' -e "tell application
\"R\" to cmd \"data <- read.table(\\\"$TM_FILEPATH\\\", header=TRUE,
sep=\\\",\\\", skip=`expr $X - 1`, nrows=`expr $Y - $X -
$ignore_lines_at_end`)\""
-----
I have a more detailed explanation here: http://love.agent.ie/
articles/2006/07/02/sending-simulation-output-to-r
-Ana
Here is a slight modification of one of the R Bundle commands which
lets you send a file to be processed the R GUI. I started with the
built-in “Send selection to R” which looks like this:
osascript -e 'tell application "R" to activate' -e "tell application
\"R\" to cmd \"${TM_SELECTED_TEXT//\"/\\\"}\""
I replaced $TM_SELECTED_TEXT with source("$TM_FILEPATH"):
osascript -e 'tell application "R" to activate' -e "tell application
\"R\" to cmd \"source(\\\"$TM_FILEPATH\\\")\""
I have a more detailed explanation here: http://love.agent.ie/
articles/2006/07/02/passing-scripts-to-the-r-gui
-Ana
Hi all,
How are you guys managing svn properties while using TextMate?
Currently I drop back to the command line which is a tad
inconvenient. I haven't seen any way to modify properties from within
textmate, is there a way?
If not, what have you found to be an efficient way of modifying SVN
properties on version controlled files?
Thanks,
Luke.
The help file says ...
it is imperative that you set up the variable TM_GTD_CONTEXT to hold a
space-separated list of all the context you want to be using.
I'm sure how one does this must be obvious, since so many people are using
the (nice looking) bundle. Unfortunately, I'm one of those for whom the
obvious is sometimes obscure. How and where does one set up the variable?
Please?
Lewy
Hi Haris,
Thanks for your reply. For the heck of it I changed the output for
"Show All Next For Context" to New Document so I could see the HTML
it's generating, and noticed that the table does not specify a
class=grayscale (or any other).
Not sure if it's related but I'm also getting these error messages:
1) "Review" displays
"/tmp/temp_textmate.pg8Yyt:7: undefined method `process_directory' for
GTD:Module (NoMethodError)"
2) "Project Statistics" displays
"/tmp/temp_textmate.P7UfrN:4:in `require': No such file to load --
lib/dialog (LoadError) from /tmp/temp_textmate.P7UfrN:4"
FWIW, here's what "Show All for Context" looks for me:
http://nkvt.com/images/GTDAlt_screenshot.jpg
Many thanks for any help you can offer,
- Dave
> On Jul 1, 2006, at 9:27 AM, Charilaos Skiadas wrote:
>
> The GTDAlt bundle indeed uses the default.css file that lives in
> $TM_SUPPORT_PATH/css/default.css
> More particularly, the table has class="grayscale". Not sure why
> your changes were not visible.
> I've thought of allowing custom css files, but it hasn't happened yet.
>
> Haris
For those of you using the GTDAlt bundle, I want to apologize for all
the problems you may have had if you updated it since last night. I
rewrote the main engine and as a consequence broke pretty much every
command. The latest update is more or less fine. Let me know if there
are still any problems.
Also please make sure you don't have any local modifications that
might be affecting the behavior of the commands.
Haris
I've been using and really liking the new GTDAlt bundle. I'd really
like to change its output to give it a little more whitespace between
the columns. I tried styling the td tag in the default.css file, but
it did nothing.
Does the GTDAlt bundle (or the standard HTML output window) use
default.css or some other CSS file? If not, is there a way to
persuade it to use one?
Many thanks,
- Dave Winzler
love textmate, it's always lacked in CVS support, you add features
that are the easiest to add like subversion or other weird libraries.
But not the ONE thing that is a show stopper for almost everyone.
Every office USES CVS? Why can't this be the #1 priority of textmate?
Textmate as an editor is nothing without CVS support. I hate having
to use BBedit, to browse CVS, or textwrangler, then switching back to
textmate.
The one and only thing the developers should focus on right now is.
CONNECTIVITY.
who agrees with me? we your customers want CVS support, and SFTP,
FTP, and networked support, and not through some third party client.
You want to make textmate the worlds best editor? Add in features
that crappy clients like eclipse or zend developer environment have,
that let you browse and commit to the CVS trunk, and roll back.
Anyone who wants, and thinks this is the most important feature of
textmate (aside from being a text editor) please comment and show
your support. I'm personally willing to donate an extra $500 for
seemless CVS intergration, not that crappy bundle that's going around.
As a user interface designer, I could even help you design the
sidebar for browsing CVS, subversion, and feature sets. But everyone
is EDITING files online, it shouldn't be hard to intergrate, there
are SO many free libraries for unix that you can use!!! especially
for the sftp, and so forth, you don't have to re-invent the wheel.
Pleeeeeeease..
Best Regards your loyal customer,
court kizer
Tabs to Spaces and Spaces to Tabs are without keyboard shortcuts.
Allan Odgaard said he would consider giving them shortcuts if he knew
what shortcuts to use. [1]
I'm thinking Command+Option+Shift+S for Tabs to Spaces and Command
+Option+Shift+T for Spaces to Tabs. These seem to be available (but I
have no idea how to be sure).
Does anyone have a better suggestion?
Trevor
[1] http://macromates.com/ticket/show?ticket_id=48DA378E
Ok, this is off topic, but since most of you are coders, and some
probably have done this already (and kept their scripts), I was
wondering if someone of you have a script that does the following
(perl og php preferably):
1. Reads stringparts to be replaced from one file, one string is one
line
2. Traverses a file hierarchy and does a regexp with the stringpart
as the search argument
3. Writes changes back to the files, preferably with a log for
changed files
If you have anything similar, please drop me a line or reply so I
don't have to reinvent the wheel here :)
Cheers,
Egil
--
egil helland / it consultant (mcse, web technology)
web: ikon.as / egil.net mob: +47-91315555
Here's a quick patch to add a New Note snippet:
${1:note comment }<${2:http://}>$0
I was confused at first that Ctrl-L wasn't working on links, but
after reading the code a bit, I realized that you have to enclose the
link in angle brackets. This snippet makes it a bit more convenient
(and obvious). Bound to Ctrl-N on a note line.
Thanks for the nice bundle! Just started using it. One small note,
however: I can't get the @ snippet to fire. I can do '!' then Tab to
create a project, then '@' to start an action, but the '@' doesn't
fire. Possibly a scope problem, or am I misusing it? The Enter
trigger works fine though (as does the gear menu).
John
--
John R. Sheets
http://bark.metacasa.net
http://homepage.mac.com/donbriggs/
> Suite Modeler is an application for Mac OS X Cocoa developers who
> wish to implement AppleScript support in their applications and
> frameworks. Using Suite Modeler, a developer can focus on the
> concepts and rely on Suite Modeler to get all the details right.
This sounds like a Good Thing, but I am quite new to Cocoa programming.
I believe that TextMate would benefit from some kind of general
script-ability, and if it can get AppleScript relatively easily via
Cocoa framework foo then so much the better...
Regards,
- boyd
Boyd Waters
Socorro, New Mexico
Hi,
This is the first time ever I post something in the mailing list, and
I have to say that Texmate is an awesome tool, I have a crappy
English and stuff; anway, I have a problem with the blogging bundle
and I'm not really sure if this is the right place to discuss about
it, by the way I really love it and I've been using to replace ecto,
so the thing is... I can't tell if this is a bug or is not even
included in the features of the bundle but, when I try to set a date
different than the current one, and publish the post, the bundle just
changes back to the current. I have tested this on a Blogging
Markdown template, with a Wordpress setup.
Best regards,
Edmundo Hidalgo
agkamai [at] gmail [dot] com
Life: http://agkamai.org
Work: http://vivirmexico.com | http://hipertextual.com
Hi everyone,
What I want to do is have some of the SVN commands (not CVS, sorry
couldn't resist) operate on the selected directory in the project
drawer. It seems that some do and some don't. Quite possibly I am
just not doing something right to make it happen aswell.
SVN status is the command that springs to mind, despite my best
efforts, it always operates on the whole project. From memory, the
previous version I had (I currently have 1.5.1 (1100) and I only use
official releases) allowed me to do this by selecting the desired
directory in the project drawer and making sure the drawer had focus.
Any clues as to what I am doing wrong or is this how it works now?
Cheers,
LDaley.
Hi all,
I put together a [CTags.tmbundle][1] for easy double-click
installation in recent (cutting edge) TextMate versions.
The CTags bundle allows you to quickly look up function definitions,
variables etc. It uses the Exuberant CTags program to generate a list
of definitions, and presents any match for the current word when
invoked.
Allan, if you give me access to the bundle repository I'll gladly
submit and maintain this bundle.
Gerd
[1]: http://gerd.knops.org/files/CTags.tmbundle.zip
> You could write an applescript that causes Preview to close the pdf
> and then open it again; using this script as the command called from
> Textmate.
See my "Reload Preview Document" script:
http://vocaro.com/trevor/software/applescript/
Trevor
Hi,
I'm new to TextMate, I really like it and am using it mainly for
writing with latex.
for
TM_LATEX_VIEWER
I had usually set
texniscope
until I ran into problems with texniscope in the combination with my
custom made bibliography style (which uses babel). Then I switched
TM_LATEX_VIEWER to preview, and that works ok, except, that I have to
close it before I compile latex. If I don't close it the changes made
with the new compilation won't show up.
Is there somewhere in preview the option to "refresh the view", so
that the changes in the pdf file appear?
Is it possible to use Acrobat Reader or Professional or any other
program as pdf viewer with TextMate, and what would be the correct
value for TM_LATEX_VIEWER? (side note: I looked in google, and all I
have found is TextMate in combination with preview or texniscope...
why is that?)
One could argue, I should change/make a new bibliography style file,
in order to make TextMate work with Texniscope, however I would like
to keep it for now, if I could resolve the "refresh" issue with a pdf
viewer. Or would you say texniscope is the way to go?
Thanks for your help,
Claus
I'd imagine that if the key combination was mapped to another app then I'd
see it working in that context. However I've not installed Huevos and have
tried just running the system and TextMate and the problem persists.
I've checked with a couple of other people here who use textmate - we all
have the same set-up - and it doesn't work for them either ??
Cheers,
Simon
>Did you recently install Huevos? That's the default key stroke for
>that particular app.
>Derek
On Jun 28, 2006, at Jun 28, 200610:38 AM, Simon Gregory wrote:
> I often use ctrl-esc to pop-up the bundle list from the project
> window. On
> my G5 tower it stopped working a couple of revisions (ish) ago, yet
> it's
> fine on my powerbook. I'm sure this is a simple conflict but I've
> already
> looked in all the obvious places for a solution - ie keyboard and
> mouse
> prefs pane, quicksilver triggers. Does anyone have any idea what the
> problem might be?
>
> Thanks,
> Simon
[I'm copying the list back in on this exchange, since it now includes
a full resolution.]
On Jun 28, 2006, at 9:07 PM, Allan Odgaard wrote:
> On 29/6/2006, at 2:37, Jonathan Ragan-Kelley wrote:
>
> > [...] The simple solution: copy KeyBindings.dict to
> > ~/Library/Application Support/TextMate/, and optionally merge with
> > my one existing custom TextMate binding (^space => nextCompletion:),
> > and bam -- ^q, ^r, ^u, etc., etc. all work now, where before they
> > didn't.
> That would imply that it didn't successfully read the one
> inside TextMate.app, as it simply merges the various key binding
> files found, well, with the exception that if one is found in
> ~/Library/AppSupport/TextMate, the default one is skipped.
>
> Could it be you had a dummy/empty file there?
Nope, I just misunderstood the usage until I read your "well,
exception" and double-checked to find:
> You can copy this file to ~/Library/Application Support/TextMate
> and edit it, this will then take precedence over the bundled file.
in the manual. This is at odds with the normal behavior of
~/Library/KeyBindings relative to the system bindings (it only
overrides those it sets -- its mere existence doesn't blow away all
bindings), so I somehow missed this, and just had a skeletal set of
extensions and modifications in my TextMate user keybindings. Also,
using KeyBindingsEditor's built-in "Open TextMate user keybindings" to
get an empty Application Support/TextMate/KeyBindings.dict doesn't
help matters.
So the simple answer is "RTFM -- very, very carefully."
Thanks.
-jrk
hi,
I am trying to figure out how to do an emacs-like highlighting of the match
of a paired character such as a paren. I feel sure it must be supported in
TextMate but somehow I just can't run it down in the documentation. Is
there a way to do this?
[I am aware that things can be configured so that there is a brief flash on
the opening paren when the cursor moves over the closing paren, but I am
looking for a way to indicate the match more obviously and less
transiently. Also, the flash only seems to occur when the cursor is on the
closing paren, not the opening one, and I want to be able to find the match
in both directions].
When I press ^q in all modes I've tried (C++, Plain Text, Markdown,
...), I first get nothing. Then, on the second press, my selection is
obliterated and a space inserted. If I try this with no selection, I
consistently observe that the only ^q-related binding seems to be
something like: ^q ^q --> insertSpace. (The menu command works, and
is labeled, as expected.)
However, there are no references to "q" with any modifier anywhere in
any of my keybindings files, so far as I can tell.
I've spent months unable to use ^q for Reformat Paragraph, and always
assumed it was a stray keybinding on my aging OS install. I've since
gone back and rebuilt my profile from scratch on a new machine, with a
totally fresh bundles checkout and I carefully moved a select few
keybindings. Unfortunately, I failed to do it slowly enough to notice
when ^q ceased functioning.
Has anyone else observed this? Clearly something or someone,
somewhere has jacked ^q without my knowledge, but I can't for the life
of me figure out who or what.
Many thanks.
-jrk
> > So in the svn bundles for todo I started to get the following error
>
> Is this with a stock r1103/1112? or do you have a bundles checkout?
> If the latter, you may want to update the Support folder, as a broken
> version of textmate.rb temporarily made its presence there, but was
> since reverted.
>
> Perfect! thanks, I did still have the bad textmate.rb from the repository.
I just checked a fix into svn that adds 'next week', etc to the options allowed by the date parser.
Rather than reinvent the wheel, has anyone seen or is anyone interested in doing a Ruby port of Datebox?
http://dateb
From: Benjamin Jackson <ben(a)incomumdesign.com>
X-Mailer: Quicksilver
Content-Transfer-Encoding: 7bit
Date selection with GTDAlt bundle
I just checked a fix into svn that adds 'next week', etc to the
options allowed by the date parser.
Rather than reinvent the wheel, has anyone seen or is anyone
interested in doing a Ruby port of Datebox?
http://datebox.inimit.com/
Best to all,
Ben
I have read in older threads from the list about issues with
subversion and project files lying outside of the root folder of the
subversion project, but I am having difficulty getting the "Update
Entire Project to Newest" to work. Specifically, that menu option
never shows up, regardless of where I have my tmproj file in relation
to the local svn files. Any idea what I'm doing wrong?
The Help file mentions that the folders need to be beneath
TM_PROJECT_PATH and I can't find that environment variable anywhere.
TextMate's Help mentions TM_PROJECT_DIRECTORY--is that what the SVN
help file means? And if so, do I need to manually set it, or is it
set when I have a saved tmproj open?
So in the svn bundles for todo I started to get the following error
/Users/sdevore/Library/Application
Support/TextMate/Support/lib/textmate.rb:32:in `initialize': cannot convert
Hash into String (TypeError) from /Users/sdevore/Library/Application
Support/TextMate/Support/lib/textmate.rb:32:in `new' from
/Users/sdevore/Library/Application
Support/TextMate/Support/lib/textmate.rb:32:in `load_pattern' from
/Users/sdevore/Library/Application
Support/TextMate/Support/lib/textmate.rb:7:in `initialize' from
/Users/sdevore/Library/Application
Support/TextMate/Support/lib/textmate.rb:79:in `new' from
/Users/sdevore/Library/Application
Support/TextMate/Support/lib/textmate.rb:79:in `each_text_file' from
/tmp/temp_textmate.7Uqkdz:32
what did I mess up?
In xcode their is a quite handy feature called jump to defintion when
control clicking a class or whatnot... It will then jump to view to
what ever file that class is started in..
Does anyone know of this kind of plugin for textmate ??
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I was wondering if anyone has asked, or if I missed how to do this.
Is there a way to write a preference so that themes can be tied and
auto-loaded to particular bundles? For example, using 'slate' for
writing perl, but when I switch to blogging it automatically could
switch my theme to expresso and then to Twilight for LaTeX.
Thanks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFEobMY0ZwlS5OIzRcRAlnLAJ9c2tZ266x7RwiaZ61nsp1EU3LAvgCeKNGH
S49vyZ5N7dd25wd2TVPqkTU=
=HPxa
-----END PGP SIGNATURE-----
Hi,
I'm sorry if I missed this somewhere in the list or wiki, but I
couldn't find it.
If I use "Edit in textmate" to edit text field from another app, is
there any way to alter the save function (or to make another key
command) to automatically format the markdown text and send back the
formatted version. Currently, I write the markdown, preview it in
textmate's window, copy and paste it back into the original app. It's
not that much work, but I was thinking that if it could be automated,
I'd probably use it more often.
Thanks for any advice
Jeff
I get the following error when trying to fetch a post from a
serendipity v1.0 blog.
/usr/local/lib/ruby/1.8/xmlrpc/client.rb:552:in `do_rpc': Wrong
content-type: (RuntimeError)
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
[lots of xml snipped ...]
</methodResponse>
from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:420:in `call2'
from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:410:in `call'
from
/Users/stephen/Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:31:in
`getRecentPosts'
from
/Users/stephen/Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:542:in
`fetch'
from
/Users/stephen/Applications/TextMate.app/Contents/SharedSupport/Support/lib/progress.rb:11:in
`call_with_progress'
from
/Users/stephen/Applications/TextMate.app/Contents/SharedSupport/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:541:in
`fetch'
from /tmp/temp_textmate.v2ZuUO:3
I'm using cutting edge textmate 1112.
I can connect to the serendipity blog using ecto using the metaWeblog
api. Here's the endpoint I am specifying in Setup Blogs:
http://username@blog.concord.org/serendipity_xmlrpc.php
Thanks for any pointers.
--
-- Stephen Bannasch
I often use ctrl-esc to pop-up the bundle list from the project window. On
my G5 tower it stopped working a couple of revisions (ish) ago, yet it's
fine on my powerbook. I'm sure this is a simple conflict but I've already
looked in all the obvious places for a solution - ie keyboard and mouse
prefs pane, quicksilver triggers. Does anyone have any idea what the
problem might be?
Thanks,
Simon
I tried and failed to get the Blogging bundle working on either of my
two computers yesterday. It's not the failures themselves, though,
that's prompting my inquiry today, it's that the failures were
different. Different behavior and different error messages. I've run
into this in the past: a month or so ago, one of my TMs wouldn't
preview Markdown documents because it couldn't find SmartyPants.pl.
Apparently, my two copies of TM are out of sync in some way, despite
being the same version (1.5.2 [1112]).
I'd like to know the best way to resolve this difference. My guess is
that the simplest way is to
1. throw away my current copies of /Applications/TextMate;
2. throw away my current copies of Library/Application Support/TextMate;
3. install new TMs from a fresh download.
I do have certain snippets, macros, and commands of my own that I'd
like to retain, so I would *not* throw away ~/Library/Application
Support/TextMate. Does this procedure make sense?
I suspect that my out-of-sync issue came about because I used to use
SVN to get new bundles whenever I happened to think of it, but now I
use an automatic Software Update to Cutting Edge. For my own
edification: When TM does a Software Update, do the new bundles go
in /Applications/TextMate/Contents/SharedSupport/Bundles? If so, and
if I'm going to use automatic Software Update instead of SVN, is
there any need for /Library/Application Support/TextMate/Bundles?
--
Dr. Drang
In the Markdown bundle, the Generate Output and Open Browser Command
is bound to control shift o. So is Open Terminal. But instead of a
menu showing both options, control shift o in a MultiMarkdown
document opens an html version of that document in an external
browser. Is there a way (other than browsing through the gear menu,
or customizing the keybindings) to access the Open Terminal in a
MultiMarkdown document? I would prefer to see a menu with both
options, if both should reasonably be bound to the same key. Is this
a scope issue?
All the best, Mark
I'm getting the error shown below when I type:
mate file.txt
The only information I can find relates to Locomotive. I'm using Ruby
on Rails, but not Locomotive. Any thoughts on how to remedy this
problem?
Thanks
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in: /opt/local/lib/libJPEG.dylib
Hello Allan,
I read today on the Red Sweater blog that Suite Modeler is now free.
"""
Don Briggs has announced that his highly-acclaimed Suite Modeler
application is now free. I haven’t used it but many people suggest it
greatly reduces the pain of adding scripting support to Cocoa
applications.
<http://www.red-sweater.com/blog/links/89/suite-modeler-now-free>
"""
I thought it might interest you (and maybe the rest of the list).
Suite Modeler
<http://homepage.mac.com/donbriggs/>
Cheers
-Emmanuel
--
Emmanuel Décarie / Programmation pour le Web - Programming for the Web
<http://scriptdigital.com/> - Blog: <http://blog.scriptdigital.com> - AIM: scriptdigital
The bundles are fun and all, but with so many of them, sometimes I
press the wrong key combo, and something crazy happens, and everynow
and then I'd like to know what I did.
So, is there an easy way to know what I just triggered?
If not, how about using a growl notification to display the name of
the bundle command?
Allan,
Is it possible to get some type of status indicator on the Find in
Project window? It's a bit weird, and freezes some times (or appears
to) when im searching, and i'd love a quick indication if it's done
or not, esp. if I have just tabbed to another window or something.
Regards,
Eric
Hi all,
I'm new around here, so before I ask my first question I just thought
I'd say... HI! :)
I recently built a bilingual (English/French) website using TextMate.
This was the first bilingual site I've built using TextMate (I use to
use Dreamweaver ... ack!). Everything went well, except for the
content population phase -- when it came time to put the French copy
in, any and all accents in French content (like à, è, etc.) would
render as weird characters (or sometimes question marks) when the
page was viewed in a browser. I just can't figure this out...
- I changed the "File Encoding" setting from UTF8 (TextMate default)
to Latin 1 (Dreamweaver default). No dice.
- I checked my HTTP headers on the server side and all appears to be
okay.
- I checked my XHTML meta tags and they're good too!
This seems to be happening with all files (HTML, ASP, PHP), and the
weird thing is that I can open the ~same file~ in Dreamweaver, put
the content in place, save it, and it works fine. Does anybody know
what's going on? HTML entities work, but for text-heavy French sites
it's not feasible to transform all of the accented characters into
entities (time-wise).
Thanks in advance!
Dan
Hi list,
I have a command that creates a new (untitled) document with some
content I'm temporary interested with (why I did create that
command). Then if I double-click a file from the finder or open/mate
a single file from the terminal the untitled doc's window is used for
that file so that I loose the old content!
Notice that ⌘-N 'ed documents, while unmodified, are also used that
way.
Someone else?
Sylvain
I am getting the following error when using the Add List Item command
in the Markdown bundle:
/Library/Application Support/TextMate/Bundles/Markdown.tmbundle/
Support/lib/markdownhelpers.rb:41:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of file[]' for
nil:NilClass (NoMethodError)
from /tmp/temp_textmate.ozr6CO:13
I am using TextMate 1.5.2 Version 1.5.2 (1112).
Thanks in advance. All the best, Mark
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Just added/modified the GTD bundle. Please see my post at <http://
panalaska.org/geek/?p=45> for details.
Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEoNEB4oDM7Rgs0h0RAtESAJ9Yx+Dbvkl5DquzdF4b298e5RzGXgCeLTR1
93FBccZ8GjhYKbUe6nvRLrQ=
=Z4Sl
-----END PGP SIGNATURE-----
I think it's some old 20th Century thing, which has been replaced in the 21st Century by Subversion....
:)
----- guerom00 <romain.guerout(a)stud.unibas.ch> wrote:
> I don't even know what CVS is...
>
> Court K. <lists@...> writes:
>
> >
> >
> > love textmate, it's always lacked in CVS support...
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you
> don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
> --
> This message was sent with an unlicensed evaluation version of
> Novell NetMail. Please see http://www.netmail.com/ for details.
>
> This e-mail is intended only for the named person or entity to which
> it is addressed and contains valuable business information that is
> privileged, confidential and/or otherwise protected from disclosure.
> Dissemination, distribution or copying of this e-mail or the
> information herein by anyone other than the intended recipient, or an
> employee or agent responsible for delivering the message to the
> intended recipient, is strictly prohibited. All contents are the
> copyright property of TBWA\Chiat\Day, its agencies or a client of such
> agencies. If you are not the intended recipient, you are nevertheless
> bound to respect the worldwide legal rights of TBWA\Chiat\Day, its
> agencies and its clients. We require that unintended recipients
> delete the e-mail and destroy all electronic copies in their system,
> retaining no copies in any media. If you have received this e-mail in
> error, please immediately notify us via e-mail to
> disclaimer(a)tbwachiat.com. We appreciate your cooperation.
>
> We make no warranties as to the accuracy or completeness of this
> e-mail and accept no liability for its content or use. Any opinions
> expressed in this e-mail are those of the author and do not
> necessarily reflect the opinions of TBWA\Chiat\Day or any of its
> agencies or affiliates.
--
This message was sent with an unlicensed evaluation version of
Novell NetMail. Please see http://www.netmail.com/ for details.
This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is strictly prohibited. All contents are the copyright property of TBWA\Chiat\Day, its agencies or a client of such agencies. If you are not the intended recipient, you are nevertheless bound to respect the worldwide legal rights of TBWA\Chiat\Day, its agencies and its clients. We require that unintended recipients delete the e-mail and destroy all electronic copies in their system, retaining no copies in any media. If you have received this e-mail in error, please immediately notify us via e-mail to disclaimer(a)tbwachiat.com. We appreciate your cooperation.
We make no warranties as to the accuracy or completeness of this e-mail and accept no liability for its content or use. Any opinions expressed in this e-mail are those of the author and do not necessarily reflect the opinions of TBWA\Chiat\Day or any of its agencies or affiliates.
Sorry to all for the repost about CVS is was an accident., I switched
mailing lists tor textmate to list(a)courtkizer.com when it used to be
kizer(a)courtizer.com, since i want to check my email on the motorola q
and the textmate mailing list is rather long. Also apparently, you
don't see your own posts to the mailing list? Is this a setting I can
change? When I sent my post about CVS access in textmate, it never
shows up in my inbox that downloads all the mail threads about textmate
-Court
Hi All,
Did anything become of the soft wrapping to match current indent level? I
saw some mention of this feature back in April 2005 in the mailing lists,
but can't see a way to enable this feature currently.
Many thanks,
Anthony
-----------------------------------------
*******************************************************************
*******
The information contained in the EMail and any attachments is
confidential and intended solely and for the attention and use of
the named addressee(s). It may not be disclosed to any other person
without the express authority of the HPA, or the intended
recipient, or both. If you are not the intended recipient, you must
not disclose, copy, distribute or retain this message or any part
of it. This footnote also confirms that this EMail has been swept
for computer viruses, but please re-sweep any attachments before
opening or saving. HTTP://www.HPA.org.uk **************************
************************************************
The Comment Selection command in the Source bundle has a bug. (Tested
on the latest repo version.) If you select some markup that has an
empty line, then hit Cmd-/, the empty line will screw up the comment
markers. For example:
BEFORE
</SpeakingEvent>
<SpeakingEvent>
AFTER
<!-- </SpeakingEvent> -->
<!--
--><!-- <SpeakingEvent> -->
If you then try to uncomment by hitting Cmd-/ again, the block's
entropy grows:
<!-- <!-- </SpeakingEvent> --> -->
<!-- <!-- -->
<!-- --><!-- <SpeakingEvent> --> -->
Interestingly, the above problem seems to occur only if the selected
text contains a closing tag (as above).
I tried playing around with the comment.block.xml setting in the XML
bundle but didn't get anywhere. Anybody know how this could be fixed?
Trevor
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks to Allan's blog post, I finally sat down and wrote up the
documentation for the GTD bundle. You can find it here:
<http://panalaska.org/geek/?p=43>
As always, please send me your feedback. Thanks.
Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEn/Q44oDM7Rgs0h0RAsGYAKCjDe78fdhWvrGLHj3njl8qDnsyjQCgxmRr
nSu4huR/dlnXvnrujW3Nv2A=
=P1MZ
-----END PGP SIGNATURE-----
I just noticed a problem when I try to view a list in the GTD
bundle. Here is the error message:
/Users/mike/Library/Application Support/TextMate/Support/lib/
textmate.rb:2:in `require': No such file to load -- plist (LoadError)
from /Users/mike/Library/Application Support/TextMate/Support/lib/
textmate.rb:2 from /tmp/temp_textmate.UY49Xv:18:in `require' from /
tmp/temp_textmate.UY49Xv:18
I get the same message when I try to view a TODO list. Any idea
what's happening? Thanks.
Mike
I'm a Textpattern user and have the blogging bundle working pretty much
perfectly except that I am unable to upload images through TextMate (as seen
in Allan's excellent video). I get the following error:
/usr/lib/ruby/1.8/xmlrpc/client.rb:535:in /bin/bash: -c: line 1: unexpected
EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecall2' from
/usr/lib/ruby/1.8/xmlrpc/client.rb:399:in /bin/bash: -c: line 1: unexpected
EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filenewMediaObject'
from /Users/dylan/Library/Application Support/TextMate/Pristine
Copy/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:708:in /bin/bash: -c:
line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filepopen' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/progress.rb:11:in
/bin/bash: -c: line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of fileupload_image'
from /tmp/temp_textmate.C7OXjI:3
Does anyone have any info on whether or not this is possible? Are there any
workarounds?
Thanks,
--Dylan
Hi,
I'm always getting Validation Errors on my Language Grammar, with the
old style plist bundles validation command:
This is what it returns, and it's always the same:
2006-06-24 08:25:56.870 plutil[2499] CFLog (0):
CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
semicolon in dictionary. 2006-06-24 08:25:56.940 plutil[2499] CFLog (0):
CFPropertyListCreateFromXMLData(): The file name for this data might be
(or it might not): /tmp/TextMate_plist.L7pqfe XML parser error:
Unexpected character { at line 1 Old-style plist parser error: Expected
terminating ')' for array at line 191.
The basic error, that is of interest here, missing semicolon in
dictionary, is untrue.
The bundle Editor will happily swallow the syntax after pushing the test
button, and reformat the code.
I've since then stopped using this command, since I had the Bundle
Editor anyway.
But I've seen that it does that only on very complex Language Grammars.
Possibly a Bug of the plistBundle ?
regards, marios
I frequently find myself wanting to look for a certain pattern or
whatever for a part of a project in Textmate. It would be really
convenient to be able to rightclick that folder in the drawer and do
a "Search within" that folder and all structure below.
Or maybe this type of functionality is allready builtin somewhere,
and I just havent found it?
--
egil helland / it consultant (mcse, web technology)
web: ikon.as / egil.net mob: +47-91315555
I've had a look in the manual but not been able to find any mention
of it. Is there a keybinding for swapping from the editor window to
the project drawer and back?
Also whats the key binding for 'show bundle items menu' - I found it
in the manual but don't recognise the symbol, it looks like a 'reset'
logo?
Thanks
---
Jeremy Wilkins
Ibex Internet Ltd
Parkside Business Park
Parkside Rd.
Kendal
Cumbria
LA9 7EN
Tel: 0845 226 8342
Fax: 08718 729374
http://www.ibexinternet.co.uk/
Hi Folks,
The bundle below can be used to syntax-highlight regular expressions
in Perl and TextMate Language definitions. When viewing a Perl
program, simply change the Language from 'Perl' to 'Perl (RegExp)'.
Similar for TextMate Language Definitions.
Feedback or support for other languages welcome!
Gerd
Hi,
I had a question about the language grammar format and wasn't able to
easily find the answer in the docs or wiki. So sorry if this is a
FAQ somewhere.
I'm looking at the reStructuredText grammar and find that it is not
really working. Try opening the spec itself and you should see areas
where the highlighting is off.
My question is how I put a single-quote (') into the regex for a
match. I keep getting a syntax error (expecting a ;), even if I try
to escape the quote. If I replace the ' with a \x27 I get the error:
too short multi-byte code string
I need to match something like this: [\b'"(\[{<\-/:](`\S[^`]*\S`)['")
\]}>\-:\.,;!?\\\b]
Matt
--
Matt Long mlong(a)acm.org /
mtlong(a)csee.usf.edu
University of South Florida, CRASAR
GnuPG public key: http://www.robothor.com/key.gpgkey
"In mathematics you don't understand things, you just get used to them."
- John von Neumann
Hi users,
Is there a simple way to read the entire input stream using blocking
read(2)? I can select(2) stdin to avoid command blocking but wondered
why not having an environment variable holding the input length like
in a CGI environment ?
Sylvain
Forgive me if this has been asked previously (didn't see anything in
the archives)
Are the latest bundle changes updated as well when software update is
in "Cutting Edge" mode or are you better off periodically checking
them out straight from the svn repo?
Thanks-
Jim
Well, yesterday I discovered TextMate's new blogging attitude --thanks
to Mr. Ale Muñoz's awesome TextMate minicourse at The Cocktail,
Madrid-- and decided to give it a whirl as soon as I arrived home. I
have a weblog hosted in Blogalia.com --it supports Metaweblog API--
and I cannot get to access it, the main suspect seems to be my
username: it has a space in it.
Is anybody using TExtmate's blogging bundle with a username with an
embedded space?
--
----------------------------------------------------
http://www.sobrerailes.com
I've been just trying out RubyCocoa, and I am having problems running
some of the examples from within TextMate. The "Run Script" command
doesn't seem to work properly, for instance with the "HelloWorld.rb"
example.
Has anyone dealt with this?
Haris
Hi, altogether
I finally finished with the Textpattern Bundle.I ran into a couple of
Issues both TM related and about the subject itself.
It would have been definitely needed, that I ask for help or
suggestions on this mailing list, but on the other hand, I can not get
any serious work done, if I not completely isolate myself.
And here it is.
A detailed Article,about the main features of the Bundle
<a href="http://www.consking.com/article/">A detailed Article,about the
main features of the Bundle</a>
DOWNLOADS
TXP TextMate Bundle
TXP TextMate Theme
http://www.consking.com/file_download/19http://www.consking.com/file_download/20
Although I did some testing on a large pile of sample files, feedback is
always appreciated.
It might be a good Idea maybe at some point to put that into the repository.
Let's just see What Allan says first.
regards, marios
Hi,
I'm MAC OS newbie, and I'm giving TextMate a try to code in python.
But afther running the script from TextMate (shift+apple+R) a couple
of times, everytime I open up a new bash shell the same command
execute at startup:
Last login: Thu Jun 22 10:37:33 on ttyp1
clear; cd '/Users/macournoyer/ecole/log620/lab2/src'; 'pythonw' '/
Users/macournoyer/ecole/log620/lab2/src/stats.py'; rm -f ''
Welcome to Darwin!
mac:~ macournoyer$ clear; cd '/Users/macournoyer/ecole/log620/
lab2/src'; 'pythonw' '/Users/macournoyer/ecole/log620/lab2/src/
stats.py'; rm -f ''
I check bash startup scripts: /opt/profile and ~/.bash-profile
I don't know what I did wrong, please help!
Marc-André__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
HI,
i just wanted to try out the SQL bundle but somehow i have problems.
First i found no docs whats the best way to let Textmate find
the mysql binary. He complained that he couldnt find it any of the
mentioned paths, which was basically the PATH env. variable.
Then i created a symlink to mysql binary into ...SQL.tmbundle/Support/
bin/
With that i was able to "Execute line with query" but with "Table
Browser" i got this:
Traceback (most recent call last): File "/Users/marclogemann/
Applications/tools/TextMate.app/Contents/SharedSupport/Bundles/
SQL.tmbundle/Support/bin/tableBrowser.py", line 284, in ? sys.exit
(main()) File "/Users/marclogemann/Applications/tools/TextMate.app/
Contents/SharedSupport/Bundles/SQL.tmbundle/Support/bin/
tableBrowser.py", line 109, in main listTables
(dbName,dbHost,dbPort,serverType,passwd,dbUser) File "/Users/
marclogemann/Applications/tools/TextMate.app/Contents/SharedSupport/
Bundles/SQL.tmbundle/Support/bin/tableBrowser.py", line 130, in
listTables mycon = MySQLdb.connect(db=dbName,host=dbHost,port=int
(dbPort),user=dbUser,passwd=passwd) NameError: global name 'MySQLdb'
is not defined
To be honest, i dont know what these _mysql files in there are, nor
it is documented somehwere. So what is the best approach to get this
running?
Furthermore is there a way to display correct encodings for
international characters like german umlaute (äöü)? I get rubbish
when these chars occur.
Thanks.
Marc
Hi
I just noticed that the shortcut for "Expand to Greek Letter" (cmd-
shift-G) collides with the default shortcut for "Find Previous" in
the Edit-menu. Could we change it to ctrl-shift-g maybe?
And I'd like to suggest to add source.bibtex to the scope selector
for this command, so it works in bibtex files, too.
Cheers. Oliver
As of rev 948:
[NEW] Files without extension now open in TextMate (instead of
TextEdit)
when double-clicked in Finder.
True, this is probably what most of us want in theory, but
implementing it this way has undesirable side-effects. For example,
all of your shell scripts are identified as "Document" instead of
"Unix Executable File" and their icon becomes the default blank page
thing.
Anyway, the reason I'm writing is to share steps for getting things
back to normal, in case others are bothered by this as well.
1) Locate TextMate.app and "Show Package Contents" or "cd" into it or
whatever
2) Go into the Contents folder
3) Open Info.plist in your favorite text editor. ;) [I've done
this with
TextMate itself and had no problems.]
4) In the array of <dict> tags for document types, find the one
that has
"****" under CFBundleTypeOSTypes and comment it out (or delete
it). In the
latest version of TextMate (1112), this item is the last document
type and
can be found on lines 781-796.
5) Save the file
6) Run this command (all on one line): /System/Library/Frameworks/
ApplicationServices.framework/Frameworks/LaunchServices.framework/
Support/lsregister -kill -r -domain local -domain system -domain user
(Looks like the kind of thing you would run using "sudo", but
don't because
it won't get your "user" domain.)
7) Stop everything you're doing, make sure everything is saved,
and hope you
remember everything you were working on
8) Log out
9) Log in
Now, not that I don't *love* going through this process with every
cutting-edge update, but could there be a preference (perhaps hidden)
for disabling this behavior? Or could it just be removed? Personally,
I use Path Finder, which allows you to right-click any file and open
with the [GUI] editor of your choice. (It's always the first choice
on the context menu, so it's not as bad as it sounds.) But even if
you're using Finder, you can just drag unidentified files to
TextMate's Dock icon, right? I didn't see a request like this in the
Wiki. Am I correct in assuming I should add it there? Thanks.
Rob
I've got a question/problem about the "Select Bundle Item..." command.
I've been trying to use the dialog, but it does not seem to list all
off the commands in my active bundles. For example, if I type
"Browser" to try to get to MultiMarkdown's "Generate Output and Open
in Browser", the list is narrowed down to "Preview in Browser --
Markdown" and three selections in the [Experimental] HTML bundles.
Likewise, if I try to get to "Tidy" in the LaTeX bundle, the list
only shows "Tidy -- HTML".
I'm running the latest v1112 and have checked out the Bundles and
Support from today.
Is there something I am missing?
Thanks,
Matt
--
Matt Long mlong(a)acm.org /
mtlong(a)csee.usf.edu
University of South Florida, CRASAR
GnuPG public key: http://www.robothor.com/key.gpgkey
Software is like entropy. It is difficult to grasp, weighs nothing,
and obeys the second law of thermodynamics; i.e., it always increases.
-Norman R. Augustine
Hi, I was hoping someone could point out what I'm doing wrong.
I've customized my ActionScript lanugage definition to be "Javadoc aware."
I'm having trouble setting up the foldings regex (being an ActionScripter, I
don't regularly use regex, so maybe that's part of the problem. Can't wait
for AS3, though...).
Here's what I have:
foldingStartMarker = '(/\*|\{\s*$|\[\s*$|\(\s*$)';
foldingStopMarker = '(\*/|^\s*\]|^\s*\}|^\s*\))';
// and later...
{ name = 'comment.javadoc.actionscript';
begin = '/\*\*';
end = '\*/';
},
And here's what happens. I ype "/**". At this point the language
definition knows that I'm in comment.javadoc. I get a downward-pointing
arrow for the top of the code fold area. I've also get snippets set up to
expand /** into
/**
*
*/
and return the caret to the middle line. There is a single space at the
front of the bottom two lines. (I also have it set up to replace a return
press with a return and an asterisk, but that's beside the point) Now, I
don't get the upward-pointing arrow for the bottom of the code fold area. I
just discovered that the space seems to be throwing it off. If I go back to
the closing of the javadoc comment, and remove that initial space, I get
code folding.
So I tried modifying the foldingStopMarker, but with no success. Is there
an easy way to do this? Am I being a moron and doing this completely the
wrong way? I've tried a number of regex's:
foldingStopMarker = '(^\s*\*/|^\s*\]|^\s*\}|^\s*\))';
foldingStopMarker = '(\s*\*/|^\s*\]|^\s*\}|^\s*\))';
foldingStopMarker = '( \*/|^\s*\]|^\s*\}|^\s*\))';
foldingStopMarker = '(^[ \t]*\*/|^\s*\]|^\s*\}|^\s*\))';
And many variations thereof, but with no luck. I may be just
misunderstanding how the foldingStopMarker works in the first place, but if
anyone can point me in the right direction I'd be very appreciative. I like
my asterisk's to line up, and I like my code folding.
Thanks,
Dru
When I run a unit test the results are displayed poorly:
Loaded suite /Applications/TextMate.app/Contents/SharedSupport/
Bundles/Ruby.tmbundle/Support/tmruby Started .F Finished in 0.008257
seconds. 1) Failure: test_outOfRange(TestIntTypes) [/Users/dave/Chips/
DES/bitsteam/decoder/tests/tc_intTypes.rb:40]: exception expected but
was Class: Message: <"uint4 t_uint4 has value: -1 (out of expected
range)"> ---Backtrace--- (eval):4:in `t_uint4=' /Users/dave/Chips/DES/
bitsteam/decoder/tests/tc_intTypes.rb:40:in `test_outOfRange' /Users/
dave/Chips/DES/bitsteam/decoder/tests/tc_intTypes.rb:40:in
`test_outOfRange' --------------- 2 tests, 12 assertions, 1 failures,
0 errors
- it looks like the \n are being ignored. I run the tests by using
command R in the test file.
When I run from the terminal I get:
Loaded suite tc_intTypes
Started
.F
Finished in 0.015976 seconds.
1) Failure:
test_outOfRange(TestIntTypes) [tc_intTypes.rb:40]:
<SyntaxElementError> exception expected but was
Class: <RuntimeError>
Message: <"uint4 t_uint4 has value: -1 (out of expected range)">
---Backtrace---
(eval):4:in `t_uint4='
tc_intTypes.rb:40:in `test_outOfRange'
tc_intTypes.rb:40:in `test_outOfRange'
---------------
2 tests, 12 assertions, 1 failures, 0 errors
Do I have something configured wrong?
Thanks,
Dave.