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