Folks,
I'm watching Putting Flickr on Rails
(http://www.rubyonrails.com/screencasts) and see the presenter using
TextMate with completion for a new HTML file. Great! How do I "turn it
on"?
Just want to set it and use it. I open a new doc, "application.rhml" in my
rails tree in folder, "layout" and type "doctype" and hit "esc"...nothing
happens - no, I take that back. Textmate beeps at me.
I don't want to become a textmate expert or wade through a lot of
documentation. Is it a bundle setting? A keystroke sequence? Bad karma?
I've gotten pretty good at BBedit in my day, so I'm not daunted by
configuration, but I don't want to (re-)learn unix or vm or whatever to
understand this.
And searching the list archine (http://macromates.com/community) isn't
quickly, concisely yeilding the answer (in the first two pages of results
for "how to use completion".
Please answer this probably incredibly simple question, or point me to the
tutuorial, thread, post or URL where the answer is found.
Thanks,
Ivy
Since I have never used BibDesk in conjunction with TextMate before,
we can rule out #3 and I use option #2 only if #1 doesn't work or
turn up the option I like.
I'm definitely talking about #1, although I was a bit confused
myself, to be honest.
So here are some more details:
(1) I have set the variable TM_LATEX_BIB (there are spaces in the
path, not sure whether that is important).
(2) I type \cite{ and start with the first few letters of a citation
(e. g. King for KingSmithVanderbilt:blablabla). The scope is
text.tex.latex, meta.citation.latex and
constant.other.reference.citation.latex. Sounds alright to me,
although you are clearly the expert here.
(3) I hit escape and nothing happens, no autocompletion or toggling
through my options. Instead, I get OS X' alarm bell.
(4) I hit option + escape and everything works just fine. So TextMate
definitely finds my bibliography file …
If there is anything I can do for regression, just let me know.
Max
PS I will be on a conference Monday through Thursday, so I won't
reply as quickly as I usually do.
Until yesterday, when I entered ":" after a class/id property name like:
.class {
property_name:
As soon as I hit the ":" I'd get ": ;" with a space after the ":"
ready to type the value. Now, suddenly I get no space anymore...
Which is prety annoying because I finally got used to the space being
there automatically... Worse even: when I go to work tomorrow, my
version of TM there is probably going to insert that space and I'm
going to go nuts switching between the 2 versions everyday... :'(
I looked at CSS bundle prefs for PropertyName: { smartTypingPairs =
( ( ':', ';' ) ); } but I don't see where the space came from before
and I didn't change anything there anyway... I don't really care
either if I get the space automatically or not, but it took me a
while to get used to it when TM first started to do that (I kept on
inserting an extra space for like 2 weeks...) so what bothers me is
that behavior changed... again... and I have no idea why.
Happened to anyone else before?
I did remove all the customized bundles and restarted TM fresh, but
the auto insertion of the space is still gone...
Thanks for any help!
Haris,
What a great idea, I saw the commit and thought I'd give it a try.
Unfortunately I didn't have much success.
I have R.app (1.16, R version 2.31) open and running. In the latest
cutting edge I create a new document, choose the R console language
and get the following errors:
> print("hello world")
294:299: syntax error: Expected end of line, etc. but found identifier. (-2741)
> x <- 7
152:163: execution error: System Events got an error:
NSReceiverEvaluationScriptError: 4 (1)
Thanks for all your efforts!
Peter
Hi!
Right now I'm writing on the concept for a thesis and it seems that
the bibliography-autocompletion stopped to work.
I openend the bundle-editor and saw that there was no key assigned
it. When I assign Escape I get text-autocompletion, if I assign alt
+esc I get the same, if I assign anything else nothing happens.
Can anyone verify that? I use built 1258 with an actual SVN-checkout
and Bibdesk 1.2.9 for my bibliographies (but the last one shouldn't
be important, should it?)
Niels
--
“If one would give me six lines written by the hand of the most
honest man, I would find something in them to have him hanged.” --
Cardinal Richelieu
Same here, I was wondering why that function doesn't work anymore. I
don't use BibTeX (it effed up the special characters in my
bibliography, e. g. umlaute and it took me an hour to clean up my bib
file). Instead, I have set the proper TextMate project variable and
it did work before with the same project.
But until recently, I could use only escape to shuffle through
suitable entries of the bibliography without using BibDesk at all. I
definitely prefer using escape over alt + escape, so if there is any
way to get the old functionality back?
Here's another vote against removing the old escape-only command ;-)
Max
I downloaded the Django Templates bundle and it works fine, but I have
to select it as the active language on all of my template files. I
would rather just select "HTML" as the language and have the Django
Template stuff be included within HTML, just like PHP, Ruby, and
Smarty are.
I took a look at the grammar and tried a few things, but was
unsuccessful at integrating them. Could anyone give pointers on how
that integration should work or, better yet, a working HTML grammar
that includes this change?
Thanks.
--
Brad Fults
Hi,
this is a followup to the thread with a similar name,
but I thought it deserved a new thread since I'm posting
a complete solution (hehe - I'm trapped in a hotel room
in Paris, it's raining here...)
So:
1) create a new command "Lable Table" with
input= entire document
output=Show as HTML
2) the command is the following. (I know, I should
post a .tmCommand file, but I do not know how
so bear with me). GMane requested me to split
the commands, but we have here 6 commands
(5 sed and 1 tr) which should be on one line each.
When joining back the last sed command do not
introduce spaces.
sed -n -e "/\\label/{=;N;N;G;p;}" |
sed '/^$/d' |
sed 's/^\([0-9]*\)$/\<p\>\<\/p\>\1/' |
sed 's/\(.\)$/\1\<br\>/' |
sed 's/\\label{\(.*\)}/\<a href=\"javascript:TextMate.system
(\"\/usr\/bin\/osascript \&\>\/dev\/null -e %tell app \\\
"TextMate\\\" to insert \\\"\1\\\"% \&
amp;\", null);\"\>\\label{\1}\<\/a>/' |
tr "%" "'"
3) open a .tex file and experiment. When you click on a label
the argument is inserted. The command and the text
insertion is very fast, and as to usability it's already
better than the standard Label completion (my taste).
Please, some real coder take this stuff and make it into
some serious code, I think the result is pretty amazing
compared with the simplicity. I am not able to extend
the script for multiple files (i.e. one master file and the
\includes), any help?
Ciao,
Piero
Hi list
I am using TextMate full time to write Latex and it's great,
and improving.
One thing I do not like is the CocoaDialog interface to
insert \refs: too slow and clumsy. I (almost) can stand it
for bibliography completion but \refs are too many, too
similar to each other, and too frequently needed, so the dialog
interrupts my workflow. So I started thinking and tinkering,
but my coding skills are too poor (I also sent a msg to this
list asking for help). Finally I think it is better to publish
the idea and let the code wizards code it, if they like it.
My feeling is that this could be the optimal way to insert
references, even better than auctex's.
The idea is very simple: parse the tex file, write
all labels (plus some surrounding text) into an auxiliary
.lbl file, convert this into html, and replace each
\label{...} command with an "a href" to a tiny javascript
command that tells TextMate to insert the label's name
into the source file. Finally, output to HTML. (Improvement:
just search the labels matching a few characters, as it
is now).
Do you see it? This produces an HTML window, with a list of
all my labels, followed by the beginning lines of the
equations (or section titles). More important, each
label is clickable, and when I click on it, the reference
gets inserted into the source file. I can keep the label window
open, so no need to invoke the command over and over.
When I add more equations, I just refresh the window
as necessary.
But I got stuck with some stupid coding problems.
1- Easy to grep the tex file for lines containing a \label
command plus some context. E.g. the following command
outputs line number, plus the \label line, plus two nonempty lines
following it:
sed -n -e "/\\label/{=;N;N;G;p;}" | sed '/^$/d' | sed 's/^\([0-9]+\)$/\n\1/'
2- Easy to save all this info into a file fileName.lbl and
do some rudimentary html-ization (just add <p></p>'s
to separate the labels from each other- you can do much
better I know, but this is fast)
3- Not so difficult to replace each "\label{...}" with the
javascript link. But I got stuck when writing the osascript.
Let me explain. Is is easy to create a link such that, when
I click on it, TeXniscope is activated (e.g.):
<a href="javascript:TextMate.system('open -a TeXniscope', null);">
TeXniscope</a>
Nice! So I said, I'll just insert an osascript telling TextMate to
insert the label reference:
<a href="javascript:TextMate.system("/ust/bin/osascript -e
'tell app \"TextMate\" to insert .......'", null);">\labe{...}</a>
(of course, "....." must be replaced in both places with the \label's
name, using some bash, and some string must be joined etc etc)
This doesn't work. Why?? even the simple
<a href="javascript:TextMate.system("/ust/bin/osascript -e
'tell app \"Finder\" to activate'", null);">Finder</a>
does not work. This must be some escaping trickery.
Could some pious wizard explain what's
wrong? and even better, like the idea so much to code it?
I do not think it should be hard (for you :).
Regards,
Piero
Hi,
somebody help me, I guess it takes just a look at this code
to spot what's wrong (for you):
---------------------------------------
<html>
<head>
<script>
function letsTry () {
TextMate.system("/usr/bin/open -a /Applications/TeXniscope", null);
};
}
</script>
</head>
<body>
<span id="letsTry">
<a onClick="letsTry()" href="#">Let's Try</a></span>
</body>
</html>
---------------------------------------
I put this in a p.html file. I then create a command in TextMate
that does " cat p.html " and outputs to HTML. The HTML appears,
but of course clicking on the link does nothing, not certainly
opening TeXniscope as hoped. Documentation(s) perused,
sleep hours lost. Any idea?
Piero
Hi,
It would be cool if I could see the list of the files contained in
the folders
on the main window when folders in project drower are highlighted.
Currently, when the folder is selected, the main window continues
showing the file I'm currently editing.
Even when no files are open, which means that the drawer and the main
window,
the window shows nothing but the large TextMate icon.
It would be great if we could get a list of the names of the files
containted in the folder.
Additional information such as the date created and the date last
modified would
be nice.
This, I belive, helps those who use long file names as well as people
who use similar prefix
for file names.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
My subversion bundle "Commit" command stopped working - I get the following message:
/Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_commit.rb:12:in `require': no such file to load -- /Users/ryan/Library/Application Support/TextMate/Support/bin/shelltokenize.rb (LoadError) from /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_commit.rb:12
I've searched the archive and I've seen a couple of similar threads, and like some of them, this also only seems to apply to commit (I can still use the diff commands). Maybe I'm missing something, because the recommendations I found didn't work or didn't apply. I've added TM_SVN (/usr/local/bin/svn) to my TextMate shell variables, and I tried adding it to my .bash_profile and changing BASH_ENV in the preferences. The other recommendations centered around the version of Ruby, and I'm running Tiger and have version 1.8.2 already installed.
I'm running TextMate version 1.5.3 (1258), and have the latest subversion bundle installed. Any assistance would be appreciated.
Thanks,
Ryan
These are my three variations of the "Lucky Linking" idea, where the command
searches Google with the selected text and returns the "I'm feeling lucky"
result as a link.
I have modified all three commands so that they require no extra support
files, but they do require some standard libraries that I made assumptions
that everyone would have. If I'm wrong, let me know.
The Get Title from URL variation is just an improvement on iamrice.org's
version. The regex is a little more flexible, and it returns a link with a
title attribute.
The Google modification incorporates the Get Title command and grabs the
title from the "Lucky Link", using the updated regex, and inserts it as a
title attribute in the link.
The Wikipedia version goes a few steps further and scrapes the pages with a
quick regex to determine if it's a final destination or another search page
(or disambiguation page). It provides a dropdown menu when there are
multiple results. It will also detect if there is a redirect and put the
correct link and title into the link while leaving your original text alone.
This should allow you to quickly see if it got off on the wrong track.
I am no good at either programming or regular expressions ;-). I do my best
to fool people. But I am eager to learn from my mistakes, so if you do take
the time to look at these, please give me as much feedback as you can. I'll
lap it up like a puppy.
Cheers!
Brett
Hi there,
When writing styles in HTML, the blue
highlight sometimes extends till the end of the
page and remains…
Moving the caret outside of the <style></style> tags
makes this extra highlight disappear.
I made a little movie to illustrate what I mean ;
http://guerom00.free.fr/clutter/CSS_highlight.mov
TIA
Mark,
Thanks for the advice. I rarely use the drawer buttons due to the
Ctrl-Click functionality; everything is duplicated in the pop-up menu
anyway. The problem I've been experiencing originated from trying to
create a group from files and folders within a top-level folder
reference, which probably conflicts with the 'Groups can't exist in
Folder Reference' rule; Textmate doesn't make the logical jump to
create a top-level group.
This does represent desirable behavior, however, as it would be
conducive to one's workflow to have both folder refs _and_ groups, just
not intermixed. I'm not sure how Allan has implemented the data
structures for Groups and Folders in the Project Drawer, but they're
probably the same base type and TM does a quick type/class check to
ensure Groups don't get mixed in with Folders. While I can definitely
see the use of both, I haven't quite gotten a grip on how Groups are
created, I think.
I can't find anything in the GUI that allows me to create an empty
Group, although the GUI supports creating an empty Folder. Of course,
this has to do with the tie that Folders have to the filesystem, but
the ability to create an empty top-level Group and populate it with
file references would be nice. Then again, I haven't really found a way
to duplicate file / folder references, either, once the groups have
been established. That stuff might just still be on the drawing board.
David
On Sep 23, 2006, at 2:11 PM, Mark Smith wrote:
>
> Hi David,
>
> sorry for the delay in replying. You caught me in the middle of a
> major email clear-up and now I've misplaced your messages and am
> answering from memory.
>
> AFAIK, the order in which you do things does not matter. You can mix
> and match folder references and file references and file groups as you
> please.
>
> Stop me if I'm telling you things you know already...
>
> Perhaps you are getting confused by the "create folder" button at the
> bottom of the document list drawer ? This button has two possible
> behaviours. Its behaviour is sensitive of the current selection. If
> you hover over the button, you will get a pop-up that explains the two
> possible behaviours. This explanation attests to the only thing that
> is (at least AFAIAA) forbidden in terms of mixing objects in the
> drawer.
>
> That is : you *can't* create a group within a folder reference.
> Anything else you might want to do, seems to me to be posible:
>
> You *can* create folders and files within a folder reference and these
> will then be created in the FS. You *can* drag folder references
> and/or file references inside of groups and you can create file
> references inside of a group. When you do the latter TextMate will ask
> you where the file should be created in the FS.
>
> Hope this helps,
>
> Mark.
>
Hi,
i'm wondering if the getBundle-Bundle is broken in TM 1.5.3(build
1258) ? It does not show any selection-Box for the 'Install'-command
<^> + <cmd> + <I>. Is doesn't matter if a project-window or a
document-windows is currently opened or not. Am i missing smth. here ?
I'm using TM Version 1.5.3. (build 1258) on latest Tiger with
'cutting edge'-installs active. Could anybody pls. confirm on this.
Thanks and greetz, Andreas
I have a small bundle with some Wikipedia "Lucky Linking" code that I'd like
to submit for people to play with. What's the proper way to do that?
The bundle includes one support file (stolen from the blogging bundle) and 4
commands:
Search Wikipedia and Create Link
Basic version of Wikipedia Link
Updated Google Link
Updated Get Title of URL
I also have a collection of HTML snippets, commands and macros that I think
might be worth sharing. I've posted some to my blog, but thought this might
be a far more direct way to get them to people who might care...
Thanks,
Brett
The key sequence crtl-esc not activating the bundle menu anymore.
I have already logged in as a different 'virign' user and temporarily
moved my /Librabry/Application Support/Textmate/ folder to another
location, but still the problem exists.
Has anyone else encountered this problem, and if so were you able to
solve it?
Ira Cary Blanco
Marketing & Media
Samson Technologies Corp.
Samson | Hartke | Zoom
voice: 631.784.2200 x107
email: blanco(a)samsontech.com
web: samsontech.com
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: September 22, 2006 12:17:20 PM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Split the project drawer?
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 22/9/2006, at 18:11, David Rogers wrote:
>
>> Does anyone know of any conditions that would prevent files from
>> being grouped? I've been trying to select a number of files for
>> grouping, and encountered no success. I've selected files in the same
>> folder reference, different folder references [...]
>
> While it is not clear from the UI, the project drawer really have two
> modes of operation. Eitehr you work exclusively with folder
> references, and TM will update these, and you can’t do anything wrt
> re-ordering, grouping, etc. Or you work with “static files”, i.e. drag
> each file individually to the project drawer, and you can freely order
> and group these.
Thanks, Allan. Any reason, programmatically speaking, that Textmate
couldn't handle both file/folder references _and_ groupings? I've
encountered quite a few instances in my most recent projects where this
feature would be more than a little handy. Certainly one can work
around it, though. Thanks for contributing a great product to the
'Maciverse'...!
David
Allan wrote:
> On 22/9/2006, at 17:46, Fred B. wrote:
>
> > I tried every fixes I read about: Setting the prefs in Terminal (I
> > don't remember the exact command)
>
> What happens if you set it to another key than ⌃⎋?
>
How can it be set to another key?
Ira Cary Blanco
Marketing & Media
Samson Technologies Corp.
Samson | Hartke | Zoom
voice: 631.784.2200 x107
fax: 631.784.2201
email: blanco(a)samsontech.com
web: samsontech.com
Hi, I'm another (mostly) happy (more like nigh-elated) textmate user.
Does anyone recall this thread? How about this comment regarding
multiple panes in the Project drawer:
> You can't currently do anything nearly so complex.
> You CAN make groups of files, however.
>
> Just select a few files and the "group this stuff" command is it the
> little widget menu at the bottom of the drawer.
>
> This can actually speed textmate up quite a bit if you're working on
> a remote volume.
Does anyone know of any conditions that would prevent files from being
grouped? I've been trying to select a number of files for grouping, and
encountered no success. I've selected files in the same folder
reference, different folder references, files and folders in the same
and different folder references, everything I can think of. The "Group
Selected Files..." option in the widget / ctrl-click menu, however, is
always grayed out (disabled). Any suggestions?
David
When creating documents to validate with the XHTML doctype, the ampersand
character in any URL needs to be escaped as an HTML entity &
...TextMate will perform this automatic transformation on copied items
when you select text and use the "Wrap Selection as Link" command. It
takes the clipboard contents, filters it, and uses the result as the
default URL in the link. However, if the URL from the clipboard already
has escaped ampersands, TextMate will transform the entity as &amp;
Clipboard Example: /some.php?option1=foo&option2=bar
When the Wrap Selection as Link command is issued wtih this URL stored in
memory, you get something like the following:
<a href="/some.php?option1=foo&amp;option2=bar" target="_blank">some
link</a>
TextMate's default behavior may need to be adjusted so it checks for
escaped ampersands in a URL before attempting to transform it.
Hello list,
I was wondering if anybody has put any work into making a Trac bundle?
At the minimum something which could understand the trac wiki syntax
and scope it as such ... I don't see a bundle in the svn repo so I
figured I'd ask before taking a whack at making one myself.
Thanks,
-steve
I have recently become unable to run tests in TextMate using the Ruby
bundle's Command-R "Run" option. It used to work, but at some point in the
past few weeks I started getting this error:
/Library/Application
Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:143:
undefined method `htmlize' for main:Object (NoMethodError) from
/Library/Application
Support/TextMate/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:101
Using TextMate Version 1.5.3 (1258)
My /Library/Application Support/TextMate/Bundles directory is a svn checkout
of http://macromates.com/svn/Bundles/trunk/Bundles Revision 5277
I've installed TextMate, BBEdit, and XCode, and I seem to be caught
in the crossfire of a file association war. Example: TextMate wants
to be the editor for Fortran 90 files (.f90), but BBEdit wants to be
the editor for Fortran 77 (.f77) files, and XCode wants to be the
editor for plain old Fortran (.for) files. Does that make sense to
anyone?
What I'd like to do is remove all of BBEdit's and XCode's
associations, thus leaving TextMate as the editor for just about
everything (because it's set up to open unassociated files). Is there
an easy way to do that? I know of a program called RCDefaultApp that
can show the associations for a given app, but there doesn't seem to
be a way to do a "bulk unassociation," just one by one. Is there a
better way?
Trevor
Up until a few days ago I've used ctl-rightArrow to move to the end
of the current line in TextMate, and shift-ctl-rightArrow to extend
the selection to the end of line. Now it seems those commands move to/
select the next word, and are the same as opt-rightArrow and shift-
opt-rightArrow respectively.
It's entirely possible that I changed something on my end, but I'm
wondering if anyone else is seeing this? I'm using TextMate 1.5.3
(1258), and this started happening about two cutting-edge versions ago.
FWIW, ctl-rightArrow (and shift version) still work the way they
should in my other programs like Mail.app and TextEdit. It's only in
TextMate that they act weird.
- Dave
I am very happy to see remind being supported. (Thanks, Haris!) I
have two comments/observations, though.
First, though it is good practice to scope commands, there is a
reason to leave the display of your calendar unscoped. As it stands,
these receive the scope of source.remind. That means in order to view
your calendar, you need to navigate to your remind file(s). If they
are unscoped, you can view your calendar on the fly while working on
unrelated files.
Second, about the Remind-->Show-->This Month command. Why not use the
rem2html command? The output is more readable, and anyway it seems
odd to have html output of text---all that is being added is the nice
header.
A screenshot for comparison and an alternative monthly command can be
found at:
http://www.kalderon.demon.co.uk/Remind.html
(As anyone may gather from the screenshot, term here in London begins
in October.)
All the best, Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy
Personal wepage: http://www.kalderon.demon.co.uk
Hi,
I just had a glance at HyperEdit <http://www.tumultco.com/HyperEdit/>
It allows web preview of PHP pages. It would be very nice that
TextMate allows it too. Is this on the todo list? Or did I miss a step?
Anyway, I still be faithful to TextMate ;-)
Bonne soirée,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
Hola Haris (and other LaTeX bundle maintainers),
is there a reason (philosphical?) that there is no command for \emph
{} but there is for \textit{}?
Dan
Hi,
I would like to report a minor bug. When editing a *.rb file, text in
quotations (double or single) appears green. I think there must be a parser
in TextMate that detects quotes, which sets off some flag indicating that
we're within quotes, which then causes that text to be displayed as green.
However, I think instead of detecting all quotes to set off the flag, Allan
should detect non-escaped quotes.
For example,
open("http://www.myspace.com/").read.match /<form action=\"(.*?)\"/
# Code from here on down appears green as though it were still within quotes
even though it was an escaped quote inside of a regular expression context.
Okay, that's my two-cent contribution to the world. I hope it really is
worth at least two cents.
Great program! Keep up the great work!
David :)
http://www.dbitsolutions.com/
intuitively, i would expect pasting in overwrite mode (⌥⌘O) to
overwrite instead of insert. doing an insert in this mode is
especially annoying since delete (⌦) cannot delete the text that was
shoved right.
---
michael reece :: software engineer :: mreece(a)vinq.com
I have a .h file written by a programmer of the school that believes
Whitespace Causes Cancer:
==============
- (void)applicationDidFinishLaunching:(NSNotification *)notification;
- (void)applicationWillTerminate:(NSNotification *)notification;
==============
I am trying to automate putting spaces after the )s with the search
RE /\)(?=\S)/, to be replaced with ') ' -- that's close-parenthesis,
space.
Doing this as a Replace All works as expected. But try pressing the
Next button, then Replace. The substitution does not take place.
Am I missing something?
-- F
I've been working on man pages for a bash script. It's been kind of a pain,
mostly because I don't know the formatting commands well enough. TM has made
so many other tasks easier, so I've wondered about using it for man page
writing.
Or ... what are other people doing so write these pages. I know there are
dedicated editors, but learning another editor isn't where I want to spend
my time. Maybe that's the best answer. That's why I'm asking this obviously
knowledgeable group. A man writing bundle? A different editor? Suffer? Give
it up and switch to ... no, I can't go on. ;)
Lewy
On Sep 19, 2006, at 10:50 AM, Allan Odgaard wrote:
> So the key bindings were not “messed up”, they were deliberately
> changed. And while it generally would appear as they do the same
> as ⌥(⇧)→ and ⌥(⇧)←, they also visit “sub word
> boundaries”.
Sorry, Allan, the new functionality doesn't buy me anything and it
took away something I've being using since I switched to TextMate a
year ago. There are probably people that benefit from the sub-word
jumps, but I select to EOL/BOL way too often to want to give up the
shortcut.
On Sep 19, 2006, at 10:50 AM, Steve Lianoglou wrote:
> [cmd] + [left/right arrow] jumps you around beginning/end of line ...
>
> For the record, that all works for me as intended: Version 1.5.3
> (1258)
It does for me too, but if you add the shift key to the mix (select
to BOL/EOL) the shortcut breaks :(
I'm generally open to change, love TextMate dearly, and rely on it
heavily. Consistency between apps is really important to me, and
TextMate does different things with shift-ctl-arrows than the other
apps I live in (like Mail, textarea boxes in Safari, and TextEdit).
So I either have to live with TextMate's inconsistency or keep
modifying TextMate's KeyBindings file or messing with iKey to map my
keypresses into something that works with TextMate.
BTW, what is TextMate's official "select to EOL" shortcut anyway?
- Dave
Even with the pervasiveness of XHTML, some web developers forget that the
XML specification only defines five built-in character entities and most
of the converted named entities that TextMate produces actually break some
apps that rely on this strict interpretation.
It would be convenient if there was another conversion command that would
use the numeric ISO character in place of the named entity. For example,
instead of of converting a ' character to ' the proposed command
would output ’ ...and – would instead be –
I would assume that TextMate would need to store an updated HTML -> XML
lookup table to do this, similar to the old command.
Has anyone else had problems with "Active GTD List View" and "Export
to Geektool" in the GTD bundle following the last couple of Textmate
updates?
When I run Active GTD List view I get the following error:
/tmp/temp_textmate.H0K13x:78: undefined method `pre_match' for
nil:NilClass (NoMethodError) from /tmp/temp_textmate.H0K13x:74:in
`each' from /tmp/temp_textmate.H0K13x:74 from /tmp/
temp_textmate.H0K13x:70:in `each' from /tmp/temp_textmate.H0K13x:70
from /tmp/temp_textmate.H0K13x:67:in `each' from /tmp/
temp_textmate.H0K13x:67
Export to Geektool throws up a different error that I can't copy and
paste, but it appears to be missing the 'pre_match' method as well.
Regular GTD List view still seems to work fine.
Thanks,
Adam
Over on the Markdown discussion list Jacob Rus writes:
> Incidentally, I recommend every Mac user on this list take a look
> at recent TextMate markdown support. The Markdown preview is now
> styled to look quite handsome IMO, and when using a theme which
> colors scopes such as lists, raw text, separators, etc. it is now
> quite easy to see syntax errors, etc. Michael Sheets and Allan
> Odgaard have worked together to make highlighting work for complex
> nested markup. If the official markdown spec were a bit more
> formalized and explicit, with coverage of edge cases, we make it
> just about perfect, I think.
I hadn't even noticed since I mostly work with MultiMarkdown
documents. Would it be possible to apply the CSS to the MultiMarkdwon
preview?
Thanks.
All the best, Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy
Personal wepage: http://www.kalderon.demon.co.uk
I just updated the Latex bundle according to the instruction for
bundle updating in the help file.
Now the cmd-{ function does not work.
Also it cannot find TeXniscope:
/bin/bash: line 60: find_app: command not found Error locating
external viewer: TeXniscope
The shell variable TM_LATEX_VIEWER is correctly set.
All this worked fine until a moment ago.
What has happened?
I issued the commands:
christopher-brewsters-computer:/Library/Application Support/TextMate/
Bundles kiffer$ svn --username anon --password anon co http://
macromates.com/svn/Bundles/trunk/Bundles/Latex.tmbundle
Christopher
*****************************************************
Natural Language Processing Group,
Department of Computer Science, University of Sheffield
When committing with the SVN bundle, you have to manually deselect
any file that you don't want to commit. This is fine if the list of
files that has been updated is small, but when dealing with a list of
over 30 updated files, deselecting 29 files is a bit tedious when you
only want to commit one file. I'm asking the SVN Bundle maintainer
to add a button (or two) at the top of the commit dialog to allow
the ability for "Select All/Deselect All"
thanks.
Hello all,
I am using the ruby bundle a lot, and I like it so much! But there are
some annoyances where I have to decide between using TM/folding
or rewriting my code. IMO the editor/grammar should not be confused by
correct ruby syntax. I am using the latest textmate (downloaded today,
1258) and don't have any changes to the ruby bundle. I know, I could
fix these in my copy of the ruby bundle, but I'd like to see the fixes
in the distribution. Thanks in advance,
Patrick
--------------------------------------------------
lines=%{a
b # <--- I'd like to have no indentation here on 'reindent'
c} # missing folding marker
lines.collect do |line|
line
end.class # missing folding marker
tmp = lines.somemeth { |l|
l.upcase
}.foo # missing folding marker, wrong indentation
a = myvar.each do |x| x.foo end
def baz
a=case foo # missing folding marker (or the one at the end is one too many)
when :b # and incorrect indentation
c
when :d
e
end
end
--------------------------------------------------
Here is a command that i added to my XCode bundle to set a breakpoint
in the front most file. Note that this assumes that the project is
open in XCode. Thanks for the help on this list to make this work. In
case you are wondering why the name of the file and not the path
name.. The file reference type for XCode uses the name of the source
file only.
#!/usr/bin/env ruby
# import the frontmost opened project window in Xcode
proect = %x{"#{ENV['TM_BUNDLE_SUPPORT']}/bin/find_xcode_project.rb"}
named = File.basename(proect)
xCodeProject = named.sub(/\.(xcodeproj|xcode|pbproj)\/?$/, "").chomp
%x{osascript -e 'tell application "TextMate"
set myName to name of front document
end tell
tell application "Xcode"
tell project named "#{xCodeProject}"
set bp to make new file breakpoint with properties {line
number:#{ENV['TM_LINE_NUMBER']}}
set file reference of bp to file reference named myName
set enabled of bp to true
end tell
end tell'}
Tried to use the TODO bundle and it was taking an age (10s of
seconds) to give me a result. Some puts in the command code showed
it was parsing all the text files in the directory and sub
directories that the project file resided in. These files are a
super set of the ones in the project draw - I only expected it to
search in the project specific files. As a contrast using the 'find
in project command' to search for TODO returns instantly.
Dave.
There seems to be a bug in the Find function within the Bundle Editor.
1. Launch TextMate
2. Open the Bundle Editor
3. Navigate to, for instance, the C Grammar
4. Perform a Find for "function.c"
5. Perform a Find for "prototype"
6. Close the Bundle Editor and/or the Find window, reopen and try again.
7. Make a sad face
Sometimes, if I close both the Bundle Editor and Find windows, it
works, but usually not.
Oh, I just did an archive search and see that this was reported in
January. Well, maybe it was forgotten? *bump*
Cheers & thanks - this software is really great.
jb
Hi all,
I made some snippets using conditional
insertions for my declarations in Fortran.
For example, I have this one :
real*${1:8}${2: a/d}${2/(,a)|(,d)/(?1:llocatable)
(?2:imension)/}${2/,a|(,d)/(?1:\(\))/} :: ${3:name}${2/,d|(,a)/(?1:\(\))/}
$0
which does that :
http://guerom00.free.fr/clutter/Cond_insert.mov
What I would like to do is, in the “allocatable” or
“dimension” case, that the caret goes between the
braces after I type in the name.
In the snippet definition, that would be to somehow
define a $4 key but I really don't know how to do this...
Any help is much appreciated :-)
PS : Once again, due to my poor knowledge of RegExp,
if anyone has some suggestions/improvements for this
snippet, he is quite welcome :-D
Hi,
I found two sound files at /Applications/TextMate.app/Contents/
SharedSupport/Support/Sounds .
What are they for? I've been using TextMate for a while, but never
encounted them.
I can't sleep well until I get to know what they are. Searched this
list, to no avail.
This question might not *sound* useful, but what are the sounds for?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
I have been working on the following script to set breakpoint is
XCode. I am not a Ruby expert and I am sure I am doing something
wrong. Any help would be appreciated.
Currenly my script looks like so:
proect = %x{"#{ENV['TM_BUNDLE_SUPPORT']}/bin/find_xcode_project.rb"}
named = File.basename(proect)
xCodeProject = named.sub(/\.(xcodeproj|xcode|pbproj)\/?$/, "")
breakLine = #{ENV['TM_LINE_NUMBER']}
print xCodeProject
astring = "osascript -e \'tell application \"TextMate\"
set myName to name of front document
end tell
tell application \"Xcode\"
tell project named \"#{xCodeProject}\"\r\n
set bp to make new file breakpoint
set file reference of bp to file reference named myName
set enabled of bp to true
end tell
end tell\'"
print astring
%x{#{astring}}
My output is:
iPhoto2PBase
osascript -e 'tell application "TextMate"
set myName to name of front document
end tell
tell application "Xcode"
tell project named "HelloWorld
"
set bp to make new file breakpoint
set file reference of bp to file reference named myName
set enabled of bp to true
end tell
end tell'
For some reason i have a bunch of white space after my project's name.
Also how do i put { and } into a string so they are printable?
Hi,
I really appreciate TextMate's implementation of Documentation. If
I'm correct, most of them are just webpages created by searching on-
line and/or creating HTML on the fly.
It would be great if, in the window, I could use a) Command-LeftArrow
and Command-RightArrow, b) Command-[ and Command-] and/or c) open in
browser.
Takaaki
--
Takaaki Kato
http://samuraicoder.net