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