Hi
TM with LaTeX fails to launch skim or preview. TM works only
with "view in Texmate".
I have the same problem with a macbook and an imac intel 10.6.2
Alain Matthes
Dear TextMate experts,
I would like to execute the shell script myscript.sh from within TextMate. The script myscript.sh takes a file name as argument and does something with the file (it indents the file correctly; for this, it calls emacs in batch mode). So if I use
sh myscript.sh myfile.R
the script works perfectly fine, i.e., it indents the source code contained in myfile.R. I would like to have textmate do this for me on the file I am working on when I use a certain key combination.
Using the Bundle Editor, I created a new command "tidy" with key equivalent "shift+command+T". As the actual command, I put in:
sh /path_to_my_script/myscript.sh "$TM_FILENAME"
Unfortunately, this does not work. I set "Input" to "Entire Document" and "Output" to "Replace Document" (currently I obtain an empty document after "shift+command+T").
How can I trigger the shell script, such that the current content of myfile.R is replaced by the (quietly generated) output of myscript.sh?
Below is the script
Many thanks in advance,
Marius
#!/bin/sh
function usage () {
printf "Indent R file with Emacs ESS package.\n"
printf "Usage: $0 FILE\n"
exit 1
}
f=$1
shift
if test "x$f" = x -o "x$f" = "x-h"; then
usage
fi
emacs -batch \
-eval '(load "/usr/local/share/emacs/site-lisp/ess-5.8/lisp/ess-site")' \
-f R-mode \
-eval '(untabify (point-min) (point-max))' \
-eval '(insert-file "'${f}'")' \
-eval '(set-visited-file-name "'"${f}"'")' \
-eval '(indent-region (point-min) (point-max) nil)' \
-f save-buffer \
2>/dev/null
I've been trying to track down a problem in code folding for Ruby.
At this point, I have two 100+ line files, one of which has problems
and the other does not. The _odd_ thing is that cmp(1) says they're
identical. I have tried closing the files, stopping and restarting
TM, reloading bundles, etc. Nothing seems to make much difference.
One annoying constraint is that the code is proprietary, so I can't
just post it publicly (even in its rather cut-down form). Sigh.
Details:
TextMate 1.5.9 (1510)
Mac OS X 10.5.8 (Mac Pro)
RUBY_VERSION 1.8.5 (for Google Sketchup Pro 7.1.6859)
Guesses:
It appears that TM has saved bogus folding information for one of
the files, but not the other. Suggestions on tracking this down
or at least gathering useful information?
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume rdm(a)cfcl.com
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, system design
I have been trying to get Scheme set up for Textmate. When I first installed
the bundle and tried the run command, I got an error. I had an installation
from Macports, but I wiped that and downloaded mit-scheme for Unix and
installed the binary in: /usr/local/bin.
I set the shell variable, "TM_SCHEME", and pointed it to:
"/usr/local/bin/scheme". Now, when I call the run command, it brings up the
read-eval-print-loop and it does not read the scheme text file I have saved.
Now, I understand that I could mess around with the Run command in the
Bundle editor, but I hardly have enough experience to do that. Does anyone
know if there is another bundle I can install that accounts for this issue,
or a different way in which I can install Scheme?
Thanks a bunch for the help.
--
View this message in context: http://old.nabble.com/Scheme-Run-Command-Doesn%27t-Read-Text-From-File-tp27…
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I was trying to give all (round) parentheses a certain color while editing
in C++.
Can someone help me to achieve this? Sorry if that has been asked before.
As a second question, would it be possible to give parentheses of function
calls a different color, or ideally color all the text within the brackets?
Thanks!
Tim
--
View this message in context: http://old.nabble.com/Coloring-parentheses-in-C%2B%2B-code-tp27998726p27998…
Sent from the textmate users mailing list archive at Nabble.com.
Hi
"Go to symbol" doesn't work in JavaScript for me. But it should,
right? Any ideas where to look at? I am not to familiar with
BundleEditor yet.
Matthias
Hi
Textmate version 1.5.9 (1589) on MacOSX 10.6.3
The clipboard history does not appear to be working correctly
ctr+opt+cmd+V is supposed to pop up a window that allows you to arrow through your history
In my case it just recalls the last entry in the clipboard, as I repeatedly press ctr+opt+cmd+V, it adds the previous entry. For example if I put into my clipboard history apple banana pear
pressing ctl+opt+cmd+V three times produces
pear banana apple
But no drop down menu to allow me to arrow through
Any ideas why?
Steve
Every time TextMate tries to update automatically on my Snow Leopard 10.6.2
MacBook Pro I get:
*3/11/10 7:58:46 AM TextMate [1749] Error checking for new version:
Failed to connect to 208.78.96.139: No route to host*
in my error console.
What is the problem with the auto update?
Greetings,
This is slightly off topic but I'm hoping some of the TextMate-Cocoa
people here could help me.
I'm learning Cocoa programming and I'm not interested in using Xcode
for my development. I prefer using Clang, Rake, Textmate, and
Interface Builder. I know Allan and company development Textmate using
Cmake instead of Xcode. I'm wondering how to run unit tests this way.
Every OCUnit app tutorial I see assumes you are using Xcode. Anyone
know how to set up unit tests manually via the command line? Once I
see how it is done I can set up a Rake target/tasks to handle it for
me.
Any other advice when developing Cocoa apps without Xcode?
Thanks in advance,
Jason C
Hi,
If have a tiny problem since I'm using NSLocalizedString a lot in a project. We had a similar discussion at irc a couple of months ago and maybe I came across with a solution.
E.g. you have the following Objective-C++ file:
@implementation AClass
- (void)foo:(NSDictionary *)w
{
MyFun(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK"),
nil, nil, tableWindow, self, nil, nil, nil,
NSLocalizedString(@"bla", @"bla"));
NSBeep();
}
- (void)foo2:(NSDictionary *)w
{
}
you'll see in the Symbol List:
AClass
- foo:
NSLocalizedString
NSBeep
- foo2:
which could be sometimes useful but the NS... stuff disturb generally. Then I looked at the Objective-C++ Language definitions and I found:
...
patterns = (
{ include = 'source.c++'; },
{ include = 'source.objc'; },
);
...
This means that 'source.c++' will be processed before 'source.objc'. By my opinion this is the wrong order. Because if I change this into:
...
patterns = (
{ include = 'source.objc'; },
{ include = 'source.c++'; },
);
...
I get for the above example the correct Symbol List:
AClass
- foo:
- foo2:
Are there any reasons for that language grammar order?
Regards,
--Hans