I know this could be a point of much controversy, but I encourage
people to avoid "top quoting" i.e. having a long quote of sometimes the
entire email you want to comment on, and then putting comments
underneath.
I don't like "bottom quoting" much either, although it does have the
advantage that you don't have to scroll a few pages to read the mail...
ideally, snip out relevant parts and quote on those. It's probasbly not
difficult for most people to go back to the mail being refered to and
check, if further depth is needed.
--
Sune.
"Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
http://cyanite.org -- Content follows ;-).
Just a proposal regarding the snippets.
It would be most useful if the snippets were only active when their respective mode is active. This way, the same trigger could be used for various modes and applications.
For example, the trigger "table" being already used for html, it cannot be currently used for Latex. However, if the triggers were tied to a mode, we could use the same trigger, simplifying our lifes.
Greetings,
Normand Mousseau
Yo,
I have found a cool replacement icon for my TextMate while browsing
through my icon collection, check it out:
I like it not only because it looks pretty cool, bet also because it
contains the elements of TextMate spirit: text (the pen) and automation
(the LEDs). It's part of the "World of Aqua 4" pack from the geniuses
at IconFactory.
You can also find the following one in the "World of Aqua 3" pack, but
it's looking more obvious and boring I think ;)
--
Luc Heinrich - lucsky(a)mac.com - http://www.honk-honk.com
I hope Gaetan Le Guelvouit, Andrew Ellis and Normand Mousseau are on
the list, as they are the primary contributors to the LaTeX bundle.
(I am a minor contributor.)
Can somebody volunteer to merge all the changes into the One True LaTeX Bundle?
Fixes to Do
1. I think GLG's fork missed some of Ellis's contributions, including
his heretical Send to iTeXMac;
2. the last bundle posted by NM broke my Open in TexShop command
open -a TexShop "$TM_FILEPATH"
Note the path has to be quoted or it will break on systems with
spaces in their path;
3. $ \Pi $ and \( \Pi \) are highlighted differently. That seems wrong.
It's pretty cool that people are contributing in this way! If we can
coordinate a little bit, it will be even more powerful.
- Eric
ps. Why don't I just merge the thing? I'm going on the road for a week...
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
I have noticed that the latest beta cannot open actionscript files with a
.as extension in a project, this is because .as is missing from the
Info.plist list of recognised extensions - oops!
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hi All,
The whole question is in the title ;-) : What is the syntax to be
used in Find/Replace dialog to move text to Upper- or Lower- case? there
was such a feature in BBEdit, but could not find it in TextMate.
Find : <.+?>
Replace : lowercase($0)
Thanks,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
I installed Lars Pind's OpenACS bundle
(http://pinds.com/blog/one-entry?entry%5fid=20990) and started playing
around with it a bit. I noticed that for some reason TM can't open the
files (with extensions adp, tcl and xql) from the project drawer. With
normal open command they opened nicely.
I fixed this by adding the extensions to Info.plist file in TextMate
application folder, but I fear it gets replaced when upgrading.
Besides, I guess there's (or should be) a way a bundle developer could
add file extensions TextMate (with a given bundle) can handle. Any
pointers on how to obtain this?
TIA,
Jarkko
--
Jarkko Laine
http://jlaine.net
Im a big fan of BBEdit (or at least I used to be), one of the things I liked
was the option to search for "Whole words only" in the find dialog, now I
know I could do this with a bit of regex, but it would be nice to have that
option as a simple checkbox. What would also be very cool is for TextMate to
remember previous searches you have done (like the Google field in Safari)
so you can retrieve those painstakingly written regex search and replace
strings!
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Im sure others have noticed this but Im finding the tooltips in the drawer a
real pain in the arse, they appear when I don't want them to, cover stuff up
and wont go away when I point at something new in the list. I know Allan
mentioned that the individual items arent individually "hitable" but I think
this needs some improvement.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Whilst preventing TextMate from opening non-supported files is welcome
(change in b4):
> TextMate will only open files from the project drawer if their
> extension is found in the Info.plist, or if they have no extension
> (hidden files like .htaccess are considered to have no extension).
This now prevents me from running commands on the file selected in the
project drawer, as $TM_FILEPATH is the frontmost _open_ file. (I have a
'Test Movie in Flash' command as part of my ActionScript bundle, now
broken, to be run on .fla files in my project). Any chance you could
add another variable, e.g. $TM_SELECTEDFILE or something, so we can
access these?
Also, why not allow these non-supported files to be opened by the
Finder when double-clicking them? And having a Open with Finder command
as well as a Reveal in Finder command?
Hello,
I've noticed that disabling Gutter -> Folding also disables the folding
functionality, and there is no way to turn it back on. I think these to
should be controlled separately. For me the small three-dots icon is
sufficient for folding control.
In any case that's a bit counterintuitive. Gutter submenu is supposed
to control the gutter only and not the general behavior.
---
Philipf
> TextMate will only open files from the project drawer if their
> extension is found in the Info.plist, or if they have no extension
> (hidden files like .htaccess are considered to have no extension).
Can you add 'as' for ActionScript to the default list of supported file
types in Info.plist? Thanks.
>Need to add the .pm extension into the plist for perl modules. (Same
>goes for the authors of the two perl syntax bundles)
Good point. Updated, along with "Send to Affrus" command and "Perldoc
Search" command, where you highlight a word and get a window of
perldoc -f information.
<http://math.sfsu.edu/hsu/textmate>
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
I am trying to make sure that HTML code inside a PHP file is correctly
highlighted, but is unsure about how to do it.
Example:
<?php
function PrintHtml( )
{
?>
<!-- HTML ONLY AREA -->
<p>This is HTML</p>
<?php
}
?>
I understand that the syntax is as follows, but I don't know what the
'begin' and 'end' tags should be.
name = "Embedded HTML"; begin = "???????????"; end = "??????????????";
patterns = (
{ include = "HTML"; }
);
If anyone can help, I'd be grateful.
Kind regards,
Mats
Hi Allan (and others:),
Recording and saving macros is great, editing macros is even
greater. With commands like "pastePrevious:" and "pasteNext:" we can do
a lot of work.
But we have to record and edit a lot of macros to find all available
commands. So, to spare us time, will you publish the commands list?
Thanks,
--
4 Jo
3
2
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
It would be preferred if people would write a new letter to this list,
rather than reply to an old one, when the content is new -- I know it
requires one to fill in the To-header, but when replying to an old
letter, it screws up the threading.
Kind regards Allan
I just noticed that the coloration for "def" is a bit overeager, see
attached snapshot. Look for "def_port".
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.5.0: Wed May 12 16:58:24 PDT 2004
Im guessing from the other discussions floating around that there is some
way to make "smart" folders in the project drawer, most likely using regex
matches on filenames, but I am unclear exactly how to do this, perhaps
someone could enlighten me?
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
I don't think this made it to any of the documentation:
When the project drawer has key focus, you can press 'space' to
activate rename, and return to open the selected file (this should
probably be supplemented by cmd-down as in Finder).
To activate rename with the mouse, hold down option while clicking the
item (or use the context menu).
The reason why groups cannot be double clicked to activate rename (as
some have requested) is that I plan to do it more like Finder in the
future, so that double clicking a group will enter that group, and make
the project drawer only show the files contained in the group (there'll
be a back button of course).
Kind regards Allan
Hi,
Probably unfair to call the following a bug - as it's behaviour that
seems correct in the context of a purely local filesystem. However, it
can catch you out if your Project contains references to remote files.
It went like this:
1/. Create a deeply nested Project file, consisting solely of pointers
to files on a remote disk (mounted via SMB).
2/. Do work, close Project file.
3/. Eject the SMB drive. Go to lunch, or whatever.
4/. Return from whatever and reopen the Project file - forgetting to
remount the remote disk first ...
5/. Gaze in silent horror at the empty Project.
On start-up, TM silently deletes all unresolveable file references from
the Project, leaving only the Groups that you have created. Any
laboriously constructed filter definitions are deleted too, of course.
TM immediately writes the revised Project file back to disk, making
sure that you can't recover from your mistake.
Might it be an idea to have TM pop up a warning - if it detects that a
remote volume has disappeared?
On a machine left idle for any length of time, 'sleep' can cause
remote volumes to eject themselves - so I guess TM would need to check
this periodically, and not just at start-up.
Cheers,
-- Andre
I put a feature request for this on the wiki, but I thought it was
probably worth shouting out here too.
It would be really great if labels applied in the Finder (you know, the
colour-coded blob things) were shown in the Project Drawer.
I use labels to mark the most important files and folders in my web
apps, and being able to make use of this in TM would be *fantastic*.
Cheers.
drew.
Yo,
I was playing with TM, trying to find some nits to pick and found the
"View -> Wrap Column -> Other" thingy :)
The default wrap width is at 78, and I usually use 80, so I went to
change this and selected the previously mentioned menu item. I was
expecting some sort of dialog or sheet, but saw nothing. Worse, the
'View' menu was still highlighted so I immediately thought that
something wrong was happening and/or that TM was stuck or about to
crash. When something like this happens in an application, I have this
pavlovian habit to agitate the mouse a bit to see if the spinning pizza
of death shows up, before I just kill the app. But this time it helped
to see that, oooooh, something was actually hapenning IN the current
text window: setting the wrap width is done using an "in-place
interactive bar"...
I see three usability problems with this:
- The obvious one, which I mentioned in my (unnecessary verbose)
introduction is that unless you already know how it works, you have no
freakin' clue what happens after you select the "Other" menu item.
- You can't modify the wrap width when no window is open.
- And now try that in a window using one of those syntax which have the
infamous black background, and see how far the confusion can get... :>
Sorry, I'm a natural born nitpicker ;)
--
Luc Heinrich - lucsky(a)mac.com - http://www.honk-honk.com
I am not sure if I should put this in as a feature request...
There is a very very nice feature (or possibly quirk?) to the text
library that SubEthaEdit and BBEdit are built on. When you adjust the
font size for Monaco down to "9" then it loses its fuzziness and
"snaps" into pixel-perfect, fixed-width readability. I don't know why
this happens but TextMate doesn't do it. If I turn font smoothing off
for size 9 and lower, TextMate makes Monaco pixelated and crisper, but
it does not look fixed-width (i.e. it's slightly squished together for
some letters and not very easy to read).
I know this seems trivial, but staring at code all day is hard enough
on the eyes as it is, yet the SubEtha/BBEdit font rendering is much
more scannable.
Any ideas of settings adjustments I can try?
thanks, kumar
Hi,
While creating my syntax plist for python I ran into two things:
- Is it possible to activate a syntax mode without restarting TextMate?
- Is there a syntax highlighter for plists yet ? :)
Jeroen.
Hi All,
I seem to be locked in a battle of wills with the project file drawer
(for lack of a better name). I remove references to sub-directories and
files, and well, the file drawer puts them back in. Repeat. Repeat.
Swear, and give round one to TextMate.
Anyone else battling with the drawer?
I got into this test of wills by dragging and dropping a directory tree
that looked like:
YYYY/MM and then removing references to a few YYYY/MM/img directories
and the occasional pdf file. Well, "removing" them very temporarily :)
Thanks,
Phil
On 13. Oct 2004, at 12:50, Dominique PERETTI wrote:
> - If you reopen in TextMate, it stills appear as UTF8... BUT if you
> reopen it in BBEdit, it opens as a MacRoman file (with accents wrong).
I don't have BBEdit, but I think BBEdit _always_ opens as MacRoman. And
you have to manually tell it to open it with the proper encoding (at
least that was my experience when I tried it >2 years ago, both my
iso-8859-1 and utf-8 files were all opened as MacRoman by BBEdit)!?!
> My guess is that TextMate is right at encoding the characters, but
> forgots to write the BOM right. I think so because I get the same
> wrong results in FlashMX
> if I save the file as utf8-(no BOM) from BBEdit.
The BOM is optional in utf-8, and generally you _don't_ want it, since
a) it makes no sense as there is no byte-order ambiguity,
b) it rules the nice property of utf-8 being compatible with ascii,
c) utf-8 encoding is really easy to recognize even without a BOM.
But if several programs only treat utf-8 properly when it has a BOM, I
will consider adding an option -- though I would recommend against
using it of course! ;)
Kind regards Allan
Hello all,
I'm loving TM even with it's little blemishes (like not printing!).
But here's a question:
How do I search for or replace text with a special character, such as
a <CR>? With UltraEdit I would use ^M or something like that. Does TM
offer the same sorts of things?
Thanks,
Patrick
I'm using TextMate as my Xcode external editor. This works pretty well,
but I have a couple of problems:
(1) TextMate doesn't seem to support the external editor interface.
Specifically, what seems to be missing is the ability to go directly to
a specified line when opening a file. This is described here:
http://www.codingmonkeys.de/techpubs/externaleditor/
pbxexternaleditor.html
Remarks Metrowerks state in their documentation that the IDE (here
Project Builder) uses the optional keyAEPosition parameter to tell the
editor the selection range. If lineNum is zero or greater, scroll the
text to the specified line. If lineNum is less than zero, use the
values in startRange and endRange to select the specified characters.
Scroll the text to display the selection. If lineNum, startRange and
endRange are all negative, there is no selection range specified.
Basically, intercept the odoc AppleEvent and read the optional
parameter for line number or selection information.
(2) When I open a TextMate document that I already have open, TextMate
creates a new window for it and leaves the old window open too. This
can be very useful under special circumstances, however -- more
frequently -- it just rapidly and pointlessly clutters up my desktop.
Creating a new window is useful, but should be an optional behavior.
Usually, what I'm trying to do when I open a document is navigate to an
existing window, relying on the standard Mac UI behavior. I will
frequently double-click a file in the Xcode project window to get back
to TextMate, most often a file I already have open.
Chris
I know this has been discussed, and a number of people have expressed
their view that the TextMate icon isn't too visually pleasing already.
However, using TM in anger today, I keep finding myself searching
frantically for the icon in the dock. It's so indistinguishable at a
small size that I literally find it hard to see.
So I guess my point is that it's easy to dismiss concerns over the icon
as a matter of taste. Unfortunately in this case, and certainly for me,
it's a matter of usability - the icon isn't doing its job.
See attached!
I think I'm going to hunt out an alternative to use in the meantime, but
I hope that's useful feedback.
drew.
Hello,
Early on the first day of this mailing list I sent an email about my
first impressions, both positive and negative, which generated a few
responses, including one from Allen I believe. That said I want to
highlight what for me, as an HTML coder, is the only major downfall
that has not been spoken about extensively:
> Dragging an image from the project pane into a HTML file should add
> something like <img src="eric.jpg" alt="eric" width="100" height="100"
> /> and not the actual source code of an image at the insertion point.
Now I have seen a few requests that suggest highlighting an image in
the project drawer should display the graphic file instead of the code
and I agree, however this is not the major hurdle in my book. We need
to be able to grab a file from the drawer and pull it into our html
code and have the correct width and height added automatically.
I have been letting this subject percolate for a few days in my head
and I just can not think of another workaround that would approach any
reasonable level of efficiency (I would love to hear some though). I
could make a macro and have it tab stop at the name, width, height and
alt however I am not going to know the width and height in 99% of the
cases. I personally would also like to have it automatically add the
file name without the extension as the alt tag though some might argue
that this will promote poor coding practices, I tend to label my files
with readable names...
Please take care of this ASAP...
Sincerely,
Eric Curtis
1.0.1b2 is out, if anyone disabled their auto-checks or similar... plus
it "only" checks every 8 hours or so.
--
Sune.
"Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
http://cyanite.org -- Content follows ;-).
FYI: RFC = Request For Comments.
Based on recent input I suggest that I add a new list of 'drag actions'.
This will be similar to commands in that it's just a shell command TM
will execute (with the normal TM-variables, adding one for the path of
(the) dragged file(s) and one for the modifier keys).
The output options will also be as for commands, although I'll be
adding a new output option: Insert as Snippet (this will be added to
all the shell executions where you can select what to do with the
output).
A drag-action can set a regex to be matched against the current file
and the dragged file, if both match, the drag action will be executed
(this should probably be a prioritized list instead of TM showing a
menu when multiple actions could be applied, since it's likely one
wants to do 'catch all' rules).
Additionally there should probably be an option to set whether the drag
action can work with multiple files (and if this is not set, it will be
executed once for every file).
Kind regards Allan
On 11. Oct 2004, at 8:36, Rob Bevan wrote:
> [...] I'd much prefer it if TextMate adopted the Xcode way of doing
> this: the syntax file defines the language (primitives, built-in
> classes, built-in methods, user functions, preprocessor directives,
> Numbers and operators: whatever) and the user gets to pick how they
> want those displayed [...]
Yes, as I thought I made clear on the ML, there will be separate style
sheets in a later version.
Though I don't think it is as simple as Xcode and just a few "global"
names, since TM has a rather free style to define syntax highlight,
like in the HTML syntax file where a stand-alone & gets a red
background, or the way that HTML uses color for markup when on its own,
but grey-tones when there is embedded scripting (and colors are than
reserved for scripts) -- plus when embedding stuff, the names would
clash (i.e. a string in HTML, and the embedded JavaScript, Ruby, PHP or
whatever, would be identical).
But the system I have in mind is similar to normal CSS, so it should
allow both catch-all rules and pin-pointing individual elements (and
put no restrain on which elements a syntax file can define).
Also, if I didn't mention this earlier, with the breakup of syntax and
style, the former will also be used to enable/disable stuff like spell
checking, foldings, smart-typing etc. for comments, strings, tags in
HTML, etc., mark filenames so that they can be "followed" in the editor
(#include, require(), <a href="...">, etc.), mark function prototypes
or sections so that they can appear in the highly requested function
popup a.s.o. -- and full recursion will also be supported (which may
also then make it possible to do a (clickable) bread crumb display of
context in the status bar).
I will also re-visit the folding marker-system -- so this is really a
major overhaul of the current system!
I'll probably dedicate a portion of the wiki to collect requests for
this system when the time is right -- currently I have a lot of other
things that needs to be "fixed" with TextMate before I can spend
resources on this new syntax system.
Kind regards Allan
I've modified a shell script written for SubEthaEdit that allows you to
open or create files from the command line, and also to pipe text into
TextMate.
If anyone's interested, it can be downloaded from:
http://www.ini.unizh.ch/~awe/Code/TM_clTool.tgz
Andrew
Hi there
There is an InputManager here:
http://www.codingmonkeys.de/map/log/archives/000107.html
that hijacks the output of Safari's "view source" command to SubEthaEdit.
It is beyond my expertise to come up with something similar for TM but
reckon it might be useful.I like it when I am coding PHP and want to
get back the processed HTML from my local development server to look
at the final output. In BBEdit I would then maybe "check syntax" to
see if my PHP was producing OK (X)HTML (although I gather this is not
possible in TM? Maybe there is a CLI-based tool to validate XHTML to
which TM could talk? )
So, I'm putting it out there for some generous soul to hack one up for TM ;-)
The above link even includes the source code.
Any takers?
bongoman
As I slowly customise TextMate by altering the bundles in
~/Library/Application Support/TextMate, I'm wondering what happens
when TextMate is updated with alterations to the default snippets,
macros & commands?
To get the benefit of such bundle updates am I going to have to
manually edit my bundles in the above location to include the extras
in the new bundles? Or do the bundles in the actual application
package have effect to the extent that individual elements therein
have not been overriden by anything in the user's Library/Application
Support directory?
I hope this question is clear...
bongoman
Greetings,
Someone mentioned XCode top bars this morning (which I think is an
excellent idea, much better than my previous scroll bars adorners
attempt imho) when I was actually about to post updated mockups as well
:)
Here they are anyway:
I think it looks better than the bottom status bar, and it leaves room
(which was a valid concern) for possible additions, popups, buttons,
whatever.
It looks even better in the project window because it makes a better
separation between the tabs and the editing pane:
Thoughts ?
PS: question for the list moderators: what is the preferred method to
post screenshots on the list ? Attached pictures have to go through
moderator approval, which is obvious, so do you prefer URLs for example
?
--
Luc Heinrich - lucsky(a)mac.com - http://www.honk-honk.com
Fellow TextMates,
Allan has added a nice little menu in 1.0.1 for the times when two or
more things 'clash' on the same keyboard shortcut (like commands)...
this then allowed us to 'stack' multiple similar commands (like search
engines) onto the one key command, like the 'help' key. which is very
cool.
So, I've added support for Dictionary.com, Google, Thesaurus.com,
Wikipedia, Yahoo in the default bundle, and PHP.net in the PHP bundle.
See screen grab attached. Basically, it pumps the current word into
your chosen search engine, and it works great!!
I'm looking for nominations for additional searches to be added to the
Default, PHP, HTML or CSS bundles... right now it doesn't appear we can
add W3.org sites, because there's no nice flat URL structure to work
off, and no focused search engine.
Feel free to also say "we don't need Yahoo", etc etc.
I'm thinking perhaps an amazon.com search would be a possibility, but
really I'm looking for any search-based technical references that could
be of help to the masses of TM users by feeding it the current word.
It's totally easy to add your own in 1.0.1 by the way :)
Justin
Ahoy there, textmateys:
I took the liberty of making some little web buttons/badges, for anyone
who'd like one. (Actually, I was really only thinking of myself, cause
I wanted to stick something on my weblog, but it's rude not to share.)
http://www.raena.net/textmate-icons/
Hi,
I was wondering if it would be possible to create a new document from a
template without having to be in a project. Right now I've just got a
scratch project for this stuff, but I kind of like the way BBEdit will
let you make a 'New from template...' right there in the File menu.
thanks,
Raena
On 11. Oct 2004, at 11:46, José Campos wrote:
> What is better than a rainy week-end to try a new software? So (and
> this will be my last question until version 1.01 is released)
You do know that we run a mailing list? ;)
> where are "scratch macros" stored? Can they be edited and modified? If
> yes, what
> language is used to do it?
Currently only in memory -- I may keep it in the preferences, so that
it'll remember the last scratch macro from last session.
However, the format they are stored in is custom -- I figured it would
often be easier simply to re-record the macro again, than to use an
editor to change an existing.
When you save a macro it ends up in:
~/Library/Application
Support/TextMate/Bundles/Custom.tmbundle/Macros/<name>.plist
You /can/ edit this file, and I know some do. But it's officially not
supported, and the format (despite being a normal property list) is
undocumented ;)
Kind regards Allan
Hi Allan,
I've hit something that bother me a lot since I use Arch/tla[1] as version
control software. It has a feature where files are shared through hard links
in a revision library meaning that if across several changesets, a given file
doesn't change, it is stored only one time.
That requires that the editor one use to edit the file break hard links on
Save (i.e. creating the new file and renaming instead of save in-place). Emacs
does that by default and vim can be tweaked to do it too. I don't know what
BBEdit does because I've never used it outside the demo mode.
I've already bought TM because I think it is a great editor but to be able to
use it for all my developements, I need TM to behave like the above. The
default behaviour is breaking all revisions stored in the library :(
Thoughts, comments?
-----
[1] http://gnuarch.org/
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.5.0: Wed May 12 16:58:24 PDT 2004
On Mon, 11 Oct 2004 07:34:08 +0200, Allan Odgaard <allan(a)macromates.com> wrote:
> > Oops, my mistake. Here try this.
> > <div>
> > <ul>
> > <li>Item 1</li>
> > <li>Item 2</li>
> > <li>Item 3</li>
> > <li>Item 4</li>
> > </ul>
>
> Yes, this is because of the rule about start and end lines to a folding
> must have the same indent.
Nay, I can live with that. The file was cleaned up with tidy. Normally
I have indents.
--
"If you ever find yourself on the side of the majority, it is time to
pause, and reflect.
-- Mark Twain
Hi TextMate Users,
Consider the following codes:
<div>
...
<li>
...
</li>
...
</div>
When I try to fold the codes by clicking on <div>, it only folds to
</li>. To fold to </div>, I have to fold <li> and then fold <div>. Is
there anyway around that?
ip
--
"If you ever find yourself on the side of the majority, it is time to
pause, and reflect.
-- Mark Twain
I can't think of a way to get folding to work for Python code. I
think it's because of the way folding is implemented in TextMate, so I
don't think it's possible, but I'm hoping someone can think of
something.
In Python, all blocks are delineated by indentation. So, here's a
couple of blocks:
if 1:
foo()
bar()
else:
fnord()
You'd want to be able to fold "if 1:" through "bar()" and be able to
fold "else:" through "fnord()". I can't think of any way to do this
with TextMate's folding implementation.
It's easy enough to set a foldingStartMarker -- any line ending with a
":" (simply speaking). But what foldingStopMarker? The "mark" is the
next line with the same indendation as the starting line, but that
line is *not* part of the fold. You want the fold to end before that
line.
I'm tearing my hair out over here. Can anyone think of a clever way
to do this? Am I missing something, or is this just impossible with
the current implementation?
Thanks to anyone for help!
1. For me, hitting `ESC` in a dialog box is not invoking the `Cancel`
button (works that way in most apps)
2. When the `Save` dialog box first comes up, I'd love it if _just_ the
pre-suffix name were selected. So on a new, blank document, it would
select "`untitled`" instead of all of "`untitled.txt`". Makes renaming
a lot faster.
(Is this the kind of thing that's appropriate here, or is there a
Bugzilla type thing where we should be posting bugs, whines, and pony
requests?) ;)
--
Merlin Mann
43Folders.com