I'm not much of a fan of collapsing my code within the editor... it
just confuses more more than anything most of the time. Perhaps if
there was a better indicator that there was collapsed code.
However, I work with 500+-line CSS files every day, and we do a decent
job grouping these into sections visually through commenting. It would
be great if we could collapse any one of these "sections" as to help
with general organization, etc. A typical style sheet for us would
look like this:
/*
| 3. Site Structure
|________________________________________________________ */
(structure styles)
/*_______________________________________________________ */
/*
| 4. Front Page
|________________________________________________________ */
(front-page specific styles)
/*_______________________________________________________ */
I'm pretty sure all that would be needed for this are some
standardized tokens that need to appear at the section 'bookends.'
So...
/***
| 4. Front Page
|________________________________________________________ */
...
/*______________________________________________________***/
Preferably looking like this when collapsed:
/***
| 4. Front Page
|________________________________________________________ */
And then the rule would be start collapse at first instance of *** and
end at the next instance of ***. We may want to argue for a few
hundred e-mails on what a more unique token could be, and then there's
the issue of standardizing comment markup so that we can all use
it.... i'm sure it'd be easy enough to do for one example but to
account for other peoples' styles...
Thoughts on this? Anyone feel like whipping this up? I've never done
any bundle editing before but i could give it a whril so long as we
feel this is worthwhile and i've got all the rules down.
--
eric
ericdfields.com
Hello, World of TextMate !
This first mail to say hello (the next one will ask a question ;-)
My name is Francois, I live in Paris (France) and I am new to TextMate. I just discovered TextMate this week-end and paid the shareware fee immediatly. Thanks Allan for this wonderful piece of software.
I am not a programmer or any kind of hacker, just a phd student who uses LaTeX. Before using TextMate, I used TeXshop and BBEdit, Emacs (yes I tried it) and Smultron that was my editor of choice before saturday, when I started using TextMate.
What I like most in TextMate is the overall quality of TextMate and the flexibility in LaTeX editing, more precisely, the ability to keep TeXshop apart.
Well, that's all folks for this small introduction. See you soon on the list
Cheers !
Francois
Hi,
The TODO bundle has a bug: an item like this (in perl):
# TODO: $CONNECTION_TIMEOUT
is not found. If the '$' is removed it works. Apparently some
escaping issue, but I don't do enough Ruby to figure it out.
Gerd
I see another message about which sadly hasn't been answered:
http://comox.textdrive.com/pipermail/textmate/2006-August/012468.html
I followed the instructions at:
http://sg.validcode.at/stuff/textmate-getbundle-bundle
What I did was I removed /Library/Application Support/TextMate prior
to the installation of this bundle. Was that a mistake? There's no
mention of having to checkout the bundles first.
When I choose Bundles -> GetBundle -> Install Bundle, nothing
happens. I was expecting to get a list of the Bundles as the
instructions said, but alas.
How can I solve this?
--
Regards, Charles.
Is there anyone else having a problem with the key command for the
Text > Convert > to Titlecase menu item? I've tried both ctrl+option
+shift+u and ctrl+option+u. Neither works.
Is there a conflict somewhere that is causing it not to work? Is
there a way I can change this binding or is there a fix?
Thanks
Mike Gregoire
Hello!
I am using TextMate for Latex and the umlaute of the german language.
When I have Todos that uses umlaute, I get only questionmarks for
these. Is there an easy way to convert these characters?
greetings
Helge
Hi all,
Is there a way to add some sort of keybinding to have the key
combination SHIFT + SPACE output an underscore character?
I would be happy with this in TextMate or if anyone has any ideas for
a system wide implementation.
Cheers,
LD.
Suppose I have a column of symbols like this:
StoreID
StoreKey
ApplicationID
TerminalID
ReferenceNumber
CashierNumber
TransactionAmount
SalesTaxAmount
Currency
AccountNumber
I want to produce this:
@"StoreID ",
@"StoreKey",
@"ApplicationID",
@"TerminalID",
@"ReferenceNumber",
@"CashierNumber",
@"TransactionAmount",
@"SalesTaxAmount",
@"Currency",
@"AccountNumber",
In Xcode, I'd search for the regular expression
^(\w+)
and replace it with
@"\1",
TextMate appears not to support RE substitution in the replacement
field. Is this the case? Are there thoughts on when that might become
the case?
Is there some TextMate-y way to do what I want in the mean time?
-- F
Hi everyone,
once again, I have a (from my point of view) great Idea, but since I
do not know how to
program it I am sharing my thoughts with you.
I use TextMate a lot for Fortran those days, and markdown, so in
those two "languages" I
know the shortcuts quite well.
Now I start using TextMate to write Latex and I do not know all those
shortcuts I might need.
So here is the request:
Wouldn't it be nice to have a floating window (i.e. the one you get
in iPhoto to adjust contrast...)
showing the contents of the bundle menu on the bottom of the
textwindow? (maybe one could
also click the items and the bundle item will be activated).
Of course it is much more efficient to trigger the bundle action by
the shortcut but during the learning
phase and/or for not so often used actions it would be a help.
Just some thoughts
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
This command overrides reformat paragraph in the comment.line.number-
sign.ruby scope. Here is the description given by rubywrap.rb:
# RubyWrap is a word wrapper utility designed for ruby scripts. It
should,
# however work for any programming language which uses an initial
prefix for
# comments (see --prefix). RubyWrap correctly handles indented
comments,
# indented text within comments, header comments, and many forms of
lists. It
# will also pass through code without change and detabify.
Any interest in adding this to the Ruby bundle?
rubywrap.rb goes in Ruby.tmbundle/Support/bin.
-- Daniel
On Mon, 21 Aug 2006 09:17:37 -0700, Charles Stuart wrote:
> Hi Will, I'm not seeing the preference file. Ran odbeditor and
> returned this:
> --> Unable to find application for bundle com.barebones.bbedit.
>
> And then no preference file
> (~/Library/Preferences/org.dyndns.wuther.ODBforwarder.plist) is
> created in ~/Library or /Library.
Weird. That preference file should be created as soon as the app
starts up. If you double-click on ODBForwarder.app, that file should
be created even though there are no apple-events to forward.
I've made a new version that outputs an error _when_ it can't create
the file. I can't figure out how to make it output _why_ it can't
create the file, so I'm not sure this is much more useful. It is on
the web at: http://www.cse.unsw.edu.au/~willu/ODBSuite/
ODBForwarder-23Aug2006.tgz
I guess it will tell you if the file is being created somewhere
strange. I'm just using the default app preferences API, so I don't
actually tell the OS where to create the file. e.g. it might be
creating a machine specific preference for some reason.
If you've got XCode, you could change the source and recompile...
The default editor bundle ID is listed on line 115 of main.c.
Let me know if that helps,
Will :-}
>>> On Aug 17, 2006, at 11:18 PM, William Uther wrote:
>>>
>>>> Hi,
>>>> Just thought I'd let everyone know that I've made a new app for
>>>> use with TextMate. It is open source and described here:
>>>>
>>>> http://www.cse.unsw.edu.au/~willu/ODBSuite/
>>>>
>>>> Is is still early days and has many rough edges, but I think it's
>>>> useful. I'm releasing early - we'll see if I have enough time to
>>>> release often. :)
>>>>
>>>> The app is a command line app, odbeditor. It acts like the 'mate'
>>>> command line program, but has a few advantages (and some
>>>> disadvantages too :)
>>>>
>>>> usage: odbedit [-h] [-e editor] [-s saveScript] [-c closeScript]
>>>> filename [filename ...]
>>>>
>>>> - It can be run from a remote shell. This means that you can ssh
>>>> into your box and start TextMate remotely. (Yes, there are uses
>>>> for this - it is the main reason I wrote the thing :)
>>>> - It can call out to other scripts when the program is saved or
>>>> closed (so you could scp the file somewhere, just to pull a random
>>>> example out of the air.)
>>>> - It will work with any ODB Suite editor (i.e. any editor that
>>>> works with those FTP programs like Cyberduck.)
>>>>
>>>> Be well,
>>>>
>>>> Will :-}
I am a new user and tried to modify my TextMate. But I am unfamiliar
with unix and clearly made a mess. For example, my TextMate cursor
has changed into a small horizontal bar and I can only modify text,
not enter new text with it. I often lose the find window, too. It
just does not show up and mysteriously comes back every once in a
while. I restarted, rebooted, installed a new copy of TextMate, even
erased the usr/local/bin/mate file. The problems persist. How can I
get restore the default?
Jenny
--
Professor Jenny Harrison
Department of Mathematics
University of California, Berkeley
www.math.berkeley.edu/~harrison
Dear All,
I need your help.
I have to work with text file where block delimiter is more than 1 empty lines.
How to make regex for foldingStopMarker
I was trying foldingStopMarker = '(^$){2,}';
but without success.
Thank you in advance.
Example
"
Block1
text
text
text
text
text
text
Block2
text
text
text
text
text
text
''
On Thu, 17 Aug 2006 23:51:07 -0700, Brad Choate <bchoate(a)gmail.com>
wrote:
>
> Looks like you'll be releasing more often than you thought...
>
> $ odbeditor -h
> ZeroLink: could not load .o file: /Users/willu/src/odbedit/build/
> odbeditor.build/Debug/odbeditor.build/Objects-normal/ppc/odbedit.ob
> Bus error
>
> OSX 10.4.7, PowerBook G4
>
DOH!
Looks like I had the wrong link options set. I've updated the binary
tarballs (the source hasn't changed - so if you wanted to build
yourself you would have been fine... which is why I didn't spot it).
In other news, the building housing the web server is losing power
some time early tomorrow morning, Sydney time. So if you can't get
to the URL, try again in 8-10 hours.
Be well,
Will :-}
> On Aug 17, 2006, at 11:18 PM, William Uther wrote:
>
>> Hi,
>> Just thought I'd let everyone know that I've made a new app for
>> use with TextMate. It is open source and described here:
>>
>> http://www.cse.unsw.edu.au/~willu/ODBSuite/
>>
>> Is is still early days and has many rough edges, but I think it's
>> useful. I'm releasing early - we'll see if I have enough time to
>> release often. :)
>>
>> The app is a command line app, odbeditor. It acts like the 'mate'
>> command line program, but has a few advantages (and some
>> disadvantages too :)
>>
>> usage: odbedit [-h] [-e editor] [-s saveScript] [-c closeScript]
>> filename [filename ...]
>>
>> - It can be run from a remote shell. This means that you can ssh
>> into your box and start TextMate remotely. (Yes, there are uses
>> for this - it is the main reason I wrote the thing :)
>> - It can call out to other scripts when the program is saved or
>> closed (so you could scp the file somewhere, just to pull a random
>> example out of the air.)
>> - It will work with any ODB Suite editor (i.e. any editor that
>> works with those FTP programs like Cyberduck.)
>>
>> Be well,
>>
>> Will :-}
Hi!
Today I noticed a failure in the status-window of the LaTeX-rendering
(I'm using the actual svn-co of the LaTeX-bundle):
/bin/bash: line 23: html_header: command not found
The command in line 23 says:
html_header "Compiling LaTeX (file $FILE)"
Does anyone has an idea what I can do to correct the error? (google
didn't help and I do not want to delete it but to get the correct
output ;) )
Niels
I am using Markdown to edit a blog entry and all of a sudden i
noticed that my right margin wrap has stopped. I'm not sure if i hit
some strange key combination that disabled the wrap, but I'd sure
like to know how to get it back.
NOTE: This is not to be confused with the 'soft wrap' requests that
malign Allan (according to the documentation).
...and...
If anyone has a quick tip on how to change the autocomplete button
from escape to shift+tab (what i use in xcode) that would be much
appreciated.
Steven
Is there any way to deactivate bundles from TextMate so that if I do
a svn update from the repository I don't pull down those items? I'd
like to stay up-to-date with bundle development but there are a bunch
of them that I'll never use.
Thanks,
Neil
---
hushBOOM design
Web design, development & hosting -- Writing & Editing
http://www.hushboom.com/
Hello there--new TextMate user, enjoying it a fair bit, save for one
major problem: it seems unable to use the Python installed from Fink.
Whenever PyMate runs, it always uses Python 2.3.5 installed in /usr/bin,
as opposed to Python 2.4.2 in /sw/bin.
"/usr/bin/env python" calls /sw/bin/python; /sw/bin is listed before
/usr/bin in my PATH.
My suspicion is that there's some preference somewhere in TextMate that
tells it the path to Python. However, I've been unable to find it by
browsing through Preferences.
Can anyone give me a hint as to how to get TextMate to call the proper
Python?
Thanks for any help you can give. :)
This is sort of a reminder about the TextMate quiz
(http://skiadas.dcostanet.net/afterthought/2006/07/14/tmq-1/).
Given that I got no answers to the problem, I am trying to
determine whether it was because of the too long timeframe
which made people forget about it, or whether it was because
of a lack of interest in the problem. So I'm hereby extending
the deadline until the Sunday a week from tomorrow, and I also
wanted to get people's opinions about the quiz and possible
ways to make it more approachable and interesting to people.
So please feel free to reply, either to the list or to me,
with your opinions/ideas.
Haris
Michael McCracken recently posted [1] some small (non-TM) hacks for
displaying text. His TextShape tool is pretty cool, and TextStructure
reminded me of Gerd's TmCodeBrowser plugin, though it adds the neat
feature of marking up the symbols list with little pointers as you
navigate through the file -- pretty cool.
Anyway, I started exploring tmcodebrowser again, and I whipped up a
couple of tiny, trivial lines to add to one's ~/.ctags.tmcodebrowser
file to add support for GTDalt. If anybody's interested, the
following will just show in the codebrowser window a list of projects
in the current .gtd file -- just one more way of displaying your
GTDalts, beyond Haris's great remind/geektool displays. It's handy if
you want to keep a snapshot of the overall set of projects in a very
long .gtd file.
--langdef=gtdalt
--langmap=gtdalt:.gtd
--regex-gtdalt=/^[\t ]*project (.*)$/\1/project/
[1] http://michael-mccracken.net/wp/
-Alan
This is a very basic question, but I am just getting started so I
could use some help.
I want to create an element that recognizes the text between asterisks
as element.comment.first.
For example if I type:
* Textmate *
This would be identified as element.comment.first.
So I wrote the following in my "language" section:
{ name = 'element.comment.first';
match = '[*]\s?([^\* ]|\.| [*] | )*[*]';
},
The problem is it can't identify the element when it comes in the
middle or end of a line, i.e.
I want to learn how to use * Textmate * tomorrow.
What's between the asterisks is not considered an element.comment.first.
Any suggestions or help would be much appreciated. Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com