> Is this what you mean?
>
> ^(ATOM|HETATM).*GLN
>
> This will match any line which starts with either 'ATOM' or 'HETATM',
> followed by any string of arbitrary characters, followed by the string
> 'GLN'.
This indeed works but I do think I need to be a bit more specific.
Lets look again at the line:
ATOM 14 CA GLN A 2 -27.648 -9.581 30.325 1.00 10.00
My goal is to have both the 'ATOM' string and the 'GLN' string colored
differently.
Using ^(ATOM|HETATM)\b I can color the ATOM part.
Using \bGLN\b I can color the GLN part.
The problem is that I only want the GLN part to be colored if the line
starts with ATOM. In your reply the complete part starting with ATOM
up to GLN gets colored.
Marc
Hey guys,
I'm a FlashDevelop user trying to get used to TextMate. I'm trying
Simon's code hinting.
Consider these examples. I'm triggering a completion with opt-esc at
the end of each line:
var ball:Sprite;
ball.graphics.be // completes to
beginFill(color:uint,alpha:Number=1.0);
ball.graphics.beginFill(1, // "No property found"
// It ought to complete to beginFill(1, alpha:Number=1.0);
ball.graphics.beginFill // inserts the following grep error into my
file:
grep: /Users/brenton/Library/Application Support/TextMate/Bundles/
ActionScript 3.tmbundle/support/data/completions.txt: No such file or
directory
();
I've heard great things about TextMate. I'm still yet to find an
editor that rivals FlashDevelop on Mac, but I'm hoping to change
that. =)
Thanks,
Brenton
I've noticed that in ActionScript 3.tmLanguage from Simon Gregory's
AS3 bundle, firstLineMatch is defined to be \bAS3\b. I don't know ANY
ActionScript class file that would match that pattern.
I believe this is the correct firstLineMatch for AS3:
package\s?([\w\.]*)\s?{
I have installed on my MAC TextMade not only bought a license yet, but
it had expired.
After he returned to UPDATE trial license for 30 days.
--
Thiago Avelino | www.avelino.us
icq: 2522219 - jabber: thiagoavelinoster(a)gmail.com
Sent from Sao Paulo, São Paulo, Brazil
Like it or not, I end up having to detract for writing code, and work
with css. I started using Tm for this the other day. Great auto
complete in the css markup, that truly is a time saver.
I see a lot of people use FireBug to open a css file left side,
browser on right, and start seeing in real time their changes. This
is probably the best way to do CSS dev IMO, not refreshing a page and
seeing it happen in real time is a real time saver.
I am not a huge fan of FireFox, or Firebug, and it is not a solid
solution, you can not save, there are some deficiencies.
Apple's Web Inspector tool gets me part there, but you can only edit
CSS in their fields, can not get raw access to a file.
I see in TM I can do a "Show Web Preview", which is pretty nice. It
is not pure real time. Why is this? Why can something like FireBug
do real time updates, but TM is more on a schedule? Not knocking it,
I am genuinely curious about the technical aspects of how this is
working.
The trouble is, I do not want to do inline CSS editing, I want to edit
the references CSS file. If I open a html file, which has a link to
a .css file, make change to the .css file, the .html file that is open
in the web preview is not updated. I have to toggle back to the .html
file, make a space or other change, and then I see the update.
Any other way to trigger the update from the linked file?
TM also only works on local files. If I am working on a remote file
over ssh/ftp all image links will be broken, so something as simple as
<img src="icons/blue.png" /> which would load in a browser just fine,
will be broken in the web preview.
Any suggestions to get out of the change/save/switch/reload cycle that
is going to give me carpal tunnel syndrome soon enough.
I am going to look at CSSEdit as some others have suggested, but I
really do not want to add another huge dev tool to the list of things
I need to learn, and I am already 110% happy with hose TM auto
completes CSS.
--
Scott * If you contact me off list replace talklists@ with scott@ *
Hi,
I've had a look for this in the archives but no mention of it, so
here's a very minor bug I just found:
Basically, TextMate will garble its caret bookmark file attribute
whenever column == 0 && line == 0. When saving any file with the caret
in this position, the resulting attribute always read like this:
com.macromates.caret:
0000 78 9C AB E6 52 00 82 E4 FC 9C D2 DC 3C 05 5B 05 x...R.......<.[.
0010 03 6B 30 3F 27 33 2F 15 C2 AB 05 00 8B 99 08 1D .k0?'3/.........
When saving the file with the caret in any other position, the
attribute saves normally:
com.macromates.caret: {
column = 0;
line = 1;
}
Tested & reproduced using TextMate 1.5.8 (build 1498) on an Intel Core
2 Duo MacBook running OS X 10.5.5 (9F33).
I hope that's enough information to identify the offending code --
keep up the good work, it's a great app!
-- Nick
Hi guys,
I'm a new TM user and I've noticed two very peculiar things about TM.
When you have a file that has only one line break (say a minimized css or js
file) and if you have Soft Wrap enabled, TM will freeze for 10 minutes at a
time! Totally weird. Even a TextEdit works perfectly with something like
that.
Another issue is slow regexp. Whenever I execute regexp on a file that's
about 5K lines, TM freezes for 20+ seconds. I've never seen such a slow
regexp. Am I doing something wrong or is there a preference/switch that I
could set so it doesn't do that?
Thanks for any help!
Dave
Hello, long-time Emacs user / new TextMate user here. I wanted to drop
by and say "hi", say how much I am loving TextMate so far (I thought
nothing would drag me away from Emacs), and discuss a couple of
features that I miss.
Firstly, I was on the whole a very happy user of Emacs, and an article
I wrote describing my Emacs environment for XHTML/CSS/Javascript/PHP
web development was even mentioned in the O'Reilly Emacs book. I'd
tried TextMate a couple of years ago and not liked it, but I tried it
again a few weeks ago and was blown away.
However there are two things that I miss. I have done a Google search
on the mailing list archives and couldn't see much discussion of
either of these, but please appreciate that the mailing list archive
is very large and I'm new here so I apologies in advance if I'm just
raking over things that have been discussed to death.
1. Good parenthesis matching and highlighting
I'm actually genuinely surprised at this. TexMate is very weak in this
area. I should be able to put the cursor between say "})" and have the
two closing parentheses highlighted in different colours and have
their corresponding opening parenthese highlighted in matching colours.
2. The ability to parse DTDs and Schemas for automagic knowledge of
markup languages
This is much more of a tall order, but it is something that PSGML mode
and nXML mode provide in Emacs, and to some extent it is similar to
what AUC-TeX provides for LaTeX editing in Emacs. With PSGML mode and
nXML mode I can open any type of SGML or XML document and as long as
Emacs can find the DTD or the Schema it automatically understands the
language in question: it knows what elements are part of the language,
where they can be inserted, what attributes those elements can have
and even what attribute values they can have. That means that you
don't need to write a MathML mode, an SVG mode, etc. In TextMate I
needed to hand edit an SVG file but there is no SVG bundle, just an
XML one. It was the first time in weeks I had to use Emacs. Similarly
work is progressing rapidly now on HTML 5. Support will have to be
laboriously added to TextMate for this in the absence of something
which simply understood the DTD or Schema. AUC-TeX on Emacs worked in
a similar way, in that it was capable of parsing the LaTeX packages
you were using and automatically extracting the commands and
environments they used and adding them to menus.
As I understand it, the features of TextMate 2.0 are somewhat shrouded
in mystery, but I understand that the underlying engine for language
grammars is being re-written. Does anyone know if the kind of feature
I discussed is likely to be possible in TextMate 2? Maybe it is
already possible in TextMate 1, but no one else has seen a need for it?
Anyway, so far the pros of TextMate are outweighing the cons. There
were a large number of niggles with Emacs that were driving me up the
wall, and so far it has been a joy to switch to TextMate. Better paren
matching seems like something that just needs to be there. A more
intelligent way for dealing with markup languages is highly desirable
from my point of view, and could in the long-term end up being a deal-
breaker. I'd be interested to hear what others think.
Best, Darren
Hey guys, I use textmate a LOT on OS-X Leopard 1.5.6 as my main CLI
text editor via .bash_profile and I edit a lot of files from my
computer with textmate. But I have issues with permissions when
trying to "mate" files which my user does not have permissions to
read. Even if I "sudo mate". Textmate pretends it opened this file
but the file is empty, and when you save it it will ask for
administrative privileges to do so.
Steps to reproduce:
$ echo "this is a test" > testfile
$ sudo chown root testfile
$ sudo chmod 700 testfile
$ sudo mate testfile
Result:
Textmate opens a window called "testfile" but shows nothing in this
file. If you edit this file and hit save, a window pops up which asks
for your credentials to save over this file.
Expected result:
#1 - preferred: uses the above "sudo" permission to pass into and/or
launch textmate under for editing of this file. Which would allow
opening and saving of this file without requiring re-entry of
credentials (annoying).
#2 - secondary/temporary alternative: upon failing opening a file
(like what's happening here) asking the user for credentials which
would allow opening the file. If this fails, do not open the window
because clearly, you don't have permissions for this file anyway, you
shouldn't have an editor window open for it. If their credentials
succeed, use the "open" permission for saving also.
Anyone have a workaround for this, or any ideas? The contact area
said to post here first. I googled a bit and didn't find anything so
I'm starting here.
Cheers!
- Andrew
Hello, I seem to be using command-G often to find something again in
TM. I just realized Safari solves this so well, with a highlight of
the word or phrase I am looking for.
Is this possible in TM?
--
Scott * If you contact me off list replace talklists@ with scott@ *
What is the best approach for supporting a language within a language.
For example, in some languages you can embed inline assembly or C code.
You could extend the bundle for the primary language to support the
syntax and completions of the embed language, but that seems a bit
redundant.
Is there a way to use existing language bundle code within another
bundle? Are there any examples of this?
ref. How to config the internal TM preview browser to run the MAMP PHP
engine?
When running PHP scripts with TM cmd+shift+R run command, the internal TM
preview browser will use the system installed PHP engine. How can I config
the internal TM preview browser to run the MAMP PHP engine instead?
--
View this message in context: http://www.nabble.com/How-to-config-the-internal-TM-preview-browser-to-run-…
Sent from the textmate users mailing list archive at Nabble.com.
I want to create a bundle to support a new text data format. It would be
pretty simple, mostly just syntax highlighting and comment character
definition. Is there manual or tutorial on creating bundles? I couldn't
find one on the Textmate website.
Thanks.
--
W.P. McNeill
http://staff.washington.edu/billmcn/index.shtml
Hello, usually I will option draw a box around some text, press
control-Q and it wraps it with hard line breaks. Handy.
I would like to define this in a more exact way, and set up a bundle
that does the same thing, to selected text, at say, 80 chars wide.
Not right on the 80 of course, take into account in the same way
control-Q does, where a word ends.
Thanks.
--
Scott * If you contact me off list replace talklists@ with scott@ *
I am working on mocking up a site, and I wanted to change the some-
site.com link to example.com using the Bundle Editor. I can highlight
the command, and see that it's there and what the shortcut is, but I
can't seem to edit it at all. (I don't have this problem with other
snippets and bundles and so forth.)
How do you do this?
Thanks,
Walter
Hello, please would you unsubscribe me from the mailing list?
I've tried this process using the form on your web page but I am still
getting the newsletters.
Thanks,
Alistair
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Very nice, thanks!
baptiste
1. Re: highlight (JiHO)
Message: 1
Date: Sun, 10 May 2009 19:52:30 -0400
From: JiHO <jo.lists(a)gmail.com>
Subject: [TxMt] Re: highlight
To: TextMate users <textmate(a)lists.macromates.com>
Message-ID: <91EB0E2E-0293-4B78-9776-04D854EC3710(a)gmail.com>
Content-Type: text/plain; charset="us-ascii"
On 2009-May-09 , at 15:35 , baptiste auguie wrote:
> Thanks for the two replies. highlight is a cool program I found here,
>
> http://www.andre-simon.de/doku/highlight/en/highlight_io.html
>
> I made an attempt to create a TM command for this, and it seems to
> work without the need for a temp directory,
>
> highlight -H --syntax R --inline-css --fragment --enclose-pre
> --style print `$TM_SELECTED_TEXT` | pbcopy
>
> It seems to work, albeit with some warning (seems to be attempting
> at interpreting the code of TM_SELECTED_TEXT) but since I simply
> discard the output and use the clipboard it's fine for my purpose.
>
> It's a small world JiHO! --- I'm hoping to use this shortcut to post
> R code on the new ggplot Wiki (http://ggplot2.wik.is).
OK, then I tried to link to some pasties and it does not work on this
wiki.
But indeed highlight seems to be nice and is very flexible in its
input. In particular it accepts input from stdin (where TM pipe your
text). So I installed it from macports but I don't have all the
options you have (--inlince-css, --enclose-pre etc.) because the
version there is too old.
Still a simple, one language (R here) bundle command could be:
highlight -X -l --include-style --syntax=R --style=print
input set to selection or document
output set to new document (or discard and add "| pbcopy" at the end
of the command).
This feeds the curent selection or document to highlight directly, not
need for the $TM_SELECTED_TEXT (and this solves your problems caused
by shell expansion I guess).
But creating a temporary file might still be desirable: if you create
it with the same extension as the current file, highlight will be able
to recognize the language and your bundle command will work for any
language.
Attached is my bundle item (currently set to display the HTML, pipe to
pbcopy if you want to copy). Here is the code:
# Extract file extension
extension=$(echo "$TM_FILEPATH" | awk -F "." {'print $NF'})
# Create a unique temporary file
tmpname=$(mktemp /tmp/TMtemp.XXXX)
tmpfile="$tmpname.$extension"
# Capture TM selection/Document
cat > $tmpfile
# Feed that to highlight
highlight --input="$tmpfile" -X -l --include-style --doc-title=$
(basename "$TM_FILEPATH") --style="vim-dark"
Hi all,
Thanks for the two replies. highlight is a cool program I found here,
http://www.andre-simon.de/doku/highlight/en/highlight_io.html
I made an attempt to create a TM command for this, and it seems to work without the need for a temp directory,
highlight -H --syntax R --inline-css --fragment --enclose-pre --style print `$TM_SELECTED_TEXT` | pbcopy
It seems to work, albeit with some warning (seems to be attempting at interpreting the code of TM_SELECTED_TEXT) but since I simply discard the output and use the clipboard it's fine for my purpose.
It's a small world JiHO! --- I'm hoping to use this shortcut to post R code on the new ggplot Wiki (http://ggplot2.wik.is).
Cheers,
baptiste
----------------------------------------------------------------------
Message: 1
Date: Fri, 8 May 2009 10:08:01 -0400
From: JiHO <jo.lists(a)gmail.com>
Subject: [TxMt] Re: hightlight macro
To: TextMate users <textmate(a)lists.macromates.com>
Message-ID: <7ADEBAA5-A929-4FB6-9782-8C4CEA7BE126(a)gmail.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
On 2009-May-07 , at 05:21 , baptiste auguie wrote:
> I'm using a command line to create a html snippet with embedded css
> to post on a Wiki. At the moment I run,
>
> highlight test.r -H --inline-css --fragment --enclose-pre --
> style print | pbcopy
>
> on the command line. I'd like to create a macro in TM so that I can
> get the same processing applied to selected text in a document. I've
> never written any TM macro and I don't know Ruby (or bash for that
> matter). Would you be kind enough to help me out?
Apparently highlight (is that a command of your creation or something
else? It would help to know a little more about it) takes a file as
argument. So the only ways to have it work on a selection are:
1- to modify highlight to accept either a file or some raw text from
standard input (or only raw text)
2- copy the current selection to a temporary document and feed that to
highlight
If 1, then you can use highlight with no argument and set TM to feed
it selection or document. If the new version can only be made to
accept raw text you can still use it independently this way:
cat doc.r | highlight -H -...
If 2, the command would look like
# create a temporary document (cleanly)
tmpDoc=$(mktemp)
# fill it with TM input (selection or doc)
cat > $tmpDoc
# feed it to highlight
highlight $tmpDoc -H -...
Otherwise, depending on the purpose of these snippets, there are
plenty of online paste boards with syntax highlighting support for R,
and one is accessible from textmate (Paste selection online). You get
something like this:
http://pastie.textmate.org/private/epwkcdngtzljzkf1zxg
with a link you can embed in other pages (and I guess also in a wiki).
I am also pretty sure I saw some that could output the html that is
displayed (with the colors etc.).
Hop that helps.
JiHO
---
http://jo.irisson.free.fr/
Hey guys,
After the HTML bundle last week, it's time for my CSS bundle to get
the "separate bundle" treatment... It won't touch the default CSS
bundle anymore and it's called mCSS... Although this bundle is
anything BUT minimal... I had to stick so many tab triggers in there
that I'm going to dream about it tonight I think ;)
Anyway, it's over there:
http://minimaldesign.net/articles/read/textmate-css-bundle-v.1.5
Let me know if there's anything else you'd like to see in there...
Thanks!
- Yann
On May 8, 2009, at 11:12 AM, Gerd Knops wrote:
> It's the dashes... ATM the bundle tries to find whatever word TM gives
> it, it ignores the selection.
>
> As a test, add '-' to the list of "Word Characters" (TextMate/
> Preferences, Text Editing tab). That should cause 'get-bottom-up-
> codelets' to be indicated as word, which the bundle should find.
That does the trick, thanks! And it will save me from having to select
the whole word for searching.
>> BTW is there source available for tmctags?
>>
> It's just a perl script...
Oh, yes, I see... I guess I just had too much whizzing around when I
visited the Support/bin directory.
Nice package!
Best,
Charles
Dear list,
I'm using a command line to create a html snippet with embedded css to post on a Wiki. At the moment I run,
highlight test.r -H --inline-css --fragment --enclose-pre --style print | pbcopy
on the command line. I'd like to create a macro in TM so that I can get the same processing applied to selected text in a document. I've never written any TM macro and I don't know Ruby (or bash for that matter). Would you be kind enough to help me out?
Thanks,
baptiste
Hi guys!
I've been using TextMate for a while (still a bit of a newbie though),
especially for Latex and I really LOVE everything about it. However, after
making a clean install due to a new MacBook I'm having some problems with
cleaning up the aux files that is created when I press cmd-R.
As I remember from my previous installation - all the aux files were deleted
when I clicked "clean up" in the html-window (that is displayed after cmd-R)
or by hitting ctrl-alt-delete, but now nothing happens - all files are still
in the folder where the .latex and .bib files are and the html-window
displays "Found 0 errors, and 0 warnings in 0 runs" after "clean up".
Have I messed something up or is there some issues with the "trash aux
files" command? Please help as it's so frustrating to have to manually
delete these files when, for instance, I've made some changes in the
.bib-file and need to include this new citation - but it only results in a
[?] until I manually delete the aux files and re-run "Typeset and view".
My installation:
TextMate v. 1.5.8 (1498)
Latex Bundle rev. 11510
MacTex 2008 with Skim as my selected viewer
Thanks so much for your help!!
/AM
Ps. Some time ago I read in some forum (maybe here I don't remember, sorry)
that the issue with "umlauts" in labels for sections (etc.) would be
addressed by changing the umlauts to the "normal" character without the
umlaut or a "_"-character as other special characters. Any news on this?
--
View this message in context: http://www.nabble.com/Latex---problem-with-%22clean-aux-files%22---nothing-…
Sent from the textmate users mailing list archive at Nabble.com.
Hi
because a reason I can't understand, Wiki in spanish is using urls
with funny chars like
http://es.wikipedia.org/wiki/Programación_dinámica_(computación)
this only gives you problems, and TextMate is no an exception. TM is
unable to jump (Cmd-F1) to them.
-- Juan Falgueras
Are there any TextMate users working on Automake, Autoconf, and TADS3
grammar bundles?
-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from
outer space.
On congratulations for a fantastic parody, the producer replies :
"What parody?"
Tommy Nordgren
tommy.nordgren(a)comhem.se
On May 4, 2009, at 8:00 AM, textmate-request(a)lists.macromates.com wrote:
> Does the presence of "HTML.tmbundle" just mean that I made some
> customization to it, and removing it will restore TM to the default in
> that particular bundle? What do you suggest so I am using your new
> bundle, and the default TM one?
That's right. To get a clean version, just removing HTML and mHTML in
both folders (if you have one in both folders) and restarting should
do the trick.
> Looking at your bundle, looks nice, thank you.
> Take the <br /> for example, I made my own at some point in the past,
> using this:
> <br${TM_XHTML}>
>
> This allows the XHTML closing style to be preference defined, not hard
> coded in. What do you think about applying that to all applicable
> cases?
Sounds interesting, but to be honest, I do everything in XHTML, so I
probably won't spend the time to get the bundle to be both HTML/XHTML
ready... unless I go back to HTML for HTML 5, which is not impossible :)
> I see perhaps some left over testing items, there are "cite copy" and
> "code copy", not sure if those are intentional.
This is actually on purpose and is there to add a extra tab trigger
(as far as I know, you can't add to different tab triggers to a single
snippet...). The idea was that, although the bundle works by typing
the 3 first letter of an element for all tab triggers, I'm guessing,
for four letter words it might be more intuitive to be able to type
"code" than "cod" so both are available... hope that makes sense.
Thanks!
Hi guys,
I've updated my HTML bundle to be it's own bundle so it doesn't
overwrite the default's HTML bundle anymore. I also rewrote the
commands in Ruby to make it easier to read+ customized and improved
snippets. Info there:
http://minimaldesign.net/articles/read/textmate-html-bundle-v.1.5
Let me know if you manage to break anything ;) Or if you'd like to see
any additions...
PS: I'll be updating my CSS bundle to be its own bundle too, soon...
But there are so many snippets in that one, it'll take a little
longer...
Hi,
call it good or bad, I'm using soft tabs (spaces) for just about
everything. The shop I work in doesn't even allow tabs in (most) source
files. Soft tabs in TextMate work great – except that I really need hard
tabs (just like everyone else) in Makefiles. So, what I currently keep
doing is to copy&paste a tab character from some other place. I'd really
love to tell TextMate to use hard tabs for everything in scope of the
Makefile bundle, without changing my global setting. Is that possible?
(If yes, why is it not active in the Makefile bundle?) Will it be
possible in 2.0?
Christopher
Hello,
As matlab code can't get compiled, I'm assuming you talk about running
matlab code from textmate.
I implemented an integration between MATLAB and Textmate, which allows
to run a script or the current cell in matlab when you are in
textmate. It only works when matlab runs in the terminal, as there is
NO WAY to communicate with the matlab java/X11 GUI.
Because the terminal is quite awful to use in interactive mode (no
mouse, different shortcuts, no syntax highlighting, problem with long
lines), I'm working on a matlab console bundle too, which works in a
similar way as the R-Console Bundle. I can communicate with matlab
both ways now. It's possible send commands to matlab and receive
matlab's output.
I sent an email to Thomas to discuss the integration of this in the
matlab bundle, but he seems busy now.
If you want more information about what I did, want to try, or better
if you want to help with this project (I'm quite bad at ruby, shell
scripts and other needed languages), send me an email.
Pierre
When editing comments in TextMate, I frequently use the Reformat
Selection text routine to fix paragraphs who's lines have gone past 80
characters long (my Wrap Column). Unfortunately this has some
unexpected side-effects in Java, which along with nicely reformatting
my selected comments (respecting the *s in the beginning of the line
even!) adds redundant starting and ending comments: /* and */. Why
does this happen? What can I do to fix this?
To reproduce, select a few lines inside a javadoc-formatted Java
comment (/** * */), and hit ^Q.
Thanks,
--
Elliot
Hello all, I'm trying to make use of some external refactoring tools
for Haskell, and I've written the following script:
#!/usr/local/bin/ runghc
import System.Cmd
where
main = do
c <- getContents
system ("/Users/ian/.cabal/bin/pointfree \"" ++ c ++ "\"")
Here's the problem:
Whenever I try to run the script, the output I get says "interpreter
failed: Permission denied". Now, I'm pretty sure that the script
execution fails even without executing the local program pointfree.
Any ideas what I'm doing wrong?
-Ian Duncan
Hello,
I have read this page
http://blog.macromates.com/2005/handling-encodings-utf-8/ and I use
UTF8 wherever I can. But, sometimes I have to open czech text-files,
made on MS Windows (not made by me), that are, almost without
exception, in "Central European (Windows Latin)", or, Windows 1250 (
http://en.wikipedia.org/wiki/Windows-1250 ).
ISO-8859-1 is different from Windows-1250, some of the czech letters
appear weird - for example, http://en.wikipedia.org/wiki/Ø instead of
http://en.wikipedia.org/wiki/Ř
Right now, when I get file like that, I need to
1) open it in TextMate, only to find out I cannot open it
2) open TextEdit, open the file in TextEdit, re-save it in UTF8
3) open it in TextMate again, swearing on all sides
I personally find this procedure stupid and I would love to have the
opportunity to, at least, open the file in Windows-1250 and convert it
to UTF8 and not having to start another text editor.
Karel Bilek
Hi,
I recently opened one of my old Java files and remembered I used some
snippet to create a method and automatically create a header comment
and javadoc comment like this:
/**
* doSteps
*
* calculate n steps each lasting 0.005s
*
* @param steps number of steps each of which accounts for
0.005s
*/
public void doSteps(int steps) {
//do smth...;
}
I can't find this anywhere anymore. Can anyone help me out here? The
snippet automatically jumped to the return type, then the function
name (also inserting it at the top in the comment), then to the @param
thingy to enter text and finally to the function itself to write some
code. At least that's how I think it went. Might be that I idealize a
bit from bad memory :P
Does someone know of a snippet like this? I already searched the web
but couldn't find something. (Yeah I also searched the Javadoc
bundle... but it isn't there :( )
Maybe I was just dreaming of this snippet :(
Thanks,
Thomas Krajacic
Hi,
I'm sure that question must have been asked over and over, but I
couldn't find any similar question, so please forgive my ignorance.
I'm just wondering if there's any simple shortcut to navigate between
blocks. Suppose I'm in the middle of a big block, I want to go to the
end of it, or to the beginning. What's I'm currently doing is either
an F1 to fold the block, if I want to go outside (right after or right
before), but which is not ideal since I don't always want to actually
make the block invisible, or I use the Cmd-Shift-T to open the go to
symbol panel, then type Enter if I want to go to the beginning of the
block, or Down then Enter if I want to go to the end of the block. But
that's too many strikes.
Is there any direct shortcut for what I want - or how can I define
one? What are your habits on that topic? (I particularly use that when
writing LaTeX documents.)
Thanks,
enas
I think I got misunderstood by JiHo : I want to avoid the matlab GUI
as much as possible. The matlab-console I developed is an
implementation of the matlab console IN textmate.
For what I described I use a very similar command as JiHo, except that
I tend to use the cell mode (which Thomas added in the last version of
the bundle). And in this cases because the commands that are sent to
the terminal can be long, I use an temporary m-file (called cellrunner
in the following code).
I've came up with a better applescript thought, which is more robust
when you have several terminal windows or tabs running :
osascript<<END
tell application "Terminal"
set termwin to id of windows
set nwin to count of termwin
repeat with i from 1 to nwin
set ntab to number of tab of window i
repeat with j from 1 to ntab
set pr to processes of tab j of window i
set npr to count of pr
set runsmatlab to false
repeat with k from 1 to npr
set runsmatlab to "MATLAB" = item k of pr
end repeat
if runsmatlab then
set selected of tab j of window i to true
do script with command "cellrunner" in tab j of window i
end if
end repeat
end repeat
end tell
tell application "MATLAB" to activate
END
Pierre
Hi,
So I use Find in Project to search code and find various sources when
I've pulled down say.. a set of Java classes for an app. Once I find
a file I can click the file in the list of found items and it'll load
in the main window. But what I'd like is to also show that file in
the Project Drawer (since it's hidden somewhere in the hierarchy of
files).
Is this possible?
--
David Orriss Jr.
My blog: http://www.codethought.com/blog
Howdy!
How do I have to set up TextMate for using MATLAB? I have installed the MATLAB Bundle of Thomas Kjosmoen.
http://kjosmoen.org/matlab
Is it now possible to compile MATLAB code directly out of TextMate without opening the code in the MATLAB editor?
Thanks!
Hi
We all know TextMate doesn't have splitting windows. Do people who
want to have splitting windows just right-click the file to open a new
window?
I'd like to ask this question especially for hardcore TDD/BDD'er, who
develop on Rails. I know I can switch between the implementation file
and the test file with one key combination.
Anyway, I'm truly hoping that Allan is winning the ADC this year with
the upcoming version!
Takaaki
--
Takaaki Kato
http://samuraicoder.net
I just recently noticed that if I go to...File...New From Template, Ruby is
no longer present. How do I add it or other templates (such RSpec) into
this sub-menu?
Brad
I wrote a PHP Snippet that outputs some FirePHP-based debugging information.
fb(\$${1:variable}, '${2:function} \$${1:label}');
I would like to replace ${2:function} with something that
automatically puts in the current function or class::method (if
available);
I notice in the status bar at the bottom of the editor window (to the
right of the Tab Size), there is a "Symbol Popup" menu. So it seems
like the information I need is available. Is there a variable in
TextMate that I can slap into the snippet? A $TM_CURRENT_SYMBOL or
something?
Thanks for your help!
Regards,
Daniel Royer
Dear list,
after some initial discussion on the R-SIG-Mac-list I decided to send
my question to this list as well ...:
I encountered a problem in the combination of the SWeave and the LaTeX
bundle: when I start "Sweave, typeset & View", the .Rnw-file is
processed, but the log window shows "Error: PDF file not written to
disk" and the tex-file is not processed.
However, the sweaving was successful, as a valid .tex-file is in the
same folder which can be typesetted by latex without problem.
So, in general it works, I just want to avoid the extra step of
opening the .tex-file and would like to see my pdf directly opened
from SWeave-Bundle.
Some ideas already have been posted on the R-SIG-Mac-list, but they
didn't work for me:
http://article.gmane.org/gmane.comp.lang.r.mac/3953/match=sweave+pdf+file+n…
Did anyone encounter the same problem / any suggestions for solutions?
Best regards,
Felix
Hello. When TM is looking at a file that was opened as a result of a
3rd party ftp application, is there any way to get to the full url
path to the remote server?
In BBedit, I would see sftp://foo@example.com/example.com/files/some_place/test.php
I would like to be able to access that url above, in each file, in
order to make a bundle. The idea is, that if I can get to that, I can
parse it, and inspire TM to open a browser and run the current code I
am working on, at the correct url.
Currently, I have a comment line at the top of a file, which is read
and parsed, and then passed to open in a bundle, which will open in
Safari for me. It sort of works around some of the issues I have with
the refresh running browsers, as it only refreshes the one page.
I would love to be able to not have to write the comment url, and have
it be more automatic. The only path I can see to access in TM now, is
one that points back to a tmp location, which is local, and not remote.
--
Scott * If you contact me off list replace talklists@ with scott@ *
Recently I changed the keyboard shortcut for the Go To Fixture, Go To... etc
commands in the Ruby On Rails bundle.
I picked command-tilda as it's easy and not used by Text Mate.
Turns out Mac OS X uses it launch Front Row however.
At that point, those commands simply *disappeared* from the Ruby On Rails
bundle.
I've tried using the Bundles > Bundle Editor > Reload Bundles command but it
does not bring them back.
At this point, I'm considering:
# Deleting and reinstalling TextMate
# Manually recreating the missing commands, presumably by copy-pasting code
like this
(http://svn.textmate.org/trunk/Bundles/Ruby%20on%20Rails.tmbundle/Commands/G…)
into the Bundle Editor
Both seem doable but time-consuming and with no guarantee of success.
Any suggestions for a quicker fix?
Many thanks in advance,
Steven.
--
View this message in context: http://www.nabble.com/Restoring-a-Bundle-becausing-of-vanishing-commands-tp…
Sent from the textmate users mailing list archive at Nabble.com.
This is probably a stupid question, but how do I
revert/undo a change that I made to a Theme?
For example, I opened the Preferences menu, then went to
"Fonts and Colors", and messed around with shading, etc.
I clicked on "Selection", because I wanted to darken the color
of selected text. However, I did something to mess it up.
There's no "Cancel" button or "Undo" menu item, so what do
I do if I don't want to save my changes to the colors?
I suspect that the best idea would be to copy the color
theme before editing, but that seems sort of kludgy.
Thanks,
--Nate
I am having a new problem with a very simple thing that used to work:
>>> In TextMate, I have a test file test.rb
require 'rubygems'
require 'shoulda'
>>> After making sure that the textmate recognizes this as a Ruby source file, I do:
command-R
>>> I get this output:
LoadError: no such file to load — shoulda
method gem_original_require in custom_require.rb at line 27
method require in custom_require.rb at line 27
at top level in untitled.rb at line 2
copy output
Program exited with code #1 after 0.68 seconds.
>> Now, I go to the shell and do:
ruby test.rb
>> And it works like a champ. Checking environment:
$ echo $TM_RUBY
/opt/local/bin/ruby
$ which ruby
/opt/local/bin/ruby
$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.2
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [powerpc-darwin9]
- INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /opt/local/bin/ruby
- EXECUTABLE DIRECTORY: /opt/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- powerpc-darwin-9
- GEM PATHS:
- /opt/local/lib/ruby/gems/1.8
- /Users/pitosalas/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge.org/", "http://gems.github.com"]
- REMOTE SOURCES:
- http://gems.rubyforge.org/
- http://gems.github.com
>> You can see I suspect something with environment variables. I have been using Textmate this way forever without a problem. I am now logging into a new account on the same computer. I even re-installed TextMate.
I am stumped. I hope someone sees what I am missing :)
Thanks,
Pito
Hi,
I noticed a problem with non-antialiased "programming" fonts being rendered
in a strange way in my TextMate 1.5.8 (1498). Some letters will look wrong
and blend with neighbouring characters.
Example screenshot for Consolas (11pt) with highlighted problem zones, note
the distorted dot on the i and the blending e and {:
http://www.quicksnapper.com/ballaschk/image/consolas-11pt/
Example screenshot for Pragmata (11pt) with highlighted problem zones, note
the distorted "g", "w" and "s":
http://www.quicksnapper.com/ballaschk/image/pragmata-11pt/
Monaco looks great, but makes it too hard for me to differentiate between
certain characters:
http://www.quicksnapper.com/ballaschk/image/monaco-9pt
I did not test with Profont or other small-size optimized fonts, but will do
soon. Do you experience the same problems? Any hints how to correct it?
Cheers
Martin
--
View this message in context: http://www.nabble.com/Font-rendering-with-antialiasing-turned-off-tp2315196…
Sent from the textmate users mailing list archive at Nabble.com.
Every time I creates a tex file and compile it it generates me a bunch of
files (.aux etc etc) in the same directory.
Now I know that it's not a bundle's fault, doing it from the command line is
the same, but is there a way to make the pdflatex command put them somewhere
else (a tmp directory)?
--
View this message in context: http://www.nabble.com/Latex-bundle-and-too-many-files-tp23074031p23074031.h…
Sent from the textmate users mailing list archive at Nabble.com.
Thanks, Allan. Worked like a charm!
Regards,
Daniel Royer
On Thu, Apr 16, 2009 at 8:00 AM, Allan Odgaard wrote:
>> [...]
>> I notice in the status bar at the bottom of the editor window (to the
>> right of the Tab Size), there is a "Symbol Popup" menu. So it seems
>> like the information I need is available [...]
>
> It is not, but oft requested. The symbol in the status bar is not
> necessarily the ?current function?, it is just the first thing matched
> via some scope selector (optionally passed through some regexps) above
> the caret.
>
> What you can do is make a command that takes stdin as input and then
> do something like: SYMBOL=$(head -n$TM_LINE_NUMBER|grep ?function
> prototype regexp?|tail -n1). Have the command ?insert as snippet? and
> construct the snippet from the previous.
>
> I am adding an ?expose current symbol? to the to-do, since it seems a
> lot want this and don?t care that it might not be 100% correct (and
> whatever hand-roled solution they make is probably even less
> correct ;) ).
I have two Macs running TextMate 1.5.8. I have some personal bundles
that I want to keep in sync between the two machines. I tried this:
On machine A, modify a bundle and quit the Bundle Editor to save the
bundle.
On machine A, reopen the Bundle Editor and drag the bundle to my
Desktop.
On machine A, scp -r the bundle directory from my Desktop to machine
B, into my Desktop.
On machine B, double-click the bundle. TextMate says "do you want to
update?".
On machine B, I click "yes". It seems to work.
Yet the bundle on machine B doesn't have the changes that I made while
I was on machine A.
Any suggestions appreciated. Note that I have MobileMe, and would
love to cut down on the manual work that the above (unsuccessful)
approach requires.
-- Pete
Not sure if this is a bug or feature. I've found that the text
selection behavior upon double-clicking, then dragging, is way too
"greedy" of characters. Is this something that can be fixed, or
overrridden?
For instance, let's say you double click on the 'doQueryParams' in
this snippet of PHP:
doQueryParams($query, array() );
.... then drag to the right. Let's say that I want to select up to
and including the comma after "$query". Well, I can't - the selection
jumps to the end of "array".
Other editors like SubEthaEdit or TextEdit do what I would expect --
the non-alpha characters are selected individually, so I can select
the comma, the space, and then if I continue on it will select the
whole word 'array', then each parenthesis, etc.
Is it just me that's driven absolutely mad by this? It really slows
me down......
Dan
--
Dan Wood
Karelia Software — Sandvox for the Mac : http://www.karelia.com/
Follow me on Twitter: http://twitter.com/danwoodhttp://twitter.com/karelia
It is the habit of every aggressor nation to claim that it is acting
on the defensive. — Jawaharlal Nehru