Uhmm.... how do I start column typing? Can't find it in the menu's...
Sorry for something which is probably straightforward, but I really
can't seem to find it.
--
Joost Schuttelaar
Hello,
I'm trying to open all .txt files with TextMate. In the finder, I select a
.txt file, hit Control+i to get info. Then I select TextMate as the app to
open it with, then I click "Change All". After clicking "Change All"
TextMate disappears as the "Open With" app and is replaced by the text: "Not
applicable". If I close the info box and double click on the .txt file, I
get this error: "The operation could not be completed. An unexpected error
occurred (error code -10660)." If TextMate is already open, a double click
on the file in the Finder opens fine. But if TextMate is closed, it shows
this error.
Does anyone know how to fix this?
I think it may have been caused by renaming the beta versions of TextMate to
names like "TextMate1.01b3". Maybe the Finder got confused about which app
was THE TextMate to open with. I now only have the newest 1.02 version in
the Apps folder.
Any help much appreciated. Thanks.
Simon
I'm a newbie textmate user, and unfamiliar so forgive me if this has
been covered before.
When double-clicking on whitespace to select and then moving the mouse
to text (to select by word) it's very annoying to me that the word at
the other end of the whitespace is selected. I've seen this behavior
in M$ products and it drives me nuts. Am I the only one?
To me it's obvious that if I double click something and then move left
that it's wrong for something rightwards to become selected.
I'm sure I'll learn to cope, but I thought I'd ask about it.
I'm still getting used to it, but I think I like TextMate. :)
I installed the SQL bundle, but it didn't do it for me. At some point
I'll have to go make a syntax file that supports Oracle PL/SQL (since
that's what I edit mostly these days).
cheers
Patrick
Hi,
I'm using TextMate for my Getting Things Done (GTD) stuff. Is anyone
else out there doing the same? I'm just getting started and would love
to see how others are using TM for GTD. How do you set up your file
structure? How do you name and keep track of your files, actions, and
projects, etc.? I can see how it would be useful to be able to do such
things as link from a URI in a text (markdown) file directly to a
browser. As well as things like creating links to other local (project)
files ala voodoo pad, and moving chunks of text to other files whilst
sprinkling them with some meta data.
Then they are things like aggregating lists to create contextual lists
and so much more I can imagine but not conceive of programatically.
I just found this:
http://www.rousette.org.uk/blog/archives/2004/11/28/rails-gtd-
application/
and I know bsag has other discussions about TM GTD in her blog. As well
as Daniel Von Fange's neat little tricks:
http://www.braino.org/blog/archives/001512.phphttp://www.braino.org/blog/archives/001440.php
Admittedly I haven't played much with these, but I do remember having
some problems with TM finding my Ruby install.
-t
I'm resending this letter from the 3th of November just as a friendly
reminder and for all those who have joined the list since the
previously mentioned date.
----------->8-----------
There is really only one rule (apart from normal netiquette) I want you
to uphold:
When you write a _new_ letter to this mailing list, _don't_ use “reply”
on an existing letter (to get the To: filled in).
It screws up threading!!!
If you're using Mail.app, you can control-click the “To” of an existing
letter and select “New Message” to get a compose window with the “To”
header filled in.
Threading is a very useful feature, and especially for me with this
mailing list, since it's basically an archive of user feedback, and I'd
like for the table-of-contents to show _every_ thread, which it
currently doesn't, when one thread contain 2-3 _different_ subjects,
because people have used reply (then it only show the first subject).
So PLEASE remember _not_ to use reply (for new letters)!!!
Was there any resolution on the subject of canceling the incremental
search via the navigation keys? I believe that I never heard any
support for leaving it as it is, with several supporters for having
only backspace edit the search string. Is this on your todo list, or
will it stay as it is?
Thanks,
Wayne
Hi,
I'm using TextMate for my Getting Things Done (GTD) stuff. Is anyone
else out there doing the same? I'm just getting started and would love
to see how others are using TM for GTD. How do you set up your file
structure? How do you name and keep track of your files, actions, and
projects, etc.? I can see how it would be useful to be able to do such
things as link from a URI in a text (markdown) file directly to a
browser. As well as things like creating links to other local (project)
files ala voodoo pad, and moving chunks of text to other files whilst
sprinkling them with some meta data.
Then they are things like aggregating lists to create contextual lists
and so much more I can imagine but not conceive of programatically.
I just found this:
http://www.rousette.org.uk/blog/archives/2004/11/28/rails-gtd-
application/
and I know bsag has other discussions about TM GTD in her blog. As well
as Daniel Von Fange's neat little tricks:
http://www.braino.org/blog/archives/001512.phphttp://www.braino.org/blog/archives/001440.php
Admittedly I haven't played much with these, but I do remember having
some problems with TM finding my Ruby install.
-t
Thanks to Xavier Noria for his bug list for the Perl bundle. I have
fixed some of them in a new version (see the wiki, or my page
http://math.sfsu.edu/hsu/textmate for the archive and details.
Here are the fixes:
adjusted $foo{bar} so the first brace isn't highlighted
q qq qw qx quoting recognized
POD recognized (from =head1 to =cut)
__END__ __DATA__, __FOO__ all recognized
added Perl to One-liner command
Known problems:
many autoquotes not highlighted right: here-docs not quoted,
hashkeys in => notation.
I invite anyone else to take a crack to getting the autoquotes right,
in the cases that Xavier noted. (I am travelling for the next three
weeks!)
The problem with doing here-docs right is that the start and end
delimiters change with each case, so we'd have to use backreferencing
in the 'end' parameter, and I don't think that's currently possible.
- Eric
ps. I wonder how hard it would be ( maybe for 2.0! :) ) to have TM
simply use vim syntax files, or some other well-worked format...
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Paul Nordstrom August wrote:
> FTP in the drawer... yes please! (Hope that's SFTP as well.)
There's a way to fake it somewhat :)
Open the files from the FTP server as you would normally, they're then
stored in /private/tmp/501/Cleanup at Startup/ or so as files. If you
put those files in a project *and* open tabs for them in the project so
they are read, you can close the original windows, and only work on
what's in the project.
Alas, you cannot successfully save, close and open the project lateron,
and moving things around in folders won't work either; I only use it
when I know I'll be editing the files for an hour or more or so.
Regards,
Martin
Hello
Maybe this is not a bug, but when I open a .ini file from the project
drawer, one click doesnt open it - i have to double click it - and then
it opens in a new window instead of the same window as the rest of the
files in the project. Is this a bug?
Regards
Duarte Carrilho da Graca
Allan,
> Added a dock menu with New, New Project, and Open….
Thanks so much for adding this! Certainly one of the features I
personally missed from SubEthaEdit. With that said, I wonder if it might
make sense to make the menu more consistent with SEE? For instance, SEE
has "New File" instead of "New". They also use "Open file..." instead of
"Open.." IMHO, I think that SEE's wording/ellipses choices look better,
but that may be familiarity talking.
> The Text -> Change sub menu now also appears in the context menu (when
> there is a selection). Also, suggestions for spellings no longer
> appear if the selection contain newlines or tabs (previously it only
> looked at spaces).
This is also a welcome change. However, I think that instead of
"Change", which is ambiguous, you should use "Convert" or "Format" as in
the attached Service menus.
Thoughts?
Chris
--
Do the evolution. Get Firefox!
<http://spreadfirefox.com/community/?q=affiliates&id=5&t=4>
Quote of the moment: /If you can't describe what you are doing as a
process, you don't know what you're doing./— W. Edwards Deming
I just built beta 11. If there are no problems this will be released
later today as 1.0.2 which should be the last in the 1.0.x series,
meaning that I'll shift priorities a bit and focus on larger
improvements for the 1.1 release.
Basically it just means that having the 1.0.2 out as “official” with
most obvious fixes done, I'll be more comfortable rewriting major parts
of TextMate even if it means the source will be in a non-functional
state for a couple of days -- but I'll still release betas as often as
it makes sense, and I'm aware of the requests expressed on this list.
was wondering if TextMate could throw a warning if the key-equivalent
you're assigning to a command will wipe out a pre-existing
key-equivalent. From what I've observed, if you add a key-equivalent
[that already exists] to a command then the command works --as
expected-- in that key-equivalent, silently overriding what was there
before. Hopefully not something too difficult? I guess that would be
helpful for macros too.
Kumar
Hi Allan,
If possible, could you make the Replace field the next tabindex after
the Find field? Right now it lands on the Sigma button, meaning I have
to double-tab to get to the Replace field.
Thanks!
Chris
--
Do the evolution. Get Firefox!
<http://spreadfirefox.com/community/?q=affiliates&id=5&t=4>
Quote of the moment: /"Accept that some days you are the pigeon, and
some days you are the statue."/— David Brent, Wernham Hogg
I woundered if it was possible to change the shortcut for "Insert
closing tab". cmd-opt-. isn't working on my keyboard layout. As I
understant it, opt-'.' is '>' so cmd-opt-'.' is understood as cmd-'>'
I get this problem all over the system.
Anyway, how about just cmd-'.' ? I know it's a reserved shortcut for
cancel but in a sense, it 'stop' a block. And there is no use for a
cancel in text editing. And beside, cmd and '.' and very close
toghetter while opt is all the other way of the space bar on small
keyboards ( original g4 and I think powerbook/ibook too )
> Date: Mon, 6 Dec 2004 13:10:05 +0100
> From: "Fred B." <fredb7(a)starflam.com>
> I started using Fugu with this release.
> Connecting locally to my server and editing using TM working fine.
Just so you know, rc2 is out now. It has fixed some problems that rc1 had.
Carl
HTML folding does not work properly in a very simple hand-written HTML
page. This is a movie depicting what happens:
http://www.hashref.com/textmate/tmbug_html_folding.mov
There I try to hide three blocks:
1. The "body" CSS element is correctly folded
2. The "style" tag is not
3. The "head" tag is not
-- fxn
Python folding seems half implemented, it does not work. As you can see
in this shot:
http://www.hashref.com/textmate/tmbug_python_folding.png
There's no mark for classes for instance, and more important if you
click on the marks to fold functions nothing happens.
-- fxn
I love the scratch macro and the ability to replay it with a keyboard
shortcut. How about a "replay last used macro"?
E.g., let's say I have a saved macro that I don't want to assign a
keyboard shortcut to, but which I do want to use over and over again
for a stretch in a document. Right now I've got to pick it out from
the menu each time.
If we had a "replay last used macro" I could just hit that keyboard
shortcut repeatedly. It could probably even replace "replay scratch
macro" and still have the same effect when the last used macro
happened to be scratch.
Thoughts?
A few issues in the syntax highlighting done by Perl's bundle.
The first one I think it's typically hard to get right: here-docs are
not recognised. This not only means that they are not colourised as
strings, but that their content can fool the rest of the highlighting,
for instance if there's an unbalanced quote. (Sometimes a fake comment
can help there though.)
POD sections are not recognised either, so not only they are not
coloured but Perl keywords are highlighted in regular English (for, if,
while, ...).
On the other side, hash elements are no correctly highlighted. In
$foo{bar} = "baz";
the red for variables goes beyond the "{" and stops at the "r":
$foo{bar
If "bar" is quoted the highlighting is correct though, curlies in black
and the string in green.
In the broken example I'd expect the curlies in black, and the key in
green because it's autoquoted by Perl. Green to the left of =>s would
be good as well, as words there are also autoquoted. Both conventions
for autoquoted stuff are followed by CPerl and the Perl mode for Vim.
q(), qq(), and their variants are not highlighted as strings either.
-- fxn
I just purchased TextMate and found some apparent bugs editing Perl and
Python. Which is the right address to report them?
-- fxn
PS: I would have liked new releases could have a new trial period. I
bought a license without being able to compare the current version with
the initial one.
>I just purchased TextMate and found some apparent bugs editing Perl and
>Python. Which is the right address to report them?
The language bundles are currently maintained by volunteer work. I
contributed the Perl bundle and according to
<http://wiki.macromates.com/textmate/show/Bundles102>, a bunch of
people contributed different Python bundles. Probably the best place
for bundle bug reports is this mailing list, with a subject like Perl
Bugs or something else clever to divert people who don't care.
What are the Perl bugs? They might be due either to my bundle or
underlying problems with TM.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Hi,
I would like to highlight the syntax as shown in the attached picture.
However, this matches the wrong brackets. Anyone any idea how I could go
about to better highlight this?
I guess it boils down to a not powerful enough syntax highlighting scheme
though :(. The thing I want to do is something like:
- match commands (begin with '\' followed by a word
- this can be followed by [\w+]
- and this can be followed by {.*}
And what I would like to do is apply the global patterns to the '.*'
mentioned above, and if nothing global matches, then apply a color.
Jeroen.
PS. I seem to remember something about using groups to define different
colors in a pattern, but I forgot how that works. Can anyone tell me how
that works and/or add that to the wiki ? :)
brilliant!
> Added history for find and replace strings. Currently it doesn't store
> options in the history (like regular expression or case sensitive)
That helps a lot... Can we save certain ones (esp grep searches) and
give them a name somehow (someday!)?
On reading the change notes in b10 I discovered the context menus for
selected text -- never used them previously but I love them.
Amazing progress as usual. Thanks Allan.
p.
sorry, I'm not quite sure I understand, are you saying that it does
work for you, or it doesn't? I've installed all the latest updates now,
but there is no change, it still doesn't launch, just appears in the
dock briefly for a split second and then vanishes again. I don't get a
crash message either.
I'm running 10.3.6 on a G4 dual 1.4Ghz.
weird.
Chris
Begin forwarded message:
> idem for me (Mac OS 10.3.6, last security updates done)
Is there a way left to move the cursor to the top of the window? Pageup
used to do this, and while I understand that it's not HIG or like other
apps do it, I was just getting used to it :-)
Regards,
Martin
Greetings folks,
recent $'er for this great editor. Longtime vi user, but always wishing
for a highly configurable editor that was more os x-integrated.
Couple questions/suggestions:
Any way to make a Command which can work with the $TM_FILEPATH variable
-- except with a .pdf extension? This is good really only for opening
the .pdf file in e.g. TeXniscope for the first time. …or another
method?
Also -- after running a little pdflatex Command on a file, I'm finding
that there's no really optimal output method. I'm often working on a
12", so a full window devoted to the results (which I generally only
need to see if there's an error) is a little bulky, especially as the
focus moves to the said new window. The tooltip output looks promising
(it disappears at the touch of a key), but it seems to appear with the
top left corner at the cursor -- which often leaves the bulk of the
window off the screen.
Thanks, thanks, thanks for TextMate!
David
I do like the indented paste feature but find that it's one of the
features that I'm constantly turning on and off, depending on what I'm
working on. It would be nice if this feature were moved out of the
preferences and back into the Text menu where's it more readily accessible.
Thanks!
Chris
--
Do the evolution. Get Firefox!
<http://spreadfirefox.com/community/?q=affiliates&id=5&t=4>
Quote of the moment: /If you can't describe what you are doing as a
process, you don't know what you're doing./— W. Edwards Deming
>Has this been brought up as a feature request? skEdit's (i'm using it
>while I wait for my Paypal deposit) tidy functionality is very well
>thought out. I'd like to see something similar in TM.
Here is my current kludge to get two HTML Tidy commands: one replaces
a window with its Tidy-ed version, and another just produces a window
with clickable error output. Note that (bug? feature?) if HTML Tidy
thinks there are errors in your document and you do a 'replace' then
it will place the errors at the top of the document. You can fiddle
with the Tidy flags to avoid that.
Also note that my version only runs on the last saved version and not
the current one. That can also be tweaked...
Anyway, get HTML Tidy from http://tidy.sourceforge.net/ then install
it someplace convenient. I put the command-line version at ~/bin/tidy
Report Errors Command:
Before: nothing
Command: ~/bin/tidy -e "$TM_FILEPATH"
Stdin: None
Stout: Sep window
Pattern: line (\d+) column (\d+) - (.*?)$
Format: $3
Line: 1
Replace Document with Tidy-ed Version Command:
Before: nothing
Command: ~/bin/tidy -bicq "$TM_FILEPATH"
Stdin: None
Stout: Replace doc
Pattern:
Format:
Line:
Works great for me!
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
I just opened a 1.5M XML document in TM. My XML syntax isn't all that
lean, and it takes a while for TM to highlight everything and become
responsive. Currently, I do not know of any way to open a file without
syntax highlighting. That'd be one nice thing to have... The other
would be for TM to pop up a little dialog if highlighting hasn't
completed after, say, 10 seconds and give the option to abort the open,
continue highlighting (until done), or open without highlighting.
--
__ ____
/ / / __/ Brian Lalor
/ _ \/__ \ blalor(a)bravo5.org
/_.__/____/ http://bravo5.org/
hi,
at first i must say that textmate definitely rocks, it is really THE
missing editor i was searching for. and its a not unimportant reason
why i bought my ibook.
but this doesn't mean its already perfect i still like to see some
features or at least small changes. :)
for example:
- parenthesis highlights (or smart typing highlights) like in komodo.
i have been using activestate komodo quite a long time but because it
was a bit to big and slow and not extensible enough i don't use it
anymore, but one thing was really cool: the parenthesis highlighting.
in textmate you have to roll over the parenthesis with the caret to
get it highlighted, in komodo you just have to be near it and it gets
highlighted (normally it gets red and bold), i like this more than
always have to move with the caret forward and backward, its
especially more comfortable in heavy nested statements or lisp :). so
i would it like to see implemented this way in textmate.
- simple formating in tool tips, probably like in html so that one can
make bold, underlined and italic text, this would be very nice because
bigger tool tips would be better readable.
- better placement of tool tips. if you have a really big tool tip
(or just a normal big one) and your caret is a bit to near to the
right of the screen, the tool tip is shown out of the desktop, i found
this a bit useless sometimes and i want to suggest to place tool tips
a bit more user friendly.
thats it, i also would like to see some other features like the
right-click-menu in the dock and a user adjustable color-system, but
this already have been mentioned and i don't want to repeat them again
and again.
thanks for this great tool.
--
Torsten Becker
I wish I could format the output of TM's commands in html, and make
html links able to launch other TextMate commands !
Thus one could display error reports, stats, links and stuff very
nicely !!
I would also like to be able to use a TextMate webkit window that would
be called from somewhere else.
In order to debug my php scripts, I currently have a script watch php's
log using kernel notifications (kqueue) and trigger a cocoa window
alert on each error.
I wish this window could be an interactive one, in Textmate. Thus I
could jump directly to the error by clicking a link, etc...
Possibilities would be unlimited !
Dominique PERETTI
http://www.lachoseinteractive.net
I would like to be able to automatically run a script, when a certain
event happens (such as, a file save), depending on the file-extension
(and maybe also depending on the project).
For example, what I really like to do:
If I save a file that ends in .rb, I want to automatically run a
command that does a "ruby $TM_PROJECT_DIR/test/unittests.rb". If it
fails, it could send me a notification through growl
(http://growl.info)
Hello,
I am really starting to love textmate. I want to add functionality
that will either comment or uncomment the selected text. Right now i
have two commands; one that prepends '# ' to the line and one that
strips the first '# ' on the line. I would really like to have this
handily accessible under one command and have it automagically decide
wether or not I want to comment or uncomment the line. I am sure that
others have added this sort of functionality. Anyone have a graceful
solution?
While I am here does anyone have any handy python editing
commands/macros?
--dfc
Douglas F. Calvert
http://anize.org/dfc/ .::. GPG Key: 0xC9541FB2
A mystic in the sense that I am still mystified by things...
hi,
because the homepage of the wiki is a bit down i post this to the list.
i did build 2 bundles and want to share them, probably some find them
usefull :) :
- mips bundle: syntax-highlighting for mips assemler which you
probably need when you write something for spim
- graphviz bundle: syntaxhighlighting for dot files, this is maybe
usefull when you configured textmate as graphivizs external editor and
you want colored keywords.
more information and preview pictures are at
http://wiki.macromates.com/textmate/show/TorstenBecker
--
Torsten Becker
Hi
If I save a file from TM to ~/Documents/ and then move it from finder
to ~/Documents/ivar/ I would love it if TM could sense that move (I
think it does when using projects).
Just like SEE TM could ask something like "This file has been moved. It
will be saved to the '~/Documents/ivar/' folder, or you can specify
another location.".
kind regards
ivar
>On the subject of anime and icons; when I bought TextMate, the first
>thing I did was replace the icon with the Fuchikoma (from Ghost In The
>Shell) icon from the World Of Aqua 4 icon set by Icon Factory.
>
>http://iconfactory.com/preview.asp?type=search&id=155&query=fuchikoma
Hah! That's the icon I'm using too! The red makes it stand out, it
looks like a robot and it's cool! - Eric
Would it be possible to distribute the TM bundles separately (maybe the
way Konfabulator does, updating the "official" ones when a new release
comes out)? I don't do any C++, PHP, or ASP coding, so I don't see any
reason to keep those bundles around; they get replaced every time I
upgrade TM, however.
--
__ ____
/ / / __/ Brian Lalor
/ _ \/__ \ blalor(a)bravo5.org
/_.__/____/ http://bravo5.org/
Hi
I'd like to see something like SEE:s way of letting you switch between
different "File Encodings".
I think it's the best way of switching encodings so far!
I might have missed something but right now all I know of is the
"Re-Open With Encoding:" menu which I rarely use. Mostly because I
don't need to change file encoding that often but secondly because it
forces me to save my file to be able to switch encoding.
kind regards
ivar
ps. I really(!!) like b8 and the cleanup of menus!
>I am hoping I¼m just missing something obvious... Is there some kind of
>list of functions/methods? I.e. Similar to BBEdit or SEE¼s popup function
>list?
Here's my kludged version of it for Perl using TM
commands, which pops up a separate window listing
all the subroutines (i.e. lines that begin with
'sub ').
Make a command:
- before: Do Nothing
- Command: grep -n "^sub "
- Std In: Entire document
- Std out: Show in separate win
- Pattern: ^(\d+):(.*)$
[this parses out the grep output so we can identify the line part]
- Format: $2
- Line:1
This idea can be tweaked to fit the language of
your choice. I think you can pipe it cleverly
through sort to get the subroutines alphabetized.
good luck, Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
>> So basically if you hit an arrow key which will not make the cursor
>> move
>> within the search string it aborts.
>
> IMHO this is a mode, eg the meaning of the arrow key will change
> whether the cursor is in the search string or at an end. Moreover the
> user focus is on the occurences hilighted in the file, rather than on
> the field at the bottom of the window. Since that occurence is
> selected, it seems coherent that the arrow keys would do what they
> usually do: exit the selection. Also that behavior will be familiar to
> Emacs users.
>
> Fixing using backspace shouldn't be so much of a hassle since search
> strings are typically short, and as the results are incrementally
> displayed, the user can detect errors early.
>
> -- D
my first impression on that issue was: of course there's a need to be
able to navigate within the search string using the cursor keys, after
all that's the way osx behaves in any kind of text input field with the
focus (even in incremental searches, like in itunes).
but then i tested it myself in textmate and found that this behaviour
isn't necessarily what i expected here, because the search string's
corresponding part in the document was highlighted and i thought it
would be intuitive using the cursor keys now to directly navigation in
the document.
so i no longer have a definite opinion with it. gui or not to gui,
that's the question ... ;-)
___✍
larsen
Sorry I forgot to mention that i-search requires two new key binding
entries which you'll need to manually add if you made a local copy:
"^s" = "ISIM_incrementalSearch:";
"^S" = "ISIM_reverseIncrementalSearch:";
I named my methods the same as the ISearch InputManager/Plugin. So if
you already have this installed, the key bindings from your "global"
key bindings file should already make it work, _except_ that ISIM use
control-r for the reverse search, TextMate is using that for 'execute
line', which is why I choose control-S.
Maybe this is why reverse search doesn't work for you Wayne?
Regarding aborting the search with movement keys, that would pretty
much make it impossible to go back and make edits in the search string
(other than backspace), but maybe no-one does that?
Has this been brought up as a feature request? skEdit's (i'm using it
while I wait for my Paypal deposit) tidy functionality is very well
thought out. I'd like to see something similar in TM.
Following up on a post from a week or so ago, I've created a "mysql"
snippet to run MySQL commands within TM. (This probably works best if
you have a ~/usr/.my.cnf file configured with a default login and
password on localhost.)
The snippet simply is the following: /usr/local/mysql/bin/mysql
${1:database} -e "${2:SELECT}"
... so I hit mysql, tab, then enter the DB name and then the command.
Some sample queries are appended below.
My problem is that the output begins directly after the final " in the
-e statement. What's the easiest way to insert a carriage return here?
Or is this better run as a command and not a snippet?
I've already got macros to convert DESCRIBE TABLE output into all sorts
of PHP elements... TM is great :)
Paul
> /usr/local/mysql/bin/mysql iedb -e "show tables"
> Tables_in_iedb
> clients
> firms
> iedbdata
> irt_metadata
> metadata
> sections
> stock
> /usr/local/mysql/bin/mysql iedb -e "describe
> metadata"Field Type Null Key Default Extra
> field_id int(11) PRI NULL auto_increment
> section_id int(2) YES NULL
> category varchar(100) YES NULL
> subcategory varchar(100) YES NULL
> section varchar(100) YES NULL
> subsection varchar(100) YES NULL
> field varchar(255) YES NULL
> descr tinytext YES NULL
> type varchar(100) YES NULL
> avail varchar(100) YES NULL
> comments text YES NULL
> fieldcode varchar(100) YES NULL
> /usr/local/mysql/bin/mysql iedb -e "select * from
> clients"clno fname lname job account_balance
> 10 sam smith auditor 5525.75
> 20 james jones manager 8960.25
Just downloaded the new beta to see what everyone was talking about,
but ctrl-s does nothing for me (no line in status bar, and if i hit
ctrl-s then start typing, it is just inserted as text). Going to
Textmate->About shows that I am definitely using 1.0.2b8....is there
something that I am doing wrong?
ben
I was wondering if it would be possible to not have the page scroll when a
string being searched for is found on the currently visible page.
I find that when this happens it causes me to think that the found string is
outside of the visible region and so I try to locate it's context within the
document. Somethings it's only 10 lines away but it may not be obvious
because my mental map of the document is disrupted.
Many other apps do not normally scroll if the found string is within the
visible region.
Thanks,
Ed Wong
I just downloaded the new beta...
Allan and team, I have to say I am growing more and more impressed with every release. Amazing work.
=====
http://www.velodev.com/
Hi,
Just a small request: please provide a feedback menu when dragging
seperate files into a project that are masked by the default file pattern?
I was trying to drag a file beginning with . into a project and it didn't
work, nothing happened. It's that I know of the existence of the default
file mask that I understood what happened, but other users might not know
about this...
Jeroen.
The new beta looks *very* nice. The preferences and menu
reorganization are great, and the incremental-search is oh-so-great!
Keep up the good work, Macromateys!
--
__ ____
/ / / __/ Brian Lalor
/ _ \/__ \ blalor(a)bravo5.org
/_.__/____/ http://bravo5.org/
Downloaded, installed. I do C-s and get nothing.
I have a heavily-remapped keyboard (and a MS Wireless one, at that), but resetting it to the defaults produced no changes. I scrolled through the menus, and saw no conflicting commands, and checked my MenuMaster config for conflicts.
Anyone else seeing this?
According to Ollivier Robert:
> > Very minor nit, when one select the Preferences menu, no tab is selected
> > and the window is bare till one tab is selected.
>Weird: hitting ctrl-s doesn't do anything here :(
I have the same problem: I don't get anything in the status bar
(using a British keymap)
--
Jackie Chappell
jmchappell(a)mac.com
Fugu with TextMate is fab; I'm using it now in preference to Cyberduck.
The new beta is amazing!
> Added incremental search. Press ctrl-s to open a text field on top of
> the status bar. When you enter something in this text field it will
> immediately try to find it in the text. Press escape, tab, return, or
> enter when you're done. The search is case sensitive if the string
> entered is in mixed case, otherwise it's case insensitive. The search
> will wrap around, and it will start from the caret. It's a forward
> search, use ctrl-S to make it a backwards search. While the text field
> is up, you can press ctrl-s to go to the next match or ctrl-S for the
> previous match.
cool! I can't believe how fast this is progressing... And the new Prefs!
cheers, Allan!
Paul
Allan wrote:
> TextMate v1.0.2b8 (2004-12-01) ==============================
>
> Added \U and \L escape codes to the (regex) format string. Everything
> following these escape codes to the next \E escape code will be converted
> to upper- or lowercase.
Great! All our dreams come true: we asked for it and we got it!
Thanks a lot,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
>And what the Line box does I'm not sure.
When you put the number of the correct capture register (in my case,
the first grouping), TM recognizes it as a line, and (1) you can
click on the line in the separate window and jump to it in your
original window and (2) the line number isn't printed in the window.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
I'm growing more and more familiar with the new application now that my network is cooperation
with it. But, I have one minor hang up. I see all the examples on the website with black
backgrounds, green text, dark grey backgrounds with lighter text.
How do you alter this setting?
Thanks.
=====
http://www.velodev.com/
I've made some changes to my Java bundle; in particular, there's now a
snippet to ease the creation of getters and setters, updated keywords
in the Java syntax definition, and a new template for new classes.
My subversion repository has been resuscitated (kind of...); the
bundles are now available here:
http://telly.bravo5.org/svn/repos/TextMate/trunk/Bundles
Thanks,
B
--
__ ____
/ / / __/ Brian Lalor
/ _ \/__ \ blalor(a)bravo5.org
/_.__/____/ http://bravo5.org/
I've discovered a rather annoying problem when using Textmate with
(more than) two projects open, one of which is large. When I cmd-tab
to TM the active project appears immediately, but it takes a couple of
seconds before the other projects appear behind it. If during this
time I alt-tab out into another application, after a couple of seconds
(or when I wave the mouse) the other projects will appear in front of
the active application, but textmate is not active (ie. when I type it
still goes into the other application, but I can't see what's
happening because TM is in front of it).
Any fix would be much appreciated!
Hadley
Allan,
When I have lots of tabs open the ones that don't fit on the tab space gets
shunted off to the ">>" menu. This is fine except now when I edit this file,
there's no way of showing that it needs saving.
This is very minor since I've been in the habit of saving early and often
ever since I worked in an office where the power went off on a semi regular
basis :), but could you perhaps put an "*" or something beside the file name
in the menu to indicate that a save is pending? Just to be consistent with
the tab's "x" indicator.
Thanks,
Ed
With TextMate 1.0.2b5, when hitting ^-D while at the start of a line, it
does duplicate that line but the first version now misses the first
character.
-----
Hello World!
^-D
ello World!
Hello World!
-----
Someone else could reproduce this.
Eep?
/MS
I am hoping I¹m just missing something obvious... Is there some kind of
list of functions/methods? I.e. Similar to BBEdit or SEE¹s popup function
list?
I have used TM very little so far, but one thing that attracted me was the
much more ³native² or ³OSX² feel of it, as compared to say BBEdit. We use
SubEthaEdit for specific things (collaborative editing only), but BBEdit has
reigned so far. Yet, I don¹t really like BBEdit. It just feels old (even
the new 8.0), and it still seems WAY behind at least the editors I use on
Windows and Linux (these are primarily Visual SlickEdit (for just about
anything), IDEA for Java work, and Visual Studio .Net for Windows C++ work).
While I realize TM is not an IDE, I thought it was targeted at programmers,
so this kind of thing seems like one of the more standard features to
expect.
Aside from that, I¹m starting to get some time to play with it, and the
shell integration aspects seem super cool.
One other thing I¹d really like to see is the equivalent of the ³bbedit w²
command line syntax, so that I can use TM as my Perforce editor.
Anyway, so if I¹m just totally missing it, or there is an alternative way,
let me know, otherwise, consider it a feature request :)
I'd like to implement some automated method for creating getters and
setters for private fields in Java classes, but I'm not having any luck
figuring out how to do it.
My first thought was to set a bookmark where new getters and setters
would be inserted in the file and then put the cursor on the line
declaring the field to be got/set. (Typically, methods and fields are
separated by at least a constructor, and usually the methods are
declared after fields in the same order that the fields were.) I'm
unable to do this because bookmarks aren't exposed as variables to
commands/macros/etc. This also doesn't scale if there's more than one
bookmark.
Does anyone have any suggestions on how to implement this?
Thanks,
B
--
__ ____
/ / / __/ Brian Lalor
/ _ \/__ \ blalor(a)bravo5.org
/_.__/____/ http://bravo5.org/
I updated the PHPDocumentor [ http://phpdoc.org/ ] snippet bundle for
PHP 5 constructs. The commands are still useful for PHP 4 too. It
also has an auto-installer (bash script) that sets the default value
for @author in a separate text file so you don't have to edit the
snippets. You should run the install script and replace the old bundle
if you had it installed before.
Download:
http://farmdev.com/downloads/PHPDoc_1.1.dmg
btw .... anyone know what is happening with the main page of the wiki?
There was a place for post-1.01 bundles but I can't find it anymore.
was going to modify a download link I had up there.
-Kumar
On Mon, 29 Nov 2004 21:03:14 +0100, Sune Foldager <cryo(a)diku.dk> wrote:
> On 29. nov 2004, at 17:45, Josh DiMauro wrote:
>
> > [i-search...] As to the command key: please, let's keep it ^-s. It's
> > consistent
> > across multiple applications, and I'm already having to learn too many
> > new commands as it is, thanks.
>
> But of course this doesn't work on keymaps where ^ is dead, such as
> danish :-/.
I meant ^ as in the control key. Your layout really kills the control
key? Or just the carat (^) key?
Regardless, Allan's idea of linking to the keybinding of the i-search
plugin is genius. It can be edited if it's not what you like,
fortunately.
--
Josh
http://del.icio.us/jazzmasterson/
(forwarded because I was stupid and replied directly to Sune, sorry.)
> Date: Sun, 28 Nov 2004 20:48:11 -0500
> From: Josh DiMauro <jdimauro(a)gmail.com>
> That's pretty much it... but the advantage is less the shorter find
> string, and more the ability to fine tune by either narrowing or
> widening the search with a couple keystrokes, without having to reopen
> a dialog box. The difference is subtle, but (I feel) important.
> Incremental search seems to be one of those things that makes a subtle
> difference in reducing resistance to use. It's not so much that I need
> it to do all my searching. It's more that, when I don't have it
> available, I search less, and that makes me less efficient.
Incremental search changes the way you do searching. Using Firefox or
Mozilla, on a web page I can just type '/' and then the thing I'm
looking for. cmd-f and filling in a dialog box is requires much more
cognitive effort because of the two context switches required (into
the dialog box and back). Many times I've wanted to type '/something'
and then realized I needed to do cmd-f etc... and decided just to
page-up or page-down instead. May I suggest cmd-/ for incremental search?
Carl
I came across this thread, and although it's already been discussed on
this list, thought I'd share for the sake of completeness:
http://typographi.com/000744.php
Chris
--
Do the evolution. Get Firefox!
<http://spreadfirefox.com/community/?q=affiliates&id=5&t=4>
Quote of the moment: /If you can't describe what you are doing as a
process, you don't know what you're doing./— W. Edwards Deming
Hello,
I noticed that a lot of the syntax highlight bundles use different
colours, and on top of that also other decoration such as underline and
italics.
My experience is that italics in most fixed-width fonts does not look
that good and is bad for readability.
The other thing is that the italics is mostly superfluous: the aim is to
differentiate text from surrounding text and most of the time, this is
already achieved by using a different colour and using italics as well
does not really help.
So I propose that authors of syntax highlight bundles use italics
sparingly and only if it really has extra value to use it.
How do other users feel about this? And does anyone else have tips for
increasing usability of syntax highlight bundles?
Jeroen.
Hello. New user, here.
I'm loving TextMate so far, although I've only used it for about 12
hours. :) And I googled the mailing list archives for an answer to a
question I had, but couldn't find it. Thus, I ask you:
I'm an addicted user of the i-search cocoa plugin, which duplicates
Emacs' isearch functionality, with the same keystroke: ^-s forward,
^-r backwards.
http://michael-mccracken.net/blog/blosxom.pl/computers/mac/programming/iSea…
However, I find that this doesn't work inside TextMate, and that makes me sad.
Can you help make me not sad?
Thanks. :)
--
JoshD
http://del.icio.us/jazzmasterson/
Hello, folks. Pardon the length of this email, but I wanted to throw my
hat into this ring.
I've just downloaded TextMate, and it has taken much restraint to
suppress the constant urge to toss that ugly icon into the Trash. I'll
make no apologies for the fact that I find it hideous, and if it were
up to me, I'd start over from scratch with a completely new design.
Alas, I am not a designer, so I cannot give you a mockup. But I would
like to get a description of my idea out into the open, so that someone
with artistic skills could give it a go.
A Mac OS X application icon is supposed to show the type of document
the program works with, and a tool that one might use to work with that
kind of document. See TextEdit, AppleWorks, and Preview. However since
there are many apps that do not exactly follow this guideline -- I'm
thinking of iTunes, Safari, Mail, and Address Book -- I think we have a
little room for interpretation. But I am still in favor of keeping the
same visual style and perspective used in the Apple icons.
I envision the finished icon as mostly white. The "document" part of my
icon idea is two sheets of white unlined paper, at the familiar angle
(see TextEdit), which look like they could be homework assignments or
test papers. I envision that text is hand-written on the papers -- but
it should be made clear from the indentation and varying line length
and such that it is programming code, not paragraphs of text. There
should be red markings on it, indicating where corrections have been
made, and possibly a red hand-written and circled A at the top of the
page, indicating the grade this assignment has theoretically received,
or just a checkmark or some other indication that the document is now
A-OK, thanks to TextMate.
The "tool" part is where I think we can depart from the recommendations
a bit, given the state of other Apple icons. I can't get along with the
current robot, so I suggest a happy anime cartoon boy. In anime, as in
other cartoons, characters often have superpowers or hidden abilities,
and this guy's power therefore is sprucing up your document quickly and
efficiently without getting in your way. He's standing proudly to the
right side of the papers, legs slightly apart, arms folded in front of
him, a red marker clearly visible in his hand, and with a stereotypical
spiky outrageously-colored anime hairstyle, possibly partially hidden
by a backwards-turned baseball cap. I see him wearing long white pants
and a white shirt or sweatshirt (and if only MacroMates had a logo, it
could be printed on the sweatshirt). I see the hair as being the icon's
primary source of color, but this could prove to be too little color,
so the shirt and/or pants may have to get some color too. The color of
the SubEthaEdit icon changed from blue to green with the 2.0 release,
and iTunes' icon has changed color with every major version as well;
the hair and/or clothing colors of this icon could also be changed
across TextMate versions if desired.
Document icons should be easy to make based on this idea -- just the
marked-up paper by itself, not at an angle, with the customary turned
page corner.
So that's the idea. If we have any designers out there wanting to
tackle it, please go for it! I'm of course available by email for
further discussions of this idea, and I'll try to monitor the list as
well.
--
ryan schmidt // hello at ryandesign dot com
As we've been discussing the TM icon lately, and I'm one of those who
isn't keen on the current icon, I thought I'd do some research.
When placing a new brand into an existing market, one of the things to
identify is the values presented within the brands of your competition.
For icons, the overriding value to consider is that of colour.
I'm no designer, but I've grabbed together a bunch of OS X editor icons
and placed them on a colour wheel:
http://allinthehead.com/assets/img/osxeditorcolours.png
As you can see, the main focus is on blues and greens. These colours are
already over-used and should be avoided. Strong yellow and red have also
already been claimed, although there's no strong orange in use.
The main gap on the wheel is obviously the pinks/purples and the cyan
end. Cyan is tricky to get right, as it tends to either drift into blue
or green, or contrasts badly against white.
Therefore, I think that TextMate should have a pink/purple icon.
drew.
hello,
I am running the latest textmate beta and when I hit apple+f no find
menu pops up. however apple+shift+f brings up a dialog box. has anyone
esle experienced this?
--dfc
Douglas F. Calvert
http://anize.org/dfc/ .::. GPG Key: 0xC9541FB2
A mystic in the sense that I am still mystified by things...
Allan Odgaard wrote:
> I'm doing one or two more 1.0.2 beta versions and then I'm starting
> 1.1 and putting all the minor stuff on hold.
>
> I may send a list of what 1.1 will be about or perhaps use the wiki
> for a more public to-do (not decided on this yet -- I don't mind an
> open process).
>
> This also means that if you have something that frustrates you _a lot_
> with the current versions and you think it's easy to fix, you may want
> to mention it -- but if it's already been mentioned a few times,
> chances are that it's postponed because it's not a minor thing, or
> it'll automatically be done in the 1.1 overhaul.
OK, this single thing irritates me A LOT !!
Being a beta user, I have yet again updated TM and after doing so, my
finely tuned Snippets, Commands, Macros, Templates, etc etc menus are
being filled with things that I don't use.
So what I would ask for and hope would be easy to implement is:
Give *PRIORITY* to my bundles, that are in
~Library/AppSupport/TM/Bundles rather than those that are in the
TM.app, or alternatively the ability to switch of the TM.app bundles.
This could ideally be controlled by a preference checkbox in the prefs
window, that gives turns on the TM.app bundles or not. Default = On.
Apologies for yet again boring you with the minor stuff. :)
Kind regards,
Mats
Re: 1.0.2b7
- The web preview looks great.
- the scrolling past the window edges works great.
- Open new untitled pref seems to work great.
- Thumbs up!
The new color hack (which reads in colors) is marvelous. It is saving
me lots of time and pain.
I updated my show invisibles hack <http://math.sfsu.edu/hsu/textmate>
to have subtler colors and play nicer with ASCII xA1-xFF. Don't know
what to do about Unicode, but I'm sure someone can extend my simple
idea.
- Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
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
Hi mate,
Just saw your email on the archives... any chance of making that syntax
file available to me? I've been mucking about with it much as you did i
imagine, but don't quite get how to edit them and have them load. I
really want PHP & HTML syntaxing at the same time...
Thanks,
john
> Allan,
>
> Thank you for your help !!! Very much appreciated.
>
> >> As it is right now, I have a choice of highlighting for HTML or for
> >> PHP, BUT NOT both at the same time.
> >
> > No, the "HTML (PHP)" does do this. But the colors of HTML is toned
> > down significantly.
>
> Ahh, the perils of editing syntax files without understanding things
> fully. I made a colour change to the "HTML (PHP)" syntax file and
> stored it in the AppSupport directory, so it overrode your file, and in
> doing so it created plain black text on white background. : (
>
> I have now spent a good few hours tweaking my colours and have HTML
> with PHP; with CSS; with JS highlighting working just as I want it.
>
> Although time consuming, it has been a very good process to go through,
> and I have learnt a lot about the syntax structure. As a result, I am
> very impressed by the inherent power in the syntax format.
>
>
> My only concern now - as I have migrated to a dark background - is that
> the cursor is invisible over the edit window. Perhaps something that
> you are already aware of and working on. (Or perhaps is remedied by
> some to me unknown setting).
>
> Kind regards,
>
> Mats
>
>
Regards,
John Cleary
==
Founder, OziMac
john(a)ozimac.com.au
http://www.ozimac.com.au
==
Hi,
I do like TM's syntax highlighting a lot, but I think it's annoying
having to tweak their color schemes to my liking all the time. I think
the parser bundles should tell TM the kind of a piece of text (comment,
reserved word, string, etc) instead of font style information, and TM
should give me a way to apply a custom stylesheet to all that info.
So I would like to have one file containing my custom stylesheet that
tells TM to display all comments (regardless of language) in green, all
strings in purple, except for perl, where I'd like my strings to be
blue. You get the idea.
How does that sound?
Cheers,
-Ralph.
BTW, that's the feature request I wanted to add to the wiki before I
broke it..
I would like to have a $TM_BUNDLE_PATH available in a command, that
points to the directory in which the current command is stored. For
example, $TM_BUNDLE_PATH would point to
/Applications/TextMate.app/Contents/SharedSupport/Bundles/HTML.tmbundle
for the Refresh Safari command.
This would make it easier to make more complex commands (just let your
command execute $TM_BUNDLE_PATH/my_fancy_script.sh) or pack in some
extra resources.
I love the color picker (awk version)! That is a great little hack
which should probably come standard. One thought: it would be even
cooler if one could select text that was a color like #00ff00 and
have the color picker open with that color selected. For those of us
who need translating *to* colors as well.
I love this program... the power of Cocoa and Unix together at last... - Eric
PS. I like the key/gear icon.
PPS. Yes, icons are something everyone can have an opinion on (I was
alluding to the bike shed piece when I wrote that). On the other
hand, a lot of people on this list really like the program and want
to contribute in their own way. Some of us can hack Perl syntax
files, some of us can be wiki gardeners, others of us can show our
affect by contributing visual ideas. There's More Than One Way To
Contribute To It. As long as we know to back off at the end and let
Allan make the decision...
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
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
Show project drawer appears to be broken. I can hide the project drawer, but
once it's hidden I can't show it again. This occurs with existing and new
projects.
Ed Wong
I'm not sure what the correct definition for this is, but here is what
I am trying to do:
I am trying to remove (delete) the empty space or move the cursor to
the beginning of the next HTML tag in an existing HTML document, that
sort of looks like the examples below:
With the cursor immediately after the first <p> tag:
By pressing Alt-Shift-del (not backspace) deletes all space up until
the text "this" in Code Example A:, but in Example B: we delete only
one line of text, and has to press it twice, in Example C: we end up
deleting all the space including the first < in <code>
With the cursor immediately after the end of the paragraph text block
('text'/'tag'):
By pressing Alt-Shift-del here, deletes as above, but also deletes the
</ of the closing tag.
I do not know if this is an issue to do with some hidden
characters/spaces/tabs in the files I am working with, or whatever, but
it is irritating.
So, is there some way that this behaviour can be changed ??? Hidden
prefs in a .plist file ?
IF not - or as an immediate alternative - how would I create a regex &
Macro that would delete all the space (including tabs, new lines,
carriage returns etc ) up until the first < tag ??
I would be very grateful if someone could point me in the right
direction here.
Example A:
<p>
this is a simple paragraph text
</p>
Example B:
<p>
this is a simple paragraph text
</p>
Example C:
<p>
<code>this</code> paragraph begins with an html tag
</p>
Kind regards,
Mats
I can't seem to find where the dictionary is specified in text mate?
I am using it for Latex and in the installation on my portable Mac
spell checking (in US English) works,
but the, as far as I can tell identical, installation on my desktop Mac
I do not get misspelled words high-lighted, but right clicking on a the
misspelled word offers me the suggested better spellings
How could I specify sometimes a different dictionary (Uk English,
French) Mail knows about the different dictionaries....??