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