I'm a little hesitant to put this out there because I'm not sure if
it's a silly idea or not. I asked a little while back about
interactive template creation. I created a portfolio website that,
when the entries are created correctly, automatically generates
client lists, recent project lists, portfolio pages, etc. I just
needed a way to enter the data and have it format a blog entry.
What I ended up doing with it was using tm_dialog to create a form
and then process that in a template command that outputs to a new
blog.html file. It's very specific to my needs, so I'm obviously not
sending that to the list. However, the process seemed relatively
new, so I thought I'd share it, just in case.
The template will take any key-value pairs fed to it by the nib and
substitute them for the :::key::: in the template file. You can
build as complex a nib as you like, and do whatever you want with the
keys in the template file. It's all done in ruby.
It just includes a Mad Lib and is basically a proof of concept, but I
think it has applications ranging from composing emails to blog
entries and anything that could be sped up by inputting values into a
template interactively.

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
Hi Folks,
I've just started using TextMate and I'm very very impressed. I've
noticed the following behaviour and I wonder if anybody could let me
know if this is a "feature" or a bug.
I make a column selection and I replace "foo" with "foobar". This
increases the width of the column selection. Here is the problem --
any continuous text that passed through the column will now be broken
and expanded with spaces. This is not what I would expect and it will
seriously limit my use of find/replace in column selections.
Is this a bug? Or is it an operator error?
Thanks,
Leo
Hi,
Thanks for the tips, all. I got it working fine when I
understood where these damn commands should be put. I
got a bit lost between macros, commands, execute line,
plugins, bundles,... as a start ;)
anyway, it works now, thanks!
PS: is there any RSS feed for this list, or a good way
to follow it? (my yahoo! webmail doesn't like the
encoding of the message for some reason, it's very
annoying)
> Commands:
> http://macromates.com/textmate/manual/commands
>
> Feel free to ask follow-up questions, I donât know
> exactly what
> Octave produces, or which arguments it takes, but
> making the command
> be: âoctave -fâ and input âEntire Documentâ
> with output
> being⦠uhm⦠show tool tip, maybe? sounds like it
> should get you
> started.
>
> As for path to Octave, see:
> http://macromates.com/textmate/manual/
> shell_commands#search_path
>
>
>
> > De: Allan Odgaard <throw-away-1(a)macromates.com>
> À: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 12 Nov 2006 16:33:36 +0100
> Objet: Re: [TxMt] run Octave code
>
> On 12. Nov 2006, at 15:59, baptiste auguie wrote:
>
> > Example:
> >
> > #! /sw/bin/octave -f
> >
> > load("datafile.dat");
> >
> > ...
> >
> > displays an error,
> >
> > error: load: unable to open input file
> `datafile.dat'.
>
> Itâs a relative path, so it must be, that the
> current working
> directory of your command is not the one which
> contains datafile.dat.
>
> If you do a real command (as suggested in the other
> letter) then the
> current working directory should always be that of
> the current file.
> For âR executions it is not the case.
>
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
> You should have a look at the Help file within the
> LaTeX bundle,
> there's a number of different autocompletion
> commands in the LaTeX
> bundle. For the particular case you quoted, i.e.
> creating new
> environments, you would create it by first typing
> abstract and then
> pressing cmd-{ (cmd-shift-[ in US keyboards). (This
> is the command
> named "Insert Environment based on current word".
> You can also try to
> press cmd-{ before typing anything and see the
> options you get. If
> you want to autocomplete plain commands, then typing
> \ and the first
> couple of letters, and then pressing esc should do
> exactly what you
> want.
>
> Finally, you might want to have a look at the
> screencasts if you
> haven't seen them yet:
>
http://skiadas.dcostanet.net/afterthought/list-of-my-textmate-pages/
>
> Haris
Thanks, I had a closer look at these, and they
probably are efficient ways to provide autocompletion.
I sort of prefer a list that follows my typing than a
keyword though (I think it's a bad habit to type
"document" and then let TM wrap it in a \begin{}\end{}
environment. If you ever have to switch to another
editor for some reason, it's gonna be a pain.) Have
you had a chance to try Kile? I found its
autocompletion a dream.
I quite like the "ESC" way, though this key is quite
far on my keyboard. Is there a way to change the
mapping for the "TAB" which i never use for instance?
thanks again,
baptiste
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
Hello,
I've run successfully some Octave code with Textmate,
using the following syntax,
#! /sw/bin/octave -f
my code here
i just select the whole text, and run "Execute line
inserting result". It used to work well, but for some
reason it now displays an error message when I try to
use some data files in the Octave code.
Example:
#! /sw/bin/octave -f
load("datafile.dat");
...
displays an error,
error: load: unable to open input file `datafile.dat'.
Running the same script in the Terminal works fine, so
the problem is really when running the script in
Octave. A simpler self containing script works fine
(not loading a file).
It's probably something to do with path directory, but
I don't know why it used to work and doesn't anymore
(possibly some update of TM in the meantime, and I
also registered and added a few bundles).
Any tips?
thanks,
baptiste
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
Hi,
I've just purchased TextMate, and I have a few
questions:
1 - when editing LaTeX code, I'd love to get a similar
autocompletion feature as Kile for Linux (when you
type \be, you get a list of possiblities that follows
your typing (\begin{abstract},...)). It's *very*
convenient and clever: it gives you the latex commands
as well as words already present in the document, and
narrows the list according to your typing.
I found some posts about a latex autocompletion
bundle/macro for TM, but I can't have it to work (I'm
not sure what it does exactly anyway!). I get a huge
list, from which I can't seem to choose before it
disappears and leaves me with a blank document !
2 - Is it possible to always have tab editing
available, not only in projects? Or is there a way to
open TextMate with an empty project by default (where
you just drag and drop the files you want to use)?
3 - I run some Octave scripts from TextMate, using the
Matlab mode, but I have to put something like #!
/sw/bin/octave -f and run the script using the shell
command with all the text selected. How can I add this
compilation feature to the Matlab bundle (giving the
path to Octave, and not having to select the text
before running it)?
Thanks,
best regards,
baptiste
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
I'd like to know if I'm the only one having problem with "Go to
project". When I choose it, I get a list of my projects, but choosing
any one of them does not do anything.
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Howdy.
There is a new syntax grammar in the Experimental bundle.
It scopes a bunch of things that I think the main Ruby syntax should
be scoping.
Since so many people use Ruby, I don't want to make any major changes
to it without getting some serious feedback.
It could be that some of this stuff should be kept separate in a
wrapper grammar for ruby, i don't know.
If you are interested in Ruby and the Ruby parsing and coloring that
TextMate does, please check out this new language and give us all
your feedback.
Also, I updated the Brilliance Black theme (in the official textmate
svn repo) to support all this new stuff.
If you're checking out the new stuff, this theme will show it in all
it's glory.
Enjoy
thomas Aylott — design42 — subtleGradient — CrazyEgg
Ahoy textmateys!
Avast ye white i-beam mouse cursor!
The current one is just pure white and totally disappears when it
hovers over something white (which happens often)
So I made a new one with a bit of a shadow.
It's included in the TextMate UNO nib theme
http://textmate.svn.subtlegradient.com/Hacked%20Nibs!/TextMate%20UNO.zip
Allan, can we just update the actual app for this one?
thomas Aylott — design42 — subtleGradient — CrazyEgg
I had my first go at creating a template last night. It was fairly
miserable. Even just using what TextMate creates automatically
resulted in a "dead" template that does nothing upon hitting test or
the assigned key combination. I copied an existing template and made
modifications to no avail. Is there a tutorial that goes beyond the
docs or is there something I'm missing?
Thanks,
Brett
Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
James Edward Gray II wrote:
> I literally miss one feature of BBEdit: multi-file search...
> However, I see no point in complaining about this since I can add a
> bundle for it at any time.
Oh, I so wish you would do that, James; is now "any time"? ;)
Seriously tho, lately I've been using grep to do multifile searches
since it's too much effort within TextMate, and it's not worth firing
up BBEdit for. I usually have one or two files open rather than a
project, and usually my multi-file searches are within a folder
associated with another project completely. I only need to do this a
couple times a week so it's not too annoying, but it would be nice if
I could search a given directory like BBEdit.
Things keeping me from loving TextMate even more than I already do:
- better multifile searches
- side-by-side diff (love BBEdit!)
- better handling of very large files
- split views
- chunked undo
And to be fair, just a few of the things I love about TextMate:
- editing is fun
- amazing syntax hilighting for all the languages I work with and
many more as well
- snippets
- it's really smart
- incredible support (see thanks below)
- bundles beyond count
- creating my own snippets, commands and macros EASILY!
- it's constantly being updated (program and snippets both)
- the screencasts
Many thanks to Allan and the many people creating and maintaining
bundles, you really have created the best text editor out there (IMHO).
- Dave Winzler
Perhaps it doesn't exist or I don't know how but is it possible to
search in a specific directory? I know you can search through a whole
project. My project is huge and the searches take forever eventhough I
usually know which directory I want to search in anyway. I wind up
having to fire up another editor to search.
Any ideas?
thanks
Hi,
I was trying out Hypersearch and I noticed that there was similar
functionality in TextMate already. I then tried that and found a bug.
If you 'Find All in Document' - shift-control-f - and the document
hasn't been saved yet, then you get a weird error:
/tmp/temp_textmate.aZZ02d:4:in `url_esc': private method `gsub'
called for nil:NilClass (NoMethodError) from /tmp/
temp_textmate.aZZ02d:25 from /tmp/temp_textmate.aZZ02d:22:in
`each_line' from /tmp/temp_textmate.aZZ02d:22
'Find All in Document' is part of the TextMate bundle, so I guess I
could fix this myself, but I don't use it enough. I was just playing.
Have a nice day,
Will :-}
Hi Textmate Guys,
I'm trying out textmate using version 1.5.4 and I checked out bundle
revision 6074 from SVN this afternoon. It appears the perl bundle
has a few problems with indenting. Specifically with nested hashes
and closing curly braces.
Typing this code is fine (the auto-indenting works great):
my $b = {
a => {
test => 1
},
b => {
test_me => 2
}
};
But if you were to re-indent that section you wind up with:
my $b = {
a => {
test => 1
},
b => {
test_me => 2
}
};
Obviously this causes lots of problems for code read ability.
Secondarily, if you have a statement like:
my ($brand_name, $product_name) = $self->{feed_db}->selectrow_array
("select brand, name from products where sku = ? limit 1", undef,
$results->{unique_product_id});
And reindent it changes to:
my ($brand_name, $product_name) = $self->{feed_db}->selectrow_array
("select brand, name from products where sku = ? limit 1", undef,
$results->{unique_product_id});
Is there a way to indent the parameters to keep alignment with the
first parameter, this helps for really long statements that take
multiple lines.
It also appears to have problems with if statements like:
if($bar) {
if($car) {
$baz;
} else {
$car;
}
}
After re-indent that becomes:
if($bar) {
if($car) {
$baz;
} else {
$car;
}
}
It would appear this is a general problem with a closing curly brace
as even,
foo(bar => {
a => 1,
},
car => {
test => 3
})
Becomes:
foo(bar => {
a => 1,
},
car => {
test => 3
})
Secondarily:
Is it possible to have a preference so that:
foo(bar => {
a => 1,
})
When indented becomes:
foo(bar => {
a => 1,
})
Lastly a more general Textmate question coming from XEmacs. I didn't
see any support for register buffers. Would there be a way to add
them? As for what a register buffer does is that it allows you to
copy to a named "register" (commonly you pick a letter), and then you
can insert a register by just entering that same letter that you
copied the contents to. You can see the docs from XEmacs about this
here:
http://www.xemacs.org/Documentation/21.5/html/xemacs_13.html#SEC102
This would require support for reading input from the user once they
hit the appropriate key binding.
Thanks,
Rusty
That was quick. Thanks!!
Norm
---
Norman A. Cohen
nacohen(a)mac.com
"Whatever you may be sure of, be sure of this, that you are
dreadfully like other people."
James Russell Lowell
On Nov 11, 2006, at 13:50 PM, textmate-request(a)lists.macromates.com
wrote:
> Oh man, I forgot to change it. It was pointing to the nib I was
> using for testing. I just committed a fix.
>
I have a half-baked idea for a bundle and I wanted to solicit
feedback in an attempt to more fully bake it.
When coding I commonly find myself jumping around not only within a
file but often between files. Typically to do this I'm either using
the CTags bundle or cmd-E, cmd-shift-F, click in the find window,
look at something, then try to figure out where I was. I find myself
expending way too much mental effort trying to remember where I am at
any point in time.
My idea is for a module which allows you to set global bookmarks per
project along with history as you follow the bookmarks. The bookmarks
would be persisted via a file in the project root called .tmbookmarks
or some such. The bundle would have these actions:
- add bookmark (also places bookmark on top of history)
- show bookmarks
- delete bookmark (presents list of bookmarks, select to delete one
or more)
- clear bookmarks (deletes all bookmarks)
- show history
- go back (returns to most recently added/followed bookmark)
- go forward
- clear history
The bookmarks/history would be presented either via tmdialog or
simply as an HTML window (similar to CTags's navigation window).
The forward/back would be a browser-type history that is populated as
you click thru your bookmarks. I'd like to tie the history into the
CTags bundle as well.
So for example, you could do something like:
- add bookmark (this would add the current file/line)
- cmd-e, cmd-shift-f, click to new file.
- go back (this would save the current file/line then jump back to
the just added bookmark)
I have to think a bit more about how the bookmarks/history will
interact. It might be better to have the history work more like a
shell's pushd/popd actions.
Also, obviously as you edit a file your bookmarks end up pointing to
the wrong line. However, I have this crazy idea that I can save two
or three lines of context with each bookmark (a la diff) so that when
following a bookmark I can validate it and resync automatically (a la
patch).
Thoughts?
j.
Jay Soffian wrote:
> This reminds me. I was surprised to find that the Diff bundle does
> not support using Xcode's opendiff. Is this just an oversight
> (either in the bundle or by me), or does no one care for opendiff?
>
> In general it seems like it would be useful to be able to
> generically configure all the bundles to use opendiff where it
> makes sense to use it as a replacement for /usr/bin/diff. This
> would be settable via something like TM_USEOPENDIFF or some such. I
> know there's certainly times when I'd prefer to have the Subversion
> bundle diff for me using opendiff.
Yup, that's pretty much what I'm looking for too.
I ended up hacking together some of the commands from the Diff bundle
to get an opendiff equivalent of "Diff Document With Arbitrary
File...", but it only works with the saved version of the current
document which limits its usefulness (can't compare unsaved changes,
can't compare new unsaved documents for instance).
Still, in case anybody else finds it useful:
(Save: Nothing)
(Input: Entire Document)
(Output: Discard)
require_cmd opendiff "Opendiff comes with Apple's developer tools."
# set utf-8 as the default encoding (used by opendiff)
export __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100
path=$(osascript<<END
tell application "TextMate"
set theFile to choose file
set the result to POSIX path of theFile
end tell
END)
opendiff "$path" "$TM_FILEPATH"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
yesterday I tried to use the new feature "New Project" from the
"Xcode"-bundle. I got an error that "tm_dialog" can't use the option -
d, it didn't work.
So I checked out the hole "Bundle", "PlugIns", "Support" and "Tools"
directories from the subversion repository to ~/Library/Application
Support/TextMate/ and tried it again, but it didn't work also.
Then I opened the "Dialog Plugin" from "Tools" in Xcode, compiled the
Dialog.tmplugin, put it in "PlugIns" and tried it again - it didn't
worked.
Later I realized I had to compile "tm_dialog.mm" in the same project
and put it in "Support/bin" and also put the before compiled
"Dialog.tmplugin" in "PlugIns". This works finally.
Now I'm asking myself if I did anything wrong or missed anything or
is this the usual way to get new tools to work?
I think it would be easier to put an compiled updated version of the
files to "PlugIns" or "Support/bin" in the subversion repository if
the source file gets updated so an svn update would get all user data
up to date.
It would also be nice if there could be a new target in the Xcode-
project which builds tm_dialog so this gets done automatically; I did
this in the terminal.
Thanks for all the info I missed,
Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFVKYFYRX4BO+zMikRCl2wAJ4pzM63D0d2PNIrAJSkMYUGyY2W7QCfexI/
H0rtEix8UvebyHzkrgg8f28=
=UzNJ
-----END PGP SIGNATURE-----
Allan,
I'm looking at improving the folding support in the Python bundle.
One thing that would help would be if the stop marker regex could
reference a capture made in the start marker regex. That way I could
capture the indent that was in effect when the start marker matched.
The other thing that would help (I think) would be a way to
explicitly reset the nesting level.
Also, is there a way to view what the nesting level is? Something
like TM_FOLD_LEVEL seems like it might be useful.
Thoughts?
j.
I'm trying to write a snippet that will erase
*everything within inclosing tags
and
*everything with enclosing tags including the tags themselves.
So far I've got `perl -e 's/<\${TM_SELECTED_TEXT}>(\n|.)+?/<\/$
{TM_SELECTED_TEXT}>//g'`, input is document, output is new document
where the user has the word inside a tag selected. This isn't
working... and it would be better if the user could select the whole
ending or beginning tag rather than just the word. Any pointers would
be appreciated.
Is there a simple way (within Textmate or otherwise) to convert a
page of mediawiki syntax to that for dokuwiki ?
(Mediawiki is what Wikipedia uses; here is an example of dokuwiki:
http://zshwiki.org/ ).
Thanks in advance.
Bill Scott
Hello,
I'm a complete newbie concerning TextMate customization, but there is
something I'd like to do that I would find very useful which I don't
know how to tackle.
The latest beta of MailTags allows one to create urls pointing to
Mail messages in a very robust way: the url works across several macs
synchronized to the same imap account and when the message is moved
or tagged. I'm now using these urls to refer to emails in my GTDAlt
file.
How would one proceed to add a command that opens such a message (in
Mail) when called on a url. The way I proceed now is select and copy
the url (which looks like message://454F0376.2010005@ens-lyon.fr),
and type "open " and paste the url in a terminal, which opens it. I
found one improvement, which is adding "open " before the url in
TextMate, selecting it, and calling ^R. What I would like is a way,
when the cursor is inside the url, to call a command that opens it,
but I don't know how to do it.
Thank you for any suggestion,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Soo. I started doing some work on my website in TextMate, and wanted to get
the changes regularly/easily up; the Transmit bundle that shipped w/
TextMate was okay, buut, didn't quite do what I wanted or in a _way_ that I
wanted.. I didn't see another option so went and made one.. :) Posting here
in case it suits anyone elses needs better then the current offering.
Basically, its purpose is to sync your current project (and it has to be a
project) with a remote site. You start out by selecting
"Synchronization->Configure Sync" and in the file that pops up enter the
host, username, path and method (only 'Transmit' is supported right now).
These settings can be accessed through that command in the future; they're
stored in a file called ".~sync.sh" in the root of your project so are
persistant across your project.
Then, you hit Command+F12, and it grabs your password from your Keychain
(the first time it sets it), then uses AppleScript to tell Transmit to
connect, sync the files, and then close.
The "Method" actually is used to determine which AppleScript file to run to
actually tell Transmit/whatever to DO things. There's a lame attempt at a
Cyberduck one in there, but since I'm happy w/ Transmit I never made it work
:)
--Stephen
Hello,
I'm often switching between French and English during my work day,
and I was wondering if there was an easy way to switch the spell
checker using only the keyboard in TextMate. (For most applications I
use Spell Catcher X, but as it's an input method it does not play
well with TextMate.)
Thanks,
Alan
--
Alan Schmitt <http://alan.petitepomme.net/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Hi all,
I've added a comment to one of Alex King's blog posts
http://alexking.org/blog/2006/11/09/quote-of-the-night
With the 'Editor war' thread going on, I think this would be an
awesome idea for a t-shirt. Anyone care to take up the challenge of a
nice design?
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
Hi there,
I find myself launching Xcode just to create a new
project, and then work on it exclusively with TextMate…
It would be great if TextMate had a “New Xcode Project”
command so that I don't have to fire up Xcode at all !
Does anyone here knows if it's easily feaisble ?
Thanks in advance :-)
The 'Statistics (Lines Added/Removed)' command in the Diff bundle works by counting + and - characters in the first column. The current count includes the '---' and '+++' that unified diffs have in the first two lines.
The fix is to skip the first two lines.
When saving a file there is usually a pre-selected file name given in
the dialogue… such as for a markdown file it is "untitled.markdown".
The whole filename is selected… but is it possible to actually get
only the "untitled" part selected?
thx,
Dan
Hi all,
I don't know if this is already a faq, but as I have struggled with
this issue for quite a long time, I care to share my "discovery":
when I want to set a bookmark with the Command-F2 shortcut, I need to
press the Command key first, the 'fn' key second (otherwise the F2 key
increase the brightness of the screen instead of passing the value to
the application), and F2 last.
If I press the 'fn' key first and the 'Command' key second, the
bookmark is not set.
Best regards,
Giulio Cesare
Hi all,
The New note keyboard shortcut "^ {" in the GDTAlt bundle, does not
work on a swedish keyboard. I press ctrl-alt-shift-8 for this, where
alt-shift-8 stands for {.
The end result is just a '8' written out.
/Håkan
Disclaimer: I've got no knowledge of how to code bundles. I can
simply copy the wonderful work done by other people.
That being said -- before I start hacking, has anyone created a
PHPDoc Parser Bundle that would allow me to see up-to-date
documentation of my PHP codebase in TextMate, similar to the way the
TODO List bundle allows me to see where I've marked Todos? I love
TextMate as it's much easier for me to work with projects in
TextMate's formatting, but I miss using something like Zend that'll
parse phpdoc formatted comments on the fly.
Thanks,
Karl Katzke
Karl Katzke | Systems Analyst I | Texas A&M University Athletics |
Internet & Special Projects
Contact: kkatzke(a)athletics.tamu.edu | office: 979.458.4075
The bundle is very nice, lightweight and fast. Excellent.
One thing I do not like is: for me it is very convenient to use
text files containing a lot of stuff besides the
projects: e.g., additional information, a list
of the steps already taken, telephone numbers,
how-to reminders, etc etc. This is extremely handy.
When I open the file concerning a certain group of related
projects, all the info I need is already there and makes it
faster to write the details of projects or do the actions.
Now the problem with GTDalt is that any extraneous line
gives an error. Wouldn't it be nicer if anything which is
not contained in a project...end pair would simply be
ignored, so that the file could be used in a more
flexible way? This should not be too difficult to do
if I understand scopes (unless it's a feature...)
Thanks,
Piero
If I change one character in an open, previously saved TM document, switch
away from TM to the Finder, and then switch back to TM, I get this warning:
"The file for the document at ~/Desktop/yourfile.rb has been modified by
another application. There are also unsaved changes in TextMate. Do you want
to keep the TextMate version or revert to the version on disk?"
This warning is well-intentioned but (under these circumstances) false. m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Hello, folks. I Googled for about 20 minutes and seemed to find nothing.
Here is my problem.
1. I check out a project in Eclipse using Subclipse.
2. I work on the project in Textmate.
3. In Textmate, I add a file to version control, queueing it to be
committed.
At this point when I flip back to Eclipse, the Subclipse plugin thinks
the entire directory containing the new file is not under version
control. If I try to update or check in with Subclipse, that directory
is messed up. It's as though Subclipse doesn't think the directory is a
working copy, even though the .svn directory is still there and the
entries file is still there. I haven't done a before-and-after diff yet,
so I don't know what happened. I'm too tired to do that now. :)
Any advice? What's up? Help!
Thanks.
--
J. B. (Joe) Rainsberger :: http://www.jbrains.ca
Your guide to software craftsmanship
JUnit Recipes: Practical Methods for Programmer Testing
2005 Gordon Pask Award for contribution Agile Software Practice
Hi,
I just wondered if there is a way to quickly see which keys are bound
by key equivalents in the current scope. The reason is that I wanted
to assign a key equivalent to a custom macro, but all the key
shortcuts I came up with were already assigned in "text.tex.latex".
So if you know a better solution than trial-and-error, I'd be happy
to hear it.
Nicolas Schmidt
Dear all,
after some tiny stylish changes and some optimization for speed here
the latest version of Hypersearch.
As always comment are welcomed.
Best,
Hans
I'm happily using the GTDalt bundle. Nearly everything is working
perfectly. I'm seeing one strange issue:
When I run synchronize with iCal, I get a calendar per context in
iCal as Haris describes, but for all contexts, no actions are
exported. There are no errors reported and the bundle works
flawlessly otherwise.
I haven't seen this particular issue come up here and its not
mentioned on Haris' page:
<http://skiadas.dcostanet.net/afterthought/2006/07/17/gtdalt-and-ical/>
Any ideas ?
[Newest Bundle (AFAIAW); Textmate v.1292; iCal v.1058]
wtia,
mark.
Things I'd like to see eliminated.
1) Don't want blank line inserted after Doctype.
2) Don't want to credit Tidy as generator.
3) Don't want blank line inserted after closing head (</head>).
4) Don't want blank line inserted after html comment.
5) Don't want blank line inserted after closing h1 and paragraph tag.
6) Why is it wrapping the CSS found before the closing head tag with:
/*<![CDATA[*/
/*]]>*/
I don't have a problem with the way it indents, just the above concerns.
Besides not doing the stuff mentioned above, Dreamweaver's Source Formatting
command:
1) Eliminates all blank line feeds.
2) Does not place content within <p></p> in a separate indented line. It
keeps everything compact like so:
<p>My content here.</p>
3) *Does* place the content within <div></div> on a separate line indented
like so:
<div>
<p>Content here</p>
</div>
Yep, maybe a GUI dialog would help but for the masses migrating from
Dreamweaver, maybe providing a default Dreamweaver-like setting that
addresses the above would suffice. What's crazy is that as great as BBEdit
and other editors are, I know a lot of people that keep Dreamweaver around
just for source formatting.
---------- Forwarded message ----------From: Jacob Rus <jrus(a)hcs.harvard.edu
>
> To: textmate(a)lists.macromates.com
> Date: Wed, 08 Nov 2006 22:47:08 -0500
> Subject: [TxMt] Re: Newbie Customization of Tidy
> hcabbos wrote:
> > Can anyone point me to instructions on how to modify HTML Tidy's
> formatting
> > of documents. There's a bunch of stuff that happens that I don't care
> > for...stuff that running HTML Tidy in BBEdit doesn't do.
>
> You'll have to clarify. What exactly happens that you don't like? How
> would you prefer the command to work? Which options from tidy (there
> are several dozen, almost all of which seem pretty stupid to me :p) do
> you want TextMate to expose to the user?
>
> For more on creating TM commands, the TM manual has a pretty good
> explanation.
>
> > I'd love Dreamweaver's method of formatting within TextMate--at least
> for HTML
> > files. What's nice about BBEdit is that it allows you to point to
> Dreamweaver's
> > SourceProfile.txt file as a custom profile for source formatting.
>
> You could certainly build this feature yourself. But if you want
> someone else to help you out with that, you'll have to explain how it
> works.
>
> * * *
>
> I think it would maybe be worthwhile to put some sort of GUI dialog in
> front of a tidy command. But which options are needed? Keeping the
> interface as super simple as possible also has many benefits (such as
> keeping people from making unreadable unindented html ;).
>
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
>
>
Can anyone point me to instructions on how to modify HTML Tidy's formatting
of documents. There's a bunch of stuff that happens that I don't care
for...stuff that running HTML Tidy in BBEdit doesn't do. I'd love
Dreamweaver's method of formatting within TextMate--at least for HTML files.
What's nice about BBEdit is that it allows you to point to Dreamweaver's
SourceProfile.txt file as a custom profile for source formatting.
I recently did a post to my programming blog discussing my 30 day experience
with TextMate (http://sayspy.blogspot.com/2006/11/my-month-with-textmate.html )
where I said I liked the app but there just was not quite enough to tear me
away from Vim at the moment (but who knows since I just started using Vim
again and I am already missing the pretty GUI of TextMate =).
I had some personal gripes about the Python bundle in the post and Jacob Rus
suggested that I email the list with those issues so that they could
possibly be addressed by someone with bundle commit privileges.
I think the biggest universal issue I have is the lack of docsting support
in the various snippets. Both the function and method snippets leave out
docstring tab stops which is really unfortunate as Python best practices
practically dictate a docstring for *every* function or method (see
http://www.python.org/dev/peps/pep-0008/ for the official style guide for
Python). The class definition does have a docstring, but following
docstring conventions from PEP 257 (
http://www.python.org/dev/peps/pep-0257/) which is referenced by PEP 8 there
should be a blank line between the class definition line and the docstring
for the class but that would mess up the code folding so I can look past
that.
But that leads to the problem of code folding not working with Python when
there any blank lines within a block. Jacob said that this should be
addressed in TM 2 by making it easier to define whitespace-delimited
grammars which is great to hear.
The last big issue is the assumption that files containing unit tests end in
'Test.py'. In Python's unit test suite all files use the *prefix* of
'test_' to signify something is a test. This has the nice perk of not
requiring all test files to end in '.py' since you can directly execute
files with other extensions.
Anyway those were my biggest issues. I know most of these are minimal since
editing them directly myself is simple enough, but it would be nice if they
were part of the default bundle so I can get any other improvements made to
the svn repository for those things instead of having them ignored because I
have a local edit.
Keep up the good work. As I said, I think TextMate is a good app, just not
exactly for me (at the moment).
-Brett
This isn't a huge deal, but since it seems to have persisted through
a few TextMate releases and I didn't see it mentioned previously on
the list or in any tickets, I thought I'd ask about it. Does anyone
else end up with words merged together here and there when the text
is taken from an application into TextMate?
For example, if I try it on this message, the words "previously on"
in the first sentence get changed to "previouslyon".
I looked at the Input Manager and it seems to be a symlink into
TextMate.app, so it doesn't look like I'm using an old version or
anything. (I'm running 1324.) I primarily use ^⌘E from within Mail.
I don't know if this would happen with other apps or if it's Mail
specific. I don't recall the text ever getting messed up on the
return trip to the calling app (when I save in TextMate), but I can't
say for certain that it doesn't happen that way, too.
Rob
Would there be a way to add an cmd+R command to the webkit html
output to reload? Say from the TODO window or from the Py?Mate window?
Or would that be another feature request? .. (sorry Allan)
dirk
After automatically upgrading to 1324 at the weekend I've been having
problems with some functions in the Subversion bundle. If I try a
commit I get a popup window saying:
/Library/Application Support/TextMate/Support/lib/erb_streaming.rb:1:in
`require': No such file to load -- erb (LoadError) from
/Library/Application Support/TextMate/Support/lib/erb_streaming.rb:1
from /Library/Application
Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_commit.rb:13:
in `require' from /Library/Application
Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_commit.rb:13
I get a similar message for status checks, but updating to HEAD is
fine...
I have no idea what this means or why it hates me, but I can't help
wondering if it's because I'm running OS X Panther. As I understand
it, TM itself is Panther compatible, but some bundles aren't. Could it
be that a bundle update caused this?
If anyone has any ideas I'm all ears. Thanks.
Hi,
It looks like there might be a small bug in the ctrl-shift-L "Itemize
Lines in Selection" command.
I highlight text that looks like so:
---
It could be the case that there exists an $h_i \in H_s$ that is a
subset of $h_j \in H_s$. In this case, we can think of the
combination $h_i,h_j$ as a new concept class $h^\prime$ which ...
Alternatively, $h_i,h_j$ could be in the situation depicted in \ref
{fig:1b}. In this case, the VC dimension of $h_i \cup h_j$ is at
least ...
---
When I highlight and ctrl-shif-L to "Itemize Lines in Selection", it
hoses the second line. I guess it's finding the ":" in my \ref{fig:
1b} and thinking that I'm trying to make some kind of definition
list? Anyway, the result is this:
----
\begin{itemize}
\item It could be the case that there exists an $h_i \in H_s$ that
is a subset of $h_j \in H_s$. In this case, we can think of the
combination $h_i,h_j$ as a new concept class $h^\prime$ which ...
\item [ Alternatively, $h_i,h_j$ could be in the situation depicted
in \ref{fig ] 1b}. In this case, the VC dimension of $h_i \cup h_j$
is at least ...
\end{itemize}
----
I've just re-svn-up'd my bundles and the issue is still there, so I
just thought I should bring it up.
If my LaTeX is improperly formed as well, please let me know as I'm
no LaTeX guru ... :-)
Thanks,
-steve
(Re-sent to the list after replying solely to Haris the first time.)
On Nov 7, 2006, at 8:20 AM, Charilaos Skiadas wrote:
> I think I might have forgotten to tell Alan about the most recent
> updates I've done. Here is a temporary location for the most recent
> bundle. Alan, perhaps you could update the bundle on your website?
>
Done, thanks for the updates, Haris. The archive on my site[1] is
your current bundle now, and it should do the trick for Danstan.
Thinking broadly about the bundle and how I'm using sweave, it seems
to me that sweave ought to work for at least a few different
circumstances:
1. single .snw file sweave => typeset
2. sweave project (typeset optional; I use the sweave project to
prepare data for subsequent work, and frequently do not typeset at
this point.)
3. sweave current file => typeset (not really functionally different
than no. 1, just switched on the basis of TM_LATEX_MASTER, probably)
My current workflow is to begin with no. 2, and then work with the R
console to test code that I subsequently plug into a single sweave
file. When I'm ready, I sweave and typeset that single file (which
lets me avoid re-sweaving the whole big project each time I want to
fiddle with a table, for instance). The trick for the bundle seems to
me to be enabling smooth selection of a) master sweave, b) per-file
sweave, and c) typeset, with as few overlapping key commands as
possible.
Anyway, I'll be eager to really work on this as soon as I finish this
little project I'm working on.
Cheers-
-Alan
[1] http://textbench.com/tm/SWeave.zip