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
Hi,
> Running Octave scripts from Textmate using Matlab bundle works
> fine, but I'm not sure what sort of output I should use. I have set
> it to 'Show as HTML', since I don't want to create a new file for
> each run and the tooltip option is too volatile. The only problem
> is the text comes out without any line breaks, which is very
> painful to read especially when it comes to vectors and matrices.
You could try wrapping the output in a <pre> tag
Hi,
i missed your reply until now for some reason, thanks. I'm not quite sure how to do what you suggest, though. My 'runOctave' command is the following,
# just to remind you of some useful environment variables
# see Help / Environment Variables for the full list
echo File: "$TM_FILEPATH"
echo Word: "$TM_CURRENT_WORD"
echo Selection: "$TM_SELECTED_TEXT"
octave -f -q
i tried adding the strings "<pre>, pre, | pre, ..." randomly around that, but with no success. Could you give me further hint or link me some help page?
I also get a very annoying problem: my code calls some functions located in other files, many of them are not read correctly for some reason and generate an error due to a wrong line ending apparently. If i just open them and save them, it works fine. Since running a code in Octave can call many functions, i'd save a lot of time in fixing that problem.
Many thanks,
baptiste
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail
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
Hi there,
would it be possible for the blogging bundle not to ask for the blog
for everything when I've already added the "Blog: " header?
See attached screenshot...
(I'm using the latest SVN bundle)
TIA
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
I realize that this seems to have been covered a couple of times,
however, I am new to most of this and need a better clarification.
I've been using TM to write to my blog without any problem. The past
two weeks I've been very busy and haven't posted to my blog. Then a
couple of days ago I tried to do so and got the following when I try
to Fetch Post:
/usr/lib/ruby/1.8/xmlrpc/client.rb:551:in `do_rpc': Wrong size. Was
37509, should be <unknown> (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:31:in
`getRecentPosts'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Bundles/Blogging.tmbundle/Support/lib/blogging.rb:547:in `fetch'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in `popen'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Support/lib/progress.rb:11:in `call_with_progress'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.XQJVcg:3
Additionally, when I attempt to fetch my categories (cat TAB), I get
the following:
/usr/lib/ruby/1.8/xmlrpc/client.rb:551:in `do_rpc': Wrong size. Was
7283, should be <unknown> (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /tmp/temp_textmate.iNdaKE:46
from /tmp/temp_textmate.iNdaKE:45:in `popen'
from /Applications/TextMate/TextMate.app/Contents/SharedSupport/
Support/lib/progress.rb:11:in `call_with_progress'
from /tmp/temp_textmate.iNdaKE:45
Can anyone suggest anything to help? I really appreciate it.
Thanks,
Peder
P.s. By the way, I don't exactly feel my skills in the terminal are
good enough to input the change that Brett has shared with everyone.
Hey all,
I've carefully read the TextMate manual 8.2 search PATH
actually my ~/.profile, ~/.MacOS/environment.plist have the same
value than the shell i'm using (zsh).
in fact i've writen two ruby scripts to update these files according
to zsh setup.
then, my PATH hits first /opt/local/bin where is theMacPort Ruby.
when i use a ruby file with the following shebang :
#! /usr/bin/env ruby -wx
from TextMate i get :
/usr/bin/ruby: No such file to load -- ubygems (LoadError)
from terminal :
$ ./myscript.rb
it works as expected.
I think i've miss something to set env vars for TextMate...
but what ???
Yvon
So,
I've used DarwinPorts (aka MacPorts) to install the latest version of
the BASH shell (v3.1.17). I've set it as my default shell within the
NetInfo database. I also have it on the list of acceptable shells in
my etc/shells file
I'm just wondering how you force TextMate to use this shell as opposed
to the built-in BASH shell.
When ever I run (done by selecting the "Filter Through Command" menu
item in the Text menu. I select input none, and am working in a blank
document, and I select "Insert as Text" as the output): echo
$BASH_VERSION
I get back: 2.05b.0(1)-release
In the terminal I get:
3.1.17(1)-release
Can anyone help?
-Brian
I just started looking more into the SQL bundle and using it to
execute the statements I'm creating but I keep getting an error in
the results display saying that it can't find mysql — and it, of
course, lists all the places it looked.
Is it possible to set the mysql path in the shell variables or is
there something else I have to do so TM can find my mysql?
Thanks,
Mike Stickel
Screenflicker Developments
http://screenflicker.com | http://gonecksgo.com
e: mike(a)screenflicker.com
Hi,
How can I set up TextMate such that it will not open any documents at
startup, not even documents I had open when I last quit TextMate?
Cheers
Ulai
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
Hi,
I got some mails regarding to Hypersearch > GetAllMatches which can
transform a table written as a TAB b TAB NEWLINE ... to an HTML
formatted <table>. The question was whether it is possible to write a
snippet like 'table TAB' to insert an HTML table based on the user's
dimension input.
I wrote such a semi snippet as a command and I want to post it here.
Maybe it is also interesting for others.
The basic idea is to ask the user for the dimension and style with the
help of a Cocoa inputbox.
Syntax:
row column {style}
delimited by whatever (of course no digit;)
Examples:
3 x 4
will include three rows and four colums where each <td></td> is
written in a separate line
2 3 1
will include two rows and three colums where each <td></td> is written
in one line per row, i.e <td></td><td></td><td></td>
4
will include four rows and four colums where each <td></td> is written
in a separate line
Its scope is text.html and the used shortcut is crtl+shift+t and you
can use TAB to jump to the next cell.
The only question I have is whether it is possible to invoke this
command like a normal snippet via e.g. 'tablexy TAB'.
-Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Hey Everyone,
Just curious if anyone has tried out this bundle:
http://david.olrik.dk/articles/2007/02/09/textmate-remote-editing
If got a lot of large projects that I can't use Textmate on cause it's too damn slow using Macfuse. Just curious if anyone else has tried an had success with this bundle.
Bill
____________________________________________________________________________________
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.
Hi all,
I found a strange LaTeX compiling behavior.
I tried compiling a LaTeX document this morning, and I got the
following warning above the "Compiling laTeX..." header in the
compiling window.
/Library/Application Support/TextMate/Support/lib/web_preview.rb:70:in
`html_head': undefined method `+' for nil:NilClass (NoMethodError)
from -:4
What does this mean?
Thanks for whatever help you can give.
Best,
-N
--
----------
Nathan A. Paxton
Ph.D. Candidate
Dept. of Government, Harvard University
Resident Tutor
John Winthrop House, Harvard University
napaxton(a)fas.harvard.edu
http://www.fas.harvard.edu/~napaxton
=======================================================================================================
When you have to stay eight years away from California, you live in a
perpetual state of homesickness.
- Ronald Reagan
The most courageous act is still to think for yourself. Aloud.
-Coco Chanel
=======================================================================================================
Hello!
I thought it would be great to run the Rails autotest (url) from a TM
window to turn the file paths with line and column numbers into
clickable links. With a normal command it would be very easy but since
this command is running all the time I was wondering if somebody know
how to capture its ouput, parse it (convert links etc) and then write
it to a html output window.
Thanks
Martin
--
burnfield.com/martin
Hi,
Just another feature suggestion. Use case:
I've been making some changes in a source file. I've been making
the changes in two locations in the file in parallel, trying to keep
them roughly in sync as I make the changes. When I get to the end, I
notice that there was a simpler set of changes for one of the two
locations.
I'd like to be able to select a region of text and 'undo in
selection'. It is just like normal undo, but it skips over commands
in the undo list that don't affect the selection and only undoes
commands that do affect the selection. (For bonus points, the
'skipped' undo commands could be left in the undo queue, so if I
start using normal undo then they start being undone.)
I suspect that this isn't a particularly common request, so I
don't really expect it to ever be implemented, but I thought it was
better to mention the idea than not.
Be well,
Will :-}
Hello all,
I'm a new textmate user- my intention is to use it for web
development. one of the most useful bundle commands, obviously, would
be the "open document in running browsers".
however, when i run that command, absolutely nothing happens. textmate
just sits there, staring at me.
am i missing something? to me, it would seem that if i'm working on an
html document, if i were to run that command, it would have safari
(which is already running) open the document to show me what it would
look like. same goes for firefox or IE (shudder).
i've searched through the archives of this list and no one seems to
mention my problem. also- this has happened on two seperate computers,
so i don't think this is a local system issue.
i should mention that i'm mostly familiar with html/css code - hardly
low-level stuff. so bear with me.
any help would be greatly appreciated. thanks!
chippper
Hi,
Just new to textmate and trying to get SVN working. I've pointed textmate
to my /usr/local/bin/svn area but when I request a status against a file I
get the following error. Are there any tricks of the trade to get svn
working in textmate?
Status Actions File
subversion/libsvn_wc/questions.c:110: (apr_err=155021)
svn: T" with working copy '/Users/greg/source/testapp/app/controllers';
please get a newer Subversion clientsvn
Also does textmate subversion allow one to perform an overall "project
commit" after which it works out what has changed?
Tks
Greg
attached is a patch for the TextMate bundle which includes the command Open
URL in TextMate. This command will prompt the user with a dialog where they
can enter a url. That document is then downloaded and opened in TextMate as
a new document.
The default behavior is to pre-populate the dialog with the selection if it
exists.
-dave