Hello, everyone.
I have written a more Xcode like completion extension for tm_dialog. My
guess is that this is of interrest to more people than me. The code has
not been commited yet, but I have made a screencast to show of some of the
functionallity.
[ http://mail.mac.se/joachimm/TextMateCodeCompletionEnhancements.mov ]
, right now I am looking for suggestions for the programmatic and user
interface.
what I have so far
"$DIALOG" -f -p '{suggestions = ({title = "foo";filterOn = "foo";},{title
= "bar";filterOn = "bar";snippet = "(${1:hello}, ${2:again})";});
mutablePrefix = "fo"; staticPrefix = "";}
as you can see you need to populate an array called 'suggestions' with
dicts with the keys 'title' and 'filterOn', the key 'snippet' is optional.
you also have to give the keys mutablePrefix which is the prefix when you
launched the command. plus the optional staticPrefix which is handy when
you are completing things that are multipart such as objective-c methods
(it is not really necessary since filterOn does not have to have the same
prefix as title).
Once the command is running it should work as follows.
* an alphanumeric key press appends to mutablePrefix, there by potentially
limiting the list of candidates.
* a tab press inserts the longest common prefix among the candidates, this
will ofcourse never limit the list in itself, but can quickly be followed
up with a alphanumeric keypress, thereby saving lots of typing.
* a return inserts the current selection in the list, plus its snippet key
if there is one.
* delete removes a char, if this moves the caret before the beginning of
the search prefix the dialog goes away
* up/down moves in the list
* any other key closes the dialog and hands control back to TextMate.
What are your thought, am I missing something that could be useful for
your language?
Thanks in advance.
Joachim Mårtensson
I'm using the LaTeX bundle from SVN, updated daily (currently at
r8019). One of my documents has the following line of text, which
causes the syntax highlighting to misfire:
\textbf{Top row} - Manifold Pressure (`` HG) and Fuel Pressure ($
\mathrm{lb/in^{2}}$).\\
The fact that the quotes are not closed seems to be the problem.
But, I believe this is a perfectly legal usage, if you want to use an
abbreviation for "inches".
Kevin Horton
Ottawa, Canada
I think it would be very useful for TextMate to identify the type of a
script file based on the shebang line. This would be particularly
useful for scripts without suffixes. In my opinion, an identification
made this way would take precedence over one done based on the file
suffix.
For example if the first line of the script named "do_some_stuff" was
"#!/bin/env bash", then the file type would be a Bourne Shell script
file and Shell script (bash) syntax would be turned on.
Dear All,
I recall that the Blogging Bundle has never been able to handle Movable
Type's conception of "Categories" (ditto for BlogMate, I think).
However, I also recall that the developer hoped that this would be
ameliorated with future versions of MT. With the major update to MT4.0,
I still don't seem to get category information on the posts. Any ideas
for fixes or workarounds?
Thanks,
Andrew
Hi,
I saw a thread on this in the forum, but I still have this problem. I
just installed revision 1405 and activated the bundle. It registered
successfully. But in Safari 2.0.4 it does nothing. I saw a post saying
this combination works, but not for me. Any ideas?
Thanks
Hi All: I'm a new Textmate user. (I love it.) Was trying to use
the blogging bundle with a Typepad blog. I'm having difficulties
trying to get it through the first test fetch of recent posts.
I've been working with Typepad support for the past few days as I
assumed the problem was on their end. They're pushing back to
Textmate now. They claim Typepad supports the metaWeblog XML-RPC API
in their Knowledge Base: a search for "metaweblog api" and it returns
an article called "TypePad and Desktop Clients" at an obscenely
unreadable URL.
(http://support.typepad.com/cgi-bin/typepad.cfg/php/enduser/
std_adp.php?p_faqid=87&p_created=1125520929&p_sid=5-
AnQzJi&p_lva=&p_sp=cF9zcmNoPTEmcF9zb3J0X2J5PSZwX2dyaWRzb3J0PSZwX3Jvd19jb
nQ9NCZwX3Byb2RzPSZwX2NhdHM9JnBfcHY9JnBfY3Y9JnBfcGFnZT0xJnBfc2VhcmNoX3Rle
HQ9bWV0YXdlYmxvZyBhcGk*&p_li=&p_topview=1)
The only Typepad discussion I found on the Textmate mailing list
search was this old unanswered post:
http://article.gmane.org/gmane.editors.textmate.general/11960/
match=typepad
I found no discussion in the original post comments that helped either:
http://macromates.com/blog/2006/blogging-from-textmate/
My setup line looks like the following:
# Blog Name URL
Once More Unto the Breach http://stephenrwalli@typepad.com/t/
api#000001
It prompts me for a password, then returns:
Received Exception: HTTP-Error: 302 Found No posts are available!
I've also tried:
http://stephenrwalli@typepad.com/cgi-bin/mt/mt-xmlrpc.cgi#1http://stephenrwalli@typepad.com/cgi-bin/mt/mt-xmlrpc.cgihttp://stephenrwalli@typepad.com/t/apihttp://stephenrwalli@typepad.com/t/api#1http://www.typepad.com/t/api [which prompts for both username and
passwd and returns Invalid Login (403)]
I would assume I should receive a post or two per the demonstration
video. I'm not a constant blogger, but have 4 posts in the last 30 days.
Are there places I haven't looked yet?
Ideas? More information I can dig out?
kindest regards,
stephe
Stephen R. Walli
mailto: stephen.walli(a)gmail.com
mobile: +1 425 785 6102
skype: stephen.walli
IM: stephenrwalli at AIM | YIM | Hotmail OR stephen.walli at gmail
blog: http://stephesblog.blogs.com (Once More unto the Breach)
podcast: http://stephenrwalli.libsyn.com (Once More unto the Breach
podcasts)
flickr: http://www.flickr.com/photos/stephenrwalli
Hi,
If I edit a file which is considered "external" to my subversion
repository (think plugin in a Rails app) and then run the Commit
command from the Subversion bundle, it will include that file in the
commit process. But of course this will fail because I can't update a
file that isn't in my repository (it's external). I can uncheck the
check box every time but that is kind of a pain.
So I dug around in the Subversion bundle and changed line 94 of
svn_commit.rb to this:
status_command = %Q{"#{@svn_tool}" status --ignore-externals #
{(a)paths_to_commit.quote_for_shell_arguments}}
That just adds the "--ignore-externals" option so I no longer have
this problem. It makes sense to do this because the normal "svn
commit" command doesn't include external files. It would be great if
this change could be made to the original bundle so this ugly hack
won't be necessary. Thanks.
Regards,
Ryan
Hi there,
How come this file renders fine in safari b3 and webkit (screen grab below),
but preview in textmate gives this:
Or this:
Safari shows it fine as:
--
If you have an apple and I have an apple and we exchange apples then you and
I will still each have one apple. But if you have an idea and I have an idea
and we exchange these ideas, then each of us will have two ideas. - George
Bernard Shaw
Hello,
From the archives I see threads about a MT bundle for Textmate.
> From: Brad Choate <brad@...>
> Subject: Re: Bundle for Movable Type templates
Where might I find this bundle? Does such a bundle do syntax high-
lighting, or, instead, is this an interface to a blog API, for
example to upload posts to a blog...?
I am looking for a syntax high-lite so that I can avoid editing
templates in a web browser... :)
Thanks for any hints!
Cheers,
DK
Is there a way in TextMate to create tag pair highlighting? I'm
basically still a novice with customizing TM. Here's what I'm thinking:
Basically I go through a lot of old code that is littered with nested
table, tr, td and span tags. It makes it difficult to find a tags
"pair". It would be nice to invoke a key command on a tag (be it
HTML, XHTML, PHP, Etc.), either the beginning tag or end tag and have
it highlight the corresponding tag. And to take it one step further
it would be nice to have a slightly different key strong highlight
the corresponding tag and all the contents between them.
Can anyone point me to a bundle that does this or a way to create it?
Thanks.
Josh
I'm using TextMate mostly for XHTML/CSS work.
I recently switched to a Mac Pro from a Mac Mini and now have a
proper Apple UK keyboard.
unfortunately the # is lurking under opt+3 and I find that an awkward
key combo for such an often used character.
I've tried using TextPander with some success but it won't expand a
snippet when the caret is not in empty space, so getting h3#header1
requires some jiggling.
are there any snippets or shortcuts I'm missing in TM that will
append a # to an element in CSS without me having to contort my
fingers to get option+3 so often?
TIA
Hi,
Anybody make Markdown Extra <http://www.michelf.com/projects/php-
markdown/> work with TextMate? Not sure if other people think the
extra syntax is helpful, but I do.
As this is written in PHP, I'm not sure how it can be implemented.
Another possibility is to use Maruku <http://maruku.rubyforge.org/>,
which is written in Ruby. Anyone here have any needs to these
Markdown add-ons? I'm now trying Textile now, but prefer Markdown.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi,
I'm looking for a way to export all the text from my .tex files, or
just one -
(actually I want to use it to create tagcrowds of my work >> http://
www.tagcrowd.com/ - to give it a try and for some designing touches)
I wonder if there is some way to do this, something like picking all
content that fits a certain scope like "string" - or something and
export it into a pure plaintext file.
I agree this feature would probably not be able to export \footnote's
and \marginnote's but anyway -
Do you have any idea if there already is something like this - or if
it is possible at all?
Thanks a lot - and enough for today
flo
Hi,
I've got a problem..
Using the instructions from the manual and from the mailing list, I
hit the Info-button in my project drawer (without having any file
selected) and set the
TM_LATEX_MASTER to
> /Users/flo/Desktop/DiplomArbeit/070627_da_draft01/da_draft01.tex
From now on, whenever I hit "Typeset and Preview" I get the
following error in my Preview-WIndow:
> Error locating external viewer: ‘/Users/flo/Desktop/DiplomArbeit/
> 070627_da_draft01/da_draft01.tex’
I've tried saving my masterfile "da_draft..." as relative and
absolute path, but both showed the same error.
In my external viewer, PDFView everything is fine and gets properly
compiled.
Why is this so? And is there something I do wrong? Anyway to fix this?
Thanks
Flo
I've got a couple questions:
Can it parse the document and generate a list of completions based on
what you've typed?
(Thomas' completion command does this very well.)
Can it do this on unsaved documents?
How are these rules defined? (the easier this is the better)
Hello,
I'm curious why these instructions <http://macromates.com/textmate/
manual/bundles#getting_more_bundles> direct the User to create a
local svn repo in the Apple System's (/) Library area as opposed to
the User's (~) Library area. Is there a reason that it must be
installed at the System level instead of the User's "Application
Support" hierarchy?
Cheers,
DK
On Aug 15, 2007, at 08:00, Alex Ross wrote:
> I agree that prefixing all re's is not ideal.
>
> So, we have five options:
>
> 1. Match all raw strings unambiguously as regular expressions. We
> will sometimes have false-positives.
>
> 2. Match raw strings that are arguments to methods from the re
> module. We will sometimes not match raw strings that are regular
> expressions, but can be pretty well guaranteed to never have a
> false-positive.
>
> 3. Require some prefix to a raw string to "turn on" regular
> expression matching. This has an extremely high probability of
> removing false-positives and false-negatives, but at the cost of
> additional CRUFT.
>
> 4. A combination of 2. and 3. Match raw strings that are arguments
> to re.compile and raw strings prefixed with (?#) as regular
> expressions, but no others.
>
> 5. Don't match re's at all.
>
> It would seem there is no perfect option. I propose that we put it
> to a vote, and perhaps appeal to our BDFL Allan.
>
> –Alex
>
> My vote would be for 4, but I'll add two more options:
>
> 6. Parse r' and r''' but not r" and r""" (or vice-versa) as regexes.
>
> 7. Parse the "r" prefix, but not the "R" prefix, as regexes.
>
> The last option is probably the simplest. I don't think I've ever
> seen the "R" prefix in use and didn't even know it was an option
> until I just read the spec moments ago.
>
> j.
>
6. and 7. are really variations of 3 - which 'special' prefix do you
use to turn highlighting on or off, and what is it's default state?
I have incorporated them below.
>> The last option is probably the simplest. I don't think I've ever
>> seen the "R" prefix in use and didn't even know it was an option
>> until I just read the spec moments ago.
>>
>
> I've never seen 'R' in use either, but I'm sure somebody, somewhere is
> doing it. I think 6,7 are going to be too confusing.
I think that it's no more confusing than having r'(?# as the lead
prefix, having R' instead, or having r' turning regex highlighting
ON, and R' disabling it. It also has the benefit that it's easier to
read, and since there doesn't seem to be a standardized common-use of
R', making it the 'I'm not a regex raw string' marker is reasonable.
> And adding a no-op "signal" to raw strings that will later be used as
> regexes just to turn on some coloring seems very unPythonic in that:
>
> It is ugly.
> It is implicit.
> It adds complexity.
> It detracts from readability.
> It is not the obvious way to do it.
Partially true - but this is not a language definition, nor Python
code, but something different - a highlighter FOR Python. The
underlying code that makes up Python is very unpythonic.... and it
certainly will make it MORE readable in TextMate, as then it will be
highlighted correctly!
I vote for 4 as well. Method number 2 will cover the most common use
cases of regexes, and will keep the regex using folk (like me) happy,
without highlighting non-regex raw strings, and keep that group
happy. Part 3 is more touchy...
Once we start to get to the edge cases, such as feeding in a raw
string defined in one line into an re.compile in another line, either
we:
a - Never highlight - keep raw string users happy, annoy regex
users quite a bit,
b - Highlight when a prefix turns it on - obscure and a bit ugly,
but keeps raw string users happy, annoy regex users much less, but
still a little,
c - Highlight by default, but adding a prefix can turn it OFF, e.g.
R instead of r - again, obscure and a bit ugly; annoys raw string
users slightly, keep regex users happy, or
d - Always highlight all raw strings as regexes - annoy raw string
users, keep regex users happy - which is what we have now.
I use regexes quite a bit, but I could foresee a case where I might
want a raw string non-highlighted. If we change it at all, I would
vote for 4c.
Nick
Hi
(I'm preparing a talk so I am actively testing
and running into problems, sorry...)
Again on the issue LaTeX Watch-Beamer:
could someone please reproduce the following issue:
- save a file containing only
\documentclass[10pt]{beamer}
\begin{document}
aa
\end{document}
- invoke LaTeX Watch
- modify something (add "bb") and save
- check what's happening: on my computer,
the .aux and .pdf files are refreshed twice
a second! in other words, LaTeX Watch
continually updates even if I change nothing
(after the first change and save)
I guess this is a conflict with the pgf package.
But how? This is especially annoyng in
case of errors since the requst to show the log
is repeated every second or so...
Thanks,
Piero
I just need to vent on a quirk that keeps tripping me up.
I can bring focus to the drawer. I can navigate up and down with arrow keys.
I can even select all files with cmd-a,
yet, if I hit return on a highlighted file (intending to open it) it inserts
a new line in the focused tab.
?? is it me, or is that inconsistent ??
--
dc
-----
David Clark
Database Developer
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
On 8/16/07, Tobias Jung <newsgr(a)tobiasjung.net> wrote:
> At 15:31 Uhr -0400 15.08.2007, Charilaos Skiadas wrote:
> > this Applescript was utilizing the dictionary that Transmit had
> > set. In other words, Transmit has told AppleScript that it
> > understands words like "upload", "current session" etc. I guess
> > YummyFTP doesn't understand some of these words.
>
> Thank you; now it's obvious to me why it doesn't work.
>
> Kind regards,
> Tobias
>
Im sure you can ask developer (as license owner) to add AppleScript
support you need. At least they can tell you is it planned or not. Or
point you to workaround of any kind...
Hi everybody,
I just noticed that if you “Show Information” on an element of a project,
there is this option “Save as absolute path”.
Apparently, when checked, I can move my .tmproj file to another location and
TextMate keeps track of the elements of the project.
This is great !! I was really frustrated that I had to “redefine” my TM
projects whenever I moved the .tmproj files somewhere else…
So, unless I miss a major drawback, I would like very much that this option
be checked by default…
TIA
--
View this message in context: http://www.nabble.com/-FeaReq--Absolute-paths-in-projects-tf4278617.html#a1…
Sent from the textmate users mailing list archive at Nabble.com.
Hi
Sorry! I posted in the wrong thread by accident.
Shame on me. I repost here:
Label completion does not work anymore for me.
I get an error
/tmp/temp_textmate.vTWc4N:4:in `require': no such file to load
-- /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb (LoadError)
from /tmp/temp_textmate.vTWc4N:4
There is an alias LaTeXutils.rb in the Application Support
in the /Library, and indeed it points nowhere (since when?)
But:
- if I replace the alias with a new one pointing at the true
LaTeXutils.rb inside the LaTeX Bundle, I get a new error
/tmp/temp_textmate.cwZcvm:6: uninitialized constant LaTeX (NameError)
- if I delete the alias altogether, I get the old error.
So clearly there is some trouble with directories,
but I did not change anything recently,
apart from updating religiously via svn.
Any help?
Piero
I did a google search for a git bundle for textmate a while back and
found several hits, one of which (I thought) was a git bundle that
was being worked on by Allan. I can no longer find any trace of this
anywhere.
Was Allan working on a git bundle? Is he still? Is anyone else?
I would switch to git in a heartbeat if textmate had support for it.
After some minutes I'm using LaTeX Watch (which BTW is
simply wonderful and makes writing in latex a
pleasure. Try it!) the Skim CPU cycles go up to 35% (also
when both TextMate and Skim are not active or in
the backgroutnd).
At the same time the process "ATSServer" goes above 20%.
Pretty puzzling since this should be the ATSUI - Apple
Type Service thing, how is this related with TeX?
Am I the only one experiencing this?
Thanks
Piero
Yummyftop is announcing a new release, will be this think working?
2007/8/16, Tobias Jung <newsgr(a)tobiasjung.net>:
> At 15:31 Uhr -0400 15.08.2007, Charilaos Skiadas wrote:
> > this Applescript was utilizing the dictionary that Transmit had
> > set. In other words, Transmit has told AppleScript that it
> > understands words like "upload", "current session" etc. I guess
> > YummyFTP doesn't understand some of these words.
>
> Thank you; now it's obvious to me why it doesn't work.
>
> Kind regards,
> Tobias
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
On Aug 16, 2007, at 7:24:45 AM, Tony Crockford <tonyc(a)boldfish.co.uk>
wrote:
> is there a good workflow tutorial for the solo developer using
> Mercurial with TextMate for managing website builds and changes?
>
> if I learn about it and write one, will anyone be interested in
> reading it, or are we mostly team developers?
I don't know of such a tutorial, Tony, but I would definitely be
interested in helping create one. I've been using mercurial with a
few of my sites for a few months now, and it's been working out
great. There are still a lot of features I don't use, but as a fellow
solo developer I'd be happy to share my workflow and the tips I've
discovered if you'd find that helpful.
I've installed the Mercurial extension in Trac, which puts a pretty
web-based GUI on each of my sites' repositories, and lets me compare
before and after changes side-by-side, and even keeps track of
project goals and even includes a project-based wiki.
I love TextMate, and pretty much live in it while I'm working, but I
use the command line to issue Mercurial commands. It's probably just
me, but I find that more flexible and easier to use than the
Mercurial Bundle. No a big deal, since I need to ssh to the web
server to issue the hg update command anyway.
Feel free to email me directly, so as to not clutter up this mailing
list.
Cheers,
- Dave
I (finally) added a commit button to the status page, but I don't have
much time to test it thoroughly. So instead of waiting a few years, I
commit it and wait for feedbacks. If there is any problem we'll fix
them or revert.
One noticeable change:
Status now acts on selected files instead of working copy.
--
FredB
Hi,
I've been using TM to develop flash apps for a few months now, and
whilst I like the integration with MTASC provided by Alé I have found
one serious problem with the way it preview the flash movies.
If you build a movie in MTASC and it pops up in the textmate preview
browser, you can interact with it, do whatever, it's all fine. When
you close the preview window it appears that the flash continues to
run after you've closed the window. Whatever renders the HTML (I
presume some part of the Safari core or WebKit) doesn't close itself
down properly when the window is closed.
This is a problem as one of the apps I am working in is fairly CPU
intensive, so after I've built with MTASC once and previewed it,
after I close the window everything is still running at 100% cpu as
the flash app is still churning away in the background.
Is there any way to cleanly remove the browser preview when the
window is closed? To totally destroy the environment it created
during that preview? Or at least is there some way to find and
terminate the flash player that is running in it?
Gaby
--
Junkets for bunterish lickspittles since 1998!
http://www.playr.co.uk/
Hello all,
I am new with TM (and quite new with Mac anyway) and I like it a lot!
I used WinEdt for LaTeX and Matlab. It has a very nice feature: If
you are typing an umlaut like ä, ü, é, etc. it writes in TeX-code
\"{a},\"{u},\'{e} etc. to the tex-file, while the umlaut is still
seen in the editor. The advantage of this is obvious: You don't have
to care about the encoding, you can share the file easily and the
spellcheck works still fine. This feature could be interesting for
html as well.
Moreover, since one like to see greek letters like "α" (UTF8: CE B1)
instead of \alpha an automatic replacement in the editor (while still
writing \alpha to the tex-file) would be very nice, too!
I didn't found any discussion about this topic in this forum. Is this
of interest for you? Is there a solution already? I would be very
pleased about this feature.
Best regards
Matthias
On Aug 14, 2007, at 08:00, textmate-request(a)lists.macromates.com wrote:
>
> From: Steve Lianoglou <lists(a)arachnedesign.net>
> Date: August 13, 2007 14:03:56 EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Re: Python bundle syntax highlighting bug
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
>>>> I think you are probably right. Does anyone else have an
>>>> opinion on this?
>>>
>>> I agree this doesn't seem right, and can produce some confusing
>>> results. On the other hand, it's very nice to have regex
>>> highlighting.
>>
>> I prefer to trade-off false-positives for the nicety of regex
>> highlighting.
>>
>>> Wouldn't it be possible to have the first string located within a
>>> re.XXXXX('') pattern be highlighted as regex? Am I wrong, or are
>>> those the only places where regex appear?
>>
>> s = r"...."
>> pattern = re.compile(s)
>>
>> is always, possible, if contrived. I think re.XXXXX is an
>> interesting suggestion though.
>
> I'm in the same boat with Jay.
>
> I think it's kind of nice to have special highlighting for regex's.
> I'd settle for it only being switched on when we have re.*
> (r"regex" ... ) if the "always a regex w/ r" " really isn't
> suitable for others.
>
> -steve
>
>
>
>
> From: "Alexander Ross" <alex.j.ross(a)gmail.com>
> Date: August 13, 2007 14:35:16 EDT
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Re: Python bundle syntax highlighting bug
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> I agree that it's very nice to have highlighted re's if possible.
>
> What if we did something like matching r"(?#) … " as a regular
> expression string? The would give us something explicit to match,
> but it would also mean you'd have to add it to any of your preexisting
> re's.
That sounds like a very good idea. It would be pretty easy to find
regexes and sub in a '(?#)' comment marker (I had to look up what
that one was!) so one would have regex syntax highlighting in
existing code, while keeping the 'raw strings are just raw strings'
folks happy. For those who complain that r'(?# might just be the
beginning of some particular, non-regex raw string, well.... too
bad! ;)
On a side note, it may be nice to keep a documented list of such
'extra' features (above and beyond the straight language definition)
in the Python bundle somewhere; for instance, the appearance of
folding markers when a triple quote is followed by text, followed by
a <return>, followed by another triple quote. This regex
highlighting feature would also qualify - otherwise, it would not be
known to a new Python + TextMate user unless they stumbled across it
by accident or investigated the grammar in detail...
>
>
>
>
>> I'm more and more convinced as time goes on that we should just
>> stop trying to interpret raw strings as regexps.
>>
>>
>
> I think you are probably right. Does anyone else have an opinion
> on this?
>
>
Well - as you pointed out previously, raw strings were introduced
into Python for the specific purpose of making writing regexps
easier. If we don't interpret raw strings as regexes, what will we
interpret as regexes in Python, then? Or will we just ditch regex
syntax highlighting from Python altogether?
Perhaps we need some sort of obvious marker on the same line to
indicate that a raw string should be interpreted as a regex. Regexes
in Python are pretty obvious when being used - a very common way is
to compile a regex via re.compile([raw string]), and the other common
way is to call other functions in the regex module, ala re.findall
(r'\bFig\b'), for instance.
So, perhaps raw strings should only be interpreted as regexes when
directly preceded by re.[function]( - while this would not get
everything we might want to be interpreted as a regex, it would
capture some of the most common use cases.
Nick
Hello,
I ripped off RakeMate to make MavenMate. Same kind of deal, allows
you to run maven2 tasks from within TextMate. Should it be put in the
Bundles repo?
http://ldaley.com/downloads/Maven.zip
- LD.
Ciao Folks,
at first I would like to offer my thanks for the great work on the new LaTeX
bundle. It's a big step forward especially in the area of displaying the log
after compilation. I really missed that compared to TeXShop.
Tonight, while playing around with the new "%!TEX root" directives to define a
master file, I noticed that Auto-Completion for \cite{} etc. using ALT+ESC only
works recursively if the master file is still specified using the
TM_LATEX_MASTER variable either in a project or global. the %!TEX directive does
work for compilation but not for completion as it seems.
Is this a correct observation or rather a bug on my side. I am not sure, if it
would even be possible to enable recursive search using only the directives. If
that is the case, I guess it would be best to mention that in section 2.3 of the
bundle help as advantage of the TM_LATEX_MASTER variable.
Just my two cents ;-)
Best Wishes
Bastian
Hello, I when trying to commit using the latest version of the CVS bundle
and the latest version of TextMate as of August 14, 2007 I am getting the
following errors:
/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:99: undefined
method `keys' for []:Array (NoMethodError) from /Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:99:in `call'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing' from /Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:99 from
/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:97:in `call'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing' from /Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:97 from
/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:25:in `call'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing' from /Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:25 from
/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:19:in `call'
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:227:in
`_nested_structures' from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:149:in
`method_missing' from /Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:19
File(s) not modified; nothing to commit.
If anyone has experienced something similar or have any information that can
help me start using CVS, please let me know.
Regards,
--Matic Code
Hi,
would it be possible to change the definition
{ name = 'meta.escape-character.latex';
match = '\\$';
into
{ name = 'meta.escape-character.latex';
match = '\\$|(?<=\\)\n';
The problem is that a backslash followed by a newline
is not recognized by the first definition.
Piero
Looks like svn revert is broken in the last build. If I try to revert
a file there's an error that says require fails in line 3 of
revert_file.rb, which is:
require ENV['TM_SUPPORT_PATH'] + "/lib/ui"
-- fxn
Hi, only since early this morning, whenever I call for Bibdesk-
Citekey-Completion using "F5" TM freezes, shows the ball and I'm left
waiting without anything happening.
And I'm pretty sure I didn't change anything since last night, when
everything just worked fine.
Bibdesk-Completion works in other apps like before.
Any ideas?
Flo
Hi,
I'm developing a bundle for Stata/Mata, and I want to define a
grammar such that Ctrl-Alt-B can select an entire function. I would
appreciate any pointers.
Here's an example function:
real matrix y_null(real scalar rho, real scalar T) {
real matrix y
real colvector e
real scalar t
y = J(T, 2, 0)
// use the inverse CDF method to draw from N(0, 1)
e = invnormal(uniform(T, 1))
y[1, 2] = (1 - rho^2) * invnormal(uniform(1, 1))[1, 1]
for (t = 1; t < T; t++) {
y[t, 1] = rho :* y[t, 2] + e[t]
y[(t+1), 2] = y[t, 1]
}
y[T, 1] = rho :* y[T, 2] + e[T]
return(y)
}
And here are the relevant excerpts from the grammar:
patterns = (
{ name = 'meta.function.mata';
begin = '(?x)
(?=
^\s*
((transmorphic|numeric|real|complex|string|
pointer)\s+)? # eltype
((matrix|vector|colvector|rowvector|scalar)\s+)? #
orgtype
(\w+)\(.*\)\s
+ # function name
\{$
)';
end = '(?<=^\}$)';
beginCaptures = { 5 = { name = 'entity.name.function.mata'; }; };
patterns = ( { include = '#base'; } );
},
{ include = '#base'; },
);
repository = {
base = {
patterns = (
...
{ name = 'storage.type.eltype.mata';
match = '\b(transmorphic|numeric|real|complex|string|pointer)\b';
},
...
);
Now, in most regards, this works fine. The name of the
function--"y_null"--shows up in the symbol list, and the contained
scopes are identified correctly. Also if I cycle through Ctrl-Alt-B
when the cursor is not on "real" or at the beginning of the line, the
whole function is selected. However, if I hit Ctrl-Alt-B either at
the beginning of the first line or within "real", it fails to
recognize the meta.function.mata scope. That is, on the first
keypress, TextMate recognizes the storage.type.eltype.mata scope and
selects "real", but on the second, it skips right to the source.mata
scope and selects the whole program instead of just the function.
Here are the results from Ctrl-Shift-P:
With cursor at the beginning of "real"/beginning of line --
source.mata, meta.function.mata, storage.type.eltype.mata
With cursor within "real" -- source.mata, meta.function.mata,
storage.type.eltype.mata
With cursor anywhere else in the function body -- source.mata,
meta.function.mata, other scopes from the base repository if relevant
With "real" selected (by Ctrl-Alt-B or manually) -- source.mata
Any ideas on how to workaround this? It's annoying, because if you
navigate to a function via the symbol list, it puts the cursor at the
beginning of the line by default.
Thanks!
Michael
One thing I use snippets for is as a simple, convenient memory aid; for
example, I currently have (most) of the Ruby standard exception types as
snippets with the tab trigger "exception". So I type in "exception",
tab, and get to choose which of the exceptions I really want to use.
However, defining and maintaining (in case changes are wanted) such a
large number of small snippets is sorta annoying when going through the
Bundle Editor. Is there a way to have multiple snippets in one file,
including the various settings such as tab trigger, keyboard shortcut, etc.?
Thanks,
Ken
Done searching and looking through the help, and some Googling, and I
still can't find any info on how to put snippets/commands/etc. into
menus. I know this can be done (the Ruby plugin, for one, does it), but
I just can't figure out how. Probably very obvious too, sigh...
Thanks,
Ken
Hi,
Mail has this thing where by when you are typing and you are not sure
of the spelling of the word (or even if such a word exists) you
can press <esc> before yo complete the word & it gives you a pull
down of various choices. Is this something that can be incorporated
in the text scope of textmate?
(note: i know of ctr-apple-D which can check for the word in
dictionary but that is not the functionality I need in this case -
ie, since that assumes you already know how to spell the word...)
Thanks
danstan
ps; interestingly the Mail functionality doesnt seem to work within
a sentence.
I hit some wild key combination and now my PHP bindings seem to be
gone. The bundle shortcuts work, but there's no syntax highlighting,
no code folding, nothing. I cannot figure out what I did. Any
thoughts?
--
Wells Oliver
wells.oliver(a)gmail.com
When I use a command that has this statement
require "#{ENV["TM_SUPPORT_PATH"]}/lib/dialog"
I get an error:
/tmp/temp_textmate.rl42pL:3:in `require': No such file to load --
/Users/barbara/Library/Application Support/TextMate/Support/lib/dialog
(LoadError)
from /tmp/temp_textmate.rl42pL:3
I'm not a programmer -- I just used the example from the TextMate book
for the dialog box, and it worked until this last update to Version
1.5.6 (1414)
How can I fix this, please?
TIA for any advice,
Barbara
Alex Ross wrote:
Anyway, the grammar thinks that you're LaTeX code is a regular
expression. My suggestion would be to remove the "r" from before
your doc-string. Is there a particular reason you are using them?
This code is from a co-developer who has been getting into automatic
conversion of docstrings to Latex files. I'm not sure if the "r" is a flag
for the package he's using or it's just superfluous, but will try removing
it. Thanks for the suggestion.
Anand
Hi all,
In the following, everything after the \in is highlighted grey as if it were
a comment.
Thanks for all the good work!
Anand Patil
def half_normal_like(x, tau):
r"""
half_normal_like(x, tau)
Half-normal log-likelihood, a normal distribution with mean 0 and
limited
to the domain :math:`x \in [0, \Infty)`.
.. math::
f(x \mid \tau) = \sqrt{\frac{2\tau}{\pi}}\exp \left\{ {\frac{-x^2
\tau}{2}}\right\}
:Parameters:
x : float
:math:`x \ge 0`
tau : float
:math:`\tau > 0`
"""
# try:
# constrain(tau, lower=0)
# constrain(x, lower=0, allow_equal=True)
# except ZeroProbability:
# return -Inf
return flib.hnormal(x, tau)
Right now both Thunderbird and MacSoup use their own readers/editors for
email messages and posts. Is there a way to change that default to use
TextMate instead?
Thanks.
- Dushan
Hi there,
I am looking for the definition of invalid.illegal.math.tex
of the LaTeX Bundle. Can't find it in the “LaTeX” language
grammar…
I got this when I write an equation which spans several
lines… Rather annoying…
TIA
When I launch the new "Preferences..."
command, I get the following error.
Any ideas?
Thanks, Piero
Traceback (most recent call last):
File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/configure.py", line 5, in ?
pref = tmprefs.Preferences()
File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/tmprefs.py", line 18, in __init__
self.prefs.update(self.readTMPrefs())
File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/tmprefs.py", line 39, in readTMPrefs
plDict = plistlib.readPlist(pl)
File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/newplistlib.py", line 77, in readPlist
rootObject = p.parse(pathOrFile)
File
"/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/newplistlib.py", line 397, in parse
from xml.parsers.expat import ParserCreate
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/_xmlplus/parsers/expat.py", line 4, in ?
from pyexpat import *
ImportError: dlopen(/System/Library/Frameworks/Python.framework/
Versions/2.3/lib/python2.3/site-packages/_xmlplus/parsers/pyexpat.so, 2):
no suitable image found.
Did find: /System/Library/Frameworks/Python.framework/
Versions/2.3/lib/python2.3/site-packages/_xmlplus/parsers/pyexpat.so: mach-o,
but wrong architecture
A> Le 12 août 07 à 09:09, Dushan Mitrovich a écrit :
>
>> I missed a few days of lists a week or so ago, and I was wondering if
>> there was an archive I could go to to read the missed messages. I
>> didn't notice one on the website.
>>
>> If there is one, what's the URL? Thanks.
>
> http://comox.textdrive.com/pipermail/textmate/
Thanks, Alain, this did the trick for me.
Bastian Philipps <bp.profiles(a)gmail.com> wrote:
> There is also Gmane, which I personally find a lot more convenient than the
> typical pipermail archives
>
> http://thread.gmane.org/gmane.editors.textmate.general/
This is a good thing to find out about, Bastian, thank you. And I
agree, it's
very convenient.
- Dushan
Small request for the beamer language grammar. Would it be possible
for \frametitle to show up in the symbol list? That way you could
quickly navigate to individual slides. Thanks, Mark
Hi Everyone,
I just merged the typeset and view branch back to the mainline. Thanks to
everyone who made the effort to switch over to the branch! I think there
are still some good ideas that can be implemented but this is good progress
for now.
Please go back to using the the mainline now. I think the easy way is just
to remove Latex.tmbundle and then do an svn update in your Bundles
directory. If you are being selective about which bundles you check out
then just checkout the Latex bundle from the mainline.
Please let me know asap if you find anything wrong with this version.
Thanks,
Brad
--
Brad Miller
Assistant Professor, Computer Science
Luther College
I don't know if feature requests go on the email list or not.
I wanted to suggest a new "Output" option for the "Filter Through
Command" action. I think adding the option "Insert to Clipboard"
would be useful. I notice I run a number of *nix commands on text
(awk, tr, uniq, etc) but then it would be nice to have the option
where to paste it.
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
I missed a few days of lists a week or so ago, and I was wondering if
there was an archive I could go to to read the missed messages. I
didn't notice one on the website.
If there is one, what's the URL? Thanks.
- Dushan
Hi all,
What is the procedure for making a new (small) new language bundle
available?
Add to the SVN? (need privileges, of course)
Host it oneself?
I'd mostly in the first place just like an SVN I can access from home and
work as it incrementally builds to something more useful.
I googled bundleforge (distant memory that that was an open place for
bundles, but it says come back soon?
t
Hi,
I have a few questions regarding my TM & Latex-Combination - I'm
switching from TexShop, but I just like TM better.
So, for using the package "glossaries" with TexShop I had to create
an extra engine... containing th following commands:
#!/bin/bash
bfname="`basename "$1" .tex`"
pdflatex "$1"
bibtex "$bfname"
makeindex -s "$bfname".ist -t "$bfname".glg -o "$bfname".gls
"$bfname".glo
makeindex -s "$bfname".ist -t "$bfname".alg -o "$bfname".acn
"$bfname".acr
pdflatex "$1"
pdflatex "$1"
Could be that this is a little often, but afterwards everything was
compiled, index, acronyms, bibtex etc...
How can I port this to TM? When I just select "Typeset and Preview"
i.e. glossaries don't show up or don't get updated.
??
Thanks a lot
flo
I'm new to TextMate and thinking of using it for teaching purposes. I would
like to fill out a form and have TextMate to automatically create the needed
file. For instance I have a snippet called csc (short for
CreateStandardClass) that looks like this
Class: ${1:ClassName}
SubClassOf: ${2:Object}
InstanceVariables: ${3:varName1},${4:varName2}
After I've entered the needed info (Rectangle, width and height) it looks
like this
ClassName: Rectangle
SubClassOf: Object
InstanceVariables: width,height
After entering height and pressing tab I would like TextMate to generate the
Objective-C code below. (It should be possible since all needed data is in
the variables $1, $2, $3 and $4)
// Rectangle.h
#import <objc/Object.h>
@interface Rectangle: Object
{
int width;
int height;
}
-(void) setWidth:(int) w;
-(void) setHeight:(int) h;
-(int) width;
-(int) height;
@end
// Rectangle.m
#import "Rectangle.h"
@implementation Rectangle;
-(void) setWidth:(int) w
{
width=w;
}
-(void) setHeight:(int) h
{
height=h;
}
-(int) width
{
return width;
}
-(int) height
{
return height;
}
@end
Is there a way to do this?
Thanks Bob
I want to produce
[origin [pt x]];
using a snippet called msg (short for message) that looks like this
[${1:Receiver} ${2:message}]
When I write msg and hit tab I am presented with
[Receiver message]
where Receiver is highlighted. I write origin and hit tab. Now I get
[origin message]
and message is highlighted.
I write msg again and hit tab.
To my surprise I get
[origin msg]
with tha caret after the last bracket .
So it seems that TM is giving priority to the outer snippet??? But I think
that two other alternatives might be better
Alternative 1: Forget all tab stops for the first snippet when an inner
snippet is activated.
Another alternative is
Alternative 2: When hitting tab give priority to the inner snippet first and
when it is finished then give focus to the outer snippet and let it do its
thing.
If I am wrong in my thinking tell me why. If I am right maybe it is some
programming difficulty with nested snippets that prevents the desired
behavior.
Thanks Bob
--
View this message in context: http://www.nabble.com/Tab-stops-work-strangely-with-nested-snippets--tf4250…
Sent from the textmate users mailing list archive at Nabble.com.
In a screencast, control -> less-than was used to change hr and img to <hr />
and , respectfully (the -> is not part of the key combination). What
happened to this feature? It no longer closes it like this: <hr />. It
only shows <hr></hr>.
--
View this message in context: http://www.nabble.com/signleton-tags-not-supported-with-control-less-than--…
Sent from the textmate users mailing list archive at Nabble.com.
A.K.A. Objective-c Annotation project,
I have started to think how I can improve the objective-c code completion,
adding additional context sensitive suggestions. Currently there are only
context sensitive suggestions for a limited set of operations inside an
Objective-C method call context.
What I would like is for constructs such as:
returnCode == NSOKButt[caret]
to be context sensitive as well, the problem is that just looking at the
type of returnCode is not going to work since it is most probably an int,
of which there are hundreds in Cocoa (counting functions that return int
and constants).
So my thinking is that using a regexp I can gather statistics from various
open-source project and make educated guesses as to what a more "detailed"
type would be, thereby being able to provide better suggestions.
for example:
-(void)openPanelDidEnd:(NSOpenPanel*)panel returnCode:(int)returnCode
contextInfo:(void*)contextInfo
{
if (returnCode == NSOKButton)
}
I would parse out the method header, the argument names + the method part
they were connected to, and then do a regexp search in the body of that
method that would check if any of the arguments are compared/assigned
against a constant/function declared in the cocoa headers. Check if this
constant/function is of a more specific type (in reality a cocoa typedef
enum).
if so add this method to a file of special cased code completions (and
ofcourse enough information to deduce what special treatment that would
be).
So now to my question to you fellow TextMate using Objective-C users:
Do you think this will help you in your coding or will it get in your way?
Have I overlooked something that makes this not viable?
Should I instead provide a special nib with a giant talking paper clip?
Thanks in Advance
Joachim Mårtensson
Is there a particular reason that there aren't any snippets in the Rails
bundle for validates_acceptance, validates_each, validates_inclusion, or
validates_numericality_of?
I attached some, including versions with "if" for those that seemed
reasonable (ie, those whose closest counterparts had if versions already in
the bundle).
Small problem with the LaTeX grammar's handling of single quote
strings. The following:
'tis suppos'
as it occurs in:
'tis suppos'd
gets scoped as invalid.illegal.string.quoted.single.latex. LaTeX,
however, has no problem with such constructions. Perhaps this would
be difficult to fix and the problem is, in any case, rare. (I only
hit upon it writing a Hume lecture.) Just thought I would pass it on.
Best, Mark
I want to produce
[origin [pt x]];
using a snippet called msg (short for message) that looks like this
[${1:Receiver} ${2:message}]
When I write msg and hit tab I am presented with
[Receiver message]
where Receiver is highlighted. I write origin and hit tab. Now I get
[origin message]
and message is highlighted.
I write msg again and hit tab.
To my surprise I get
[origin msg]
with tha caret after the last bracket.
So it seems that TM is giving priority to the outer snippet??? But I think
that two other alternatives might be better
Alternative 1: Forget all tab stops for the first snippet when an inner
snippet is activated.
Another alternative is
Alternative 2: When hitting tab give priority to the inner snippet first and
when it is finished then give focus to the outer snippet and let it do its
thing.
If I am wrong in my thinking tell me why. If I am right maybe it is some
programming difficulty with nested snippets that prevents the desired
behavior.
Thanks Bob
Hi Everyone,
I am using the TODO bundle, or wish to use it, to keep track of things to do
in my thesis. My Thesis project directory is off the root directory and
contains many Latex files. The problem is when I use the show TODO list, the
command runs properly but does not show the TODOs that are present in the
project files. i.e. the read out gives 0 in the TODO/CHANGED/FIXME columns.
The bundle works fine on single files found elsewhere in my system. I have
the latest TODO bundle check out and the latest bundle support, running T
1.56. Does anyone know what I am doing wrong - why is it not working?
Regards,
Mark Perrin
I am not a computer programmer, but use TM as my word processor. I am
interested in creating a macro which selects the text from the location of
the cursor to the next period in the sentence and then deletes that text.
Can anyone tell me how I can go about that?
Thanks for the help.
Context Sensitive HTML attribute completion!!!
You'll have to have the latest copy of the support folder and the HTML
bundle.
I have tested this quite a bit on my machine, but
if you can find a way to make it break, please let me know and I'll
fix it right up.
To use: tap the space key when your caret is just before the last
character in an html tag.
It looks up a list of attribute to tag associations and only shows you
a list of the ones that apply to the current tag that you're in.
<div TAP_SPACE_HERE>
or
<img TAP_SPACE_HERE />
If you type a few characters before you hit space, it'll use those
characters to limit your list even further.
for example:
<img onTAP_SPACE_HERE />
That will limit your list of completions to anything that starts with
"on" and is applicable to the <img> tag.
Also, works with lowercase and UPPERCASE HTML tags. When you use
uppercase tagnames it'll give you upper and titlecase attribute names,
depending on what's appropriate.
This version DOES NOT look at your doctype, it just gives the same
list for all html languages.
I think I'll wait for TM2 to do the doctype thing since it'll be a lot
easier then.
I'll do an official announcement with screencast and everything once
people argue endlessly about the keybinding that it should use.
thomas Aylott — subtleGradient — CrazyEgg — bundleForge
I've just started to try out TextMate :). I've created a little snippet
called vam (short for variable and method) that looks like this
{
int ${1:var};
}
-(void) set${1:var}:(int) n;
So when I enter vam and hit tab, I am presented with the following chunk
{
int var;
}
-(void) setvar:(int) n;
where var is highlighted. If I start to type numerator the chunk changes to
{
int numerator;
}
-(void) setnumerator:(int) n;
However I would like setnumerator to be outputted as setNumerator.
Is there a way to do this?
Thanks Bob
Hey there
I recently had a look at the GetBundle bundle and liked the fact,
that you can have a look at the available bundles online and then
select which ones to install. I also like the growl notification (why
doesn't it use my default bezel?).
I'm currently updating my bundles manually via svn from http://
macromates.com/svn/Bundles/trunk and always install all bundles
including the support folder, plugins, etc. It takes up some space on
my HD but that way I'm sure, all the bundles work properly. I install
them in my "/Library/Application\ Support/Textmate/" folder. If I
remember correctly, this is the recommended place to install
additional/updated bundles. The question I asked myself is, why
GetBundle installs its bundles into "~/Library/Application\ Support/
Textmate/Pristine\ copy/Bundles"? -- It would be nice, if there was
some kind of setting or shell variable, where you could set where to
install the bundles (for all users or just the current one). The way
it's handled now, the bundles available via svn and the ones I
install manually via download and double-click get mixed up in the
same folder (Pristine copy). Also I don't now how the updating of the
Support or PlugIn folders gets handled via GetBundle. I'm reading a
lot about conflicts between wrong versions of the dialog plugin and
bundles which depend on the newest version of the plugin on this list.
Maybe someone can shed some light on these things? Maybe a help file
for this bundle wouldn't be wrong also, since it's targeted to users
which aren't familiar with svn and how this whole bundle thing works.
Thanks in advance!
Oliver
Hi everyone,
You may have followed that I recently manage to update my
bundles after a long period using outdated ones :D
And then, I noticed that snippets for inserting images and
link in the HTML bundle have dissapeared…
I created my own snippets to replace them; it's no big
deal… But I was curious why those snippets have
dissapeared ?? Am I the only one using them ? :)
TIA
I tried to go to the preferences dialog in the Latex bundle, and
nothing happens. I see "/bin/bash: line 3: configure.py: command
not found".
Kevin Horton
Ottawa, Canada
It seems there is no way to have parts of a capture scoped by calls
to $self or #repository elements, which means that complex captures
get to have many capture elements.
It would be handy if there was a code for language grammar capture
numbering, so that these are more resilient and self-healing when the
regexp underlying their definition changes.
What I would suggest for TM2 is something like a code for "next
group" so instead of explicitly numbering all matches, only non-
sequential elements are explicitly numbered, and all others are self
numbering. A nice code would be "#". A nice twist would be if this
supported skipping elements when suffixed with an addition "#++" or "#
+n"
Then, if we change a match from, say:
match = '(a)(b)(c)';
To say:
match = '(a)(a1)(b)(c)';
Then the numbering, instead of manually being recoded from this:
1 = { name = 'a'; };
2 = { name = 'b'; };
3 = { name = 'c'; };
to this:
1 = { name = 'a'; };
2 = { name = 'a1'; };
3 = { name = 'b'; };
4 = { name = 'c'; };
Could simply stay as this (where # is a code for "next sequential
number"
1 = { name = 'a'; };
# = { name = 'a1'; };
# = { name = 'b'; };
# = { name = 'c'; };
In the more complex case,
1 = { name = 'a'; };
# = { name = 'a1'; };
#+1 = { name = 'b'; }; //skips a group
# = { name = 'c'; };
Hopefully someone can help me with the following simple problem.
I recently moved to a gmail account for my mailing list
subscriptions. I have enabled POP access in gmail, and set Mail.app
to read those messages. Everything works just fine, except for the
fact that I never get to see my own messages to the list, even though
I have set my list preferences so as to receive them. Anyone
encountered this before?
Haris
Hi,
Does anyone know how to use the svn commit window from the keyboard,
I know the enter key does the commit but is there anyway to select or
deselect files for committing without using the mouse?
cheers
jebw
Hi,
I often use the following commands. Maybe there are other users who
do find them useful too.
###
Show duplicate Lines
Show duplicate Lines (ign. leading spaces&tabs)
Bound to F5
Both commands (more or less a one-liner in bash ;) display as a tool
tip only those lines which occurs at least twice in the document sorted.
###
Sort Table by Column
Sort Table by Column numerically
Bound to F5
It is often the case that I have to sort tables (delimiter TAB) by a
specific column in a document alphanumerically or numerically.
If your document contains only a table you can place the caret in
that column which should be the key for sorting.
If you select a portion of a table it will ask you for the column as
inline menu.
Best,
Hans
Hi,
here comes the latest version of the tmCommand 'FileName Completion'.
I speed up it a bit, improved some tiny things, simplified it, fixed
some bugs, and I changed the key binding to SHIFT+TAB.
For more details see the leading comment within this tmCommand or
have a look at
http://www.bibiko.de/TM_InsertFilePathNames.mov (ca. 5.7MB without
sound but with written hints ;)
Please feel free to mail me if there are bugs or wishes or ... ;)
Regards,
Hans
> [CHANGED] The right-pointing folding arrow is another color to
make it visually distinct from the up/down arrows.
Waayyyyyy to heavy, this needs to be much more subtle! That eye-
piercing orange got to go!
Here is how most of my window look now (yes, I usually have most
everything folded):
In Markdown I can hit 'Enter' in an URL formated like this
<http://domain.tld>
and it opens in my default browser.
How would I go about to achieve the same in LaTeX documents? I have a
lot of
\url{http://domain.tld}
links in a document and I'd like to be able to open them as easily as
in Markdown.
Thanks in advance!
Oliver
Hi. I apologize if this is a repeat question. I couldn't find it in
the archives.
When using the Edit : Select : Enclosing Brackets command, is there a
way to tell TextMate to NOT select the brackets themselves? I use TM
to edit C++ code, and *very* frequently want to copy, cut, or delete
the code that's between two parentheses without getting the
parentheses themselves.
Thanks for any help,
Rob
Hi,
I have one machine still running 10.3
and when TextMate was updated to the
latest version (with the new LaTeX changes)
it broke my LaTeX compilation.
I get the following error:
sh: line 1: /usr/bin/type: No such file or directory Error: pdflatex
is not found
Sure enough, there is no /usr/bin/type. I've
specified the pdflatex location as
TM_LATEX_COMPILER.
I've downloaded 1.5.6 and I'll revert to that in
the mean time.
Cheers,
Tim.
Hi,
I'm new to TextMate and have been struggling with a few things. I'm having
trouble finding answers on Google etc. and was hoping someone in the forum
could help.
1. How to insert a new line above the caret position and move to the start
of the new line (in the correct indentation level). Something like Shift-O
in vim.
2. How to move to the start of the text on a line. So something like Ctrl-A
then Ctrl-LeftArrow
3. I also have a question regarding TextMate's auto-indentation model. Say I
have the following ruby snippet:
def foo
puts 'hello world'
<caret>
end
Note the caret is not indented correctly. If I press enter the next line
also starts against the margin. Is there a way to have TextMate always put
the caret in the correct indentation position when starting a new line?
Correct being whatever TextMate thinks is the correct position.
Regards,
Liehann
Hey all,
I've been doing some php code lately and got a bit tired of writing
getters/setters. I didn't find a command to generate them for me, so
I whipped one up.
I'm putting it here in case someone finds it useful.
The idea is to highlight the lines in your class file where you
define the class's instance vars. You then just have to fire this
command and it'll create generic getters/setters for the vars found
in the selection (can do multiple per line). If no lines are select,
it will try to create getters/setters for the vars in the current line.
It might be handier if it dumped the code into the clipboard, or
something, but it will just drop the code right below the current
selection.
If that sounds handy, you can create a command like so:
==================
Save: NOTHING
Input: SELECTED TEXT or LINE
Output: INSERT AS TEXT
Scope Selector: source.php
Command(s):
-----------------
#!/usr/bin/env python
import os,re,sys
template = """
public function get:CALL:() {
\treturn $this->:VAR:;
}
public function set:CALL:($:VAR:) {
\t$this->:VAR: = $:VAR:;
}
"""
regex = re.compile(r'\$(\w+)')
try:
text = os.environ['TM_SELECTED_TEXT']
except KeyError:
text = os.environ['TM_CURRENT_LINE']
for line in text.split('\n'):
for var in regex.findall(line):
code = template.replace(':VAR:', var)
code = code.replace(':CALL:', var[0].upper() + var[1:])
sys.stdout.write(code)
=====================
Bind to your favorite key combo and voila.
-steve
Every so often I'll open a file in TextMate and the window is all
garbled, like this:
http://microseeds.com/reference/textmate_garbled.jpg
Now this doesn't happen very often, and it's not a show stopper since
scrolling or resizing the window fixes the problem.
Has anyone else seen this?
- Dave
Hi all... there's something that's been bugging me for a while. I've
been wondering if it's possible to add a symbol to the Symbol PopUp
in a Plain Text file?
I know that I can use bookmarks, but I much prefer the Symbol PopUp
for file section navigation.
Thanks
Mike
Hi,
short question:
Like TeXSLMate Palette I would like to create a menu item (with short-
cut) in TM's 'Window' menu for my tmPlugin. How can I do this?
Many thanks in advance!
Hans
I have a problem using the svn bundle with password protected
repositories and the problem is that the bundle can't find ssh-askpass,
which is to be expected since there's no ssh-askpass anywhere in my
system :).
I've search around but all I found is some references to a python
ssh-askpass script.
Any ideas how I can get this thing to work?
Thanks,
V.-
--
http://www.braveworld.net/riva
Hi,
I use tm_dialog dozens of times to simplify matters, and to save time ;)
But sometimes I would need a bit more (like the accessory views ;) ):
I wonder if it would be possible to write a nib which contains a
button, e.g. 'Browse', and if I press this button it opens an other
nib (or in that case a file select dialog). The returned value from
the called nib (file select) will set a value in the first nib?
An other approach:
Press a button in tm_dialog. In tm_dialog there is a buttonListener.
If that button is set to invoke a shell script then do it. This shell
script (an other tm_dialog or what ever) could write something to a
file and its content could update my actual tm_dialog.
Would this be too complicated or even impossible to implement?
Up to now I did such things like
PLIST1 = "..."
PLIST2 = "..."
pressedButton = Browse
while pressedButton == Browse
pressedButton = $DIALOG -p PLIST1 a_nib
if pressedButton == Browse
PLIST2 = $DIALOG -p PLIST2 a_other_nib
PLIST1 = modify with values of PLIST2
end while
Application examples could be:
- a Browse button to open a separate File Select Dialog
- a Edit button to edit preferences for the tm_dialog
- a Install button to install stuff which is missing without leaving
tm_dialog
- a Refresh button to refresh values in the tm_dialog
Or is there an other way to do something like that?
Do I carry things too far? ;)
Cheers,
Hans
God Day all,
What advice do people have for marking up a language grammar containing
statements with a variable (and potentially lengthy) list of parameters,
which are themselves morphologically complex?
I saw here <http://macromates.com/blog/2005/language-grammars/>, the idea
of using $self to re-parse the detected fragment using the whole language
grammar
{ name = "markup.bold.html";
begin = "<b>"; end = "</b>";
patterns = ( // really means ³contains²
{ include = "$self"; }
);
}
And also the idea of using a repository of named rules to direct the second
level of parsing. Are there bundles that use that and upon which which I
could base my work ?
The statements I want to match are of the form
latentVar BY var var var var...;
This should be parsed into <variable.latent> <keyword.BY> <variable.dv>...
The tricky bit is that each variable has its own syntax and can appear n one
of three forms
name // <variable.name>
name@n // <variable.name><keyword.at> <numeric.value>
name*n // <variable.name><keyword.start> <numeric.value>
So that each variable gets matched like this:
\s+(\w+)(((a)|\*)([-\.\d]+))?\s+
A test case might be
e1 BY item1@1 item2 item3*0.51;
It is obviously pretty redundant and unmaintainable to make a big list like
that in a single rule, and ultimately not possible as the variable list
might exceed the rule's length.
Suggestions gratefully received.
Tim
hi TextMate'rs,
i have the key binding blues. i'm an old vi guy and i still cannot
deal with the mouse when writing. so, i want to be able to use
TextMate *without* using the mouse. moreover, i want to be able to
use all the keys on the *home row* of my query keyboard (e.g., a-s-d-
f-g-h-j-k-l-;).
my question is how do i ensure that my keybindings override
everything? for example, TextMate uses ^h in lots of different
bundles and i have to hand-edit a dozen different bundles to change
^h to something else. (i thought control- functions were reserved for
user stuff?).
right now, i'm using KeyBindings.dict in ~/Library/Application
Support/TextMate, like so:
{
/* vi-like navigation */
"^f" = "pageDown:";
"^b" = "pageUp:";
"^w" = "moveWordRight:";
"^h" = "moveLeft:";
"^j" = "moveDown:";
"^k" = "moveUp:";
"^l" = "moveRight:";
"^e" = "scrollLineDown:";
"^y" = "scrollLineUp:";
}
also, is there anyplace that has the definitive documentation for
what the keybindings are? (TextMate's 'Show Keyboard Shortcuts' isn't
showing my changes). i'm mostly interested in text navigation and
basic word processing functions. i can't believe that i'm nostalgic
for WordPerfect circa 1990 when everything clearly defined via
function keys and you could by a reference card for it :).
neverthelesss, TextMate has more promise than anything i've seen in
years.
finally, are there example key binding configurations for TextMate
that are emacs-like or bash-like or vi-like?
thanks in advance,
-darren
On 8/4/07, at 12:00 PM, textmate-request(a)lists.macromates.com said:
>>> In your case, you have the build dir in the .xconfig file?
>>> Ideally we would extend our code to also look there.
>> OTOH, would that make a good fall back when we can't find the
>> executable even in $PROJECT_DIR/build ?
>
>Probably not ideal [to get the Executable Path via an AppleScript],
>since it would start up Xcode (if not already running), and would
>require Xcode to have the current project loaded. Personally I do
>not have Xcode running most of the time.
Ok. Then would configuration based environmental variables be useful for the Xcode bundle? You tell the XCode project you're building Debug configuration (and/or X target) and TM will use Debug environmental variables instead of Release ones... or environmental variables specific to that target.
(This would also solve my problem in a round-about way: I could specify a TM_BUILD_DIRECTORY_DEBUG and TM_BUILD_DIRECTORY_RELEASE and, since I specified that I'm building Debug, TM would use TM_BUILD_DIRECTORY_DEBUG to find and launch the app)
Later,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
I have a very simple question: where is the setting with which I can choose
the side the project drawer appears on?
I have a collection of project windows I keep open every time I open
TextMate, and the project drawers are all on the left. However, I just
created a new project and the drawer is on the right and I cannot see any
setting in preferences that controls this, nor can I just drag the drawer
where I want it.
I can hide the drawer, move the window all the way over to the right and
then show the drawer and it pops out of the left where I want it. But come
on! There must be a better way?!
Either it's right there in front of me and I'm not seeing it, or it's
unusual interface shortcoming for such a nice product.
Thank you for your help,
Jay
Hi there,
there seems to be a bug/glitch on the Markdown Bundle.
The command to insert a new list item (currently bound to ↩)
wrongly assumes unordered list items always begin with "*"
If I have a list like this:
- foo
- bar<caret>
pressing 'return' produces this:
*- foo
- bar
* <caret>
which is quite not right :)
I've been taking a look at the code for the command, but it's a little
bit over my head :)
Michael, could you please take a look at it?
Thanks in advance...
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
I like the project drawer on the left of my working window.
today it's opened on the right and i can't find a way to make it
switch back.
How do I fix the project drawer position?
TIA
Hi,
A few days ago i realized i have a performance problem with LaTeX documents
within TextMate. I've tested it with HTML and some other languages a few
minutes ago. It seems that only LaTeX has some problems.
When i type a letter on my keyboard it takes about half a second until the
letter gets displayed in the document.
I think you could realize how annoying this is especially when you have to
write some very long text.
What is wrong here? Do i have something running...all the time...which costs
so much time to calculate?
Thanks for any help. (or questions...)
Zettt
--
View this message in context: http://www.nabble.com/Performance-problem-with-LaTeX-Documents-tf4199305.ht…
Sent from the textmate users mailing list archive at Nabble.com.
Good Morning,
When executing certain commands Textmate hangs for a few moments,
then simply erases the selected text instead of executing said
command. Two examples would be "Wrap each selected line in open close/
tag" in the HTML bundle, and "Tidy" in the XML bundle. These commands
have worked fine in the past year of using textmate. Recently I had a
hard-drive failure and had to copy all of my preferences from back-up
- this is the only thing I can think of which would have effected
textamate's behavior. Any ideas?
Thanks,
James Fishwick
Charlottesville, VA
Allan Odgaard wrote:
>On 30. Jul 2007, at 17:35, Ryan Wilcox wrote:
>
>>Since the build dir depends on the active configuration, I am not
>>sure setting the environment variable is that useful, also because
>>you’d have to set this per project.
>In your case, you have the build dir in the .xconfig file? Ideally we
>would extend our code to also look there.
Yes, my build dir is stored in the .xcconfig. Parsing those is no easy matter: you can have environmental variables in there, #include other .xcconfigs...
The annoying thing is that the path is in the project's executable setting: writing the following AppleScript shows the proper path
tell application "Xcode"
tell project 1
set a to active executable
a's path
end tell
end tell
BUT the executable I don't think changes when configurations are switched (right?)
OTOH, would that make a good fall back when we can't find the executable even in $PROJECT_DIR/build ?
Hope this helps,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
TextMate [r1405#17788]
I'm not sure if this is an issue specific to the Erlang bundle.
I want to write the following:
-import (lists, [map/2, sum/1]).
I want to write it using snippets as follows and have my cursor appear
after ending dot:
imp<TAB>lists<TAB>map<TAB>2<^,>sum<TAB>1<TAB>
However the result of this is:
-import (lists, [map/2, sum/1 <CURSOR>]).
Basically I expect surrounding snippets to remain in something like a
stack so that their tab stops are honored prior to the tab key being
accepted as a tab character.
Is this supported in TextMate?
Allan Odgaard wrote:
> On 30. Jul 2007, at 22:26, Dushan Mitrovich wrote:
>
>>> Where do you see the `-`? The `-` in the lower right side is a symbol
>>> list. The column is just next to the `Line: xx` on the lower left. If
>>> you open a new document, you should see "Line: 1 Column: 1"
>>> (assuming you open a new document wihtout any templates.
>> What I see is this: "Line: 1 Column: _", followed by a pale
>> vertical bar, followed by a pale colored disk with the white letter "L".
>
> And this is even when you place the caret in the upper left corner, i.e.
> at column one?
Yes, even then.
<snip>
> I’ll update the manual. This command is gone. But there is a “Create
> HTML From Document” which you can run, Show Web Preview (Window menu)
> and then print from there.
>
> If you do this a lot, you can go to the bundle editor and change the
> output for the command to Show as HTML and give it a key equivalent.
> Then printing (colored) is just two keys instead of one.
Okay, I'll try that.
BTW, I'd like to thank you and compliment you for the clarity of your
instructions (to someone else, earlier) on how to get the 'End' and
'Home' keys to work as in the non-OSX world. Since I much prefer the
keyboard to the mouse, these instructions were a treat. I notice, tho,
that there are still some apps that disregard that, such as in Firefox
and Thunderbird. I suppose their structure is too different to notice
the key mapping.
- Dushan
Paul McCann <paul.mccann(a)adelaide.edu.au> wrote:
> Gack: I don't think you want to be grabbing latex just to get some
> printing functionality in place! If you're interested in producing
> beautiful technical documents on the other hand...
For beautiful technical documents, including equations, plots, etc., I
do use a full latex program - it would never occur to me to use a text
editor for that. What I do expect from a text editor is to be able to
write and print out a letter, for example, containing pure ASCII, that I
can mail off. Yes, occasionally snail-mail is still appropriate :).
> The link mentioned earlier in this thread *is* out of date: the
> "Typeset and View (PDF)" command in the latex bundle almost certainly
> isn't what was being referred to: it is --unsurprisingly-- only useful
> on a latex source file. I do have a recollection of some printing
> scripts being developed using "enscript", a formatting utility that
> comes with OS X. Here's one that lingers in my bundle, and
> occasionally proves useful. Make a new command with...
> =======================================================================
> Save: Current File
> Command(s):
> #!/bin/bash
> # close stderr
> exec 2<&-
> # set options here
> enscript_opt="-2Gr --line-numbers -o -"
> tempfile="/tmp/texmate-print.$$.pdf" # note: "$$" is the current pid
> pstopdf_opt="-i -o $tempfile"
> # create the pdf and open it
> enscript $enscript_opt | pstopdf $pstopdf_opt
> open $tempfile
> rm $tempfile
>
> Input: Entire Document
> Output: Discard
> =======================================================================
>
> You'll probably want to play with the enscript options to get the
> output to your liking, but it's very malleable.
Thanks for this command script, Paul. I've not tried making any
commands yet, but this is a chance to learn how.
- Dushan
Hello everyone,
I'm new to the group...I ABSOLUTELY LOVE TM. But I have one recurring
problem that is starting to irritate me.
9 out of 10 times when I start Textmate, I get some (unknown) font that I
don't want. Changing the font setting in preferences has NO effect.
Anti-aliasing on/off seems to work, but changing the font does nothing.
But then 1 out of 10 times when I start it, TM uses my font setting and I'm
a happy camper and afraid to ever close TM.
I've not spent a lot of time messing around trying to figure out the
problem...I'm also new to Mac and feel like a fish out of water doing
anything.
So I thought I'd ask if anyone knows what is going on...and how I can get TM
to use my font choice all the time.
Thanks,
John
Well, there are a few obvious points that (most) everyone wants, better
performance on networked files for example. There are (approximately)
five such Really Obvious(tm) requests (hey, I won't say what they
are--after all, they're Really Obvious(tm), right?), and even for those
that don't affect me personally, it's pretty obvious they need to be
taken care of.
Past that, what _I'd_ like (yes, I'm unique, and possibly completely out
of touch with the rest of the universe :-) ) is--simplicity. I'd like
Alan to concentrate a significant part of his design and programming
prowess on making TM not more powerful, but more obvious.
My canonical example of this is the whole keybindings issue. Currently,
dealing with keybindings in TM involves searching through bundles, using
the Keyboard and Mouse Preferences Panel, and using a keybinding utility
such as KBE. This is just too much info for my little head. I'd like it
all in one place, and if not in one place, at least simpler.
My belief is that TM is currently at a level where (for me)
concentrating on increasing uniformity and simplicity would in real
terms _add_ features to the application, because I suspect that there is
a lot of power I'm not using because I don't have the time to consider
the special cases or esoteric knowledge needed to use already existing
features.
So my real request for TM2 is--don't worry too much about new stuff.
Concentrate on making TM easier to use (keybindings as described above;
optional help strings for bundle items and a streamlined bundle editor;
UI improvements; etc.), and I'll still feel my money is well spent.
(This may have something to do with age. At 43, the days when I both had
the time and the desire to learn about cool "new" features, keybindings,
etc, are long gone. In the last five years, the only truly worthwhile UI
innovation I've come across are: The technique that Quicksilver and
Launchbar use for identifying commands/files, and that TM uses when
moving between files, i.e. type in a not-necessarily-contiguous
substring of a name to identify a command/file/whatever; And
tab-completion in TM. And the second could easily be subsumed in the first.)
Just my $0.02,
Ken
On Aug 2, 2007, at 6:45 PM, John Yates wrote:
> Curious...what is the font of choice for TM users?
My font of choice is Anonymous; very clear and readable on my aging
eyes.
I may just be being a berk here, but I don't seem to be able to get
the URL associations to play ball. I'm editing text in three different
wikis, each with a different format. My config looks like this:
{
URLAssociations = {
'mail.google.com/' = 'mail';
'macromates.com/blog/' = 'markdown';
'blacktree.cocoaforge.com/forums/' = 'bbcode';
'trac.' = 'trac';
'wiki.' = 'twiki';
'doe.caribou.lan' = 'markdown';
};
}
Whenever I edit the contents of a textarea in TM it's opened into a
file named title-of-page.safari. I consequently need to manually
switch the syntax highlighting. Is there something wrong with my
config?
I've restarted TM and Safari, to no effect. Do I need to prod
something else to get the input manager to take notice of changes to
the plist file? I'm using the Safari beta (3.0.2).
On a related note, can you use regular expressions in the
URLAssociations setup, or do you have to specify an exact match?
Cheers,
Graham
Howdy.
Since TextMate seems to be like 80% LaTeX users. I feel a burning need
to use latex.
Can one of you LaTeX gurus condescend to learn me what's up?
Maybe a few links to how to get started with latex and latex in
textmate specifically.
Do you have to be a nerd to be able to use it?
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
I don't know how many people use the Smarty bundle, but I've made some
major improvements. Highlighting now includes support for all
assignment, arithmetic, and logical operators. It also properly colors
all PHP variables, functions and constants.
I also updated the snippets to take advantage of tab stops, and
selected text, and includes almost all the options for each
function/modifier.
Finally, I updated the menu structure.
Also, I patched the HTML and PHP syntax so a block like:
{php}
$var
{/php}
will get properly highlighted as PHP and not as HTML. (Don't apply
these patches unless you really use Smarty, since Smarty is by default
disabled in the HTML syntax and this will undo that)
Any, comments, suggestions, etc. are welcome.
- Brian
I've played some with the SQL bundle but i wonder how to auto-select a
db/config per project.
I've got multiple configurations in my config for the MySQL bundle
But i need to click the config-item that i want to use and if i switch
project i need to click the other configuration first before i can
select a query and run it.
I've tried MYSQL_DB in my project property but that didn't work out...
Regards J.
Hi All,
I'm working on an all new version of the Latex and View command. See my
earlier message for you you can switch to this branch of the svn repository
if you'd like to beta test. I'm hoping to commit a major new version
today. I've attached a screenshot of the configuration window.
Whats missing?
Is the wording on the options for opening the viewer clear?
Here is another big question I've been thinking about. Since all of these
new configuration settings will be stored along with the standard TextMate
prefereces in a preferences file, how much backward compatibility should
this new version try to maintain?
The current Latex and View command has grown organically over the life of
TextMate and there are lots of environment variables that have been added
over time, some that are semi-redundant even.
TM_LATEX_PROGRAM
TM_LATEX_COMPILER
TM_LATEX_VIEWER
TM_LATEX_ERRLVL
TM_LATEX_OPTIONS
All of the above can/will be replaced with the new interface, and I think we
should make a break and do away with these.
TM_LATEX_MASTER
This one is more interesting. We currently have two ways to specify a
master/root file. Using this variable, or using the TexShop %!TEX directive
embedded directly in the file. The TexShop way seems clearly superior to me
since it allows for more flexibility than a single environment variable per
directory or project. So my proposal is that the environment variable goes
away.
TEX_PSTRICKS
Since we can automatically detect when we should use latex instead of
pdflatex this is redundant and should go away.
As I mentioned above, TexShop allows authors to embed directives right in
their source file that specify a master file, there are others as well. I
propose that we use that same set of directives and allow the following
in-file settings to take precedence over the preferences set in the
preference dialog box:
TS-options -- command line options passed to the latex engine
TS-program -- the typesetting engine to use just for this file
encoding -- how the file is encoded, I don't really know what to do with
this one. Anybody?
I've looked at the TexShop documentation and I think this is it, are there
other %!TEX directives I'm missing?
Thanks,
Brad
--
Brad Miller
Assistant Professor, Computer Science
Luther College
Takaaki Kato <devlist(a)samuraicoder.net> wrote:
> On Jul 30, 2007, at 5:28 AM, Dushan Mitrovich wrote:
>
>> - On opening ordinary text documents the Line counter at lower left
>> shows the line number, but the column counter just shows '-'. How
>> do I get this to work correctly?
>
> Where do you see the `-`? The `-` in the lower right side is a symbol
> list. The column is just next to the `Line: xx` on the lower left. If
> you open a new document, you should see "Line: 1 Column: 1"
> (assuming you open a new document wihtout any templates.
What I see is this: "Line: 1 Column: _", followed by a pale vertical
bar, followed by a pale colored disk with the white letter "L".
>>
>> - How do I adjust the left margin for printing?... in fact, all the
>> essential printing parameters?
>
> TextMate doesn't have many features for printing. See the link below:
>
> http://macromates.com/textmate/manual/printing#printing
Oh, thanks for the info. Amazing that an otherwise competent text
editor should lack such essentials. BTW, the information in the URL
above differs a bit from what my copy of TextMate (1.5.6) shows: the
"View Source as PDF" is in the Latex bundle rather than the Source
bundle. Where's the best place to get pdfsync and pdflatex?
- Dushan
Hi all!
Sorry for asking this - I assume this is a stupid question, but I am
new to Textmate and not very familiar with the terminal.
So thanks in advance for being patient and helping me:
I have installed Latex via fink. The LaTeX-binaries are stored in /sw/
bin/ and I have the latest Version of Textmate and the latest Version
of MacOSX Tiger.
Compiling latex-documents from Textmate worked out of the box without
any configuration.
But there are two things, that don't work:
1.) Bibdesk (also latest Version) auto-Completion doesn't work: when
pressing alt-esc within \cite{u} for example I get the following
error message:
"The tex binaries cannot be located!" (I don't understand this,
because latex-compiling works!!) The bibdesk auto-completion works
fine with Textedit for example.
2.) Same Problem when using the "Citation based on Current Word"-
command from the LaTeX-Bundle. It doesn't work and I get the same
error message: "The tex binaries cannot be located!"
According to the manual it looks like, that I must add the /sw/bin to
the path, but I am not really sure about this, since compiling tex
files works. Also as mentioned above I am not familiar with the
terminal and don't know how to do this. (Sorry)
So whats wrong?
Can anybody help me, please?
Thanks a lot in advance.
Best wishes
Markus
Hi,
I just thought about a color picker in tm_dialog.
But do we need it?
Background:
I simply added to TextMate's MainMenu.nib Menu the following:
Format
Font
Show Fonts
Show Colors
Text
Align Left
Center
Justify
Align Right
without key bindings.
If I invoke 'Show Colors' in TM a color palette will be displayed, I
can choose a color, and finally I can drag&drop the color which is
shown in the rectangle to a document in TM, and I get e.g. #FF33DC.
This should work for HTML, CSS, etc. stuff properly.
The same for Show Fonts. I can drag&drop the name for instance.
All items under Format>Text also work but with the limitation that
all commands interact only with the current size of the document's
window.
[This, of course, is ONLY a side note ;)]
OK.
If someone needs a tm_dialog nib which asks the user, among others,
to choose some colors, one could such a nib by using NSColorWell easily.
I wrote a routine for tm_dialog to parse the result dictionary for
NSColor objects. If there are some the routine will replace the
content of these dictionary's keys with an array containing the
following strings:
{example for red; 'color' is the selection value in the nib}
<key>color</key>
<array>
<string>#FF0000</string>
<string>255 0 0</string>
</array>
Each programming language I know can use at least one of the color's
representation for further calculations. It would be easy to add also
the values for the HSB and CMYK models.
So my question is:
Is there something which I didn't consider?
Regards,
Hans
Hi,
I wonder if it possible 'easily' to enhance tm_dialog in a way that
one can also use it as FileSelect dialog, like CocoaDialog it does,
in conjunction with an user-defined nib-file to append a CustomView
to the predefined NSOpenPanel.
For details have a look at:
http://developer.apple.com/documentation/Cocoa/Conceptual/AppFileMgmt/
Articles/ManagingAccessoryViews.html
E.g.:
tm_dialog -f
invokes a normal cocoa-based file select dialog.
tm_dialog -f myextension.nib
invokes a normal cocoa-based file select dialog and appends
myextension.nib as an Accessory View.
tm_dialog -f -p THEPLIST
to set the current dir, which files are allowed to select, multiple
file select yes/no, dialog title, etc.
The result is a plist containing the filename and, if an Accessory
View is specified, the selections of it.
Hans
Hi!
Since yesterday, TextMate has some strange behaviour on deletes and
on scrolling thru documents using the arrow keys.
When I type a tab and hit backward delete, only one character is
deleted, as if the soft tabs would be enabled, but I don't use soft
tabs.
The other issue is somehow more difficult to describe, but propably
related:
When I scroll thru my document using the arrow keys, my cursor does
not go to the end of the line, but remains where it has been before.
This has been different before.
Just to give you an idea of hat I mean:
if($this->db->dbh->isError($q)) {
$error = new error;
$error->raiseError($q,"DB_ERROR");
}
Before, when my cursor was placed at the end of the 'if($this->db-
>dbh->isError($q)) {'-line (in column 34) and I used arrow-down, the
cursor was placed right after the semi-colon behind 'new
error' (column 24). Now, it remains in column 34.
I have no clue what I might have changed recently, but hopefully
somebody can help, as I couldn't find anything regarding this issues
in the help documents.
I'm currently running TextMate 1.5.6 (1405).
Matt
Hello,
this is my first post on the list so hello to all. I've been using textmate
as a demo for the past couple of days now and I'm very impressed by the
application a massive improvement on bbedit in many ways.
but one small thing I would like to be able to change is the default
document type that appears on startup, just to clarify my issues isn't how
to change it but how do I change it permanently so it appears as say a php
or Java file?
many thanks
Stefan
Hi all,
I am a CSS, HTML, occasional PHP/Javascript developer new to Textmate
and have been hunting around for a good HTML bundle. I may be looking
in the wrong places, but basically, I would love to find something
that gives a few of the old features from Homesite, if that is
actually possible. I would love to find some kind of bundle with the
following:
- Code colouring similar to that of Homesite and Dreamweaver.
- Auto tag completion similar to Homesite and Dreamweaver, so when
you type the ending ">" of a div tag for example, it writes out the
closing tag. This would be instead, or in addition to, the feature of
hitting CTRL + < to close the tag.
- Some kind of HTML, CSS validation, similar to the way Homesite used
to do it. Can you include validation in a bundle?
Tell me if I'm dreaming! Either way, it would be great if someone
could point me in the right direction for finding good HTML bundles.
Googling doesn't seem to get the results I want.
Cheers for any help.
Recently, I needed to unbind a TextMate menu command (Text:Reformat and
Justify) so that I could use ^J for my own uses. Ale Munoz (the n is
suppose to have a tilde above it but I don't know how to type that on a
US keyboard, sorry) was kind enough to show me how to use the Mouse and
Keyboard preferences panel to rebind that menu item to something else,
which solves the immediate problem. However, this still begs the
question; is there a way to _unbind_ that menu item, so that it has _no_
associated key binding? This can't be done using Ale's method.
Thanks,
Ken
I think the title explains it all. Instead of having to do APPLE + TAB, I
would just like to be able to highlight text and use the TAB key on it's own
to indent my text.
I guess this shortcut must be listed somewhere (APPLE + TAB). In future, how
can I find it so I can change it?
Thanks for any help offered.
--
View this message in context: http://www.nabble.com/How-to-make-TAB-and-SHIFT-%2B-TAB-indent%2C-un-indent…
Sent from the textmate users mailing list archive at Nabble.com.
I'd like to use this key binding for something else, but I can't find
the TextMate default binding for ^J anywhere to unbind it; not in a
bundle, and not in the System's Keyboard Preferences binding list.
In general, is there an easy way to find out where a particular
keybinding is set?
Thanks,
Ken
Sorry for double-posting too, still trying to figure this mail-list/forum
thing out...
desmond wrote:
>
> Hi all,
>
> I am a CSS, HTML, occasional PHP/Javascript developer new to Textmate
> and have been hunting around for a good HTML bundle. I may be looking
> in the wrong places, but basically, I would love to find something
> that gives a few of the old features from Homesite, if that is
> actually possible. I would love to find some kind of bundle with the
> following:
>
> - Code colouring similar to that of Homesite and Dreamweaver.
>
> - Auto tag completion similar to Homesite and Dreamweaver, so when
> you type the ending ">" of a div tag for example, it writes out the
> closing tag. This would be instead, or in addition to, the feature of
> hitting CTRL + < to close the tag.
>
> - Some kind of HTML, CSS validation, similar to the way Homesite used
> to do it. Can you include validation in a bundle?
>
> - Tab to indent selected text. This is a feature in all other HTML editors
> I've used, how can I turn it on so highlighting text and hitting the TAB
> key will indent it, instead of APPLE + TAB? (Shift tab to un-indent).
>
> Tell me if I'm dreaming! Either way, it would be great if someone
> could point me in the right direction for finding good HTML bundles.
> Googling doesn't seem to get the results I want.
>
> Cheers for any help.
>
--
View this message in context: http://www.nabble.com/HTML-Bundles-%28newbie-question%29-tf4193346.html#a11…
Sent from the textmate users mailing list archive at Nabble.com.
svnmerge.py is working fine on the command line, I can issue the
command svnmerge.py avail, no problem, but I am getting the following
error with Show Available Revisions for Merging in the subversion
bundle:
/Library/Application Support/TextMate/Bundles/Subversion.tmbundle/
Support/format_log.rb:262: undefined method `make_foot' for
main:Object (NoMethodError)
NoMethodError
reason: undefined method `make_head' for main:Object
trace:
/Library/Application Support/TextMate/Bundles/Subversion.tmbundle/
Support/format_log.rb:72
Any ideas?
Thanks, Mark
Quite possibly something I've messed up myself. When I'm editing a Ruby
file and I hit command-R to run the file, I get a pop up window called
'Run' indicating problems. I can't even copy the text from that window
(it doesn't seem to make it to the clipboard) though the ultimate
problem appears to be that something is trying to invoke '+' on nil.
I've a attached a screenshot of the full error report.
Is this a simple, obvious problems? (Well, I mean to people other than
me :-) ).
Thanks,
Ken
Hello all,
It seems that the XCode bundle's Run and Build & Run commands assume that the build folder is in the same location as the (TextMate project file? XCode project file? [1]).
At least in my case, the build folder is somewhere else. The attached patch lets you override the default build folder location with an optional TM_XCODE_BUILD_FOLDER environmental variable. It also explicitly prints out where the XCode bundle is trying to launch the app from, to (hopefully) point people in the direction of TM_XCODE_BUILD_FOLDER.
On the topic of Xcode bundle patches, I also have one to provide a TM_XCODE_PRODUCT_NAME, for when you can't find the product name to run. I thought this just had something to do with my project's complex setup, but looking through the log of run_xcode_target.rb it seems the XCode bundle makes a few guesses which may not turn out (see log for r7057), and there's no way for the user to _force_ the issue. If TM_XCODE_PRODUCT_NAME would be useful, I'll send that in a separate email.
_______________________________
[1] Or maybe the XCode bundle is reading the information from the project file? If this is the case, my project uses a series of .xcconfig files to specify settings (including TARGET_BUILD_DIR / CONFIGURATION_BUILD_DIR), so that's why the default doesn't work for me....
_______________________________
Let me know if you have any questions or concerns and I'll try to resolve them.
Later,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
I am trying TextMate on two machines, both PPC. One machine displays
subversion diffs with colours (the default behaviour, I believe), but
the other has plain old black text with white background. I am not
aware of having made any selections that should have caused the
difference in behaviour between the two machines. I looked in the
Preferences -> Fonts and Colors on the machine with no colours in the
diffs, and I see nothing that appears to be related to diffs. I
moved ~/Library/Preferences/com.macromates.textmate.plist aside and
started TextMate again, but the diffs are still monochrome. Where
else should I look?
TIA,
Kevin Horton
Ottawa, Canada
Hi,
I've recently switsched to TextMate and ... yes, it looks great.
A few questions remain, so:
- Why doesn't "Edit in Writeroom" work? It works in every other
application - and I tried re-installing it.
Any ideas? Thanks a lot so far...
Couple quick questions:
I would like to have the items listed in the Select Bundle Item...
(Ctrl-Apple-T) sorted, but I haven't found an option for that anywhere.
Same thing is automated backups -- is there an option to have your
previous version saved as Filename~ or Filename.bak, etc.
Thanks,
-Darren
I'm a recently registered user of TextMate, and have two questions:
- On opening ordinary text documents the Line counter at lower left
shows the line number, but the column counter just shows '-'. How
do I get this to work correctly?
- How do I adjust the left margin for printing?... in fact, all the
essential printing parameters?
- Dushan Mitrovich
I'd like to be able to set an explicit "selection mark", as can be done
in EMACS, and then to cut or replace text in the selection range. (For
non-EMACSers; the selection mark is similar to a bookmark, but indicates
the 'other end' of the selection range, 'this end' being the location of
the cursor. Under most GUI editors, moving the cursor deselects
currently selected text, while under the mark selection style, the mark
stays in place even when the cursor moves, which is great the text you
need to select spans more than one page.) Looking at the relevant
section of the TextMate manual didn't indicate anything obvious, does TM
have any sort of support for this style of copying/cutting/pasting?
Thanks,
Ken
Now let's see if anyone else agrees with this... :-)
Currently in the bundle editor, there's an "Activation" popup menu that
has just two items, "Tab Trigger" and "Key Equivalent". Depending on
which is selected, a tab trigger or shortcut key is displayed and can be
edited in the adjacent text field.
I think it would be clearer, faster, and probably take less space in the
UI, to simply show two text fields, one with the tab trigger, and the
other with the shortcut key. And I think a significant benefit to
someone using a bundle is that it then becomes possible to just move
through the bundle items and see the shortcuts in the process. Makes
learning a bundle much faster.
Many thanks,
Ken
Hi
May be this has being asked before!
Here goes nothing.
I will like to be able to split the screen like in emacs. or at least
left/right - up/down.
is that possible in textmate?
Thanks
Luis
--
View this message in context: http://www.nabble.com/Split-screen-tf4127380.html#a11737503
Sent from the textmate users mailing list archive at Nabble.com.
hi there,
i started using the todo bundle more extensive recently and
eventually took a look at the configuration possibilities.
i looked around the settings.rb and found
the announced preference dialog and
started using it.
first i ignored the RADAR tag,
but later on i found myself thinking about
"having something on the radar" as a future-task
or something similar. so i edited the RADAR
tag to match like FIXME or CHANGED.
after that nothing worked, because the
todo.rb expects the RADAR tag to be associated
with some spooky html-stuff which is not the
case for me.
error as follows:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76:in
`+': cannot convert nil into String
maybe one should fix that for future use.
the most sophisticated way would be to provide a
"MatchedTagFormatter" callback where one could provide
a snippet to format matched content.
in either way, thanks for a great bundle and keep up the
good work.
~fw
--
\|/ ____ \|/
@~/ ,. \~@ "When you are going to die,
/_( \__/ )_\ a wombat is better than no company at all."
\____/ [waste of money, brains and time - wombat(A2DA482A)]
I am trying to experiment with grammars (they have many dark points
for me), and I have make this simple grammar that does perfectly well
all but the "foldingStopMarker"
{ scopeName = 'source.vaughan';
firstLineMatch = '^Vaughan)';
foldingStartMarker = '^\s*Libro';
foldingStopMarker = '^#$';
patterns = (
{ name = 'keyword.other.english';
match = '^.+#';
},
{ name = 'keyword.other.spanish';
match = '[^#]*$';
},
);
}
I have tried many forms of closing the folding, yet the C {} pairs
but it never works for closing in my grammar. Observe that the # is
not considered any other pattern, but it does not work as stop marker
in any way.
-- Thanks for your help
- Juan F.
Thanks, that worked a charm
I've modified it to /\\ref\{\s*\}+(\s.*)$/i in order to get a comment as well, although it gives me the whole paragraph. Is there any way to limit the number of following words to, say, 10?
Thanks,
baptiste
Something like
/\\ref\{\s*\}/
in the Pattern section of the preferences ought to be enough. The
double backslash gives a "real" backslash (it's usually used to
escape other characters, such as the "\s*" to denote any amount of
space between the braces above, or conversely, again as above, to
indicate a *literal* brace). Having the "\s*" inside the braces means
that if you accidentally leave blank space inside it'll still be
flagged.
Cheers,
Paul
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Hi,
Working on a big latex project, I find the TODO bundle very useful for custom notes. Now I would like to add a TODO item which scans the project for the regular expression /\ref{}/ , that is an empty reference, and list them together with a few words of the paragraph they belong to. I just don't understand regular expressions well enough to do that!
best regards,
baptiste
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Hi!
I wrote this little Applescript to use the "mateup"-shellscript w/out
opening the terminal each time.
Save the script as an application bundle and just call it from QS or
whatever you're using for the most easiest way to open it.
It will show you what it updated as soon as it is finished and can
then be "entered away"
do shell script "mateup 2>&1" user name "your_user_name" password
"password_of_your_user" with administrator privileges
set the_output to the result
get paragraphs of result
choose from list (result) with empty selection allowed
Niels
Hi,
I'm using tm_dialog r7586.
I tried to invoke a warning alert but the following error message
appeared:
tm_dialog: [NOTE: this exception originated in the server.]
Invalid parameter not satisfying: aString != nil
Can someone verify this or is it my fault ( "$DIALOG" -e -p
'{message="HALLO";}' )?
Thanks,
Hans
Hello,
probably this not even is a TextMate problem, but I want to make sure
that it's not before I spend hours of research what I'm doing wrong...
I know that some of you, just like me, use ProFont as editing font in
TextMate (and I'm talking about the original pre-OSX version, not
ProFontX). ProFont includes the font outlines as well as bitmap
versions for some sizes; as far as I can see TextMate uses this
bitmap versions for screen display.
In the days of the classic MacOS, those bitmap versions were stored
in the resource fork of the file; but nowadays it's possible to
create a TrueType font with embedded bitmap fonts which are stored in
the data fork. I've been using FontForge [1] to create such a font,
but when using this font in TextMate, it clearly does NOT use the
bitmapped version but rather the outlines which are somewhat fuzzy at
small sizes.
So I guess that I'm doing something wrong when I create the ttf file
from FontForge, but this is what I want to make sure: Does TextMate
support such "TrueType with embedded bitmap" fonts or will it always
use the outline no matter what I do?
Kind regards,
Tobias
[1] http://fontforge.sourceforge.net/
Something for the todo list...
If anyone s doing any work on the CVS bundle... is there any chance
you could add a 'Remove file' option?
I've had a look at it... but my Ruby is just not up to it.
R
--
Richard Dyce MA (Cantab.) MBCS MIET
http://dyce.com
Hi,
I have two questions regarding to the internal language grammar.
1) Is it possible to look for the internal markups which TM is using
like
"<support.function.perl>(.*?)</support.function.perl>"
directly?
I only know the way to use the 'magic keyword' in a tmCommand
"<key>inputFormat</key><string>xml</string>" and parse the output.
2) Is there a way to modify the current language grammar dynamically?
Example:
{ scopeName = 'text.plain';
fileTypes = ( '' );
patterns = (
{ name = 'my.tag';
match = '(a)';
}
);
}
Then I write a command or what ever to change
match = '(a)';
in
match = '(b)';
If I do so I have to quit TM and restart it. A 'Reload Bundles'
doesn't work.
[I don't know whether it is possible to write an Applescript to
control TM in that respect.]
2a)
Or to use an external file which holds the actual 'match' expression
for a given pattern.
2b)
Or to change the current used language grammar by using a tmCommand.
Many thanks in advance,
Hans
Hi,
I wonder where the project file (.tmproj file) should be located. Do
you save in the root folder of your project? Or do you save the file
outside of the project?
The project file remembers other files relatively, so after making
the file, I'd rather not to move it.
A problem I oftern encounter is svn bundle tries to add the project
file, though I can exclude the file from the commit.
I wonder how people work with others using TextMate. I'm very
interested in your workflow with project files.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Cliff Pruitt wrote:
> I'm honestly not putting down the desire for the feature, it's just
> not an "expected" feature in an editor. Am I making sense?
Not really ... I think a read-only mode should be a standard feature
of any serious editor. Just consider past examples e.g. vi, Emacs,
Edt, possibly even TECO (but my memory fails me here; digression:
TECO is probably the most powerful/dangerous/sparse/delightfully
cryptic text (character) editor that's ever existed; Emacs used to be
written in it).
On Jul 19, 2007, at 11:30 AM, Andy Armstrong wrote:
> I think you've missed the point Cliff. There are all sorts of reasons
> why you'd want to open a document read-only. Other editors have great
> r/o support (vim/gvim springs to mind). In general just because you
> don't want to change the document doesn't mean you don't want to work
> with it in a familiar user interface will all the syntax highlighting,
> clever selection modes, folding etc that TextMate brings.
I would agree with Andy here ... I often work with multiple (source)
files open and it would highly inefficient/clumsy to use a different
application for reading as well as deal with the unexpected
consequences of entering stray characters into a source file ...
(leading to new but likely less useful permutations of code ...).
Harry.
Not a biggie, but thought someone might want to know... for next time
they're tinkering (Ciarán? ;-) ) with the PHP bundle.
Thought I'd try fiddling with my copy of SimpleTest to put txmt style
links on the test reports, just to make things a bit easier...
Thought I'd just grab what i needed from the $message variable which
shows up something like this:
[/Library/WebServer/Documents/pcs/tests/panel_test.php line 56]
Tried putting
$linkRef = preg_replace( array('/^.*\[/','/\].*$/','/ line /'),
array('txmt://open?url=file://','', '&line='), $message);
which works as far as the links go, but throws a distinct wobbly in
terms of scope within TM after that delimited open square bracket \[.
If I didn't happen to be searching for the end square bracket as
well, then the rest of the code would be highlighted as a pattern...
Hope that's as clear as mud.
R
--
Richard Dyce MA (Cantab.) MBCS MIET
http://dyce.com
A couple of recent posts asking perfectly reasonable questions about
TextMate (can you open documents R/O, can you split the screen) have
attracted answers in the spirit of "why would you want to do that?"
or "here's a command that will erase your hard drive luser". The
latter a particularly stupid and frankly unexpected contribution from
Thomas.
I know TM has a lot of fans in the Ruby community. I wonder if we're
seeing the same attitude that hangs around Ruby like a bad smell
("you can't write a DSL in any language apart from Ruby", "wow!
That's just not possible in other languages") applied to TextMate.
Assuming there's at least some overlap between the two groups of
fanatics I'll attempt to address both at the same time: please wait
until you've had experience of other languages / editors before you
start condemning everthing not-Ruby or not-Textmate.
Ruby and TextMate are both excellent tools; both have limitations and
misfeatures as all non trivial software does. Neither will continue
to improve if their fans believe them already perfect.
"And what should they know of England who only England know?"
Rudyard Kipling, The
English Flag
--
Andy Armstrong, hexten.net
Hi,
I'm trying to use iconv to convert a Shift-JIS document to UTF-8.
It's successful in Terminal, but not so in TextMate.
The command I use in Terminal is:
iconv -f shift-jis -t utf-8 text1.txt>text2.txt
This converts the file successfully.
In TextMate, I set up a command, using:
iconv -f shift-jis -t utf-8 "$TM_FILEPATH"
in Command(s) field.
I set Save: Nothing
Input: None
Output: Replace Document
Activation and Scope Selector are unset.
After using this command, I see a diamond-like character at the end
of each line.
Any help would be appreciated.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hello friends,
TextMate desperately needs some updated T-shirts, but behind every great
T shirt is a great T shirt idea. So, even if you have no artistic
talent whatsoever, you can think up ideas for slogans and designs. And
even slogans that don't make it onto shirts could probably be useful for
something.
Anyway, once some good ideas have been offered up, it will be possible
to make some design mockups based on those. I'm happy to spend a bit of
time sometime doing some very basic designery stuff, though I'm hardly
an expert, and other more qualified designers would of course be welcome
to draw up shirts too.
But first let's see if as a group we can't come up with some killer slogans.
Anyone who contributes an idea/slogan, or a design, which ends up being
printed on the shirts gets one free (says Allan; I'm a poor student and
can't afford such things ;)
To start off, I was thinking it could be something along the lines of
"check and mate".
-Jacob Rus
Hi,
As I've watched some of Allan's screencasts, I noticed he often
switches between the bundle editor and a document window in order to
try out changes to snippets, commands, etc. It looks like he's using
the keyboard to switch back and forth. I know I can switch between
windows using Command-` , but any changes I've made in the bundle
editor's text field don't seem to take effect when I switch windows.
For example, I start editing a snippet. I add or remove some text in
the snippet. Then press Command-` to switch to my document window. I
trigger the snippet (using tab triggers in my recent experiments), but
I get the old contents of the snippet, without the changes I just typed.
If I click elsewhere in the bundle editor (in the list on the left, in
the scope selector text field, etc.) before switching windows, then
the changes I've made to the snippet take effect when I switch to my
document window.
I've been skimming some of the archives of this list, and I've seen it
mentioned that switching windows is supposed to commit changes to the
text field in the bundle editor. Which means just pressing Command-`
to switch windows should be enough. Am I doing something wrong?
I'm running TextMate build 1405 on Mac OS X 10.4.10 on both Intel and
PowerPC machines.
Thanks,
-Mark
I made a more clever "Transpose Chars" and "Transpose Words" that I
used to use there in Alpha and have passed now to TextMate. The
behaviour is:
Exchange the last (before cursor) chars. But attention: it
exchange the last real chars, ignoring spaces around. This is the
desired behaviour for the typical mistake everybody does. It is for
me annoying to need to go back, put the cursor in the middle of the
swapped chars and press ^T.. How many keystrokes?
"Exchange words" do the same thing, always ignoring the spaces.
If you have several selected words, "Exchange words" interchanges the
first with the last word, leaving the rest untouched. Same thing with
"Exchange chars"
I hope this is what you are looking for.
Binded to ^T and ^-Opt-T and no special scope.

-----
Juan
jfalgueras(a)uma.es
Finally someone on IRC had the password problem so we could
troubleshoot.
It turns out to be a Leopard bug which manifests itself only on Intel
machines <rdar://5352252>.
If you are affected, open KeyChain Access, locate the password stored
for your database, double-click it, and in the “where” field, change
‘qsym’ to ‘mysq’.
I'm not sure if this is a TextMate bug, or something else, but oh is
it very, very irritating. I'm not sure what/why this happened, but
I'm hoping someone here (Allan? or anyone?) might be able to explain it.
I was running TextMate on computer A, editing a file accessed through
an AFP share on computer B. Computer B at some point got put to
sleep (lid of laptop was closed), and when that happened, the file
was in need of saving. A "lost connection with server, disconnect?"
dialog did come up. I woke computer B from sleep, and the dialog
went away by itself. Then I tried to save the buffer. TextMate
conjured a spinning beach ball for a time (1-2 minutes or so), after
which it appeared the file had been saved. No errors were reported,
and the 'needs saving dot' in the red close button, upper left hand
corner, had gone away. Thinking it was in fact saved, I closed the
window, and TextMate did not complain.
Then, when I (immediately after) tried to open the file back up, I
found it to be empty. The file had definitely been saved many times
as it was edited -- the time after the hiccup certainly wasn't the
first.
I lost like 6 hours of work.
Obviously, there seems to have been some IO issue due to the network
connection being interrupted, and/or the remote server going to
sleep. Can someone explain what (the deeper / more specific the
technical detail the better) it is? A likely sequence of events,
consistent with what I described, that would cause this result? Can
it be considered a bug that TextMate doesn't react to this kind of
issue, and a file gets silently truncated on the remote server?
Thanks...
--
Matt Anderson
Stop replying to an existing letter when you actually want to write a
new letter.
It screws up threading and I rely on threading for several things --
in Mail you effectively bury (for the collapsed view) the original
thread when you reply with a changed subject.
One of these days I’ll look into having procmail bounce letters with
an in-reply-to header w/o “Re:” or “(was:” in the subject, cause this
behavior is rather frustrating!
Has anyone been experiencing problems with the new SQL bundle,
specifically using the Database Browser?
This is how it's configured:
Title: test_connection
Server: MYSQL
Username: (hidden)
Hostname: localhost
Port: 3306
Database: test_db
When I click on a table in the DB Browser, I'm prompted for my
password each time. How come Textmate/SQLBundle is not using the
keychain? Am I not configuring my connection correctly?
-James
Just got TextMate build 1405 and I am getting the following error
message when I try and SQL Execute the current line/selection.
/bin/bash: line 1: database_choice: command not found
The new database browser works fine - nice addition indeed!
Anyone got any ideas what I'm missing here?
Thanks
Jez
I have a saved project. Inside my project directory in my HD are numerous
files and folder like so:
Project/image.gif
Project/layout/
Project/index.php
etc etc
There's 1 folder inside Project/ that I do not want to be included in my
text mate project because this folder contains about 600 folders with
thousands images inside. When it's included in my project TextMate takes
ages to open it. So I delete the folder reference from my project within
textmate, it goes away, great.
The problem is, even after a save the next time I open the saved project it
automatically gets added back into my propject, I don't want it to and thus
TextMate takes ages opening again.
What can I do?
--
View this message in context: http://www.nabble.com/Project-keeps-re-adding-a-folder-reference-tf4109589.…
Sent from the textmate users mailing list archive at Nabble.com.
The twiddle command (cntrl-T or Text:Convert:Transpose) is most often
used with no selection or with two letters selected to reverse the
order of two characters either side of an insertion point.
If a bunch of text is selected, twiddle returns the reverse of the
char string.
I wonder if it might not be more functional, if words are selected,
to return the words reversed, but preserving letter order? i.e.,
"validity and" -> "and validity"
rather than the current "dna ytidilav"
Does anybody get value from the current multi-char reverse string
behaviour?
cheers,
tim
I sometimes use Textmate to view readonly files. I'll never want to
change the files, just view, navigate, fold, etc. Is there a way to
tell Textmate that the files are read-only, so that Textmate prevents
me from accidentally modifying the edit buffer? Just remembering to
click "Don't save" when I exit Textmate isn't really what I want.
-- Pete
Is there a "right way" to allow for SVN log templates? Basically I'd
like to be able to easily populate the comments section of the
CommitWindow with a template (or snippet, or...).
The best I've found so far is adding:
@commit_args.gsub!("-m ''", '')
to /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_commit.rb
Which causes the svn's client behavior to kick in and spawn EDITOR
(mate -w) to write comments. Is this as good as it gets?
Thanks,
Mat
I use to open some links (unix links) with mate in the Terminal. It
seems to me that TM makes a mesh with them or not have a clear
criteria with the name/location since the name that appears on the
window title is the name of the link but the location where it refers
to is the real file.
IMHO it should be better to have the real file location in both cases.
Hi everyone :)
Since some months I have had error messages when trying to update my
installed bundles with GetBundle's "Update Installed Bundles" command.
2 different error messages are returned (randomly one or the other,
os so it seems to me) :
1 -> [Target path does not exist]
2 -> [REPORT request failed on '/svn/Bundles/!svn/vcc/default']
Still, after displaying one or the other message, GetBundle tells me
that my bundles were updated an that I can use them...
If I remember well, it all started when I tried to install a bundle
(but don't remember which) and had some error messages during install.
It seems that some people encountered this kind of problem already,
but I couldn't find appropriate solution in this mailing-list archives.
Any help would be appreciated :)
Thanks,
Luc.
Hi,
I have a tiny question:
How can I invoke an inline menu by using 'tm_dialog -u' from a
tmCommand written in bash?
I'd like to popup an inline menu à la Ruby
require File.join(ENV["TM_SUPPORT_PATH"], "lib/ui.rb")
words = STDIN.read().split("\n")
print words[TextMate::UI.menu(words)]
but using 'tm_dialog -u' command.
OK. I can embed Ruby-code in my Bash script, but it should be
possible to use only
tm_dialog -p "{???}" -u
I have no problems with for instance:
PLIST=$(tm_dialog -mc -p '{title="Hallo";}' RequestString)
I tried to write a old-stylish plist using menuItems, title=, etc.,
but up to now I couldn't find a solution.
Thanks in advance for any hint,
Hans
On Jul 19, 2007, at 6:52:07 PM, Cliff Pruitt wrote:
> Yeah I know what you're saying & of course Emacs & vim are "text
> editors". :-) But honestly how many "editors" of any kind have a
> read-only mode? (This is where someone emails me a list of like
> 3,000 read-only editors & I look like a jerk... happens every time.)
One feature of BBEdit that I've missed since moving to TextMate a
couple years ago is the ability to open a file Read Only, or even to
mark an already-open file as Read Only. It's not something I would
call a key feature that all text editors need to have, but it is a
great way to protect a file from inadvertent changes (aka protect me
from myself).
When working on one source file I very often have another file open
from a completely different project, for reference or for copying
code from. More than once I've modified the wrong file and
accidentally saved my changes, then had to use version control to
revert back. It would be much easier if there was a fast and simple
way to open the reference file Read Only.
Don't know about the other 2,999 editors that off that feature, tho,
so I'll let others chime in about that ;)
- Dave
This ought to be easy! :)
I want to be able to use "Wrap Word in Link" (currently in the
Hyperlink Helper bundle) in a php file.
With no modifications to the bundle, evoking the activation: <Key
Equivalent> has no visible effect at all.
Adding "source.php" to the Scope Selector List of the bundle, then
trying evoke the action results in
(this language is not supported, see … for more info)
being inserted in the document.
Umm?
First, how does anyone suggest I get this to work?
Second, "see <ellipsis> for more info" is hardly helpful !!
Thanks,
eo
Dear friends,
several people on this list have brought up the issue of non-sticking
passwords in the new MySql bundle. There were suggestions to
reinstall, revert bundles to original state etc –– I have done that,
but I am still prompted for password with every query and with every
change of table in the database browser.
What is the solution for this problem?
Secondly, I mentioned before that the mysql bundle is not happily
working with non-latin unicode -- queries containing, for instance,
Cyrilic or Greek are not executed as they should (they return no
values), and tables containing non-latin utf8 text display question
marks instead of text.
I am kindly asking for any tips -- the mysql bundle has become
unusable for me, and I need it very badly.
All best,
Tench
Hi There,
This seems like a FAQ, but I haven't been able to find the answer
after some looking. Textmate doesn't have a "match entire word" check
box in the find dialog, like most text editors. Presumably, we're
supposed to use regular expressions to achieve the same effect. Most
times, the word is a variable name. So for my variable x in C++, I
want to find all uses including:
x[i]
x->foo
x.bar
I've been trying to bracket the variable with the "non word
character", so I search for the regular expression \Wx\W
This excludes xbar, and foox. However, this isn't quite the same as
matching just the word, as the find dialog also selects the previous
and next character, matching the \W. I can't use it in a replace, for
example. Is there some cleaner way of doing this?
Thanks,
Craig Schmidt
I've been using Textmate with Transmit with no problems for months, now today
the bundle doesn't seem to work. The only thing I think of is that i did
update my textmate yesterday.
now when I use the bundle, i get the tooltip that says "(filename) sent to
Transmit" but nothing happens. I tried docksend by dragging the file from
finder to the transmit icon and it did work. Its just the bundle in Textmate
that doesn't seem to be working with Transmit. I've reset my bundles, even
re-installed transmit.
I am using textmate 1.5.6 and transmit 3.5.6 on OSX 10.3.9
thank you
--
View this message in context: http://www.nabble.com/textmate-transmit-bundle-not-working-tf4070702.html#a…
Sent from the textmate users mailing list archive at Nabble.com.
Hi everyone :)
Since some months I have had error messages when trying to update my
installed bundles with GetBundle's "Update Installed Bundles" command.
2 different error messages are returned (randomly one or the other,
os so it seems to me) :
1 -> [Target path does not exist]
2 -> [REPORT request failed on '/svn/Bundles/!svn/vcc/default']
Still, after displaying one or the other message, GetBundle tells me
that my bundles were updated an that I can use them...
If I remember well, it all started when I tried to install a bundle
(but don't remember which) and had some error messages during install.
It seems that some people encountered this kind of problem already,
but I couldn't find appropriate solution in this mailing-list archives.
Any help would be appreciated :)
Thanks,
Luc.
Hi List,
Everytime I click out of textmate - like into firefox say - and then
click back into textmate, it freezes for 30 seconds and I get the
loading spinny thing. I monitor on top and it reports:
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
377 TextMate 0.0% 1:32.30 3 94 247 128M
16.9M 152M 485M
And then when I click into textmate:
377 TextMate 99.0% 1:46.34 3 97 253 130M+
16.9M 154M+ 487M+
I've defragged and run the OnyX maintence scripts, restarted, trashed
textmate and reinstalled, and rebooted and this still happens. Ideas?
Avi Flombaum
avi(a)designerpages.com
Hi,
The latest Textmate helpfully highlights SQL in comments, this is
great apart from with Joomla/Mambo code which actually uses a hash in
the table name (this gets replaced before it gets as far as mysql) -
this hash is recognised as a comment, so the end of the string is
ignored and the rest of your file is treated as a comment.
The tables names are referred to as #__mytable. I'm sure if this
isn't the best solution but a quick fix is to open
/Applications/Textmate.app/Contents/SharedSupport/Bundles/
SQL.tmbundle/Syntaxes/SQL.plist
in Property Editor and navigate to
/Root/repository/comments/patterns/1/match
and change the regex from
(#)?.*$\n?
to
(#)[^_][^_]?.*$\n?
Any better solutions gratefully accepted.
Thanks
jeb
Hi Joachim,
Love your Objective-C bundle contributions, use them all the time!
To facilitate a more compact folding I actually prefer a different
way of formatting my methods than what "Completion: Partial Method
Signature" produces. May I suggest to replace
out = out.chomp.strip + "\n\{$0\n#{rv}\}"
with something similar to this (sorry, no Ruby coder):
if ENV['TM_C_METHODBODY']
out = out.chomp.strip + eval(ENV['TM_C_METHODBODY'])
else
out = out.chomp.strip + "\n\{$0\n#{rv}\}"
end
so I can adjust it to my preference?
Thanks
Gerd
I'm trying (for the first time ever) to make Textmate do syntax-
highlighting. The files I want to highlight are JUNOS router
configuration files. My beginning grammar is
{ scopeName = 'source.junos';
fileTypes = ( 'junos' );
foldingStartMarker = '\{\s*$';
foldingStopMarker = '^\s*\}';
patterns = (
{ name = 'keyword.other.junos';
match = 'groups|system|chassis|interfaces|forwarding-options|snmp|
routing-options|protocols|policy-options|firewall|routing-instances';
},
{ name = 'comment.block.junos';
match = '/\*[^\*]*\*/';
},
);
}
When I set the language to JUNOS, folding works but the keywords or
comments stay the default color. Do I need to do something else to
see color highlighting? (assume nothing is too dumb - I'm a newbie
to this)
Assuming I get this working, is there a repository of grammars where
I can share it? And maybe find grammars for other odd languages?
-- Pete
Hi,
Recently I've been finding that textmate seems to be indenting/
autoindenting to the wrong number of chars. I've got the indentation
set to 'Soft Tabs: 2' but I'm finding that when I tab along, I'll end
up indenting to a odd number of chars, eg 3 or 5. I'm also finding
that when I'm writing HTML, if I use Ctrl< to writing the opening and
close tag, then press enter, I'll only be indented 1 char in from the
containing tag, not two as expected.
Any ideas?
---
Jeremy
Hi!
I just tried to render with the filename "Problem Set 5.tex" but it
failed because it seems to "think" that Problem, Set and 5 are three
different documents - here's the output:
atexmk: This is latexmk, John Collins, 26 February 2007, version:
3.08n. **** Report bugs etc to John Collins . **** Latexmk: Could not
find file [Problem] ------------ Run number 1 of 'pdflatex
-interaction=nonstopmode -file-line-error-style Problem' ------------
Latexmk: restoring last Problem.aux file Latexmk: Did not finish
processing file: Latex failed to generate a log file Latexmk: Could
not find file [Set] ------------ Run number 1 of 'pdflatex
-interaction=nonstopmode -file-line-error-style Set' ------------
Latexmk: restoring last Set.aux file Latexmk: Did not finish
processing file: Latex failed to generate a log file Latexmk: Could
not find file [5.tex] ------------ Run number 1 of 'pdflatex
-interaction=nonstopmode -file-line-error-style 5.tex' ------------
Latexmk: restoring last 5.aux file Latexmk: Did not finish processing
file: Latex failed to generate a log file
And I have now the files in the directory of tex-file:
5.aux
5.aux.bak
Problem Set 5.tex
Problem.aux
Problem.aux.bak
Set.aux
Set.aux.bak
texput.log
Removing the spaces from the filename helps. Something should be done
about the error output…should be somehow formatted but I think that
already in discussion…
As written in the subject: it's the actual SVN-checkout of the LaTeX-bundle
Niels
Dear list,
It would appear that the 'Execute Line / Selection as Query' command
in the SQL bundle is not working for multi-line selections.
Am I going mad (missing something?), or can someone else confirm this
problem please. Even better if you know how to fix it.
Thanks
Jez
Hello
I would like to extend the sql language definition to support
PostgreSQL's dollar quoting semantics.
http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-S…
Ideally, I'd like to be able to fold dollar quoted strings as they're
often used for large chunks of text, particularly function
definitions.
What is the right place to start in order to implement this? Should I
modify the existing sql bundle?
Andrew
Sample:
$sql = "INSERT INTO table (field) VALUES ('".$foo."')";
The bundle in 1.5.6 (1405) doesn't break out of SQL syntax
highlighting properly on the string. To fix sql-string-double-quoted
and sql-string-single-quoted change:
end = '"';
to regex:
end = '.*?"';
Forgive this PHP programmer if Ruby regex differs and there's a
better fix than this!
I think I'm done with HTML anchors after this. The named anchor
commands have evolved into a full indexing bundle due to a positive
response. Apparently I'm not the only one who gets relegated to
creating long listings with anchored indexes at the top, despite my
protests. So the bundle includes the original commands, plus fully
automated index creation, including even/odd row classes, sub-
indexing for multiple sections, and indexing with summaries.
Everything is inserted as snippets for modification.
The bundle includes a help file and can be found at my blog.
http://blog.circlesixdesign.com/2007/07/13/html-indexing-bundle/
Thanks,
Brett
Hey all, this might be SLIGHTLY off topic but I don't think it is.
I'd really like to write a command to execute SQL statements against
SQL server, but I'm not sure of a command line tool that I can use
with the command. Not to mention there are plenty of times I'd
rather use a tool like the mysql cli tool rather than a full GUI
app. Is anyone using anything from the command line that works well
for them with SQL Server?
- Cliff
On 6/25/07, at 8:37 PM, Ryan Wilcox said:
>Hello all,
>
>I use the Pascal bundle quite a bit, and - while the Pascal bundle
>is MUCH better about understanding what a (to use the C term)
>prototype is vs a definition, it still fails when looking at
>functions (pascal methods that return a value).
I have a change for the Pascal Prototype regex. With this regex it passes all the tests in my previous email on this topic (<http://article.gmane.org/gmane.editors.textmate.general/20600>)
(I believe) The solution is simple:
add (: \w+)? to existing meta.function.prototype.pascal regex so it is:
\b(?i:(function|procedure))\b\s+(\w+(\.\w+)?)(\(.*?\))?(: \w+)?;\s*(?=(?i:attribute|forward|external))
If someone could check this out and commit this change (or one like it) to the Pascal bundle I'd be very grateful.
Thanks so much!,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
In the previous version of TextMate when I submitted a highlighted set of
queries to MySQL it would execute them all in order and show the results.
In the new version it only seems to execute the first SQL statement out of
the highlighted group. This is a big problem for me because I only use
TextMate to edit and submit stored procedures which require at least three
separate statements to be submitted (delimiter change, my stored procedure,
delimiter change back.) Does anyone know of a way to fix this in the new
version? Or if not can someone point me to link of the previous version so
I can reinstall it?
Thanks
--
Dave
i have 3 mac computers, and i updated textmate to the latest version, one by
one. seems that mtasc is not working anymore, i get a colored blank swf all
the time.
is working for you, macuser?
I've installed, deleted the symbolic link, installed again, but still
not working.
edit in textmate is in the menu, but clicking it just makes a ping
noise.
suggestions?
TIA
Hello,
I'm running build 1405 and when trying to use the "Show Changes"
feature, when doing a svn log on my project I get the following:
svn: invalid option character: c
Type 'svn help' for usage.
Anybody else experiencing this?
Thanks
When trying to configure the SQL Bundle, I get the following error in
my console.log, http://pastie.caboo.se/77638. I'm using a fresh
install of Textmate v1405. No other textmate plugins are installed
besides the ones that are installed by default.
Hi,
in 1.5.5 and 1.5.6 is a bug in the "Find in Project" Dialog. Here is
how you can reproduce it:
- open a project
- open "Find in Project"
- set "Find:" to aaa.bbb
- set "Replace:" to ccc.ddd
- activate an other TM window (e.g. the project window)
- re-activate the "Find in Project" dialog
- doubleclick bbb from the "Find:"
- copy
- doubleclick ddd in the "Replace:"
- paste
bug: a blank is inserted before the pasted bbb in the "Replace:" field
cheers,
Alex.
I had a few days left of my trial period when I received a software
update and I haven't been able to open PHP files anymore with that
version.
I tried to downgrade and the newest version that can handle PHP-files
is Version 1.5.5 (1368).
What happens when newer versions try to open a PHP-file they open
them without any syntax colouring, stay up for a few seconds and crash.
The following attachments are the crash log and an example PHP-file.
Is the PHP-bundle doing something nasty or am I doing something wrong?
Regards,
Stefán Vignir Skarphéðinsson
Attached is a patch file containing the changes between the CVS
version of the Latex bundle and my version. They are as follows:
1a. Improve the parsing of %!TEX lines, so that it conforms to the
behaviour of TeXShop. Previously it was too strict about the format;
in particular it demanded a single space following the = sign, rather
than arbitrary whitespace. (Oddly, a single space before the = sign
*is* required.)
1b. Do not ignore "file not found" errors in options.rb. (Why was this done?)
2a. The second group of changes concerns the error handling in the
'Typeset & View' command. Previously, detection of errors depended on
parsing the output of the TeX command. However, it is difficult or
impossible to do this reliably, because of the variety of forms that
error messages can take. The new code also looks at the exit value of
the tex process.
2b. While working on the latexErrWarn.py script, I noticed that the
code detecting the -v (verbose) option was broken. I have fixed it;
but, to conform to existing behaviour, this option is no longer passed
to the script.
3. Allow per-file setting (in a %!TEX line) to override the global
$TM_LATEX_PROGRAM setting. For backwards compatibility reasons, an
exception is made for latexmk. There is a new option
$TM_LATEX_COMPILER which does over-ride everything; this should be the
recommended way of using frameworks like latexmk in the future.
Eventually the latexmk exception should be removed.
Robin
A new version of Latex Watch is available, which fixes a number of
bugs. It's available here:
http://www.puffinry.demon.co.uk/LaTeX%20Watch%202.5.dmg
Latex Watch takes a lot of the hassle out of using Latex, by quickly
updating the document preview whenever you save a change to your
source file. It saves you having to manually recompile all the time,
and it's also quite a bit faster too. See the included help file for
more details.
Changes since 2.4:
- Delete .watcher_pid file on exit. (I think this was broken by 2.3.)
- Fix bug introduced in 2.4 that broke TeXShop updating.
- Use a sanitised name for the .foo.* files, because format names containing
spaces don't seem to work (so we would fail for filenames with spaces in).
- Change into the working directory, rather than using the full path, to
avoid problems caused by special characters in the name of some ancestor
directory.
- Quote Applescript strings, so that filenames containing special characters
(backslash and double quote) will not cause Applescript errors. (They do
still cause problems with PDFSync in Skim: see
https://sourceforge.net/tracker/?func=detail&atid=941981&aid=1753415&group_…)
- Catch the obscure case where the filename ends in ".tex\n", which
would previously cause mysterious-looking problems.
- Remove the 'hide extension' attribute on the .tex file, if TeXShop is
used as the viewer, otherwise updating will fail for interesting reasons
that I won't go into here.
Robin
Hi,
Since the last update I'm having problems with the ActionScript
bundle and XTrace. All my debugging code now gets printed out in the
flash movie rather than in the XTrace window as it used to before.
I think I've done all the necessary steps:
1. Add my folder in the security settings in Flash
2. Fire up XTrace
3. Add the trace argument to mtasc.yaml
Firstly nothing displayed in the preview window. The .swf file ran
fine in a browser but not under TextMate. I modified the build
script (point c below) to represent the file as a proper URL rather
than a file:// path and this worked, but I still don't get any debug
out, nor do I get a security warning.
I made a few tweaks to the mtasc build script:
a. Add the command it used to build the swf as a comment in
underneath the HTML
b. Allow for the 'app' yaml statement to be an array of files rather
than a single file
c. Allow me to prefix a location to the swf file, such that the
output HTML is:
http://localhost/~gaby/game/blah.swf
rather than
/Users/gaby/Sites/game/blah.swf
Which made the preview work.
I'm really stuck here as I found the XTrace output invaluable,
whereas the in-swf version is next to useless as the important data
always runs off the edge of the movie! Help! I'm going mad!
Gaby
--
Junkets for bunterish lickspittles since 1998!
http://www.playr.co.uk/
Hello,
I'm trying to use the database browser with TextMate 1.5.6 (1405)
with Postgres 8.2.1. I've configured the SQL Bundle and when I try to
activate the browser, I see this error message:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
SQL.tmbundle/Support/bin/db_browser.rb:178:in `abort': cannot convert
Array into String (TypeError) from /Applications/TextMate.app/
Contents/SharedSupport/Bundles/SQL.tmbundle/Support/bin/db_browser.rb:
178 from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
SQL.tmbundle/Support/bin/db_browser.rb:167:in `html' from /
Applications/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/
Support/bin/db_browser.rb:167
I've already made the password prompt regex change suggested in
another posting, but that did not help.
Thanks for looking into this.
-B
Dear friends!
I am using Textmate for my LaTeX projects (writing arcticles at the
university).
I want the following macro: I want to mark a text that I have written
and then I want to push a special keyboard shortcut to activate it.
Example: "This is a text and it is just an example."
I want to mark the word "text", push a keyboard shortcut and then it
should create automatically:
"This is a \frqq text\flqq\ and it is just an example."
Can this be realized with TextMate?
Kind regards!
Chris (Austria)
For what it's worth, here's a refined version of this morning's
quickie HTML anchor commands. I'm definitely open to input.
They're tied to CTRL-SHIFT-R. That's probably something else's
shortcut, too, but I've lost track. There are two commands so the
shortcut gives you a menu with 2 options. Creating an anchor just
gives you a snippet with a suggested name based on the selected
text. Creating an anchor link gives you a list of all of the current
named anchors in the page and lets you select what to link to.
Thanks,
Brett
I had to whip this up this morning for a site that had a ton of named
anchor tags. There may have been something previously but I missed
it. If you highlight the text to link and hit CTRL-SHIFT-A, it will
give you a dialog with a suggested name for the anchor. Confirming
the dialog after any necessary modifications will create the href
link to the anchor and copy the name of the anchor to the clipboard.
Then you place the cursor or highlight the text to become the anchor
and hit CTRL-SHIFT-A again. It will create the anchor from the
clipboard. This makes for rapid index development.
The only drawback is that my current system of using the same
keyboard shortcut twice means if you hit undo after pasting the
anchor you lose the clipboard and have to start that anchor over from
the beginning. It may be wise to separate the two functions, but I
didn't want to take up more shortcuts than necessary ;).
Brett
Hi,
I'm using Version 1.5.6 (1405) with Postgres 8.2.4. I've configured my setup
in the SQL Bundle,
but when opening the Databrowser nothing shows. I get the display of
"Databases" but there are no databases shown. When I add a wrong one, the
databrowser will complain that the db is unknown.
I can post mor information when necessary.
CU
Christian
--
View this message in context: http://www.nabble.com/SQL-Bundle%3A-Postgres-with-Databrowser-shows-nothing…
Sent from the textmate users mailing list archive at Nabble.com.