Hi
as posted yesterday Im new to Textmate. So like any other 'beginner' I
stuck to the screencasts first, trying to adopt what is shown there.
Yesterday I posted that self-closing tags wont be done by the key-
command [crtl] + <
Akos kindly answered today I have to set a new variable for this action.
This has not been shown in the screencast.
Now Im trying to autocomplete the insertion of a doctype, but again no
shortcut will bring what is shown in the screencast.
A.) Have features changed since the screencasts have been recorded?
This is kind of confusing ... because screencasts are meant to
beginners.
B.) Is it possible to have more screencasts in general to bring the
folks into stuff?
That woud be great, so learning by watching is quite more confortable
and faster.
(And I guess its even faster for the authors to record a screencast on
certain issues rather than writing about them)
Thnx in advance!
------------------
Dennis
I have just tried to install the "Edit in Textmate" package.
When I tried and failed, I got an error message which reads:
sh: tail: command not found
Error
The input manager (/Contents/Resources/Edit in Textmate) was not found in
the Textmate application bundle.
You may need a newer version of Textmate.
I don't understand why this happens; I have just downloaded and paid for
Textmate recently.
I'm also having trouble setting up the terminal command so that I can open
Textmate using the "mate" command; the default links do not show up in the
Enhanced Terminal Usage wizard box. If I were to navigate to the /usr/bin
directory, which directories should I link to in order to set it up?
Thanks in advance.
--
View this message in context: http://www.nabble.com/Can%27t-install-Edit-in-Textmate-package-tp15392164p1…
Sent from the textmate users mailing list archive at Nabble.com.
I've been wrestling with this one for a bit and I can't seem to find
the right combination of bundle edits to make things work the way I
think they should.
When using PHP, it is oftentimes necessary to place a "<?php" tag
right at the beginning of the file, as any leading whitespace will
render the header() function useless. Unfortunately, whenever I open
such a file in TextMate, it is not recognized as HTML. There's no
syntax highlighting, no autocompletion, nothing. Getting rid of the
opening PHP block, or simply inserting a space in front of it sets
everything right, but then the script obviously stops working.
The HTML bundle has two separate patterns declarations pertaining to
PHP, one which requires leading whitespace, and another which does
not. Mucking around with these patterns has yielded no improvements,
and I'm not sure where else to look at this point. Find doesn't work
in the bundle editor, and hitting the "Test" button or reloading
bundles makes you lose your place in the file, so trial-and-error is
an especially painful process here. The handful of search terms I
could come up with didn't turn up anything, so I'm looking to see if
anyone has any suggestions.
Thanks
I'm trying to teach myself the basics of programming -- I'm working
with Python -- and one of the things I'm doing is going over extant
scripts that I find useful to see how they do what they do. One of the
scripts I'm interested in is pwyky, and so I wanted to print out the
file but I need line numbers to help me keep track of where I am. No
problem. Textmate has that in its eponymous bundle! But when I run it,
I get the following dialogue error in the preview window:
sh: ps: command not found
Received exception:TextMate::AppPathNotFoundException
I checked the first level code in the Bundle Editor, but this has to
be somewhere in one of the Ruby scripts, but I am shy about digging in
there. Any help would be appreciated.
john
I love the blogging bundle, and the primary 'fetch' use case would be
to fetch within the last n-many posts, in the Blogging bundle, the
value of n is a nice and sensible 20.
BUT
What if I decided that I wanted to go back and edit something from a
*long time* ago. Could I somehow retrieve the post via the bundle
either by slug or by unique ID?
Steven
I love textmate and the integration with latex but again and again it
just stops working.
Current incarnation of the problems is the following:
1. In a multifile document (thesis) I edit one sub-document and
recompile (ctrl-r) and the message I get is: "Latexmk: All targets
(ClassicThesis2.pdf) are up-to-date"
- I have tried compiling from the master document - same result.
- I have tried 'trash aux files' and same result
2. Separate problem (earlier on): I am using skim, and in the past
when I would compile in Textmate, it would pop into focus. Now all it
does is bounce in the dock.
Also again and again the window comes up asking if it should
automatically update the file.
Any suggestions appreciated.
Christopher Brewster
*****************************************************
Department of Computer Science, University of Sheffield
Dear R users,
in the last weeks I've looked for a better R integration into TM.
Finally I came up with these three bundles:
1) R
In principal I rewrote all commands to be more flexible and to avoid
to call R to get some information (except for the command 'Tidy').
I.e to show e.g. a function signature/help/insert a function
parameter/completion etc. the command will look for it within R's
help file system. This is not only faster but also one has now access
to all installed packages. In addition to that these commands also
parse the entire R script for function declarations.
Please note if a command using that index will be invoked for the
first time or if you deleted or installed a package the index file
will be rebuilt, and this takes some milliseconds.
I also fine-tuned Rmate. Now all plot are displayed inside of the
output window as thumbnails (click on it to open; drag it to save it
as pdf). Furthermore now it is also possible to send a very large R
script to Rmate. By using the old approach Rmate's pipe overflowed.
2) R Console (Rdaemon)
I fine-tuned the entire Rdaemon. I used it many days and it turned
out it's stable, fast, and you're more flexible once you understood
the underlying philosophy. In other words it makes really fun. Of
course, R is rather complex and I'm sure that I missed some things.
3) R Console (R.app)
In that bundle you will find all commands to remote the standard R.app.
Both Console bundles are extensions to the R bundle, meaning they
make usage of commands, snippets, etc. defined in the R bundle.
For each bundle I tried to write an help file. In beforehand sorry
for my terrible English, it's fast written and not yet proof-read.
The best thing to start is to read the help file and have a look at
the bundle menus.
!!VERY IMPORTANT!!
Before installing these bundles please backup the 'old' R bundle
(maybe, what I did is a flop ;) and delete the bundles R and - if it
exists - Rdaemon; quit TM; start TM; and then install the new bundles.
All these bundles have beta status. Thus I would be very appreciated
if someone could test them and give me any feedback regarding:
-what doesn't work
-what is illogical or unclear
-bad arrangement or key binding
-what's missing/wrong/unclear in the help file
...
plus what Mac OSX version, ppc or intel, which R version
If Allan is back I will upload the new R bundle to the repository and
both Console bundles to the test repository.
Cheers,
Hans
>
Hi there,
first post: wanna say hello and excuse (in advance) for beeing nOOby :0)
1.) bug - self-closing tags:
^ + < …for opening/closing tags this key-command does work fine, but
not for self-closing tags like <img /> or <hr />
space and slash is missing, it just closes the tag normally.
Is this a bug?
2.) I have found some tutorial, but w'd like to know if there's
somebody out with a link-ressource to share with me
(mostly Im interested in HTML/CSS to start with)
ThnXS
Dennis
Hello,
I'm new to TextMate so please forgive my ignorance. My question is: is
it possible to, or would it be possible to make, TextMate work well
with xdvi? Even though part of the world is trending toward using PDF
to display on the Mac, e.g. with Skim, there are still some advantages
to xdvi, in particular that the display and updating are very fast,
and it is much faster to latex a long document than to pdflatex it.
There are two things that would be needed.
1. When using latex as the engine, it seems that TextMate also invokes
dvips to create a PDF file. This should be turned off. (Perhaps there
is already an option for this?) Also, one would need to invoke latex
with src-specials turned on (latex -src-specials).
2. One would like to be able to synchronize from TextMate to xdvi.
This can be done with a command like:
xdvi -sourceposition lineno$texfile $dvifile
for example
xdvi -sourceposition 50myfile.tex mymasterfile.dvi
Syncing from xdvi to TextMate is already relatively easy.
I'm guessing all this may be easy for those who are familiar with
bundle editing (not me!), or even perhaps has been done already?
Thanks
Geoff Vallis
A while ago i submitted to the list this idea of using
jsMath to get an instant preview of LaTeX formulas in
the form of html tooltips. I'm not a programmer so i
won't be able to do it myself, but i reckon there is
some interest on such a tool, and it looks easily
doable if you know TM's syntax (which, sadly, i
don't).
http://www.math.union.edu/~dpvc/jsmath/
Best wishes,
baptiste
>
> > De: Allan Odgaard <throw-away-2(a)macromates.com>
> À: TextMate users <textmate(a)lists.macromates.com>
> Date: Tue, 11 Dec 2007 07:42:38 +0100
> Objet: Re: [TxMt] LaTeX equation tooltip preview
>
> On 9 Dec 2007, at 12:17, baptiste auguie wrote:
>
> > I've always been slightly jealous of emacs' auctex
> > mode with previewing of images and equations in a
> TeX
> > document. I understand the issue of dealing with
> fancy
> > fonts in a source editor, but would it be possible
> to
> > create a preview of parts of the code in the form
> of
> > tooltips?
>
> The Dialog 2, presently in the WIP branch at the
> repository, allows
> you to show HTML tool tips, so this would make it
> possible.
>
> And the idea indeed sounds very good.
>
>
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
I love the feature that automatically inserts the opening square
bracket.
However one case that it always seems to get wrong:
if(!aString isEqualToString:anotherString
When typing the closing bracket, the opening brackte is inserted
before the '!' instead of behind.
Gerd
Hi,
When generating log messages in my Cocoa projects I make heavy use of
TM's ability to convert output in the format 'SourceFile.m:lineNo:' to
links.
This does not work for grouped files if the 'Path Type' in Xcode is
set to 'Relative to Enclosing Group'. Changing it to 'Relative to
Project' fixes it.
Not sure if that is new with Xcode 3 or if it can be fixed
(Xcode.tmbundle/Support/bin/run_xcode_target.rb, path_for_basename()),
my ruby/.xcodeproj fu is not up to speed...
Gerd
Hi
I've made a drag command for dragging css files into other css files.
The current behavior when you drag a css file onto another is to paste
the content of the dragged css into the other css.
This command will rather insert an @import url("relative/path/to/css");
The import rule for css is specified here: http://www.w3.org/TR/REC-CSS2/cascade.html#at-import
ph
Hi all,
I've just installed the Git bundle (on Tiger), and I keep getting
those error messages :
Git log =>
/tmp/temp_textmate.U9qQdq:4: command not found: git log _notes.markdown
Gits status =>
sh: line 2: git: command not found /tmp/temp_textmate.j2NZhz:4:
command not found: git ls-files -o --exclude-per-directory=.gitignore
/tmp/temp_textmate.j2NZhz:4: command not found: git ls-files -m
--exclude-per-directory=.gitignore
Note: when I run those commands in the terminal, they work fine.
Alain
* I'm currently experimenting with TextMate as an alternative to xemacs and have encountered a problem in the python bundle.
* The problem is that PyMate is providing its own sitecustomize.py to hook various functions.
* This conflicts with our company's production/testing platforms. They also uses sitecustomize to make site-specific customizations (such as hooking the logging module handlers etc).
* I'm sure our approach isn't unusual. Unfortunately TextMate's usage of it for *application* specific reasons prevents our own site customisations from loading.
* Is a possible alternative for TextMate to use a launcher script approach? eg something that
- hooks the desired functions as currently
- hacks sys.argv and execfiles into the target file, such as
# remove us from the argument list, set __file__ to be the script to run then exec it
del sys.argv[0]
__file__ = sys.argv[0]
execfile(sys.argv[0])
This should have the same effect and ensure that a platforms sitecustomize is loaded. I'm happy to work on and submit a patch to the appropriate people if desired (not sure who that would be)
derek.
--
E-Mail sent with anti-spam site TrashMail.net!
Free disposable email addresses: http://www.trashmail.net/
Hi,
I use the Dvorak-Qwerty-Cmd keyboard layout and some key combinations don't
work as they should. More specifically, TextMate seems to be trying to
intercept the physical key information rather than the logical key as
defined by the layout. Let me try to clarify that with some examples.
- If I press ^P, instead of moving up one line TextMate executes a shell
command based on the current word, which is bound to ^R. That is because the
letter P of the Dvorak layout is in the place of the R of the usual layout;
- Likewise, if I press ^' TextMate reformats the paragraph, because
reformatting the paragraph is ^Q and ' is in the place of the Q of the usual
layout.
If there's no TextMate action associated with the physical key, the action
associated with the LOGICAL key gets executed instead, for instance:
- ^F, ^B and ^B work normally to go forward, back and line down with the
caret, because F, B and N are respectively Y, N and L in the usual layout,
and there aren't actions associated to ^Y, ^N an ^L;
- ^R and ^Q do what they're supposed to do (execute shell command and
reformat paragraph), as physically I'm pressing ^O and ^X, which again have
no actions associated to them, so the logical keys are considered. As a
result, I have pairs of key combinations that do the exact same thing, e.g.
^P and ^R, ^' and ^Q (and no key combination moves the caret one line up :(
).
The actions that involve the Cmd key aren't affected, because by definition
when you press Cmd on the Dvorak-Qwerty-Cmd layout the remaining keys are
supposed to behave just live in the usual layout (this is meant to make it
easier to use keyboard shortcuts such as Cmd-C and Cmd-V).
The real problem isn't much the fact that some keys behave like different
keys, but the fact that it prevents me from using some shortcuts at all, for
instance there's no longer a shortcut tho move the caret up one like, like I
said above.
So if anyone has anything to say about that, I'd appreciate.
-Alexandre.
I'm just updating the Perl language definition to support the new
keywords and operators in 5.10. I notice that keyword.control.perl
includes 'switch' and 'case' (which aren't Perl keywords; it's given/
when in 5.10) and also 'select' which is a function rather than a
control keyword.
Is there a compelling reason not to remove switch, case and move
select to the functions list?
Also, because I'm a TM language definition newbie, does anyone have
any tips about how to handle the // (defined or) operator? In some
contexts // is an empty regex; in others it's an operator
my @x = split //, $line; # regex, common idiom to chop into chars
my $x = $y // $z; # operator, equiv: my $x = defined $y ? $y : $z
--
Andy Armstrong, Hexten
My absence through January was caused by a longer trip to the southern
part of Africa (South Africa, Botswana, Zimbabwe, and a short day-trip
to Zambia).
I’ll be going through mailing list letters chronologically the next
couple of days and hopefully reply to most unanswered questions etc.
In a Ruby file, when I press command-R to run, about half the time I get an
error indicating that we tried to compile as an Xcode project and we are not
an Xcode project. Why is TextMate doing this and how can I prevent it? The
language thingy at the bottom says it's Ruby so clearly someone in there
knows it is; it just doesn't seem to be the same guy who responds to
command-R. Thx. m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
I'm having problems with the standard subversion integration in
leopard. When I try to do a log command in textmate I get the
following in the popup window:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rexml/source.rb:226:in `pos': Illegal seek (Errno::ESPIPE) from /
System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rexml/source.rb:226:in `current_line' from /System/Library/Frameworks/
Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parseexception.rb:
44:in `line' from /System/Library/Frameworks/Ruby.framework/Versions/
1.8/usr/lib/ruby/1.8/rexml/parseexception.rb:28:in `to_s' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/escape.rb:
30:in `htmlize' from /Applications/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/svn_helper.rb:90:in
`handle_default_exceptions' from /Applications/TextMate.app/Contents/
SharedSupport/Bundles/Subversion.tmbundle/Support/format_log_xml.rb:171
REXML::ParseException
I don't have any custom bundles loaded and I haven't done anything to
the stock leopard ruby installation. Leopard was a scratch install on
this machine too, so there shouldn't be any cruft left laying around
from Tiger.
Any ideas?
Matt
Has anyone else gotten this effect?
I post to my blog with the TextMate blogging bundle (thanks, Brad!),
and if I go to re-edit a post, the timestamp changes. As far as I can
tell, that's related to me getting back a timestamp in the TextMate
document that says something like:
Date: 2008-01-19 16:32:44 -0500
...which is roughly 9:30pm EST, according to my blog. If I re-publish
that post from TextMate with that datestamp in there, it suddenly then
becomes:
Date: 2008-01-19 11:32:44 -0500
...which shows up as roughtly 4:30pm. If I edit a post multiple times,
it keeps subtracting 5 hours, to the point that I can even end up at
the point of it having been posted the previous day.
Do I have something set up wrong here, or is there a workaround?
Thanks for any help!
Cheers,
MB
Hi
I am new to the world of textmate and java programming. I have
searched the Textmate blog and Java Forum for answers but nothing.
The program compiles and runs in the terminal by using javac Bert.java
and java Bert
But as soon as I want to use Textmate to compile and run the error is
returned:
Exception in thread "main" java.lang.NumberFormatException: null
Must be textmate problem. Could someone help me?
The short program that is want to compile and run is as follows:
import java.io.*;
public class Bert
{
public static void main(String[] args) throws IOException
{
//Declaring Variables
int price, downpayment, tradeIn, months, loanAmt;
double annualInterest, payment, interest;
String custName, inputPrice, inputDownPayment, inputTradeIn,
inputMonths, inputAnnualInterest;
BufferedReader dataIn = new BufferedReader(new
InputStreamReader(System.in));
//Get Input from User
System.out.println("What is your name? ");
custName = dataIn.readLine();
System.out.print("What is the price of the car? ");
inputPrice = dataIn.readLine();
System.out.print("What is the downpayment? ");
inputDownPayment = dataIn.readLine();
System.out.print("What is the trade-in value? ");
inputTradeIn = dataIn.readLine();
System.out.print("For how many months is the loan? ");
inputMonths = dataIn.readLine();
System.out.print("What is the decimal interest rate? ");
inputAnnualInterest = dataIn.readLine();
//Conversions
price = Integer.parseInt(inputPrice);
downpayment = Integer.parseInt(inputDownPayment);
tradeIn = Integer.parseInt(inputTradeIn);
months = Integer.parseInt(inputMonths);
annualInterest = Double.parseDouble(inputAnnualInterest);
//Calculations
interest = annualInterest / 12;
loanAmt = price - downpayment - tradeIn;
payment = loanAmt / ((1 / interest) - ( 1 / (interest * Math.pow(1 +
interest, months))));
//Output
System.out.print("The monthly payment for " + custName + " is $");
System.out.println(payment);
}
}
Hi
I've been browsing the list archive but cannot reaaly find an answer to
my problem. It has to do either with the blog setup
(com.macromates.textmate.blogging.text) or with teh communication with
my wordpress blog.
For some non understandable reason I destoryed my blog setup and now I
am f*cked. When enterning in the com.macromates.textmate.blogging.text
file the items $blgname $blog-url, I receive a "Received excepttion.
Wrong content-type: No blogs are availble".Wwhich is of course utterly
untrue :/
So how to fix this?
Regards, Judith