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