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?