1. Here is my attempt to hack a 'show invisible characters'
capability. I made a syntax bundle called 'Show Invisibles' that
colors spaces, tabs and ASCII characters below \x21 and above \x7F
different colors. I posted the bundle to my web site at
<http://math.sfsu.edu/hsu/textmate>. Install it and switch to as a
syntax highlighting to find the gremlins.
2. I also updated my Perl bundle to have auto-indent and to highlight
file test operators. Other changes noted on history page.
3. I think this has been mentioned, but when one drag-selects past
the top or bottom of a window, usually the window should scroll in
that direction, and TM 1.0.2b5 isn't doing that.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Hi everyone,
Great discussion about the icons (though I agree it's perhaps the least
important aspect of TM). During a bout of insomnia I fancifully thought
up one that would just be "\B", as in "escaping BBEdit" :)
More seriously, I found myself opening BBEdit yesterday just for the
web color palate. Does anyone know of a similar swatch picker (perhaps
standalone) that would work within TM? Generally I use only a few
colors, but I'm color-coding cell backgrounds based on numeric scales
and need to see the whole "spectrum" as it were to help choose them.
Thanks for any tips...
Paul
OK, I know this has been brought up before and that Allan is working on
new implementations for sometime in the future, but I just want to make
sure the following is considered as well. Trying hard to be as
succinct, logical and realistic as possible here, so apologies if I'm
not.
1. GUI ISSUES:
1a) Snippet Editor Window
Looking at the Snippet, Command & Macros Editor windows, there is
essentially three different design concepts implemented there. Of the
three I think the Command Editor is the better functioning concept,
albeit not perfect. By making the 'entry NSBox view' fixed in size it
enables the user to resize the window and thereby automatically resize
the table view (NSScrollView) making it easier to read the full Command
names and their triggers.
The main problem with the Snippet Editor window is that the table view
(NSScrollView) is not resizable. However, this could be improved
relatively quickly by:
-- implementing a NSSplitView functionality (split view resizing of
window parts)
-- or making the NSBox view (the gray background box) fixed size as it
is in Command Editor window. (Probably faster to implement)
This 'simple' change would make using the Snippet Editor much better.
For further improvement ideas in the Snippet Editor window, see point 3
below, as they are more context dependent.
1b) Project Drawer & Image files
Working mainly with web development and graphics/images, I think it
would be great if you could see the image displayed in the main editor
window, or alternatively opened by Preview rather than any other app
regardless of the Creator Code of the image file when you double-click
the filename. This should ideally be a preference option, where you can
turn it on or off.
The file formats in question are: .jpg, .png. .gif. .pdf
2. BUNDLES MANAGEMENT:
2a) Too many syntax files available in the "Syntax Highlight as" menu
Being a bit of a 'boring' developer that only works with PHP, HMTL, CSS
& JS I find that I essentially only need my own .tmbundle that contains
all four of those languages. I therefore want to be able to turn off
the unused bundles, or alternatively keep the unused bundles further
down in the "Syntax Hightlight as.." sub-menu. Sort of like this:
[ -> = sub-menu ]
Syntax Highlight as ->
Syntax Status Editor == (GUI see below)
-- DIVIDER --
XHTML
PHP
CSS
JS
-- DIVIDER --
Disabled Syntax Files ->
ASP
<snip>
Unix Shell...
I know that this could be partly achieved by naming my commonly used
bundles differently and renaming the others, but I shouldn't have to do
that.
2b) GUI Solution to Syntax Management:
A Snippet Editor type window where the available Syntax bundles are
listed on the left, and in the right hand side view we could display a
default bundle sample code template which is highlighted in the window,
so that we can see if we like the syntax colouring. Below it, we would
have one button "Disable/Enable" with toggle status for
enabling/disabling each bundle.
A quick & dirty mock-up can be found here: [
http://www.imediatec.co.uk/TM/Bundle-Manager-GUI.jpg ] It should give
you a good enough idea about the whole concept.
Perhaps a .plist version could be implemented first ??
3. SNIPPETS STRUCTURE:
3a) Snippets Numbering:
All snippets in /<something>.tmbundle/Snippets/ are numbered as 010,
020, 030 and so on with 10 increments for each snippet.
Why increment by 10 each time ? Why not by 1 for each new snippet ?
Why use numbering at all, since the available snippet files can be
displayed according to alphabetical order and then - see points below -
could be reorganised according to the users own choice and the display
order could be stored in a .plist file ?
Why oh WHY change the snippet numbers when I have numbered them as 010,
011, 012 ? Aarrrgh!! :(
(My idea behind numbering them that way was to create my own structured
Snippets with sub-groups with space to add new snippets in between.)
3b) Snippets Organisation:
As I have suggested on the wiki "Feature Requests" page, the snippets
would be better if they were structured in categories, where each
category is a sub-menu item.
When I create new snippets now, I give them a pseudo category
identifier such as "PHP " or "XHTML " and then the snippet type id.
This helps me keep my snippets fairly organised, but they still stay
out of alphabetical order, mainly due to the Custom.tmbundle issue
addressed above.
However, the biggest problem with my Snippets Menu is that it is too
long for my screen (1600x1200) so I have to scroll the menu in order to
get the bottom values. Moving to sub-menu categories would improve this
drastically.
Making the table view in the Snippet Editor GUI into an NSOutlineView
(as partly implemented in the Project Drawer) where we could have these
sub-groups, toggle the view of their content and so on.
3c) New Snippets Save location:
When you create a new snippet it is stored into
/App..Support/TM/Bundles/Custom.tmbundle/Snippets/ which are
prioritised over the active bundle's snippets. My issues with this
structure are:
-- I want to choose where I want my new snippet to be stored, as it
most likely will be in relation to the current .tmbundle that's being
used, and I find it better - in my mind - to add language related
snippets in the language bundle they belong to.
-- In the Snippets Menu, I would want my active .tmBundle Snippets to
be top of the list, not the other way around.
The same would be applicable for Commands & Macros as well. That way,
by saving all commands, Macros & Snippets related to the specific
language/bundle, they are not available when we disable the bundle as
suggested in point 2 above.
In the GUI, this would work by selecting the current snippet category,
and then clicking "New Snippet" button. Sort of like this works in
Project Drawer.
3d) Snippet Re-Ordering in Snippet Editor window listing:
What would be ideal in the Snippet Editor GUI, is the ability to drag
around snippets and re-order them that way. Newly created snippets are
always added to the bottom of each snippet group they are created
within, but can then be moved by the user to the position they would
want. (Think iTunes playlist for a good example of this)
OK, that's it for now. Hope I haven't wasted my or your time.
Kind regards,
Mats
-- -- -- -- --
"For those who aren't familiar with OS X, it is a full implementation
of BSD Unix with a Macintosh front end, which is to say world class
inside and out. OS X is faster, smarter, prettier, and easier to use
than any version of Windows."
by Robert X. Cringley, Feb, 2002 [ http://www.pbs.org/cringely/ ]
Hi,
Another one for the pile...
Not sure if this has been picked up before but the following steps
demonstrate a bug in the folding logic:
1. Create a TM new document
2. Past in the following test php code:
function test() {
/* multiline
comment
*/
some stuff...
}
3. Set the syntax highlighting as PHP
4. Notice that it correctly identifies the start and end of the
function as a folding block as well as the start and end of the comment
as a nested folding block
5. Do Cmd-Alt-0 to collapse everything or click on the fold by
'function ...'
You should find the text from some stuff... onwards is not collapsed.
If you first collapse the comment (using F1 or clicking on the icon)
you can then collapse the function without problems.
I might be wrong, but I don't think this is a problem with the PHP
bundle, as it is correctly identifying folds.
Cheers,
James
I've noticed that if I create a new, blank document and then drag a
text/html file onto the doc, TM will overwrite/fill up the empty
document with the contents of the dragged file. Since my goal in
creating the new file and then dragging another one on to the doc was to
copy and paste between them, you foiled my plans!
Can you just leave blank docs in their current state when I drag a file
onto the doc?
Thanks!
Chris
--
Do the evolution. Get Firefox!
<http://spreadfirefox.com/community/?q=affiliates&id=5&t=4>
Quote of the moment: /Teeth never inflate when you inhale, cause that
would look really stupid./— Davezilla
Yep, an icon is something everyone can have an opinion about. I
don't like the default one, not just because it looks awkward to me,
but mainly because the colors are very invisible to me, and it's hard
to find in the dock. For a while I used a replacement icon from the
World of Aqua IV of the red robot from Ghost in the Shell, and I'm
currently using the 'braces' icon.
I don't think I have to love an icon, but I should be able to find it
quickly in the dock.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Alas I'm using "/" as an arithmetical operation in a MySQL statement
and it renders the rest of the code (until a subsequent "/") as a
RegExp! I thought it was commenting out until I looked at the bundle:
{ name = "Comment"; foregroundColor = "#9933CC"; match =
"^\\s*--.*$"; },
[snip]
{ name = "Regular Expression"; begin = "/"; end = "/";
foregroundColor = "#CCCC33";
patterns = (
{ name = "Interpolated String"; match = "#\\{([^\\}]*)\\}";
foregroundColor = "#aaaaaa"; },
{ name = "Escaped slash"; match = "\\\\/"; foregroundColor =
"#CCCC33"; }
);
},
This is a shame b/c I was enjoying the SQL syntax colors... this
renders them unworkable when using the maths... Is there a way to
change the RegExp syntax to allow "/" as divisor?
thanks!
Paul
PS to Fred B -- any relation to Agnes? :)
Has anyone developped an Ada syntax/snippets/coloring bundle? A friend of
mine would be very interested...
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.6.0: Sun Oct 10 12:05:27 PDT 2004
Hi there,
Is there a translationscript for Text to HTML like in BBEdit
(Translate) and ignore < and /> ? Example: ö -> ö
That would be great.
thanks,
Detlef Hoge