Hi all,
I have the key F12 bound to the action "showGuessPanel:" in Cocoa,
which is then re-implemented by TextMate. However, the correction
list is always empty in TextMate when it is full of best guesses in
Cocoa apps.
Test case:
- set up a Cocoa keybinding in ~/Library/KeyBindings/
DefaultKeyBinding.dict (F12 is unicode UF70F) to "showGuessPanel:"
- restart TextMate
- open a new plain text document (with online spell checking enabled)
- type "apparentley " (including the end space to indicate end of
word)
- press F12 (or the keybinding you previously bound)
The guess list is empty, whereas if you do this in a Cocoa app such
as TextEdit, the spelling pane would contain the ranked best guesses
for the correct spelling of the word.
I would actually be happier if there was an action that inserted the
"best guess" without requiring feedback, but I'm not aware if such an
action exists. Is there perhaps a way to macro this within TextMate?
--
Sam
Shift+Cmd+{ has stopped converting Markdown to HTML
Shift+Cmd+} has stopped converting HTML to Markdown
I reinstalled HumaneText.service in Library/Services and get the same
result.
I have the language set to either Markdown or MultiMarkdown and
neither work.
This has been such a great tool. I do not know what I could have down
to have it stop working. Thanks everyone.
Howdy -
More newbie questions. Just from a different one this time. I keep
getting variations on the following
tm_dialog: you have updated the tm_dialog tool to v7 but the Dialog
plug-in running is still at v5.
tm_dialog: either checkout the PlugIns folder from the repository or
remove your checkout of the Support folder.
tm_dialog: if you did checkout the PlugIns folder, you need to
relaunch TextMate to load the new plug-in.
/Users/pedrud/Library/Application Support/TextMate/Support/lib/
dialog.rb:127:in `load': Cannot parse a NULL or zero-length data
(PropertyListError)
from /Users/pedrud/Library/Application Support/TextMate/Support/lib/
dialog.rb:127:in `menu'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Bundles/Blogging.tmbundle/Support/lib/blogging.rb:603:in
`choose_blog_endpoint'
from /tmp/temp_textmate.OrBy4u:3
I believe that the clue is in the first line, however, how do I
update the dialog plug-in to v7? Thanks in advance for any help.
Peder
I am having trouble running a fairly simple Ruby program (below).
The error that I get in TextMate is:
csh: Bad : modifier in $ (/). /bin/bash: line 4: : command not found
Here's the program (from David A. Black's Ruby for Rails book):
puts "Reading Celsius temperature value from data file...";
num = File.read("temp.dat");
c = num.to_i;
f = (c * 9/5) + 32;
puts "Saving result to output file temp.out";
fh = File.new("temp.out", "w");
fh.puts f;
fh.close;
I'm sure there's an easy fix. Thanks,
Jamie Forrest
Hi,
This is my first post to this list. I've been a user of BBEdit for
many years, and out of curiosity I've decided to check out TextMate.
I'm actively involved in the MacTeX effort, mainly for testing, and
I've written a set of Applescripts and shell scripts for BBEdit to
play nice with LaTeX. For these scripts I made sure they play nice
with the tricks TeXShop uses for multi-file projects, since TeXShop
is the standard entry-level application that most will use when they
start with (La)TeX on Mac OS X, and if you're compatible with the
starting point, you make it a lot easier to upgrade to a serious editor.
I must say that I like what I've seen so far, but I have some
suggestions:
Textmate runs either the current file or a file pointed to in some
environment variable. I guess there is an easy way to set this
variable, but TeXShop uses a method that is not all that hard to
implement; I did so for some BBEdit AppleScripts [1]. The core is
actually implemented in a (rather ugly) shell script, you may be able
to reuse parts of the script.
TeXShop defines some meta comments, describing the source, and how it
can be typeset. From the help-files:
%!TEX TS-program = command
-- use command to typeset this file (pdflatex, latex, pdftex, texexec
(context), …). If you encounter one of the classic tex formats
(latex, tex), you should prepend with simpdf (simpdftex, simpdflatex)
to handle some code which will not work in pdftex, like pstricks,
simpdf(la)tex will take care of the final conversion to pdf and
previewing.
%!TEX encoding = encoding
-- this file is encoded in encoding (a string using the Apple system
names, see below for a list). Since all sane encoding use the same
lower 7 bits, you can start reading in US ASCII until this string is
encountered, and re-open in the correct encoding.
%:Marker
-- use Marker in a tags menu.
%!TEX root = Document
-- Use Document as the root for typesetting the current file.
It would be useful to have a "open selection" command that opens a
referenced file, and an open master command. I have some of those in
my scripts in my bundle [1], for regular tex files, and graphics
files (either open the original metapost source, of open the graphic
in preview or so).
I have a sample project that shows most of the issues, mail me off-
list if you are interested.
Regards,
Maarten Sneep
You haven't had real fun with regular expressions until you've
written a vi regular expression to search for a vaguely remembered
regular expression in a document which describes how they work.
References:
[1] http://www.nat.vu.nl/~sneep/tex/CompileTeX-BBEdit8.dmg
[2] http://mactextoolbox.sourceforge.net/articles/japanese.html
List of supported encodings in TeXShop. There is one item to take
care of in editing TeX sources for Japanese users. The details for
that can be found at [2].
MacOSRoman, IsoLatin, IsoLatin2, IsoLatin5, MacJapanese, DOSJapanese,
SJIS_X0213, EUC_JP, JISJapanese, MacKorean, UTF-8 Unicode, Standard
Unicode, Mac Cyrillic, DOS Cyrillic, DOS Russian, Windows Cyrillic,
KOI8_R, Mac Chinese Traditional, Mac Chinese Simplified, DOS Chinese
Traditional, DOS Chinese Simplified, GBK, GB 2312, GB 18030.
Hello all,
I'd like to propose two additions to the C bundle.
First, an easy snippet: typedef.
I know I can never remember how typedef works, so I propose this
snippet:
typedef ${1:WhatItIs} ${2:NowCallIt}
Second, a modification on an old favorite: the class snippet.
Most of the classes I write are subclasses of something else.
Except the class snippet echos my colon and subclass declaration.
Meaning, I end up with class declarations like:
class Customer : public Person
{
public:
Customer : public Person (arguments);
virtual ~Customer : public Person ();
private:
/* data */
};
(Note the ": public Person" echoed on both the constructor line,
and the deconstructor like).
I suggest modifying the class snippet like so:
class ${1:name}${2: : public } $3
{
public:
${1:name} (${4:arguments});
virtual ~${1:name} ();
private:
${0:/* data */}
};
There are a few things I don't like about this, mainly that if
you don't inherit from something you know have to type
"'class', tab, delete, tab, arguments. It also might handle
multiple inheritance poorly, or protected/private inheritance.
Maybe some TextMate snippet wizards (or people with more involved
C++ classes than I) can revisit my snippet to make it work better
with these cases.
Hope this helps,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
I'm trying to get my head round the whole scope, language grammar, thing
for one trivial reason - I'd like to mark <?php and ?> tags in a
different color.
So my question is this - is there a good tutorial that would help me
understand how to build and edit a theme to my own liking?
has anyone worked out how to specifically target <?php tags (other than
the whole embedded section...)
TIA
Tony
--
Join me: http://wiki.workalone.co.uk/
Thank me: http://www.amazon.co.uk/gp/registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/
Hi,
I just updated installed Bundles via GetBundle.
While I am writing perl and running the script, error is experienced.
"csh: setenv: Too many arguments. /bin/bash: line 2: : command not found"
It looks like it has problems with environment variables.
However, I do not change the environment or anything else.
How can I check and fix this?
Cheers,
CM