Hello all,
I've been slowly (and I do mean slowly) putting together an ExpressionEngine
bundle over the last several months. It's mainly snippets, but it also can look
up a selected EE tag in the user manual and display it in a small TextMate
window. It has code highlighting, but I'm not sure I've set it up correctly. I
also don't have all the EE tags implemented.
Which leads me to the reason I'm writing this. I've had several people tell me
they'd love to try out the bundle, but I just don't have the time to make this
bundle work perfectly. What I'd like to do is add it to the list of available
bundles and let anyone who wants to make it better. The more people contributing
to it the better it will be.
Again, I'm not sure I've set up code highlighting correctly, so that should be
one of the first things people check out.
One note, EE tags can be used inside of other code (XHTML, XML, CSS, etc). In
order for highlighting to work correctly, I had to add an extra language inside
of the HTML and XHTML bundles called HTML (EE) and XHTML (EE). Is that the
correct way to do it or what?
Anyway, enough rambling. I'm not sure how people feel about attachments in this
list, so I didn't attach the bundle to this message. If someone could tell me
how to add it to the bundles list on the TextMate site or do it for me, that'd
be great. I'm looking forward to seeing how others improve the bundle.
- Chris
Thank you Thank you Thank you for the effort Chris I've been waiting for something like this. :)
Jamie
-----------------------------------
Email: jamie(a)methnen.com
Web: http://www.methnen.com
Sent using Chattermail with a keyboard the size of my thumb so give me a break on the punctuation and spelling. Ok?
-----------------------------------
-----Original Message-----
From: Chris Ruzin <cruzin(a)gmail.com>
Date: Saturday, Apr 29, 2006 2:44 pm
Subject: [TxMt] ExpressionEngine bundle
Hello all,
I've been slowly (and I do mean slowly) putting together an ExpressionEngine bundle over the last several months. It's mainly snippets, but it also can look up a selected EE tag in the user manual and display it in a small TextMate window. It has code highlighting, but I'm not sure I've set it up correctly. I also don't have all the EE tags implemented.
Which leads me to the reason I'm writing this. I've had several people tell me they'd love to try out the bundle, but I just don't have the time to make this bundle work perfectly. What I'd like to do is add it to the list of available bundles and let anyone who wants to make it better. The more people contributing to it the better it will be.
Again, I'm not sure I've set up code highlighting correctly, so that should be one of the first things people check out.
One note, EE tags can be used inside of other code (XHTML, XML, CSS, etc). In order for highlighting to work correctly, I had to add an extra language inside of the HTML and XHTML bundles called HTML (EE) and XHTML (EE). Is that the correct way to do it or what?
Anyway, enough rambling. I'm not sure how people feel about attachments in this list, so I didn't attach the bundle to this message. If someone could tell me how to add it to the bundles list on the TextMate site or do it for me, that'd be great. I'm looking forward to seeing how others improve the bundle.
- Chris
______________________________________________________________________ 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
Here is a useful bundle for testing out ruby snippets. It includes a
script from eigenclass.org[1].
⌘= insert/remove an eval marker for the current line
⌘E evaluates and annotate the file according to the markers
If there are errors they are placed at the end of the file.
Examples (after eval):
(1..10).each do |i|
i ** i # => 1, 4, 27, 256, 3125, 46656, 823543, 16777216,
387420489, 10000000000
end
(1..10).to_a # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Unfortunately you can't do something like this:
(1..10).each do |i|
i ** i
end # =>
[1]: http://eigenclass.org/hiki.rb?xmp+redux%3A+expanding+test
+assertions+for+profit
-- Daniel
Hi there.
When you preview web pages containing iframes that drag in
information from the web, the frame displays as filled with unicode
characters (instead of the programmed content).
You can see this by viewing this email in textmate (cntrl-cmd-E).
Compare that to what you get if you view the email in safari (you
can't just view, as it will have a .mail extension - reveal in finder
and toggle this to html then double click.
<iframe src="http://rcm.amazon.com/e/cm?
t=thewizardsoft-20&o=1&p=8&l=as1&asins=B000BW7QWW�
38;fc1=000000&IS2=1&lt1=_blank&lc1=0000ff&bc1=ffffff
&bg1=ffffff&f=ifr" style="width:120px;height:240px;"
scrolling="no" marginwidth="0" marginheight="0" align=right
frameborder="0">
</iframe>
Last week I posted about a little tool I made to allow editing of SQL
data within textmate.
I've turned this program into a bundle, which you can download here:
http://vivified.net/files/downloads/SQLEdit-bundle-09.zip
See the help command for more information.
It seems to require Ruby 1.8.4, why this is I'm not sure yet. I'm
very much a ruby newbie.
Also, I can't seem to get rid of the HTML output window as I need the
edit process to be run in a separate
window from the main textmate window (otherwise it freezes and I
can't load anything into it). Is there a
way to spawn a new background process, and then end my initial
textmate command process?
Anyway, I'd love to hear if anyone finds this useful. I myself use it
to edit my Textpattern site's templates,
as they are all stored inside the database.
Cheers,
Bastiaan
Just to give back a little, I made a change to the Tidy command in the
HTML bundle (actually, made a new bundle and copied code and changed
it.)
When running the stock Tidy HTML command on an HTML document that was
created by saving a Microsoft Word document as HTML, it completely
deletes the contents document! In my duplicate of the Tidy command, I
added an option for Tidy to know it's dealing with a Word document.
I added: --word-2000 yes to the tidy command in the bundle. The
first few lines now are:
"${TM_TIDY:-tidy}" -f /dev/null -iq -utf8 -asxhtml -wrap 0 --tab-size
$TM_TAB_SIZE --word-2000 yes --indent-spaces $TM_TAB_SIZE
${TM_SELECTED_TEXT:+--show-body-only yes}|\
Now it cleans all of the extra MS junk that's added to a document.
There's still a little clean up to do (it doesn't delete the
<o:p></o:p> useless tags, but that's easy to do.)
Hope this helps someone!
jt
Hi,
I have created a few commands that are analogous to the Subversion
commands which diff against a revision, but instead of generating a
diff output, the result is sent to FileMerge for viewing, which IMHO
is a whole lot easier to read.
The commands look like this:
-------------
require_cmd "${TM_SVN:=svn}" "If you have installed svn, then you
need to either update your <tt>PATH</tt> or set the <tt>TM_SVN</tt>
shell variable (e.g. in Preferences / Advanced)"
require_cmd opendiff "You must install the Apple developer tools to
run FileMerge."
"$TM_BUNDLE_SUPPORT/bin/filemerge.sh" BASE "$TM_FILEPATH"
-------------
filemerge.sh looks like this:
-------------
#!/bin/sh
#
# $1 = svn revision
# $2 = full path to file ($TM_FILEPATH)
# First see if the file is under svn control
FILE=`basename "$2"`
INFO_LINES=`svn info 2>&1 > /dev/null | wc -l`
if [ $INFO_LINES -eq 2 ]; then
echo "The current file is not under subversion control"
exit 206
fi
SIZE=`svn diff -r $1 "$2" | wc -m`
if [ $SIZE -eq 0 ]; then
echo "No difference"
exit 206
fi
INODE=`stat -f "%i" "$2"`
TMPPATH="/tmp/tm-opendiff-$INODE.tmp"
svn cat -r $1 "$2" > "$TMPPATH"
opendiff "$TMPPATH" "$2"
-----------
To create a command for a different revision, change BASE in the
command to something else (e.g. HEAD or PREV).
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
hi,
I know that it has been discussed before -- but I have yet to find the
command or step(s) to effectively translate high-ascii characters -- like
emdashes and smart quotes -- that were written in Word tr html.
I still have stuff like the following:
s in three statesâ€"New Hampshire, Washington, and Coloradoâ€"that are
any tips?
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
Hi all,
Sorry for this - it's probably something very obvious that I'm
missing - it might be a default Mac feature that I'm not aware of.
Here's the situation...
I want to check a file into subversion. I hit Shift+Control+a and
select Commit. I enter my comment in the Summary of changes panel.
Now I want to 'hit' the Commit button without my hands leaving the
keyboard (i.e. not using the mouse). I've tried every key combo I can
think of, but I couldn't find one. Anyone?
P.S. Allan, I absolutely _love_ TextMate. I would buy a Mac just to
use this program.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
I would be very very very very happy if there was a way to have a
TextMate textview totally replace the Xcode editor. I'm sure others
have asked for this, but searching through the list was painful on my
slow-ass internet connection, so I make the request here.
The idea is that you could write a SIMBL wrapper or an Xcode plugin
wrapper (the API, though private, has been documented) around a
subclass of the Xcode TextView (a dump of the framework - used to be
called PBX.framework or some such would garner the class) and then
basically do a poseAs.
I, for one, would certainly be willing to pay for this feature. That
is, I already own TM, and I would happily buy another license for
this product for $40. What are the odds, difficulties, etc of this?
vinayvenkatesh
When I try to execute a SVN command I get this error:
/bin/bash: line 1: require_cmd: command not found
Then most of the commands work fine except for svn status that gives no output.
Any clue? I already checked the various enviroment variables but
everything seems ok.
(I am using TextMate 1.5.1 (961) on Mac OS X 10.4.6.)
I see in the archives that Ke Han asked for a "bracket matching
feature" on 8th March (http://lists.macromates.com/pipermail/textmate/
2006-March/008927.html) wherein a user could double-click on a
bracket to select the enclosing content (ala BBEdit) but that the
only way to reproduce this behaviour is via the shift-cmd B "Select
Enclosing Brackets" command.
Is there any way for me to implement this behaviour as I would
greatly appreciate being able to select the contents of an entire
bracket so easily? If not, is there any chance of it appearing in a
future release of TextMate? My main use would be to quickly identify
where the closing (or opening) bracket for some code lies.
On another note, I have noticed what I believe is a bug when shifting
lines left and right:
Shifting a line to the left moves the cursor one character to the
right and shifting a line to the right shifts the cursor one
character to the left when I expected the cursor to remain relatively
stationary. More noticeably, this means that if the cursor was at the
end of the line and the user shifts left, the cursor goes to the next
line.
Thanks in advance,
-- Paul
> [CHANGED] When erasing a key equivalent (by clicking the X), the
> input control will resign as first responder (i.e. lose focus).
Thank you, thank you, thank you!
> [NEW] It’s now possible to change the key equivalent used for the
> bundle items pop-up menu in the status bar. This is done by setting
> the OakBundleItemsPopUpMenuKeyEquivalent defaults property to the
> key string. The default is "^\033" (control-Escape). This key does
> have very low precedence.
How does one find the key string value for a key? For instance F3. I
found some unicode codes here:
http://hcs.harvard.edu/~jrus/Site/Cocoa%20Text%20System.html
and also this little app that tells you various codes here:
http://www.petermaurer.de/nasi.php?section=keycodes
This program, for ctrl-escape, gave me:
Unicode: 27 / 0x1b
Keys: ^Escape
Key Code: 53 / 0x35
Modifiers: 262401 / 0x40101
And for F3 gave me:
Unicode: 63238 / 0xf706
Keys: F3
Key Code: 99 / 0x63
Modifiers: 8388864 / 0x800100
Are any of these numbers the right thing? I'm worried because I am
not seeing \033 in either of these entries.
Haris
Hi,
A newbie question. Is there any way to choose from keyboards without
arrow keys when I see multiple options.
For example, as in the Manual "5.1.2 Tab Trriggers", in CSS if I type
list and hit tab, I see 8 options. I wanna pick one up without using
arrow keys and a mouse.
Sorry if this is documented in the manual. Thanks for your attention.
Once I found in the Wiki a tip to let TextMate auto add * in C
comments. That is to say when I press return
it goes from
/*
* this is a comment...
ro
/*
* this is a comment...
*
Unfortunately I'm not able to find it anymore.
This was just a "basic" question, since manually adding * and
spaces (tab is "rigid" it adds a fixed number of spaces, it does not
seem to put the "right" number, that is to say the number that is
needed to align with the above content).
A more advanced question is: could a "Doxygen" mode be done?
Is someone doing it?
I suppose it is possible, since it should behave quite like the css
mode inside the HTML mode or something like that?
-enrico
... how I stopped worrying and learned to love absolute paths.
Hey all, new (<24hrs) TextMate user, and as a recovering emacs/Alpha
user, I am *LOVING* this thing. I have hopes for one use of the
Projects that I can't seem to get working, and my investigations make
me think that I'm just trying to abuse the poor things more than
they're intended to be.
Scenario:
I have a large (stable) code base that I'm working with, and am
doing a number of investigations into the code to figure out how the
bloody thing works. It occurred to me that I might be able to use
Projects as a way of tracking these investigations:
1) Drop top folder of source repository on TextMate.
2) Start digging through code, leaving windows open as tabs.
3) When I'm done, I have a list from left to right of the files I
ended up looking at, and the last place I looked in them.
4) Save the project with an appropriate name related to the *topic*
"DataFileSearching.tmproj" for example.
5) At later date, when I need to revisit the investigation, I have
breadcrumbs of where I went, what I looked at, etc. I also have a
timestamp on the Project file of the last time it was worked on. (I
considered using Groups in a Project, but that doesn't give me a
workset, or a timestamp.)
Now the problem... if I move the Project file, it breaks all the
folder references. My first thought was that after step 1, but
before I open any files, I just needed to select the top level in the
Project, Get Info, and then check Save as Absolute Path. I peeked
into the .tmproj file, and yup, a nice absolute path was created for
me. Moving the Project file resulted in it still being able to find
the root of the source tree. Problem one down.
Now for the second problem... if any files are open, and I save the
Project, *those* paths are *NOT* saved as absolute, and instead are
relative to where the .tmproj file resides. If I move the file, I
lose all my breadcrumbs. Bummer.
So this boils down to: am I missing something, or is this a bug to
file?
On 26/4/2006, at 18:25, Plessl Christian wrote:
> [...] Is there a way to implement this in Textmate without either:
> a) modifying all programming language modes with the new rule, or
> b) creating new language bundles C (+fixme), Java (+fixme) etc.
> that include the language definitions for C/Java and add the new
> syntax highlighting rule?
There is not, no. But a solution will appear, and is conceptually
rather simple IMO.
Currently the scope selector is disabled for language grammars, now
imagine it wasn’t, and that selector decided where to inject the
grammar!
That would allow to tear out the PHP, Ruby, and Smarty handling of
the HTML grammar, and instead have that with the language. Likewise
it allows the mentioned FIXME/TODO grammar to be in the TODO bundle,
and be injected based on a scope selector -- disabling the TODO
bundle would then disable this injection automatically.
There is a scope addition which will make this more powerful, namely
exposing arbitrary file attributes in the scope (which scope
selectors can then target), that way, the Java bundle can inject <%
java %> support to HTML files only when the file type attribute is
‘jsp’, and the Subversion bundle can inject the various svn keywords
only when the SCM attribute is ‘svn’.
> Probably I should ask this question on the mailing list, should I?
I cc’ed the mailing list, seeing how others probably would enjoy
reading my reply to this (though I think I have hinted at this
earlier, maybe only on IRC).
I hope to have the file attributes exposed in the scope already in
2.0 (this will then also allow all SCM bundles to use the same key
equivalents), but grammar injection is probably at earlist 2.1 or so…
the technical challenge isn’t that big, but I would also need to
extend scope selectors to allow an injection to stop after a given
depth, so to speak -- and I also need to only focus on one thing at a
time, to actually get anything done :)
Kind regars Allan
Is the functionality of Reformat Paragraph controlled by a bundle?
Specifically, the way it autoindents lines after a * like this:
* Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
I'd like this auto-indenting to occur after a - too.
Q
Hi.
My first post. Since I haven't received any messages from the list yet
(just signed up), I didn't know whether I had to prepend something
like [Textmate] to the Subject line, so I didn't.
I would like to to the delete the current line using Shift + Delete
First Attempt... Macro
Jump to beginning of current line, hit CTRL+K, hit back-delete, press down
This worked OK for a while, but I ran into probems when trying to
delete blank lines, and the carat position is in a less than desirable
place
2nd Attempt... Command
Got pretty far with this one. I read in the entire document into an
array, sliced the line, and set the output to replace the document.
However, couldn't place the carat position anywhere. I believe you can
only define the carat position when inserting as a snippet, not
replacing the document.
Of course, there may be an even easier way to do this, but I don't know it.
Hi,
I don't like pyunit, so use py.test instead. It was really simple to
wire py.test into the Python bundle, but it was also really ugly
using the "Text Window."
Based on some feedback from the IRC channel, and the excellent
example of PyMate, I cobbled together PyTestMate which allows you to
run py.test unit tests directly from within TextMate, and get lovely
formated results from those tests.
It's still a work in progress, but it does work quite well, in fact,
the unit tests for PyTestMate were all written using PyTestMate.
If you'd be interested in taking a look at it please let me know and
I'll forward you the code.
--
Stand Fast,
tjg.
Timothy Grant
As discussed previously on this list, I have made a bundle of all my
Ruby shortcuts and made it available to all. Bundle and detailed
description can be found at:
http://blog.grayproductions.net/articles/2006/04/12/ruby-idioms-
bundle-for-textmate
Enjoy.
James Edward Gray II
I'm new to TextMate and can't figure out how to change the width of indentation.
It's currently 4 and I'd like it to be 2. How's it done?
Also, how can I get TM to insert spaces rather than tabs?
Thanks,
Joe
So I bounced this idea off of Soryu and it seems this hasn't been
discussed much. What if you could add multiple carets to the current
document by command-clicking? I imaging this to work in a way almost
identical to that of the current snippet mechanism. For example:
choose three caret locations, start typing, and in each location your
text will show up. Press tab and the caret will focus in on the
second of the two locations, highlighting the newly typed text (if
any). Tab again and it moves to the third.
It would also be ideal to be able to highlight multiple selections in
the same way--kind of like a powerful replace mechanism. Command-
click and select three words in the document, then type one new word,
and incrementally, all three words change to the new one.
Has this been discussed before? It seems plausible given the
powerful way we can already "insert as snippet" to the document.
Hi,
In my FileMerge bundle support script (Support/bin/filemerge.sh) I
call opendiff. If FileMerge is not already open, 2 seconds after it
launches TextMate displays the spinning beachball. Quitting FileMerge
makes the beachball go away.
I have tried using & to execute opendiff as a background process, but
that didn't help. Any ideas?
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
Hi,
I've been using the bundles from SVN for some time, but have only
just noticed the snippets for django (slow, I know). I've noticed
that the django bundle seems to have syntax for the magic-removal
branch of django. Do the creators of this bundle (Wilson Miner and
Paul Bissex, I believe), have an older bundle which is relevant for
django 0.91? It would be very useful for me (and perhaps others) to
have this.
Best Regards,
David
--
David Reynolds
david(a)reynoldsfamily.org.uk
I keep seeing references to using TM as an external editor for Mail.app and
other places, but I have yet to find the (plugin) way to make it happen. Can
someone post a pointer to the necessary pieces?
Lewy
My switch/case blocks (in Java, for example) normally look something
like this:
switch (foo)
{
case A:
bar();
break;
default:
baz();
}
Note how the lines after "case" and "default" are indented. (They're
not flush with the line above.) I believe this is a pretty standard
formatting convention.
However, it seems that TextMate doesn't know about this convention.
If, for example, you were to type the above snippet, typing "case A:"
and then hitting Return puts the cursor flush with the line above,
rather than indented. Likewise, if you were to take the above
snippet, copy some random text (that has a different indentation),
then paste it between the "case A" and "bar" lines, TextMate's smart-
indent feature makes the pasted text flush with "case A", rather than
indented.
Considering that TextMate is smart about indentation in many other
ways (such as when you type "{" and then hit Return), I was hoping it
could be smart about indenting switch/case blocks, too. Is that
possible? Perhaps there is something I could add to the language
definition? Thanks,
Trevor
Hello,
I've written a small tool that allows you to edit a specific cell (field of a row) in Textmate.
When you save the changed document in Textmate, the database is updated.
For a short clip showing it in action, and the download: http://vivified.net/journal/sqledit/
I've briefly looked into making it into a bundle, after discovering the SQL table browser,
but that has not really materialized yet. Shouldn't be that hard though.
Would anyone be interested in this as a bundle? Rather keep it separate?
Anyone think this is useful at all? :)
Cheers,
Bastiaan Terhorst
Hi, I have done a macro which uses a snippet and a command. The
snippet adds the line:
std::cout << "" << std::endl;
And the command checks if iostream is included (using scopeHandler)
and if not it includes it.
For this to work I have to first run the command and after that
insert the snippet. The problem is that if the command inserts the
#include <iostream> , the caret moves to the previous line, inserting
the snippet there.
I have tried with this line at the end of the command (which is in
Ruby):
`/usr/local/bin/mate "$TM_FILEPATH" -l $CARET'`
but it makes TextMate freeze.
Anyone knows how to do this?
Thanks in advance
José Manuel
Polytechnical University of Valencia
Spain
I can no longer use these handy shortcuts for
<%= ... %>
and
<% ... %>
I've checked the rails bundle and it looks fine. Any ideas?
:-/
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
I sent this already, but I think I sent it slightly before I was added to
the list and I don't see it on the archives.
How does TextMate determine if a particular bundle is applicable to the
files I'm editing? I can insert snippets that are in the Ruby bundle, but
the Rails bundle snippets never expand when I hit tab.
Thanks,
Justin
Hi,
I've noticed that the TextMate Ruby bundle doesn't recognize .rjs file
as Ruby(/Rails), and chooses Plain Text.
I found directions here:
<http://www.memerocket.com/2006/02/10/tell-textmate-about-your-rjs-templates/>
that tell how to modify the bundle to add .rjs. But I'm concerned that
doing so will interfere with doing svn updates to get the latest and
greatest bundle updates.
Is there any plan on adding this to the official Ruby bundle?
Thanks!
jt
I was just watching Allan's latest screencast and wanted to add
support for some of the techniques used in block comments. However,
I noticed that the Javadoc blocks are scoped with
comment.documentation.java. I probably created it that way, but it
seems like it should really be "comment.block.documentation.java".
/*
* this is a block comment
*/
/**
* this is a javadoc block comment
*/
I could scope the snippets for comment.block and
comment.documentation, but I still think the latter should extend
from the former. Is this the desired scope for those types of doc
comments, or was this overlooked?
--
Brian Lalor
blalor(a)bravo5.org
Hi,
I'm new here. Can you let me know the entire list of Emacs
keybindings that work on TextMate?
I found a default Cocoa/Emacs keybidings information at <http://
developer.apple.com/documentation/Cocoa/Conceptual/BasicEventHandling/
Tasks/TextDefaultsAndBindings.html>, but could not open the file
specified (i.e., /System/Library/Frameworks/AppKit.framework/
Resources/ StandardKeyBinding.dict) with appropriate encodings.
I searched this list and wiki, but couldn't get the answer.
Thanks for you attenstion,
Teck
>[2006-04-10: REVISION 961]
>...
>[CHANGED] The scope of the caret is now that of the character to the
>right of the caret, rather than that on the left side.
I have a snippet that inserts a '_' in 'variable.other.php' scopes with
the spacebar. However, now that the scope is that which is to the right
of the caret, it doesn't work!
Shouldn't the current scope be set to "that text which is currently
being typed?" Either way, maybe you setup a pseudo selector to specify
which side of the caret to use, for example:
variable.other.php<
-variable.other.php
variable.other.php[left]
... for left side of caret, and ...
variable.other.php>
+variable.other.php
variable.other.php[right]
...for the right side?
Q
Hi,
I've a project containing about 1.5 M lines of C++ in about 6200 files.
When I try project wise search TextMate crashes on a 2GB MacBook. Is this
to be expected?
Cheers, Fons.
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers(a)cern.ch Phone: +41 22 7679248
WWW: http://fons.rademakers.org Fax: +41 22 7669640
Dear all,
I've recently switched to using mutt to handle my mail, which was getting a
bit out of hand.
As a result, I now use TextMate when writing emails and it occurred to me
that it would be lovely if TM supported format=flowed text.
The basic idea is this: instead of the horrible quoted mess that often
results in long threads, where some lines miss the quoting etc etc.
A full description can be found at http://joeclark.org/ffaq.html, and
technical details at http://www.eudora.com/techsupport/kb/1625hq.html and
http://www.ietf.org/rfc/rfc2646.txt
My question is this: would it be feasible to implement this in TM, either in
the core or as a plugin, so that f=f text can be displayed, rewrapped and
reflowed? I suppose since the format=flowed headers come within the text of
the document, it would make more sense if it were a plugin, to be switched
on and off at will.
Anyone have any comments/suggestions?
Regards,
Nick
i am a relatively new user of Textmate, and have it installed on 2
machines...for some reason, i can use 'command+/' to toggle comments on one
machine, and not the other...i suspect i may have messed it up with an edit
or addition i made in the bundle editor...how can i add this functionality
back?..thanks for any help....
Hi
I searched the archives but didn't see a good answer to this. Is
there a way to map auto-completion from ESC to something a bit more
ergonomically friendly?
thanks,
Rob
--
http://www.robsanheim.com/
Howdy
I code in the K&R style. "the first opening brace on the same line as
control statement"
codeCodeCode {
Code...
}
My co-worker uses BSD/Allman style "the brace associated with a
control statement on the next line, indented to the same level as the
control statement"
codeCodeCode
{
Code...
}
We both have extremely strong feelings about our style. I have
decided to be diplomatic and use his style.
I want to be able to fold on the line before the opening brace "{" .
But I haven't been able to come up with a foldingStartMarker that
works for it.
My guess is that the foldingMarkers are stuck on single line mode.
Can anyone help? This is really starting to annoy me.
Thanks
thomas Aylott—subtleGradient—oblivious(a)subtleGradient.com
Hi,
I have the following rule for a block comment:
{ name = 'comment.block.active4d';
begin = '/\*';
end = '\*/';
patterns = ( { include = '#fusedoc'; } );
}
Within a block comment, the fusedoc rule looks for some xml:
fusedoc =
{ begin = '^\s*<fusedoc ';
end = '^\s*</fusedoc>';
patterns = ( { include = 'text.xml'; } );
}
The problem is that I want the text.xml language parser to parse the
line on which '<fusedoc ' is found. However, it seems that it will
only parse the lines between the begin and end lines.
Is there any way to have the first and last lines of the fusedoc rule
be parsed by text.xml?
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
I'm using TextMate to keep my daily log book - I have a
'Journal' template, language and snippets and it all works
very nicely.
What I'd really like is that when I create a new file from
the template, it immediately gets a filename based on
the date - eg. 060418.txt - so I don't have to enter that
manually when I go to save it.
The template creates the new file in the usual way, by
copying some standard contents to $TM_NEW_FILE.
I was hoping that I might then be able to call osascript
and do something like
tell application "TextMate" to save the document
of front window in "060418.txt"
but it doesn't seem to work.
Any suggestions most welcome!
Hello everyone. I'm trying TextMate out and so far I'm very impressed.
But today I noticed this problem. Apologies if it's well known already:
When I am in overwrite mode (Cmd-Opt-O) and press an opening bracket,
TextMate avoids adding the closing bracket if it would overwrite a non-space
character. This is rather clever. However, when it decides there _is_ space
to add the closing bracket, it mistakenly *inserts* it rather than
overwriting. It kind of defeats the point of overwrite mode, and it's extra
annoying because you have to leave overwrite mode to delete the extra
character again!
Actually adding closing backets in overwrite mode is hardly ever useful,
because if you keep typing you immediately overwrite the closing bracket. My
suggestion would be for TextMate generated the closing bracket but allowed
you to keep typing and "pushed" the bracket to the right (until it reached a
non-space character or you typed the matching bracket). Of course the
pushing behaviour would only be right when you have just typed the opening
bracket.
r/
I promised I'd be back!
I'm working on a bundle for Erlang [1], a nice functional language
that focuses on multithreading and distributed programming. It's
mainly used in embedded programming of telephony equipment, but you
might have heard of ejabberd (a Jabber server written in — guess what
— Erlang). this is a first rough draft -- there's only a basic syntax
description. when it gets good enough I'll add it to the repository,
if you wish.
in order to improve it, I need some help on automated indentation.
this is a typical (small) Erlang module:
> -module(sample).
> -export([fact/1]).
>
> fact(0) ->
> 1;
> fact(N) ->
> N * fact(N - 1).
I'd like to increase indentation of the next line if the current line
ends with -> and decrease indentation of the next line if the line
ends with "." or ";". still, I wasn't able to tweak the prefs in
order to achieve this... (I tried and I tried, man, but I just wasn't
up to the task.) help? help?!? HEEEEEELP! ;)
ciao,
Domenico
---
[1] http://www.erlang.org/, http://www.erlang.se/
Hi,
If I'm not mistaken the pattern match for the second meta.tag.xml
rule is missing _ as a valid character for the attribute name. The
correct match should be:
match = ' (?:([-_a-zA-Z0-9]+):)?([_a-zA-Z-]+)'
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
How does TextMate determine if a particular bundle is applicable to the
files I'm editing? I can insert snippets that are in the Ruby bundle, but
the Rails bundle snippets never expand when I hit tab.
Thanks,
Justin