Hello
I try to create a latex template
I've no problem with the classic method [ NEW from Template] [Edit
Templates] but
with the other method
[ why another method ? Only God knows ..]
describes in the help of the bundle.
I create a file in Application Support > Latex > Templates but iI
want to use shell variables
like TM_FULLNAME TM_DATE TM_ORGANIZATION_NAME etc ...
I put %!TEX style = snippet at the beginning of my file and I' ve no
problem with the variables
except with TM_DATE.
I modify the ruby command "LaTeX Template" . I added inside the next
line
ENV["TM_DATE"] = `date +%d-%m-%dY`.chomp
but it's not enough. What is wrong with my method?
Sorry if my question is stupid but I am a beginner with ruby and batch
Best Regards
Alain
I've stumbled across something that has been driving me batty for a few
months now. Once upon a time when double clicked a work with a hyphen in it
it selected the hyphen as well as both the pieces of text on on both sided
of it. Now, out of the blue, it only selects the part of the word I double
click on and stops at the hyphen.
for example: if i double click on the word "text" in the string
"text_mate"... "text" is selected. Shouldn't the whole string be
selected!???
Someone help!! it's driving be batty...
Thanks
--
View this message in context: http://www.nabble.com/Selecting-Text-tp20397964p20397964.html
Sent from the textmate users mailing list archive at Nabble.com.
When I have TextMate 1.5.7 (1464) documents open in multiple Spaces in Leopard
10.5.5, using the "Go to line..." dialog often switches back to a previous space
and applies to the wrong document.
To reproduce, first in Spaces prefs uncheck "When switching to an application,
switch to a space with open windows for the application"
I have 2 Spaces. In Space 1, open a TM document and use Cmd-L to invoke the
dialog and go to a line. Now switch to Space 2, activate TextMate in the dock,
and open a new TM document in Space 2. Invoke Cmd-L on the new document - it
jumps back to Space 1 and displays the "Go to line" dialog there, and the dialog
applies itself to the document that is open in Space 1.
I can't find a workaround to make "Go to line" apply to the document in Space 2.
Any ideas?
Andrew
Hi,
Are there some Quicksilver experts here? I would like to know how top
open a folder with textmate using Quicksilver.
Currently I have to do:
1) ctrl + Space to open quicksilver
2) type the name of my folder
3) hit tab and type "ow" for open with
4) hit tab and type tex for textmate
5) hit return
Is it possible to trim down steps 3-5?
Dear Haris,
thank you very much for your help. Below you can find the log-file
from within TextMate when compiling the minimal example. I use the
"latex" engine with latexmk.pl checked but without any further
options. If I use pdflatex, then everything works fine. As I have a
lot of .eps files and since I use packages that do not work with
pdflatex, I would like to use latex instead of pdflatex. The most
confusing thing is that the dvi file is correct and if I use
latexmk.pl by hand (from the terminal), the minimal example also
works. What does TextMate do different than just apply latexmk.pl?
Please let me know if you need any more information on that.
Best regards from Ulm,
marius
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) (format=latex
2008.11.9) 9 NOV 2008 12:43
entering extended mode
file:line:error style messages enabled.
%&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax,
dumylang, noh
yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek,
ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech,
danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german,
ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish,
italian, la
tin, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese,
romanian, rus
sian, sanskrit, serbian, slovak, slovenian, spanish, swedish,
turkish, ukenglis
h, ukrainian, uppersorbian, welsh, loaded.
(/Users/mhofert/Library/texmf/tex/latex/komascript.tds/tex/latex/koma-
script/sc
rartcl.cls
Document Class: scrartcl 2008/11/03 v3.00 KOMA-Script document class
(article)
(/Users/mhofert/Library/texmf/tex/latex/komascript.tds/tex/latex/koma-
script/sc
rkbase.sty
Package: scrkbase 2008/11/03 v3.00 KOMA-Script package (KOMA-Script-
dependent b
asics and keyval usage)
(/Users/mhofert/Library/texmf/tex/latex/komascript.tds/tex/latex/koma-
script/sc
rbase.sty
Package: scrbase 2008/11/03 v3.00 KOMA-Script package (KOMA-Script-
independent
basics and keyval usage)
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
(/Users/mhofert/Library/texmf/tex/latex/komascript.tds/tex/latex/koma-
script/sc
rlfile.sty
Package: scrlfile 2008/07/09 v3.00 KOMA-Script package (loading files)
Package scrlfile, 2008/07/09 v3.00 KOMA-Script package (loading files)
Copyright (C) Markus Kohm
)))
(/Users/mhofert/Library/texmf/tex/latex/komascript.tds/tex/latex/koma-
script/to
cbasic.sty
Package: tocbasic 2008/10/06 v1.0(package)
)
Package tocbasic Info: omitting babel extension for `toc'
(tocbasic) because of feature `nobabel' available
(tocbasic) for `toc' on input line 112.
Package tocbasic Info: omitting babel extension for `lof'
(tocbasic) because of feature `nobabel' available
(tocbasic) for `lof' on input line 113.
Package tocbasic Info: omitting babel extension for `lot'
(tocbasic) because of feature `nobabel' available
(tocbasic) for `lot' on input line 114.
Class scrartcl Info: File `scrsize11pt.clo' used instead of
(scrartcl) file `scrsize11.clo' to setup font sizes on
input line 116
5.
(/Users/mhofert/Library/texmf/tex/latex/komascript.tds/tex/latex/koma-
script/sc
rsize11pt.clo
File: scrsize11pt.clo 2008/11/03 v3.00 KOMA-Script font size class
option (11pt
)
)
(/Users/mhofert/Library/texmf/tex/latex/komascript.tds/tex/latex/koma-
script/ty
pearea.sty
Package: typearea 2008/11/03 v3.00 KOMA-Script package (type area)
Package typearea, 2008/11/03 v3.00 KOMA-Script package (type area)
Copyright (C) Frank Neukam, 1992-1994
Copyright (C) Markus Kohm, 1994-
\ta@bcor=\skip41
\ta@div=\count79
\ta@hblk=\skip42
\ta@vblk=\skip43
\ta@temp=\skip44
Package typearea Info: These are the values describing the layout:
(typearea) DIV = 10
(typearea) BCOR = 0.0pt
(typearea) \paperwidth = 597.50793pt
(typearea) \textwidth = 418.25555pt
(typearea) DIV departure = -6%
(typearea) \evensidemargin = 17.3562pt
(typearea) \oddsidemargin = 17.3562pt
(typearea) \paperheight = 845.04694pt
(typearea) \textheight = 595.80026pt
(typearea) \topmargin = -25.16531pt
(typearea) \headheight = 17.0pt
(typearea) \headsep = 20.40001pt
(typearea) \topskip = 11.0pt
(typearea) \footskip = 47.60002pt
(typearea) \baselineskip = 13.6pt
(typearea) on input line 959.
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\abovecaptionskip=\skip45
\belowcaptionskip=\skip46
\c@pti@nb@sid@b@x=\box26
\c@figure=\count86
\c@table=\count87
\bibindent=\dimen102
) (/usr/local/texlive/2008/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 43.
))
(/usr/local/texlive/2008/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2008/07/06 v3.8l The Babel package
(/usr/local/texlive/2008/texmf-dist/tex/generic/babel/english.ldf
Language: english 2005/03/30 v3.3o English support from the babel system
(/usr/local/texlive/2008/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2008/07/06 v3.8l Babel common definitions
\babel@savecnt=\count88
\U@D=\dimen103
)
\l@canadian = a dialect from \language\l@american
\l@australian = a dialect from \language\l@british
\l@newzealand = a dialect from \language\l@british
))
(/Users/mhofert/Library/texmf/tex/latex/lm/tex/latex/lm/lmodern.sty
Package: lmodern 2007/01/14 v1.3 Latin Modern Fonts
LaTeX Font Info: Overwriting symbol font `operators' in version
`normal'
(Font) OT1/cmr/m/n --> OT1/lmr/m/n on input line 13.
LaTeX Font Info: Overwriting symbol font `letters' in version
`normal'
(Font) OML/cmm/m/it --> OML/lmm/m/it on input line 14.
LaTeX Font Info: Overwriting symbol font `symbols' in version
`normal'
(Font) OMS/cmsy/m/n --> OMS/lmsy/m/n on input line 15.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version
`normal'
(Font) OMX/cmex/m/n --> OMX/lmex/m/n on input line 16.
LaTeX Font Info: Overwriting symbol font `operators' in version
`bold'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 17.
LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
(Font) OML/cmm/b/it --> OML/lmm/b/it on input line 18.
LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
(Font) OMS/cmsy/b/n --> OMS/lmsy/b/n on input line 19.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version
`bold'
(Font) OMX/cmex/m/n --> OMX/lmex/m/n on input line 20.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version
`normal'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 22.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version
`normal'
(Font) OT1/cmss/m/n --> OT1/lmss/m/n on input line 23.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version
`normal'
(Font) OT1/cmr/m/it --> OT1/lmr/m/it on input line 24.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version
`normal'
(Font) OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 25.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version
`bold'
(Font) OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 26.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version
`bold'
(Font) OT1/cmss/bx/n --> OT1/lmss/bx/n on input line
27.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version
`bold'
(Font) OT1/cmr/bx/it --> OT1/lmr/bx/it on input line
28.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version
`bold'
(Font) OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 29.
)
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2000/07/18 v2.13 AMS math features
\@mathmargin=\skip47
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks15
\ex@=\dimen104
))
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen105
)
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count89
LaTeX Info: Redefining \frac on input line 211.
\uproot@=\count90
\leftroot@=\count91
LaTeX Info: Redefining \overline on input line 307.
\classnum@=\count92
\DOTSCASE@=\count93
LaTeX Info: Redefining \ldots on input line 379.
LaTeX Info: Redefining \dots on input line 382.
LaTeX Info: Redefining \cdots on input line 467.
\Mathstrutbox@=\box27
\strutbox@=\box28
\big@size=\dimen106
LaTeX Font Info: Redeclaring font encoding OML on input line 567.
LaTeX Font Info: Redeclaring font encoding OMS on input line 568.
\macc@depth=\count94
\c@MaxMatrixCols=\count95
\dotsspace@=\muskip10
\c@parentequation=\count96
\dspbrk@lvl=\count97
\tag@help=\toks16
\row@=\count98
\column@=\count99
\maxfields@=\count100
\andhelp@=\toks17
\eqnshift@=\dimen107
\alignsep@=\dimen108
\tagshift@=\dimen109
\tagwidth@=\dimen110
\totwidth@=\dimen111
\lineht@=\dimen112
\@envbody=\toks18
\multlinegap=\skip48
\multlinetaggap=\skip49
\mathdisplay@stack=\toks19
LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2002/01/22 v2.2d
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2001/10/25 v2.2f
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version
`bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 132.
))
(./test.aux)
\openout1 = `test.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 6.
LaTeX Font Info: ... okay on input line 6.
LaTeX Font Info: Try loading font information for T1+lmr on input
line 6.
(/Users/mhofert/Library/texmf/tex/latex/lm/tex/latex/lm/t1lmr.fd
File: t1lmr.fd 2007/01/14 v1.3 Font defs for Latin Modern
)
LaTeX Font Info: Try loading font information for OT1+lmr on input
line 7.
(/Users/mhofert/Library/texmf/tex/latex/lm/tex/latex/lm/ot1lmr.fd
File: ot1lmr.fd 2007/01/14 v1.3 Font defs for Latin Modern
)
LaTeX Font Info: Try loading font information for OML+lmm on input
line 7.
(/Users/mhofert/Library/texmf/tex/latex/lm/tex/latex/lm/omllmm.fd
File: omllmm.fd 2007/01/14 v1.3 Font defs for Latin Modern
)
LaTeX Font Info: Try loading font information for OMS+lmsy on
input line 7.
(/Users/mhofert/Library/texmf/tex/latex/lm/tex/latex/lm/omslmsy.fd
File: omslmsy.fd 2007/01/14 v1.3 Font defs for Latin Modern
)
LaTeX Font Info: Try loading font information for OMX+lmex on
input line 7.
(/Users/mhofert/Library/texmf/tex/latex/lm/tex/latex/lm/omxlmex.fd
File: omxlmex.fd 2007/01/14 v1.3 Font defs for Latin Modern
)
LaTeX Font Info: External font `lmex10' loaded for size
(Font) <10.95> on input line 7.
LaTeX Font Info: External font `lmex10' loaded for size
(Font) <8> on input line 7.
LaTeX Font Info: External font `lmex10' loaded for size
(Font) <6> on input line 7.
LaTeX Font Info: Try loading font information for U+msa on input
line 7.
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2002/01/19 v2.2g AMS font definitions
)
LaTeX Font Info: Try loading font information for U+msb on input
line 7.
(/usr/local/texlive/2008/texmf-dist/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2002/01/19 v2.2g AMS font definitions
) [1
] (./test.aux) )
Here is how much of TeX's memory you used:
2590 strings out of 493887
34974 string characters out of 1151122
99801 words of memory out of 3000000
5846 multiletter control sequences out of 10000+50000
19965 words of font info for 33 fonts, out of 3000000 for 5000
714 hyphenation exceptions out of 8191
35i,6n,35p,297b,138s stack positions out of 5000i,500n,10000p,
200000b,50000s
Output written on test.dvi (1 page, 380 bytes).
Dear Textmate Users,
I use textmate + skim on Mac OS 10.4.11 to compile LaTeX-documents. I
recently started using the LaTeX package "lmodern". I soon realized
that mathematical formulas are not correctly displayed when I use
this package, however, they are perfectly fine as long as I do not
use this package. After trying a lot of things with math fonts I
realized that the problem is with textmate. I use textmate (version
1.5.7) with the option latexmk.pl enabled for automatic document
compiling. If I use latexmk.pl from the terminal to compile my
document, the math formulas are correctly displayed, however, if I
use textmate (which should also simply call latexmk.pl) to do the
job, then e.g. a greek psi is not correctly displayed. How can I tell
textmate to simply apply the perl script latexmk.pl and do not do
anything different because then the error occurs. I would also like
to add that I use the latest version of latexmk.pl (4.01) and
the .dvi-file is also correctly displayed in skim. It's just that
textmate somehow instructs latexmk.pl to do something weird with
the .dvi file to get the .ps and .pdf files. How can I solve this
problem?
Best regards,
Marius.
P.s.: here is a minimal example:
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[USenglish]{babel}
\usepackage{lmodern}
\usepackage{amsmath,amssymb}
\begin{document}
$\psi$, $\mathbb{N}_0$
\end{document}
> On Nov 7, 2008, at 12:49 PM, Want to Learn wrote:
>
>> Hi,
>>
>> I am using textmate for Latex. I was wondering if there is a way I
>> could customize highlighting of document parts in Latex. For
>> example, currently the footnotes are not highlighted, but any math
>> input between two $ signs is highlighted in green. Suppose I want
>> everything that appears between \footnote{ and } in gray color or
>> add a background color. Is there a way to do that?
>>
>> Thanks very much for your help.
>
> In your theme, add a rule for meta.footnote.latex. Go to
> preferences, find the fonts & colors tab, click the “plus” sign to
> add a new rule. set the scope selector to meta.footnote.latex.
> Give the rule a name, and add a color. That's it!
>
> —Alex
What I do to know the exact name of any scope in a given document in
TextMate:
(in the above case: meta.footnote.latex AND
support.function.footnote.latex)
I use the 'Bundle Development' Bundle which has a Copy Scope command
clickable in a menu item in: Bundles > Bundle Development > Copy Scope,
as follows:
First place cursor in the middle of the desired word, here it was
\footnote{};
then ckick menu item 'Copy Scope';
then paste it in the text;
then copy the line of interest, here it's
'support.function.footnote.latex' into the color prefs like
previously stated by Alex;
then do the same with the scope you get at '{My footnote here}' , it
was: 'meta.footnote.latex'.
Probably there's a shorter way, but this is what I do and I can know
about (and customize) every scope in a Latex doc, or any other type of
doc for that matter.
I wish the Latex Bundle could just add this simple Copy Scope command
in its next update. It's just this:
tr <<< "$TM_SCOPE" ' ' '\n'|pbcopy
Best regards,
M.P.
Hi,
I am using textmate for Latex. I was wondering if there is a way I could
customize highlighting of document parts in Latex. For example, currently
the footnotes are not highlighted, but any math input between two $ signs is
highlighted in green. Suppose I want everything that appears between
*\footnote{
*and *}* in gray color or add a background color. Is there a way to do that?
Thanks very much for your help.
Thanks for the feedback everybody!
I uncovered a weird problem when using dialog.py, that is, passing
more than 1500 items to tm_dialog through the -p option breaks
something. I've hacked together my own tm_dialog.py that uses
subprocess to send the plist through stdin, and everything is working
again.
I've now released PySmell 0.7.1 which includes this fix plus better
error handling and reporting.
Copying the previous email:
I'm very proud to announce the release of PySmell v0.7!
PySmell is an auto-completion library for Python, meant to be plugged
in different editors. It uses static analysis to generate a TAGS file
for your code, and uses that to give you suggestions. It's very fast -
suggestions are instantaneous and analyzing Django 1.0 takes ~15
seconds.
Download from PyPI: http://pypi.python.org/pypi/pysmell/
Issue tracking at Google Code: http://code.google.com/p/pysmell
Development at GitHub: http://github.com/orestis/pysmell/tree/master
The big news for this release is the support for Emacs and TextMate,
on top of the already existing Vim support. This isn't tested as
rigorously as I'd like, so please report any issues at Google Code.
Thanks,
Orestis Markou
--
orestis(a)orestis.gr
http://orestis.gr/
Some kind soul on #textmate clued me in to the fact that the key here is to
get Fink's /sw/bin/init.sh/csh to run ONLY when there's a TTY attached.
That way, all the initialization stuff TextMate sucks in behind the scenes
won't cause it to hang/SPOD when you pick New From Template -> Blogging
Bundle -> HTML Post from the menu.
For zsh users like myself, the fix was simple, stick the test -r
/sw/bin/init.sh && . /sw/bin/init.sh line Fink wants you to put in your
shell init into the .zshenv file.
-Chris
--
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail:
cpatti(a)gmail.com
"Magnify the most difficult details." - Oblique Strategies, 4th Ed. Brian
Eno & Peter Schmidt
Hi,
in my TextMate Preferences a PATH variable is set with value
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:
/usr/X11/bin:/Developer/Tools
As a double check, the command
defaults read com.macromates.textmate OakShellVariables
produces an array whose last entry is
{ enabled = 1;
value = "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:
/usr/X11/bin:/Developer/Tools";
variable = PATH;
}
I quit and relaunched TextMate several times. Excellent.
However if I write in a window
p ENV['PATH']
and Execute Line As Ruby, I get
"/usr/bin:/bin:/usr/sbin:/sbin"
and, indeed, Typeset and View in the LaTeX
bundle does not work. If I accept the suggestion
Set PATH and Relaunch, a new identical PATH
variable is added (so now I have two), and things
work until next relaunch.
What's wrong? I remember someone else compained
about a similar problem on the list, with no answer...
Thanks
Piero
Hi All,
I just started using TextMate for programming Ruby on Rails apps. I have
encountered some problems using it and would appreciate any help I could get
in figuring out how to fix them. Below are the three problems that I've run
into:
1. TextMate is inconsistent about when it colorizes code in .erb file. When
I open some files, TextMate colorizes the code correctly. But on other .erb
files, TextMate doesn't colorize at all.
2. TextMate closes the folder tree on my project. When I navigate from my
browser or terminal window to TextMate, I'll often find that the folder tree
has been closed. This is really annoying because then I have to click on
all the folders so that I can navigate to the files that I want. Is there
any way to get TextMate to just remember the folder tree state?
3. TextMate doesn't do auto code completion. I've seen some videos that
show TextMate doing autocompletion via snippets. How do I turn on the auto
code completion?
Thanks for all your help!
David
Hello!
I just managed to get my hands on a shiny new Intel PowerBook, so I
duly did the Migration Assistant thing to transfer all my stuff to it
from the old G4 PowerBook (going from 10.4 to 10.5 as I went).
Which has worked wonderfully, but I notice that Textmate seems to run
as a PowerPC process rather than an Intel one, according to Activity
Monitor.
What's that about? Does the automatic update mechanism send slim
binaries, based on your platform, in order to cut download times? If
so, will I get an Intel binary the next time an update happens? Or
should I download a fresh .dmg from the site and reinstall from that?
Thanks,
ABS
--
Alaric Snell-Pym
Work: http://www.snell-systems.co.uk/
Play: http://www.snell-pym.org.uk/alaric/
Blog: http://www.snell-pym.org.uk/?author=4
One of the things I love most of textmate is the possibility of many bundles
to search for documentation with a simple ^-H, it's fantastic.
Now I'm studying erlang and I didn't find this functionality in the bundle,
then I made this
#!/usr/bin/env bash
OFF=$TM_CURRENT_WORD.html
echo $TM_CURRENT_WORD | /usr/bin/grep ':'
if [[ $? == 0 ]]
then
MOD=echo $TM_CURRENT_WORD | cut -d ':' -f 1
FUN=echo $TM_CURRENT_WORD | cut -d ':' -f 2
OFF="$MOD.html#$FUN"
fi
ADDR="http://www.erlang.org/doc/man/$OFF"
curl $ADDR
Know it's almost working, but if I give something like
lists:seq it doesn't go to the seq function, because I should also know the
arity of a function, and how to get it??
When I've got something I think it could be useful I can propose in the
developer section?
Thanks
--
View this message in context: http://www.nabble.com/Bundle-newbie-and-erlang-tp20279615p20279615.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi
When I write a program and include rubygems
and afterwards mechanize, the last will not be found
when I call "run"
I use the same ruby in /usr/bin/ruby under osx10.5.5
as in the commandline will be found after whereis ruby.
Could someone give me a hint?
Thanks in advance and kind regards
Karl-Heinz
How can i define a scope selector for this:
<anything> do
something
end
I want to highlight <anything> when it is before do block,
what pattern should i add to ruby language bundle to acomplish this?
I'm very proud to announce the release of PySmell v0.7!
PySmell is an auto-completion library for Python, meant to be plugged
in different editors. It uses static analysis to generate a TAGS file
for your code, and uses that to give you suggestions. It's very fast -
suggestions are instantaneous and analyzing Django 1.0 takes ~15
seconds.
Download from PyPI: http://pypi.python.org/pypi/pysmell/
Issue tracking at Google Code: http://code.google.com/p/pysmell
Development at GitHub: http://github.com/orestis/pysmell/tree/master
The big news for this release is the support for Emacs and TextMate,
on top of the already existing Vim support. This isn't tested as
rigorously as I'd like, so please report any issues at Google Code.
Thank you,
Orestis Markou
--
orestis(a)orestis.gr
http://orestis.gr/
Is it possible to make a TM command that runs PHP and then displays
results in an option box like 'File Completion' (Experimental Bundle)
or do I need to use Ruby?
Mvh Christoffer Winterkvist
---------------------------------------
oprah(a)noodlemantra.eu
I get this error if I try to run a java program
/Users/andrea/Library/Application Support/TextMate/Pristine
Copy/Bundles/Java.tmbundle/Support/bin/javamate.rb:3:in `require': no such
file to load --
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor
(LoadError) from /Users/andrea/Library/Application Support/TextMate/Pristine
Copy/Bundles/Java.tmbundle/Support/bin/javamate.rb:3
I just svn up all my bundles in that folder via svn, did I do something
wrong maybe?
--
View this message in context: http://www.nabble.com/Error-with-java-bundle-tp20286039p20286039.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi, I have just set up TM on a new MacBook and I am having some
problems with the Ref-TeX citation command. For some reason it cannot
seem to find my bib file. I keep my bib file in a git repository and
link it to ~/Library/texmf/bibtex/bib. I thought that the command my
be having trouble following the soft link, so I set the shell variable
TM_LATEX_BIB to the source of the link, but I am still getting a
message that no bib file is found there. :? Any help would be
appreciated in resolving this. All the ebst, Mark
TextMate is a good value. It's a small, fast editor and it makes me
feel productive. Can't wait to see what's under the hood in 2.0.
I was just thinking about what I like in editors, and I still use
Emacs and Eclipse depending on the project. I am switching to TextMate
for a lot of other stuff.
I probably would be using SlickEdit right now- it's a favorite! Except
it's expensive and it runs in X11 on Mac; it's not a native Mac UI.
Feature I really like from SlickEdit are:
* symbol/tagging system. I forget what they call it, but it can
generate symbol lists to use for auto-complete and context help, for
various different languages.
* keybinding emulation modes; e.g it has Emacs and a handful of others.
But anyways I encourage Allan to make 2.0 the most awesome editor he
can, and not spend too much time on everything and the kitchen sink -
feature requests. Like the above, right ;-) Otherwise you end up with
a Christmas Tree, not a lean & mean text editor.
Cheers
Here's a quick Textmate command I made to open the file you're working
on in BBEdit:
#!/bin/sh
# Open the current file in BBEdit
bbedit +$TM_LINE_NUMBER $TM_FILEPATH
I created it as a command, with options "Save current file", Input:
"Entire Document" Output: "Discard" and I added the F8 shortcut
I put this in the scope selector:
source.php, source.css, string, text.html, text.csv, text.plain
I made it after Maarten Sneep made an "open in textmate" on the google
bbedit list. Maybe someone will find it useful.
Here's my original post with the opposite script (which unfortunately
has a habit of locking textmate randomly every once in a while)
http://groups.google.com/group/bbedit/browse_thread/thread/7de49fa457826f3c
Nevan
Hello All,
New to TextMate and love it so far.
I'm wondering if there is an existing bundle or method that will allow me to
generate a new HTML document from a parsed PHP file? I'd like to be able to
generate HTML files based on a local PHP file reading from an XML to
generate pages quickly to post to a server that doesn't support server-side
technology.
This also would be great for building HTML emails from a XML file in
conjuction with the Email Tester bundle.
I would love to get any feedback or tips from the community on this.
Cheers,
Michael R
--
View this message in context: http://www.nabble.com/Generate-new-HTML-doc-from-parsed-PHP--tp20135499p201…
Sent from the textmate users mailing list archive at Nabble.com.
Hi
a very important issue is how to name a tmbundle hosted by github. I
received a mail mentioning that a bundle won't listed in GetBundles.
What I'm doing is the following:
I call:
http://github.com/api/v1/yaml/search/tmbundle
to get these bundles plus author and description from the github host.
'tmbundle' is, I guess, a unique name to identify a TM bundle.
That's why it is necessary to name a tmbundle like:
copy-as-rtf-tmbundle
ruby-c-extensions-tmbundle
merb-tmbundle
...
which will be renamed to
Copy as Rtf.tmbundle
Ruby C Extension.tmbundle
Merb.tmbundle
...
E.g.
subtleGradient's javascript.tmbundle
or
contextgarden's context-bundle
or
shoes-textmate-bundle
won't be found.
And the next thing is to provide a good description. Not something like:
The name says it all. ;)
Could this be achieved?
Suggestions?
--Hans
I am a passionate devotee to TM but I notice that latex compiles much
faster on TexShop than in TM.
Is there something I can do to improve the performance of TM?
TM takes 4-6 seconds to compile and display on skim.
TexShop takes 2-3 seconds.
Related to this is the question whether one can use a DVI viewer on
the Mac instead of pdf in order to speed things up.
I ask all this because a colleague whom I persuaded to move to the Mac
finds TM inordinately slow and wants to go back to Winedt on windows
because she finds the speed unbearable.
Thanks,
Christopher
Is there a way to bind the menu item ^Q (reformat selection) to the
reformat selection for the active bundle of doing paragraph formatting
on the selection ?
Hello all,
I've just released a new TextMate bundle which makes easy to compress
multiple CSS and JavaScript files with YUI Compressor, right from within
TextMate.
The bundle is attached, and I've also put together a short screencast (4
minutes) covering setup, configuration, and usage (http://bit.ly/2WzHlf).
I hope you find it useful, and if you have any feedback or suggestions for
improvement please don't hesitate to chip in.
Cheers,
Stephen
http://www.nabble.com/file/p20210869/yui-compressor-tmbundle.zip
yui-compressor-tmbundle.zip
--
View this message in context: http://www.nabble.com/New-YUI-Compressor-TextMate-Bundle-tp20210869p2021086…
Sent from the textmate users mailing list archive at Nabble.com.
> Ola!
>
> I used to want this features as well, and I was really frustrated
> that you have to include CTRL to have this feature.
> CTRL-page-up and CTRL-page-down.
> Now that I'm used to it, I would not see it any other way. When
> you're coding in a certain method and you quickly want to see
> something in f.e. a private method, using page-up and page-down can
> bring you to the implementation and if you know what parameter to
> use, you immediately can start typing, since the cursor did not move
> with it.
>
> And getting used to the CTRL was a matter of 1 day.
>
> Best regards,
> Jeroen.
> nerd.rb - http://www.rubyonrailsforum.nl - http://www.vici-nl.com
>
> > Hi!
> >
> > Can I make the cursor follow when I've done some scrolling via Page-
> > Up/
> > Page-Down?
> >
> > I mean... let's say: I've scrolled down 3 pages via Page-Down and
> now
> > I want to go on editing right on this page.
> > To do so, I must click with the mouse somewhere on the document. But
> > is this possible by using the keyboard too? E.g., is there a
> Shortcut
> > that positions the cursor right in the middle of displayed page?
>
> You can use shift-cmd-j to move the cursor to the Middle Visible Line.
> Also accessible in the 'navigation' menu.
>
> Cheers,
> Nigel
Hi all
I was looking for a quick way to go to the start of a scope. I often find
myself selecting something, then typing a start bracket to wrap that
selection in brackets:
strpos($key, ".") +1
becomes
(strpos($key, ".") +1)
which leaves my cursor just after the closing bracket. If I want to get back
to before the opening bracket, I usually alt-left arrow. I could also go
just inside the closing bracket, hit cmd-shift-b to select the whole scope
and then click left arrow once, but it's too many keys. Is there a way to
navigate bounds?
Thanks
Nevan
Hi,
on typping "section+tab" the right code appear:
Section~\ref{sec:}
then tab and when over sec: typing alt+scape show the list of suggestion
with the section to reference.
BUT:
On including a bibtex reference using ^{ or navigating to the menu, no
suggestion window appear with the suggestion, only
\cite{xxxx}
Where xxxx is the last entry on my bibliography, then I go after the last x
(between x and }) and alt+scape, and nothing happen at all. It always
reflect he last on my Bib file (I try to change it and it is always the
last)
NOTE: By the way the doc typeset properly and bibtex runs ok.
NOTE: I'm on the last version of Textmate and the latex Bundle.
Thanks in advance
NOTE: is there any log where I can look for the exection or something.
--
View this message in context: http://www.nabble.com/no-suggestion-for-%5Ccite%7B%7D-tp19979530p19979530.h…
Sent from the textmate users mailing list archive at Nabble.com.
To continue with the previous ( & unresolved) post; see: http://lists.macromates.com/textmate/2008-May/025441.html
With this \newenvironment the scope never closes braces or the list
environment, and so the syntax color scheme is forever wrong in the
rest of the document:
%preamble(fold)
......
%create new list environment (bullets - named buls)(fold)
\newcommand{\bu}{\ensuremath{\bullet}{ }}
\newenvironment{buls}
{\begin{list}{\bu}
{
\setlength{\topsep}{3pt}
\setlength{\parsep}{0pt}
\setlength{\itemsep}{2pt}
\setlength{\labelsep}{0pt}
\setlength{\itemindent}{10pt}
\setlength{\leftmargin}{40pt}
\setlength{\rightmargin}{0pt}
\normalfont\upshape
}}
{\end{list}}
%create new list environment (bullets - named buls)(end)
.....
%preamble(end)
\begin{document}.....
some text here ****the scope here is:
text.tex.latex
meta.group.braces.tex
meta.function.environment.list.latex
___when it should just be (and in fact is without
the previous \newenvironment definition):
text.tex.latex
....\end{document}
It seems to be a bug in the Language definitions of these scopes (tex
and/or latex).
Can this be solved (and maybe the bundle updated with the correction)?
Thanks,
Hi!
Can I make the cursor follow when I've done some scrolling via Page-Up/
Page-Down?
I mean... let's say: I've scrolled down 3 pages via Page-Down and now
I want to go on editing right on this page.
To do so, I must click with the mouse somewhere on the document. But
is this possible by using the keyboard too? E.g., is there a Shortcut
that positions the cursor right in the middle of displayed page?
Thanks for hints...
Tom
How can I turn soft tabs on in certain projects, but not in others?
Selecting "Soft Tabs (Spaces)" from the menu at the bottom of the
screen appears to work on a system-wide, per language basis.
One project I'm working on uses soft tabs. The rest do not. I'm
unlikely to remember to manually keep changing this setting back and
forth!
I would prefer to set this only on a per project basis, but setting it
by language per project would work.
Thank you for taking the time for my question.
-Steve-
Hi
suppose the caret is somewhere inside a scope meta.myscope
delimited by two keywords beginmyscope and endmyscope.
I need to capture all the text in the region between
beginmyscope and endmyscope. I thought the Input
type "Selected Text or Scope" might do exactly this,
but I'm seeing something different: only the text from
the line where the caret is to endmyscope is captured.
Is this the intended behaviour, or I'm doing something
wrong? I think the scope is defined correctly since
ctr-shift-P shows that the entire region between
beginmyscope and endmyscope is correctly parsed
as meta.myscope. What's wrong?
Thanks
Piero
Hello.
I have no idea why TM refuses to open some perl scripts that are with
the executable bit set.
When under a project, if I click the file name, a new tab doesnt open.
If I ask mate to open the file from the terminal with the project
open, it doesn't open as well.
If I close everything and use mate to open the file, it opens correctly!
If I right-click on the file I do not have the option to set text/binary flag.
Can anybody please give me a hint to solve this isse?
TIA
Alberto
--
Alberto Simões
The repository for bundles has been moved to a new URL: http://svn.textmate.org/
To update a checkout to the new location one has to do:
# assuming this is where your old chekout is
cd /Library/Application\ Support/TextMate
svn switch --relocate \
http://macromates.com/svn/Bundles/trunk/ \
http://svn.textmate.org/trunk/
If you have switched subsets of the checkout, for example because you
are testing WIP bundles, then you have to ‘svn switch --relocate’ your
switched bundles first.
If you run “svn status” in the root of your checkout, it will indicate
if bundles have been switched by the S marker.
To get the FROM URL of a switched bundle, cd to the folder containing
it and run:
svn info
This will show the URL (on the second line). Generating the TO from
that URL should be straightforward. So if for example we are using the
branched Subversion bundle, we need to:
cd Bundles/Subversion.tmbundle
svn switch --relocate \
'http://macromates.com/svn/Bundles/branches/Subversion%20(Interactive%20Inpu…'
\
'http://svn.textmate.org/branches/Subversion%20(Interactive%20Input).tmbundl…'
Hi.
I'm new to using both latex and TextMate and am trying to modify the
environmental variables that the pdftex engine sees when it is
typesetting my document.
So far I have tried modifying my ~/.profile and /etc/profile to
include modified $TEXINPUT, $BSTINPUT environmental variables without
any luck.
I have also tried adding these variables to the environmental
variables area of the general TextMate Preferences but no luck there
either.
I have also tried to find out if I could possibly give the tex engine
the information via a command similar to the way the master files are
designated (i.e. %! variable = ....) but no luck there either.
Many thanks.
Dan
I'm running Leopard and use Spaces. I also use the 'mate' command a lot,
often from a different space than the one in which TextMate is running.
When I run "mate /filename/" (or "mate /directory/") from a different
space, the new TextMate window opens in the space TM is already in and
I'm switched to that space automatically. I don't mind that. But the new
window opens /underneath/ the existing TM windows. I often have a number
of windows open (a couple different projects, a web preview window,
etc.) so the new window ends up being completely covered.
Is there any way to change either TextMate's or Spaces' behavior so that
new windows get opened in front of the others?
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>
I know about the "~" option in the Cocoa open file dialog too ;-)
Thanks,
Alex
PS the current C-s incremental search widget could perhaps even be
re-used for C-x C-f ?
I'm looking for advice on the best way to create a new bundle -- to support a
play by mail game. There are a number of similar games like this, like
Starweb (Flying Buffalo) and RSWGame. They send out reports on the worlds
and fleets you own. Players decide want to do, and send in their orders.
Repeat until someone wins.
I already have a bunch of tools to help me manage my resources, but I was
wondering if I could tie them into a bundle to make the the process even
easier.
So far, I've been thinking of treating the text file I'm editing as a kind
of database. It lists all of my resources. As I issue orders, the changes
could be reflected in the text. Any really sane implementation would use an
outside database, but I like the idea/challenge of trying to maintain
everything with the single text file. Unless you tell me it's really super
crazy.
A report for a world looks something like this:
World 5 [TERRAN] (Metal=5, Mines=5, Population=10)
Fleet 3 [TERRAN]=10 (Moved)
Fleet 17 [TERRAN]=0 (Captured)
Here I'm the player TERRAN, and I own World 5 and Fleets 3 and 17. But
Fleet 17 has no ships, so I would transfer a ship from Fleet 3. Something
like:
Fleet 3 transfer 1 Fleet 17
Some keystroke later, this order would be applied to the text, and the
report would look like:
World 5 [TERRAN] (Metal=5, Mines=5, Population=10)
Fleet 3 [TERRAN]=9 (Moved)
Fleet 17 [TERRAN]=1 (Captured)
++ Fleet 3 transfer 1 Fleet 17
The order would stay in the file (for later submission to the game), but be
marked as completed.
Each time orders are applied, I'd have to parse the whole file, apply new
orders, and change numbers and text here and there to reflect the new
reality. The files are relatively short (maybe 5 pages max), so I doubt
performace would be a problem.
Am I overloading the concept of text editing too much? Too much to do? Or
just abusing the tool a bit? Thanks for your ideas!
--
View this message in context: http://www.nabble.com/Can-I-treat-my-text-document-as-a-database---sanely--…
Sent from the textmate users mailing list archive at Nabble.com.
Hello i wonder what is the easiest way to add some custom syntax
highlighting elements to the php language, the language syntax
part in the manual is quite complex. =/
IE: I want to highlight in red the custom functions:
myfunc1 , myfunc2, myfunc3.
Where do i put the patterns without interfering with
the php bundle?, thanks in advance
As anyone who has ever done programming knows, it doesn't take long for the best laid plans to mess up elegant formatting. I've been unable to find a command that reformats messy C code back to a standard GNU format (or any other for that matter). Have I missed something, or does this command not exist for programming languages?
Thanks.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dr. Marc R. Feldesman
Professor & Chairman Emeritus
Anthropology Department
Portland State University
please reply to: feldesmanm(a)pdx.edu
my PERS blog: http://persinfo.blogspot.com
SKYPE: mrfearless47
Hello
With OS X 10.5.5, I try to use "Edit In Textmate" but without success.
( I try this :--> http://blog.macromates.com/2007/inputmanagers-on-leopard/
)
Is it possible to install this function with OSX 10.5.5 ?
A lot of cocoa applications give the possibilty to use the Apple
Services like for example "TextEdit"
I would like to know why TM does not give the possibility of using the
Services.
Thanks
Alain Matthes
Hi
Often I am typing for example instanse.method_a(:param => "value"_)
with _ I marked where the caret is placed.
So the question is: is there any way to move caret from the position on the example
to the position right after right parentheses without moving my fingers to cursor keys.
So I want to be able then type .method_b on the same line as fast as possible.
This case is also applicable for single and double quotes.
Thx
I looked in the forum archive but didn't see much discussion of the json
bundle.
I installed it, using the GetBundle bundle, and it does not appear to "do"
anything (no menu items) .. even though there is a Language entry for json.
In particular, I'd like to "tidy" the json file I'm editing.
What's the secret? :)
-- Owen
--
View this message in context: http://www.nabble.com/JSON-bundle-tp20082961p20082961.html
Sent from the textmate users mailing list archive at Nabble.com.
Sorry if this is a FAQ- I didnt' see it anywhere though. I am editing
over a SSHFS-WebDAV volume and I just noticed that TM is making lots
of ._* files on the remote volume. Can this be turned off I hope?
mbp:Forms >file ._*
._form-data-create.post.desc.xml: AppleDouble encoded Macintosh file
._form-data-create.post.js: AppleDouble encoded Macintosh file
._form-data-read.get.desc.xml: AppleDouble encoded Macintosh file
._form-data-read.get.js: AppleDouble encoded Macintosh file
._form-data-read.get.json.ftl: AppleDouble encoded Macintosh file
._form-read.get.desc.xml: AppleDouble encoded Macintosh file
...
Hello,
I'm having some trouble with the LaTeX bundle. I have the PATH
variable set in Textmate's shell variables preference pane (and it
includes the location of kpsewhich), but I still get the following
error:
<begin error>
Can't find “kpsewhich” on PATH.
Theme:
The current PATH is:
/usr/bin
/bin
/usr/sbin
/sbin
Please add the directory containing “kpsewhich” to PATH in TextMate's
Shell Variables preferences.
Alternatively, the PATH can be retrieved from Terminal but this
requires a relaunch:
<end error>
If I push the relaunch button, a new PATH variable is created
(although its value is the same as the PATH variable I made), and I
can compile. However, if I quit and relaunch TextMate, I'm told again
that I haven't set the PATH, despite the fact that there are now TWO
shell variables declaring the PATH. Have I done something crazy?
Oh, I have a full svn checkout of the current (10736) revision.
Thanks,
Mike
Hello,
I have 1.5.7 (1464) running on MacOs 10.5.5. I've been trying to use
the Code Completion command in the CSS bundle.
First, With the default key equivalent activation (Option+Esc) nothing
happened, I then changed the activation keys to (Cmd+Esc) and I get
the following error when I run the command:
#####################################
/Users/rvega/Library/Application
Support/TextMate/Support/lib/codecompletion.rb:318:in /bin/bash: -c:
line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 1: syntax error: unexpected end of filemap' for
nil:NilClass (NoMethodError)
from /Users/rvega/Library/Application
Support/TextMate/Support/lib/codecompletion.rb:87:in /bin/bash: -c:
line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filenew'
from /Users/rvega/Library/Application
Support/TextMate/Support/lib/codecompletion.rb:59:in
#####################################
I also checked out the latest version of the css bundle and the TM
support folder fro svn but the error is the same.
I noticed that the html bundle uses the same completions ruby script
but the html code completion command works fine.
In case someone knows how the codecompletion script works, here are
the Code Completion commands in my css bundle:
#####################################
##########################
#CODE COMPLETION CSS:
##########################
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion"
preference = 'Completions'
choices = []
parsed_choices = TextmateCompletionsParser.new(nil, :scope => :css).to_ary
choices += parsed_choices if parsed_choices
choices += ['--']
plist_choices = TextmateCompletionsPlist.new(
"#{ENV['TM_BUNDLE_PATH']}/Preferences/#{preference}.tmPreferences"
).to_ary
choices += plist_choices if plist_choices
print TextmateCodeCompletion.new(choices,STDIN.read, :scope => :css).to_snippet
#####################################
#CODE COMPLETION CSS PROPERTIES:
#####################################
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion"
TextmateCodeCompletion.plist('Property Completions')
###########################################
#CODE COMPLETION CSS PROPERTY VALUES:
###########################################
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion"
preference = 'Property Value Completions'
choices = []
parsed_choices = TextmateCompletionsParser.new(nil, :scope =>
:css_values).to_ary
choices += parsed_choices if parsed_choices
choices += ['--']
plist_choices = TextmateCompletionsPlist.new(
"#{ENV['TM_BUNDLE_PATH']}/Preferences/#{preference}.tmPreferences"
).to_ary
choices += plist_choices if plist_choices
print TextmateCodeCompletion.new(choices,STDIN.read).to_snippet
#####################################
Thanks for any help!
Hey everyone,
I noticed the php autocompletions script does not seem to be correctly
marking optional parameters with [] except for the last param. I searched
around and found the list of completions in the php bundle support but that
looks good to me, so I'm guessing it's the way the ruby script is breaking
them up. I can somewhat figure out what it's doing but I don't know any ruby
so I don't know how to fix it. If anyone could take a look and maybe fix
that small issue (or tell me its my fault and how to fix it), I'd be very
grateful. (I updated my tm support folder just in case it had been fixed but
it didnt seem to help)
Thanks!
Quine