Hi all,
I was exploring a little bit and changed the activation on one of my
snippets from Tab Trigger to Key Equivalent. I have done
*everything* I can think of to change it back, but the change won't
stick. I go into the Edit Snippets dialog, find my snippet, select
Tab Trigger, and close the dialog and quit the program completely.
When I come back, it's still on Key Equivalent.
Is there some trick to this that I'm missing?
Thanks a bunch,
bryan thompson
On 29/11/2005, at 21:45, Nicholas Orr wrote:
> <?xml version="1.0" encoding="UTF-16"?>
That's the problem. This will make xmllint (used by the Tidy command)
return the result as utf-16, but TextMate expects it to be utf-8, and
so it'll show up wrong.
There's a few options:
1) convert the files from a script instead
2) change to "UTF-8" (remember to convert the files to utf-8 as
well, if they're currently in utf-16 format)
3) change the “xmllint --format -” line to “xmllint --format -|
iconv -f ucs-2 -t utf-8” in the Tidy command (Bundle Editor -> Show
Bundle Editor -> XML -> Tidy).
Since it sounds like you have a lot of files to convert, option 1 has
advantages in itself over manually selecting Tidy from TM.
Personally I'd use a script, but also let the script convert the
files to utf-8 (utf-8 is generally a better encoding than utf-16, and
while my reference to this is vague, I think part of the Unicode
consortium do see utf-16 as legacy, especially now that it no longer
has a 1:1 mapping to unicode code points (because of ucs-4)).
I have nothing against emacs -- I like it and use it a lot, in fact --
but I had to laugh when i followed a Google URL in my referrer log and
discovered that the current top Google result for these words
emacs markdown integration
is a blog posting of mine about TextMate!
pb
--
Paul Bissex
http://e-scribe.com/news/
Northampton MA USA 01061-0847
Hi,
I tried to get fancy / tweak the php run command, but in the proccess
I broke it.
I have a machine on our network that I have mounted as a shared
drive. I'm trying to define a variable for the project that is its url
and then changa the run command (modeled after lookup keyword), to be:
exit_show_html "<meta http-equiv='Refresh'
content='0;URL=$TM_PROJ_URL/$TM_FILEPATH
The problem is that filepath is full.
Any ideas?
--
dc
-----
David Clark
Web Specialist
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
nice, this works great. thank you very much!!
On 11/30/05, Charilaos Skiadas <cskiadas(a)uchicago.edu> wrote:
>
> On Nov 30, 2005, at 3:54 PM, Jamal Johnson wrote:
>
>
> > i've taken a look and to be honest i'm terrible with regexp's and
> > could use some help. i'm trying to define a way to see objects in a
> > certain format in my JS files:
> >
> > var CustomObject = Class.create();
> > CustomObject.prototype = Object.extend( (new ViewObject()), {
> > member1 : true,
> > member2 : "someString",
> > member3 : "anotherString",
> >
> > someFunction : function(){
> > //doSomething
> > },
> >
> > someOtherFunction : function(){
> >
> > }
> > };
> >
> > so then in the tmCodeBrowser i'd see something like:
> > Objects
> > - CustomObject
> > - member1
> > - member2
> > - member3
> > - someFunction
> > - someOtherFunction etc....
> >
> > something along those lines anyway. can one of you point me in a
> > starting direction for howto setup the .ctags.tmcodebrowser file to
> > do this for javascript files?
> >
>
> Try adding this to .ctags.tmcodebrowser
>
> --langdef=javascript
> --langmap=javascript:.js
> --regex-javascript=/^(.*).prototype *= *(.*)/-\1/o,object/
> --regex-javascript=/^[ \t]*(.*) *: (([^f]*)|(f[^u]*)|(fu[^n]*))[\t]*
> $/---var: \1/o,object/
> --regex-javascript=/^[ \t]*(.*) *: *function/---fun: \1/o,object/
>
> This might do something close to what you want. Just make sure to not
> ask TmCodeBrowser to sort things. With the simple regexp additions,
> you cannot recognize things in multiple lines, so there is no way of
> grouping the variable and function definitions with a particular
> object, this way at least visually they will be close to what you want.
>
> I believe that if one really wants to, one can write a parser and add
> it to the ctags source code and recompile, that is provided that Gerd
> Knops provides you the source code, or is willing to add the parser
> ofr you. I am guessing someone out there has already written a parser
> for javascript that maybe does what you want it to better, but I
> wouldn't know anything about it.
>
> I was under the impression that tmcodebrowser supported actionscript,
> which might be close to what you want, but I couldn't find it in
> the .ctags.tmcodebrowser format.
>
> Haris
>
>
On Nov 30, 2005, at 3:54 PM, Jamal Johnson wrote:
> i've taken a look and to be honest i'm terrible with regexp's and
> could use some help. i'm trying to define a way to see objects in a
> certain format in my JS files:
>
> var CustomObject = Class.create();
> CustomObject.prototype = Object.extend( (new ViewObject()), {
> member1 : true,
> member2 : "someString",
> member3 : "anotherString",
>
> someFunction : function(){
> //doSomething
> },
>
> someOtherFunction : function(){
>
> }
> };
>
> so then in the tmCodeBrowser i'd see something like:
> Objects
> - CustomObject
> - member1
> - member2
> - member3
> - someFunction
> - someOtherFunction etc....
>
> something along those lines anyway. can one of you point me in a
> starting direction for howto setup the .ctags.tmcodebrowser file to
> do this for javascript files?
>
>
Try adding this to .ctags.tmcodebrowser
--langdef=javascript
--langmap=javascript:.js
--regex-javascript=/^(.*).prototype *= *(.*)/-\1/o,object/
--regex-javascript=/^[ \t]*(.*) *: (([^f]*)|(f[^u]*)|(fu[^n]*))[\t]*
$/---var: \1/o,object/
--regex-javascript=/^[ \t]*(.*) *: *function/---fun: \1/o,object/
This might do something close to what you want. Just make sure to not
ask TmCodeBrowser to sort things. With the simple regexp additions,
you cannot recognize things in multiple lines, so there is no way of
grouping the variable and function definitions with a particular
object, this way at least visually they will be close to what you want.
I believe that if one really wants to, one can write a parser and add
it to the ctags source code and recompile, that is provided that Gerd
Knops provides you the source code, or is willing to add the parser
ofr you. I am guessing someone out there has already written a parser
for javascript that maybe does what you want it to better, but I
wouldn't know anything about it.
I was under the impression that tmcodebrowser supported actionscript,
which might be close to what you want, but I couldn't find it in
the .ctags.tmcodebrowser format.
Haris