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
Hi,
maybe someone is able to give me an hint (esp. regexp and grammar
experts ;)
I'm writing a Language and I want to include TM's folding feature.
foldingStartMarker :=
each line which begins with '>' AND the next line does not begin with
'>'
foldingStopMarker :=
each line which does not begin with '>' AND the next line begins with
'>'
Fine.
I tried:
foldingStartMarker = '^>[^\n]*$(?!\n>)';
foldingStopMarker = '^[^>][^\n]*$(?=\n>)';
but it does not work. If I test these regexps in Find&Replace Dialog
it works.
What am I doing wrong? Or is this not possible?
Here's an example how it should look like:
v > foo
^ blabal
> foofoo
v > foofoofoo
blablabla
blablabla
blablabla
blablabla
^ blablabla
v > bla
^ foo
>
whereby 'v' := foldingStartMarker ; '^' := foldingStopMarker
Many thanks in advance,
--Hans
Dear all,
please forgive me if I'm totally wrong, but I didn't find some in the
net.
If I set some self-defined shell variables and TM installs a new
revision (cutting-edge) it seems to me that all my self-defined shell
variables are gone. Is this correct? If yes, is there a way to avoid it?
Many thanks,
--Hans
Hi all,
since i recently upgraded to Leopard, I experience heavy slowdown of
TextMate, when I edit LaTeX files. Note that this occurs not always,
and doesn't seem to depend on the size of the file. Indeed, if I just
let TextMate open and continue editing after some time, this
inexplicable slowdown has disappeared.
Does anyone else has experienced slowdown of TextMate in conjuction
with Leopard+LaTeX ?
Yeah, I'm on a roll today with annoying questions :)
In Go To File, which I love, is there a way to have the pattern match
against the directory name and the file name?
For instance, I have a lot of files that all have the same name (eg
view.jsp), but they all live in different directories.
Scrolling through 60 different view.jsp's is a bit of a pain, so I was
curious if there's a way to narrow down the file based on directory?
Thanks again :)
--
View this message in context: http://www.nabble.com/Is-there-a-way-to-search-against-directory-name-in-%2…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
I'm not sure if this is pure coincidence since I've upgraded Adium to the
newest version, but attached is a screenshot which displays an error when I
try to use the pastie command bundled into TextMate. It's definitely one of
my favorite features, so I'm curious if anyone has ran into this as well?
I'll down grade Adium before dealing with this issue.
http://catalyst.httpd.org/tmp/tm.png
Any ideas?
- sf
Hi all
I've been using the Objective-C bundle for about a year now for all my Cocoa
coding. It has a lot of nice features, but there are few shortcomings and I
was wondering if anyone is actively working on this.
A few things off the top of my head:
- No completion of new classes in leopard (eg. NSGradient, Core Animation
classes) or any syntax highlighting for new Objective-C 2.0 features.
- Cocoa classes are automatically highlighted (eg. declaring a variable as
NSRect will show "NSRect" highlighted). Other Apple classes like those in
CoreGraphics should also get the same treatment. Declaring a variable as a
CGRect won't show "CGRect" highlighted. Also help doesn't work for these
items.
- "Completion: Partial Method Signature" is really handy for inserting
delegate method signatures. It does however insert different spacing then
the "Interface/Class Method" snippet.
For example in an interface file:
Typing "-awakeFromN<tab>" will insert "-(void)awakeFromNib;"
Typing "m<tab>" will insert "- (id)method:(id)anArgument;" (notice the extra
space after the "-")
-
Hello,
I was wondering if anyone could point me in the right direction here. I
searched the list archives and have tried the following.
Opened up ~/Applications/TextMate.app/Contents/Info.plist and found this
entry:
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>rhtml</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>RHTML</string>
<key>CFBundleTypeName</key>
<string>HTML with embedded Ruby</string>
</dict>
Which I modified to be:
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>rhtml</string>
<string>erb</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>RHTML</string>
<key>CFBundleTypeName</key>
<string>HTML with embedded Ruby</string>
</dict>
I also later tried:
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>rhtml</string>
<string>html.erb</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>RHTML</string>
<key>CFBundleTypeName</key>
<string>HTML with embedded Ruby</string>
</dict>
Saved Info.plist, then Quit completely out of TextMate. Next, opened up an
existing rails project, but the 'index.html.erb' for example, still showed
the generic TextMate icon in the project drawer, not the tiny blue globe one
that 'rhtml' files use. (I really like the way it strikes the eye... what
can I say?)
Has anyone been able to get Rails 2.0's new 'html.erb', 'css.erb', etc.
files to show up in the drawer with teh sexy rhtml icon? =)
Cheers,
- Shanti
ps. this is probably completely unrelated, but I also went through Finder
and did the 'get info' -> 'change all' trick to open all 'html.erb' files in
TextMate, yet the icon in Finder remains the generic white OSX one, not
TextMate's. Figured that's an OS X thing but thought I'd mention it just in
case.
Hello, I am new here and new to textmate which I love. I am not a programmer,
and use textmate as an outliner and word processor. I know that text mate is
more geared towards coders, but it has the features I need and the level of
community support is unheard of for a word processor.
My primary use of textmate is with a nearly fully transparent background
coupled with fully opaque text (foreground) and fully opaque line
highlighting. This allows me to focus on my text while watching my soothing
desktop backgrounds behind my work, or looking at my research.
I was wondering if it was possible, and easy (for a non technical person
such as myself) to not only have line highlighting, but also have the
current paragraph highlighted as well. My hope is to be able to have yellow
text over solid red line highlight, and the rest of the paragraph
highlighted a slightly opaque green on blue for a sort of secondary post.
BTW, love the program, love that it has forums, love what it does for blog
markup.
1st post, I hope I haven't broken any rules. Thanks in advance for any help
that can be offered.
--
View this message in context: http://www.nabble.com/Highlight-line%2C-works%2C-Highlight-Paragraph--tp146…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I am using comments like
%
=
=
=
=
=
=
=
=
========================================================================
% Doing something...
%
=
=
=
=
=
=
=
=
========================================================================
(...)
%
=
=
=
=
=
=
=
=
========================================================================
% Doing another thing...
%
=
=
=
=
=
=
=
=
========================================================================
(...)
to structure the code inside my MATLAB files. For easier navigation I
would like to use these comments as folding markers and symbols (for
the "Go to symbol" command). I know that I have to play around with
the language grammar to do so, but alas my more than limited knowledge
of regular expressions has prevented me from succeeding. Maybe one of
the language grammar/regex experts here has a quick tip for me?
Thanks,
Carsten
Hi,
I have two bundles 'R' and 'R daemon'. R has the scope 'source.r' and
R daemon has the scope 'source.rd-console'.
In both bundles I have a macro which is bound to the key '(' which
actually do the same but using different ways. Fine.
If I am inside the R scope 'source.r' the correct macro is called
after pressing '('.
BUT if I am inside R daemon scope 'source.rd-console' the wrong macro
is called – meaning the macro of scope 'source.r' will be executed!
If I set the scope selector of the macro inside of the 'R' bundle to:
source.r -source.rd-console
then it works.
Well, to be honest, I don't see the point here why I have to exclude
a scope explicitly. Or is this a naming-of-scopes issue?
Thanks in advance,
--Hans
Hi Haris,
when I use the Show Label as Tool Tip command
on a non-existing label (say, on \eqref{ZZZ} when
no \label{ZZZ} exists), instead of the expected
Not Found message I get inserted into the file
undefined method `context' for nil:NilClass
so I guess you might add a check on the nillness
of context in your script.
If you find the time to work on it, maybe you
might also consider this small request (I see
that some infrastructure is already in place
in LaTeXUtils): a similar command to work
on citations, i.e. when invoked on a \cite,
the tooltip shows the corresponding bibitem,
possibly finding it into the .bbl file. I guess
the two things (for labels and citations)
could happily coexist in the same script.
Thank you for your work,
Piero
I'm trying to define a "smart" snippet for LaTeX sub/superscript.
What I would like to achieve is a snippet
(1) triggered by _ (or ^ for superscripts)
(2) curly braces are inserted only when there are least two
characters after _
Thus, if I type
_a, then I get _a
if I type
_ab then I get _{ab}
My current attempt is as follows:
_${1/(.{2,})|./(?1:{)/}$1${1/(.{2,})|./(?1:})/}$0
However, the above has a major shortcoming:
When I type _ as the second character after the first _, then the
caret is in the wrong place. Thus,
_a_
produces
-{a|_}
and the caret is between a and _ instead of being after the second _
Any suggestions?
Guido
--
Dr Guido Governatori
School of Information Technology and Electrical Engineering
The University of Queensland
Brisbane, Queensland, 4072, Australia
Phone: +61-(0)7-336 52907
Fax: +61-(0)7-336 54999
http://www.governatori.net/TextMate/http://www.governatori.net/TextMate/LaTeXExtension.tmbundle.ziphttp://www.defeasible.org
Hi all,
I've noticed that my subversion keywords don't get expanded/updated
when I commit from TextMate (they do when I commit from the command
line). Is there a workaround? (Sorry if I've missed something
obvious -- I did google.)
thanks,
wb
Howdy,
I've been a Textmate user for years now but moved to Aptana for a while but
now I'm back! :) Simply love Textmate.
A feature I used constantly in Aptana however, I cannot seem to find or
figure out a similar solution to in Textmate.
I'd like to be able to put my cursor on a word (in a JS file let's say) and
have that word highlighted _everywhere_ else in the document making it very
easy to find / see where it is. Aptana also put a little yellow marker in
one of it's gutters to show where the instances are vertically in the file
too. Makes it _very_ quick to find things. Is this possible?
Thank you very much!
--
---------------
.: Jamal :.
When I attempt to find within a project, grep searches within
build directories even though they are excluded from the project
in TextMate. Is there a way of restricting grep to the directories
that you have included within your project?
Thanks,
cf
Hello,
I have modified my keyboard (Dvorak, if that matters) to produce the
following combinations:
Option + C -> č
Shift+Option+C -> Č
Option+S -> š
Shift+Option+S -> Š
(and some more).
This all works wonderful everywhere, except that Shift+Option+S in
TextMate results in something like
cat: /tmp/TextMate-ScratchSnippet.txt: No such file or directory
The same actually happens when pressing that combination on US layout
(except that probably not many TextMate users ever need to type "Í" on
it) and no other key is problematic, only S.
My question is: where to turn that non-working feature off
(Shift+Option+S), so that I will be able to use that key combination
to get my character?
Thanks a lot,
Mojca
Hi all,
Is it possible to give PHP a shortcut in the window which associates
files with a language? Not entirely sure of the technical name of it,
but if you follow the key sequence ctrl+shift+alt+p the list of
available languages are:
1) perl
2) plain text
3) property list
4) python
Any chance of getting PHP on the list?
Thanks!
/sf
Hello All:
I am currently using Ultra Edit on a PC at work and Textmate on my MacBook
for when I am not in the office.
I want to convert to using only my MacBook however, the one progg that is
holding me back is Ultra Edit. I want to be able to convert all my project
files over to TextMates project files.
Please tell me there is a way I can accomplish this,
All the best,
Paul
--
View this message in context: http://www.nabble.com/Want-to-go-all-Mac-but.....-tp15167242p15167242.html
Sent from the textmate users mailing list archive at Nabble.com.
Following positive to enthusiastic reviews, I downloaded TextMate
last week for evaluation. While it is based on powerful concepts and
there are some impressive features in there, I am overall rather
disappointed by its practical usability - many details just don't
work as they should. However, I may be overlooking something, so I'd
appreciate corrections by more experienced users.
My two main file types are Python and LaTeX source code. LaTeX
support is rather nice, once it is properly configured. But I had
expected a more reasonable folding: what I want to fold is sections,
subsections, etc. not begin-end blocks.
Python support is really disappointing. Folding is completely useless
(blocks end at the first blank line), tabs are not handled in a
reasonable way (using hard tabs with an indentation other than 8 is
an invitation for disaster in Python code), leading to indentation
errors, and the error output in PyMate is insufficient (I want the
full traceback).
I looked a bit at the language definitions, and I have the impression
that reasonable folding for LaTeX and Python cannot be implemented in
TextMate, as the beginning and end of a block must be defined by a
regular expression matching a single line. Or did I overlook something?
Konrad.
Is there a way to create a new project from a list of files, such that
the files are automatically grouped by directory?
My problem is that I have a fairly large project directory tree, which I
normally edit by typing "mate ." on the command line. That does exactly
what I want, except that it includes every file in the tree, not just
source files. Assuming it's not a clean directory to start with I get a
lot of binary files. I've set up filters to eliminate obvious
non-source extensions such as *.o, *.so, etc. but I can't filter out the
names without extensions (such as the names of compiled executables).
Also, some of the intermediate files have the same extensions as the
source files. For instance, the Pyrex compiler produces *.c files to
pass to the C compiler. I may have real source *.c files in with the
*.pyx files, and I don't want to see the intermediate *.c files in the
project listing. (More to the point, I don't want "Find in Project..."
to bother searching them!)
Since this is all in SVN I can easily get a list of true source files
via the 'svn ls -R' command. But how do I get that list into TextMate?
I've tried 'mate `svn ls -R`', and it *almost* does what I want.
Unfortunately the files aren't grouped by directory. Even more
unfortunately, since the svn command lists directories under its control
as well as files , I get two copies of each file in the project list:
One at the top-level as explicitly given, and one at a sub-level when
its containing directory is explicitly given. So a directory tree like:
top/
foo.c
bar.c
subdir/
baz.c
qux.c
...ends up giving me a project containing "foo.c, bar.c, baz.c, qux.c"
at the top level, along with a "subdir" grouping which contains "baz.c"
and "qux.c". I want the project groupings to exactly mirror the
directory structure.
Ideas? I can easily write a script to post-process the output of 'svn
ls -R', as long as I know what sort of list will make TextMate happy.
I'm trying to avoid having to output a full-blown XML *.tmproj file, but
I'm afraid that's what it's going to come down to.
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>
Hi List,
I've encountered some issues with Ruby Regexp's and interpolation,
specifically Embedded code with #{}.
Ruby allows embedded code inside Regexp literals, but the Ruby Bundle
doesn't seem to recognise that fully. So I've changed the scope
selector for the “Embedded Code…” snippet to
(string.quoted.double.ruby|string.interpolated.ruby|
string.regexp.classic.ruby|string.regexp.mod-r.ruby) - string source
to make it behave like it should.
Unfortunately I don't know enough about TextMate Language Grammars to
correct the erroneous Syntax Highlighting (i assume in the
interpolated_ruby section.
Here's the current situation:
/#{code}/, %r{#{code}} - #{} gets correctly highlighted as
source.ruby.embedded.source
/[#{}]/ doesn't get highlighted (incorrectly)
There's also the /o option to regex which changes how #{} blocks are
interpolated, but that can probably be ignored.
Would be great if someone with more language-grammar-fu could correct
that.
—G
Attention all git users,
I have an alternative active Git.tmbundle repository set up with
active development going on. It's set up to synchronize with
subversion and will continue to get any updates published through
macromates website.
It features quite a few bug fixes that I've encountered while using
it, plus a few new features (one of them being edit conflicts with
file merge).
If you like features, and you like bleeding edge, come'n git it!
Project page:
http://gitorious.org/projects/git-tmbundle
git clone git://gitorious.org/git-tmbundle/mainline.git
Tim
One super-nifty feature of the blogging bundle is the drag-
and-drop image uploading, which sets you up with the
appropriate image code in your blog post. Often, however,
I have received the following error instead of a successful
upload:
Received exception:HTTP-Error: 412 Precondition Failed
It seems to happen with some images and not others.
Anyone seen this and have a solution?
Recently I got an eBook reader so I've been trying to scan in some of my
books instead of buying them again.
I've got the process down pretty well (thanks to a a OpticBook 3600) but I'm
having trouble doing some fine editing.
As you can imagine, the text can get pretty big so I need automated
processes to make this efficient.
I've been using text mate do do a lot of this - unwrapping text and such,
but I need to remove the page numbers/titles.
So, with this text:
Ser Waymar Royce glanced at the sky with disinterest. "It does that every
day
about this time. Are you unmanned by the dark, Gared?"
Will could see the tightness around Gared's mouth, the barely sup
2 GEORGE R.R. MARTIN
pressed anger in his eyes under the thick black hood of his cloak. Gared had
spent forty years in the Night's Watch, man and boy, and he was not
accustomed
to being made light of. Yet it was more than that. Under the wounded pride,
Will could sense something else in the older man. Yonervous tension that
came perilous close to fear.
---
I need to figure out a way to remove the page numbers and the break that
will be a number then the author/title. And then I'd need to be able to
reflow it like the rest of the text without a big space there.
Any help would be greatly appreciated.
(It stands to mention that I really can't write applescript or anything
along those lines. I need an "inside textmate" solution, or other program I
may have.)
--
View this message in context: http://www.nabble.com/Ebook-Editing-tp15127738p15127738.html
Sent from the textmate users mailing list archive at Nabble.com.
I am trialling TextMate with a view to using it with R, but I am slightly
confused as to how I get it to work with R, and indeed the funcionality with
R.
I had niaively assumed that I would be able to just download an R bundle and
install it (like ESS with Emacs), but R isn't listed as a bundle in
TextMate.
Further investigation led me to coming across discusion about Subversion
repository where I did find mention of what might be the R bundle. This led
me onto apparantly needing to download subversion software and I began to
feel I had maybe gone astray, as it started to seem very complicated. There
is also mention of other R options in this mailing list.
All told I'm afraid I need led by the hand a bit to help me sort this out as
to what I might need to do to get TexMate and R workng together.
Many thanks,
Graham
(Reposted as I accidentally responded to an existing thread)
It seems to me that the RSpec bundle's 'it' snippet is in need of some
love. By default, a newly inserted spec passes. This seems odd as it
is misleading. It also makes it harder find what specs still need to
be completed if you return to an RSpec module after a break.
I propose that the 'it' snippet is changed to the following:
it "${0:should ${1:description}}" ${3:do
${2:pending("Needs to be written")}
end}
This tweak simply adds a 'pending' statement as the body of a newly
created spec. When run, the tester will be alerted to an unfinished
test.
Thoughts?
Thanks!
Matt Darby, M.S.
IT Manager / Lead Web Developer
Dynamix Engineering Ltd.
1108 City Park Ave.
Columbus, OH 43206
Cell: (614) 403-5289
www.dynamix-ltd.com
hello
I try to understand how work this file but I don't know python
if texCommand == 'latexmk':
writeLatexmkRc(engine,constructEngineOptions(tsDirs,tmPrefs))
if engine == 'latex':
texCommand = 'latexmk.pl -pdfps -f -r /tmp/latexmkrc '
else:
texCommand = 'latexmk.pl -pdf -f -r /tmp/latexmkrc '
If I understand, in ayy case, you use latexmk ?
is it possible to use pdflatex directly without latexmk ?
Regards Alain
hello
I've a file and I can compile this file with texshop
A lot of teachers can compile it on Linux and XP
I can compile it with the TERMINAL`
pdflatex --shell-escape /Users/ego/Boulot/SANDBOX/trytablor.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
\write18 enabled.
%&-line parsing enabled.
entering extended mode
.....
This is MetaPost, Version 0.993 (Web2C 7.5.6)
(XCasmpTV.mp (/Users/ego/Library/texmf/metapost/tableauVariation.mp)
[0] )
1 output file written: XCasmpTV.0
Transcript written on XCasmpTV.log.
[MP to PDF] (./XCasmpTV.0) [1{/usr/local/texlive/2007/texmf-var/
fonts/map/pdf
tex/updmap/pdftex.map}] (./trytablor.aux) ){/usr/local/texlive/2007/
texmf-dist/
fonts/enc/dvips/base/8r.enc}</usr/local/texlive/2007/texmf-dist/fonts/
type1/pub
lic/fourier/fourier-ms.pfb></usr/local/texlive/2007/texmf-dist/fonts/
type1/adob
e/utopia/putb8a.pfb></usr/local/texlive/2007/texmf-dist/fonts/type1/
adobe/utopi
a/putbi8a.pfb></usr/local/texlive/2007/texmf-dist/fonts/type1/adobe/
utopia/putr
8a.pfb></usr/local/texlive/2007/texmf-dist/fonts/type1/adobe/utopia/
putri8a.pfb
>
Output written on trytablor.pdf (1 page, 33559 bytes).
Transcript written on trytablor.log.
but with textmate
This is MetaPost, Version 0.993 (Web2C 7.5.6)
{/usr/local/texlive/2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
!pdfTeX error: pdflatex (file /usr/local/texlive/2007/texmf-var/fonts/
map/pdfte
x/updmap/pdftex.map): fflush() failed
==> Fatal error occurred, no output PDF file produced!
I would like to be sure that the problem is the script.
My question : Is it possible to use the old script or a new script
for pdflatex
to make a test ?
Alain
Regards
The file : tablor is on CTAN you need to install giac_osx
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
the file use giac and metapost
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx,tablor}
\usepackage[upright]{fourier}
\DeclareGraphicsRule{*}{mps}{*}{}
\begin{document}
\begin{TV}
TV([-5,7],[],"f","x",x^2,0,\tv)
\end{TV}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Hello everyone,
I have just updated my Rails to 2.0.2 but now when I edit a html.erb file,
TextMate doesn't show any syntax highlighting: all the text is white. Is it
possible to add syntax highlighting ???
Thank you and have a good 1!
SIG
Hi list,
When I opened a existing file, then do File>Save as, with a new file
name, and the original file will disappear from the Drawer! I can
verify the file is still in system, but the drawer is out of sync
until I reopen TextMate(or, I have to add "existing file" back into
the drawer manually).
Has anyone seen this? This is repeatable and getting very annoying...
please help.
-Zemian
Hello
I would like to know if it's possible to use the old script to typeset
and view.
I understand a little the old one but with python it's difficult to me
to make modification.
I have a file .tex that use metafont and giac. I can compile this file
with texshop and pdflatex or latex.
With textmate I can compile it only with LaTeX, with pdflatex I have a
strange error fflush ().
I would like to know if the new command can produce this error
Thanks
Regards
Alain Matthes
I'm trying to draw some plots using the tikz
package. The coordinates are computed automatically
via gnuplot. I set the Latex bundle preferences to
use the --shell-escape option as required.
Indeed, when I typeset using CMD R, the graph is drawn perfectly.
But when I use Latex Watch, the graph is not drawn.
What might be the reason? Paths as usual?
Thanks for help,
Piero
I'm sure that this is probably a stupid user error, but one of the few
things which bothers me about TextMate is that it seems to insist on
padding lines with blanks when I mouse click past the end of the line.
This makes it hard to do things like generating clean patches with diff.
Is there a hidden setting somewhere in TextMate so that clicking to
the right of existing text will select an insert point at the end of
the existing line, rather than extending the line with blanks?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
hello all,
i do a lot of work with python and gtk. the builder file is written as
a .glade file, which is xml.
Is there a way that when i edit a .glade file in textmate, i can have
textmate treat the file as if it is an .xml file?
thanks,
shawn
great editor you guys have here by the way. much worth the coin.
A quick query...
When working in Markdown, the language grammar only seems to pick up
headings if they have a blank line (or another heading) above them. So
for instance, this:
# Heading 1
## Heading 2
some text here
## Heading 3
some text here
... is fine, and all headings are recognised as such and coloured
correctly. However, I use { and } in my Markdown documents to enable
folding, and this:
# Heading 1
## Heading 2 {
some text here
}
## Heading 3 {
some text here
}
... would make Heading 3 not be picked up as a heading, even though
the Markdown script will pick it up as such and convert to HTML
properly.
Is it possible to change the language grammar so that the headings
with no blank line above are picked up? At the moment I have to leave
a blank line between all my folded text and I'd like not to have to.
I've had a go at this but my regex-fu is not strong and I ended up
breaking all the highlighting...
Many thanks,
Nigel
Hello
I would like to know exactly when I run pdflatex, if the script
used by TM is the same that the script used by TeXShop because
I have an error with TM (see below) and I don't have an error with
TexShop
Regards Alain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(/usr/local/texlive/2007/texmf-dist/tex/context/base/supp-pdf.tex
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count92
\scratchdimen=\dimen105
\scratchbox=\box27
\nofMPsegments=\count93
\nofMParguments=\count94
\MPscratchCnt=\count95
\MPscratchDim=\dimen106
\MPnumerator=\count96
\everyMPtoPDFconversion=\toks17
)
\openout3 = `XCasTV.out'.
system(giac <XCasTV.in )...executed.
system(mpost XCasmpTV)...executed.
File: XCasmpTV.0 Graphic file (type mps)
[MP to PDF] (./XCasmpTV.0) [1
{/usr/local/texlive/2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
!pdfTeX error: pdflatex (file /usr/local/texlive/2007/texmf-var/fonts/
map/pdfte
x/updmap/pdftex.map): fflush() failed
==> Fatal error occurred, no output PDF file produced!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Thanks Paul,
I have check this issue with your suggestion and found the require
'rubygem' line was there. I am suspicious that it may be due to the
environment. I am using Locomotive2 on a Macintosh. I am now looking
into that as a possible issue. But thanks for your reply. It was
something I had thought about as well.
Hi all,
I'm having issues with the Paste Selection Online command. Seems the
culprit is a missing folder in /var/folders. Has anyone ever
encountered something similar? Should I just manually create this
folder?
The feature is completely hosed until I can figure out how it broke
and what to do to resolve it.
Thanks for the help,
- sf
Hello
When I compile a file with pdflatex and texshop, I get a pdf file
but when I use TextMate I have this error :
{/usr/local/texlive/2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map
!pdfTeX error: pdflatex (file /usr/local/texlive/2007/texmf-var/fonts/
map/pdfte
x/updmap/pdftex.map): fflush() failed
I have some difficulties to understand that :
Perhaps some different options when I use TexShop ?
An idea ??
Regards
Alain
Trying to see what changes I have in my Bundles with respect to the
official repository, I have issue the commands in
> http://wiki.macromates.com/Bundles/HowToContribute
> Asunto: Re: [TxMt] Commit bit on the Perl Bundle?
> Responder a: TextMate users <textmate(a)lists.macromates.com>
>
> On 22 Jan 2008, at 00:00, Luke Daley wrote:
>>> What's the situation with getting a commit bit for the Bundles repo?
>>
>> http://wiki.macromates.com/Bundles/HowToContribute
>
>
> Is that the page you meant? I can't see any mention of getting commit.
>
> --
> Andy Armstrong, Hexten
(On the way. That page has a errata in
it tries to change to a dir that doesn't exist)
But I can't get any thing because svn always tells me the same weird
message:
% cd ~/Library/Application\ Support/TextMate/Bundles
% l
total 0
drwxr-xr-x@ 7 juan staff 238B Mar 28 10:35:45 2007 C.tmbundle/
drwxr-xr-x@ 5 juan staff 170B May 7 10:32:34 2007 HTML.tmbundle/
drwxr-xr-x@ 8 juan staff 272B Jul 30 00:09:15 2007 JUAN.tmbundle/
drwxr-xr-x@ 7 juan staff 238B Feb 25 18:12:03 2007 LaTeX.tmbundle/
drwxr-xr-x@ 4 juan staff 136B Feb 8 10:16:01 2007 Man
Pages.tmbundle/
drwxr-xr-x@ 5 juan staff 170B Feb 7 02:07:55 2007 Perl.tmbundle/
drwxr-xr-x@ 5 juan staff 170B Feb 12 15:25:36 2007 Ruby.tmbundle/
drwxr-xr-x@ 5 juan staff 170B Feb 12 11:59:41 2007 Source.tmbundle/
drwxr-xr-x@ 4 juan staff 136B Apr 7 23:36:01 2007 TODO.tmbundle/
drwxr-xr-x 8 juan staff 272B Aug 25 02:36:13 2006 Tcl.tmbundle/
drwxr-xr-x@ 6 juan staff 204B Feb 20 23:50:11 2007 Text.tmbundle/
drwxr-xr-x@ 4 juan staff 136B Mar 16 23:02:15 2007
TextMate.tmbundle/
% svn st http://macromates.com/svn/Bundles/trunk/Bundles/Text.tmbundle
svn: warning: 'http://macromates.com/svn/Bundles/trunk/Bundles/Text.tmbundle'
is not a working copy
is not a working copy. I am not used to use cvs. I wish TextMate had
a gui interface for this rather important process: to know the local
changes with respect the original/current official bundles.
What am I doing bad?
Thanks.
Using Ruby-On-Rails I have been able to use parseexcel with little
trouble. Just today I started to use a script that was working and it
now reports "MissingSourceFile: no such file to load — parseexcel'
I installed parseexcel on my Mac. Have used it a few times in the past
and now can not get the scripts to find it. I am hoping someone can
direct me to where to begin my search, fix, what ever.. I need this to
work.
Thanks in advance
I see it in the Actionscript bundle - but for the life of me I can't
get it to work... any help would be MOST appreciated
Saul Rosenbaum
Visual Chutzpah
---------------------------------
Strengthening Brands Through Illustrated Images And Interactive Design
VISIT US ON THE WEB
web: http://www.visualchutzpah.com
email: lists(a)visualchutzpah.com
illos: http://www.saulrosenbaum.com
blog: http://www.saulrosenbaum.com/blog
---------------------------------
Hi. I happened to notice that the Perl "Read File" snippet was using
bareword filehandles and doing a lot more work than it has to. The following
uses lexical filehandles, 3-argument open (to prevent anything in the filename
from being misinterpreted as an open sigil) and a do block to simplify the
assignment.
Finally, a third, blank position is provided so you can tab straight to the
next line instead of the end of the block.
my \$${1:var} = do { local \$/; open my \$fh, "<", "${2:file}"; <\$fh>; };
$3
PS It's worth mentioning that this is backwards compatible to 5.6 which
should be more than plenty these days.
--
If at first you don't succeed--you fail.
-- "Portal" demo
Schwern and I have been chatting on IRC about Perl support in
TextMate. We're both fairly prolific Perl developers and would like to
be able to maintain the Perl Bundle on behalf of the Perl community.
What's the situation with getting a commit bit for the Bundles repo?
--
Andy Armstrong, Hexten
I've written up a simple snippet to run the current file as a Perl test. To
ensure compatibility it has no bells or whistles, just runs the file through
Test::Harness and displays the output. Future versions might snaz it up but
it would be nice to have something basic at least.
I used Ctrl-Apple-t for the command but it's fine to change that to whatever
the normal convention is for "run a test".
I've attached the .tmbundle file. Sorry if this isn't the proper way to
submit a snippet.
--
Whip me, beat me, make my code compatible with VMS!
> Dear Sir, I use a keyboard mapping to write spanish accents in latex.
>
> This is a development made for Juan L. Verona, http://
> www.unirioja.es/cu/jvarona/TeXkeylayout.html
>
> This help me to share latex files without the use of inputenc package.
>
> The code for this keymap is joined in a file down this mail.
>
> I have tried with several applications in Mac OS X and works fine.
> For example, this sentence with Mail.app,
>
> -- "El avi\'on sol\'{\i}a volar bajo el a\~no pasado" (El avión
> solía volar bajo el año pasado)--
>
> Nevertheless, in TexMate the same sentence will be like this
>
> "El avinn sol\'{\i}a volar bajo el a\~no pasado"
>
> Accent followed by a vocal different of "i" doesn't do the
> secuence "\'o" for example.
>
> It seems something particular of the TexMate application. Anyone
> know why this is happening?
>
> Thanks you very much for your help
>
> Pablo L.

Is there an official version of the footnotes plugin which works with
rails 2.0.2?
The latest version of the footnotes plugin doesn't seem to work at all
with Rails 2.0.x. There was a 3rd party patch published at
http://pastie.caboo.se/125311 but this no longer seems to apply
cleanly.
There's also a footnotes-edge plugin mentioned on teh rails wiki
http://wiki.rubyonrails.org/rails/pages/Textmate+Footnotes+Plugin
This seems to have part of the caboo.se patch applied, I had to
manually change the
vendor/plugins/footnotes/templates/rescues/template_error.rhtml file
based on the patch, and things seem to be working for me now.
But I was wondering what the official status is.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
I would like to compile a *plain* tex document which includes some postscript
(.eps) figures. The problem is that if I choose tex (or etex) as the engine
the dvi file is correctly generated, but its not automatically converted to
pdf, nor the dvi file is sent by the viewer (Skim). This is no problem with
*latex* files containing eps figures, since in that case the command
"Typeset & View (PDF)" converts the .dvi file to .ps (by running dvips) and
the resulting .ps file to .pdf (with ps2pdf), and opens the .pdf file. Is
there an easy way to get TextMate to automatically run dvips and ps2pdf in
succession when the engine is tex or etex, instead of latex?
Cheers,
Artemio
--
View this message in context: http://www.nabble.com/compiling-*plain*-tex-documents-with-postscript-figur…
Sent from the textmate users mailing list archive at Nabble.com.
Here's a little hack that TextMate-using Perl fans may find useful:
http://use.perl.org/~AndyArmstrong/journal/35429
It makes TextMate follow the current Perl debugger file and line so
you can easily see where you are in a program you're debugging by
flipping to TextMate.
--
Andy Armstrong, Hexten
Hello Mathew,
You can find the command by opening your Bundle Editor (Bundles>Bundle
Editor>Show Bundle Editor or by ⌃⌥⌘B)
and navigate to SQL>Database Browser there just change the command
from:
db_browser.rb
to:
db_browser.rb --rows 50
This should work.
Regards,
Alex
On Jan 19, 2008, at 12:12 AM, mathew wrote:
> thank you alex,
> but i don't actually understand how to do that,
> i'm not familiar with how the bundles work
>
> can you please explain to me what you mean?
>
> thank you for your help
>
> mathew
>
> On 19/01/2008, at 2:32 AM, Alex Podaras wrote:
>
>> Hello Mathew,
>>
>> I haven' t tried the following but it should work,
>> try changing the command for Database Browser to something like:
>>
>> db_browser.rb --rows 50
>>
>> this will probably solve your problem.
>>
>> Regards,
>> Alex
>>
>> On Jan 18, 2008, at 3:55 PM, mathew wrote:
>>
>>> Hello,
>>>
>>> when i use the sql bundle to create a mysql view
>>> such as the following:
>>>
>>> CREATE VIEW cp_qry_offset AS
>>> select
>>> O.offset_id,
>>> O.account_id,
>>> O.calculation_id
>>> O.quantity,
>>> O.type,
>>>
>>> T.description as type_description
>>>
>>> from cp_offset O
>>>
>>> join cp_offset_type T
>>> on O.type = T.type_id
>>>
>>>
>>> for reasons unknown to me, but suspiciously related to the sql
>>> bundle's
>>> habit of returning 10 rows of a
>>> select at a time in the database browser,
>>> it seems the bundle is appending:
>>>
>>> limit 0,10
>>>
>>> to the view definition.
>>>
>>> which means i then have to edit the view with another
>>> tool to remove this limit before it will work
>>>
>>> do you know why that is happening?
>>>
>>> i'm guessing its related to this in db_browser.rb in the sql bundle,
>>> but i don't know how to change it
>>>
>>> if not query=~ /\bLIMIT\b/i and run_query =~ /\s*SELECT/i
>>> run_query << ' LIMIT %d OFFSET %d' % [@page_size, offset]
>>> @limited = false
>>> end
>>>
>>> can anyone help?
>>>
>>> thanks
>>> mathew
>>>
>>>
>>> ______________________________________________________________________
>>> For new threads USE THIS: textmate(a)lists.macromates.com
>>> (threading gets destroyed and the universe will collapse if you
>>> don't)
>>> http://lists.macromates.com/mailman/listinfo/textmate
>>
Hello,
when i use the sql bundle to create a mysql view
such as the following:
CREATE VIEW cp_qry_offset AS
select
O.offset_id,
O.account_id,
O.calculation_id
O.quantity,
O.type,
T.description as type_description
from cp_offset O
join cp_offset_type T
on O.type = T.type_id
for reasons unknown to me, but suspiciously related to the sql bundle's
habit of returning 10 rows of a
select at a time in the database browser,
it seems the bundle is appending:
limit 0,10
to the view definition.
which means i then have to edit the view with another
tool to remove this limit before it will work
do you know why that is happening?
i'm guessing its related to this in db_browser.rb in the sql bundle,
but i don't know how to change it
if not query=~ /\bLIMIT\b/i and run_query =~ /\s*SELECT/i
run_query << ' LIMIT %d OFFSET %d' % [@page_size, offset]
@limited = false
end
can anyone help?
thanks
mathew
Though I have been successful at getting the blogging bundle to work
in Tiger, when I try to run it in Leopard and fetch a post I get the
following error:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/timeout.rb:54:in `open': execution expired (Timeout::Error)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:564:in `connect'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/timeout.rb:56:in `timeout'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/timeout.rb:76:in `timeout'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:564:in `connect'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:557:in `do_start'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:546:in `start'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:1044:in `request'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/1.8/net/http.rb:1001:in `post2'
... 9 levels...
from /Library/Application Support/TextMate/Support/lib/ui.rb:17:in
`dialog'
from /Library/Application Support/TextMate/Support/lib/progress.rb:
42:in `call_with_progress'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:551:in `fetch'
from /tmp/temp_textmate.b0oDWV:3
has anyone been able to get the blogging bundle to work in Leopard?
My System:
OS X v. 10.5.1
iMac Intel Core Duo
ruby 1.8.6
wordpress 2.3
Any insight you can provide will be greatly appreciated.
Tony
Hi,
if one invokes a tmcommand which is displaying something and
afterwards one invokes an other tmcommand which displays an inline
menu, the tooltip is still visible.
One should trigger that command which hides the tooltip if ANY key is
pressed. (Or?)
Here's a screenshot showing that:
Or is there a way to get rid of it?
Thanks,
Hans
I want to edit .muttrc, the Mutt MUA configuration file, with TextMate.
It's a simple plain text file, so no syntax highlighting, and that's a
big issue.
There's a specific bundle for UNIX configuration files?
Any suggestion?
Thank you very much
Corrado
is there a way to sync the project drawer with the current file? e.g. if i'm
viewing foo/bar/baz.html, then the project drawer would snap open with that
file selected if the folder hierarchy was collapsed. currently i can view
a file with all folders collapsed.
--
View this message in context: http://www.nabble.com/sync-project-drawer-with-current-file--tp14842687p148…
Sent from the textmate users mailing list archive at Nabble.com.
The attached patch fixes a couple of bugs (one of which could put the
system into an infinite loop under some circumstances), and adds some
documentation.
I hope someone can apply it to the repository, assuming it looks okay.
Robin
I am running Version 1.0.2 (v20) of Skim, Version 1.5.7 (1455) of
TextMate, Leopard (10.5.1). I could give you a file if you want, but
all you need to do is have two distinct .tex files with the exact same
name and in different directories on your computer. Have both of them
open in TextMate. Compile one and it will show up in Skim. Compile
the other and it will think that you're trying to update the first
file that you compiled because they have the same name.
Keith
Hi,
Just purchased TextMate and really like it. (I'm a long time BBedit
user.)
One thing I'm having difficulty with is navigating around the auto-
paired characters.
I understand the key shortcut to exit the pair and jump to a new line,
but sometimes that isn't what I want.
For example:
In HTML:
<img src="picture.jpg" width="20" height ="20">
When I'm don't typing the picture.jpg, I then need to jump past the
closing quote so that I can continue typing the rest of the tag.
There isn't an easy way that I can find, so I have to take my hands
off the keyboard and press the right arrow key. It seems really
inconvenient.
Is there some key combo that just jumps to outside the quote or
"closing auto-paired" character??
Thanks,
-N
Hi,
In the Fortran bundle, there doesn't appear to be any support for
comment lines beginning with an asterisk, only for comments beginning
with C or c. I have tried to add this in to the language but I am
quite unfamiliar with how to do this properly and am I not very
familiar with regular expressions. I tried adding the following in
the bundle editor (using comment.line.c.fortran as an example) but it
still does not recognize lines beginning in * as comments. Any help
would be appreciated.
{ name = 'comment.line.asterisk.fortran';
begin = '^[*]';
end = '$\n?';
beginCaptures = { 0 = { name =
'punctuation.definition.comment.fortran'; }; };
patterns = ( { match = '\\\s*\n'; } );
},
Thanks,
Stefan
Hi folks,
I have been experimenting Scala lang a bit, and it auto open the source in
PlainText mode with TM, which is fine for me at the moment. But the source
keep having RedDot underlines on many words that made it very hard to read!
How can I disable this?
Thanks,
Zemian
Especially when coding python, I would like TextMate to auto detect if
the current file is using space over tabs.
When using libs from different projects, it's tiresome to remember to
check and switch everytime you jump between files (editing in
different repos)
Instead of detecting this, I would relly like TM to remember my
selection,
Now, if I switch to Soft Tabs, jump back to my Tabbed file I need to
change every time (global setting)
any magic tricks!?
best
/d
I've been trying to use the TODO bundle with a very large project
containing a bunch of external/imported code which I don't control. In
this project, Show TODO Items... takes a veritable eternity to run
because of the volume of code it must scan. My project, however, is
set to filter out a significant amount of this within TextMate, but
these filters are being ignored by the bundle.
Upon investigation, it seems the issue is the core textmate.rb support
library whose ProjectFileFilter (used by each_text_file) reads the
TextMate prefs for its file/dir filters, rather than getting them from
the current project first. Indeed, there doesn't seem to be any
reference to the current project filters in the TM_* environment
variables or in textmate.rb.
It would be great to see this filters respected by some of these core
library commands where it seems they really should be taking effect.
So, I have noticed that when I have multiple files open each with the
same name (but in different directories) and I compile one and then
another, TextMate doesn't seem to be telling Skim that they are
actually different files. I never had this problem before. I posted
before about how one time I upgraded and I noticed that my compiled
PDF no longer came to focus upon compiling, and at the same upgrade
this problem started. I start compile one file and it opens the PDF,
but when I try to compile another file with the same name it doesn't
open the new PDF because it just thinks that it's the same PDF I
already have open. Are these two symptoms connected? Has anyone
found out why the change in functionality? And/or how to revert it?
I almost wish I could downgrade, but I tried the SVN thing that
someone said to try and it didn't work for me.
Keith
Hi guys,
I downloaded the jQuery bundle from the repository, however, I'm not happy
with a few things, and need to make local corrections.
One of those things is the default scope it gives it (source.js.jquery).
Since jQuery is available in every JS file I am editing, is there a way to
mass edit the entire bundles scope to be source.js ?
Every time I've manually gone through the bundle and edited the scope, every
time I restart, it's back to being source.js.jquery.
Is there a way to mass edit the bundle scope, AND have it stick?
Thanks guys,
--
View this message in context: http://www.nabble.com/Mass-editing-the-bundle-scope-tp14695883p14695883.html
Sent from the textmate users mailing list archive at Nabble.com.
I have a problem with LaTeX Watch. If I save a file with changes, it
endlessly reloads the .pdf until I quit Skim.
I set TM_LATEX_WATCH_DEBUG=1 but saw no messages in the console.
I agree; it would be best to always end up at the end
of the panel, so you can rerun if needed after making changes.
Thx for the great Latex Bundle and the Latex Watch, etc.,
M.P.
>
> Message: 4
> Date: Sun, 6 Jan 2008 17:43:52 +0000 (UTC)
> From: Chris <listservs(a)mac.com>
> Subject: [TxMt] Typeset and View issue
> To: textmate(a)lists.macromates.com
> Message-ID: <loom.20080106T174059-278(a)post.gmane.org>
> Content-Type: text/plain; charset=us-ascii
>
> When compiling LaTeX documents, the Typeset and
> View pane works properly when invoked from by running
> the compile command from the contextual menu, or by
> using the hotkey combination. However, when commands
> are run by clicking the buttons provided at the bottom
> of the T&V panel at the end of a completed command
> (e.g. re-run latex, run bibtex), the panel does not
> scroll down automagically to follow the most recent
> output. This makes it hard to follow.
Hi there,
I'm starting using textmate for a existing actionscript 2.0 project.
I compile with flash but want touse the validate sxntax feature of the
bundle.
I modified the yaml file but still I just get errors about classes not
found.
can anyone point me in the right direction how to specify the classpaths?
thanks
joerg
--
View this message in context: http://www.nabble.com/actionscript-classpath-tp14664374p14664374.html
Sent from the textmate users mailing list archive at Nabble.com.