I'd like to be able to fold text in plain text files. I often use a
plain text file to plan database tables and columns, and to write
pseudo code. Ideally I'd like to be able to fold the text so that I
can more easily see my headings - like an outliner, yes, that's it.
I've had a look at the bundles available at svn.textmate.org/trunk/
Bundles, and have found the Outlines.tmbundle but doesn't appear to do
what I want. Any suggestions?
--
Justin C, by the sea.
hey there - just wondering if the tooltip error msg that appears sometimes when saving a file has any utility? in other words, is there somewhere I can find a log of what the error is?
it's a bit frustrating to be told there's an error but not what it is or where it is etc etc.
I'm sure the answer's obvious enough but I can't find any documentation that discusses it.
cheers,
b
Hello, I cannot get Firefox to refresh using TextMate's "refresh running
browser" command.
I am running Firefox 3.6.8 and TextMate 1.5.9. Here is the command:
ps -xc|grep -sqi firefox && osascript <<'APPLESCRIPT'
tell app "Firefox" to activate
tell app "System Events"
if UI elements enabled then
keystroke "r" using command down
-- Fails if System Preferences > Universal access > "Enable access
for assistive devices" is not on
else
tell app "Firefox" to Get URL
"JavaScript:window.location.reload();" inside window 1
-- Fails if Firefox is set to open URLs from external apps in new
tabs.
end if
end tell
APPLESCRIPT
I have searched all over the internet and cannot figure it out.
If anyone can suggest a solution, I would greatly appreciate it!
Thanks,
--
Clay Teller
clay(a)clayteller.com
Hi,
I am trying to have latexmk run a script before compiling the document. If I
create an RC file (latexmkrc) inside my home directory where I include
$pdflatex = 'sh vc; xelatex %O %S';
and then run
latexmk -pdf file
from the command line, latemk will run the vc script and then do its job as
usual. However, if I run it from TextMate, it doesn't.
I've set XeLaTeX as my default typesetting engine, so I assume that TextMate
is overriding the default RC files in order to tell latexmk to use XeLaTeX
instead of pdfLateX. I've searched around for a hidden RC file that TextMate
might be creating but I cannot find it.
I asked John Collins about this, who gave me incredibly helpful advice, but
the problem seems to be with TextMate, not with Latexmk.
Any thoughts?
Thanks!
APC
--
View this message in context: http://old.nabble.com/Latexmk%2C-TextMate-and-XeLaTeX-tp29356480p29356480.h…
Sent from the textmate users mailing list archive at Nabble.com.
What could possibly explain this? Rspec test fails when I run from
TextMate but passes when I run from the console.
I made sure the TM commands are using the same Ruby as the console.
The path is the same too.
what am I missing?
any insight gratefully received
Les
Hi,
I would like to see colored syntax and use autocomplete features even for CSS included into html code;
I mean in the head of the pages where the scope seems to be: "source.css.embedded.html":
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it-IT" lang="it-IT">
<head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Page Title</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Language" content="it-IT" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<style type="text/css" media="screen">
/* Textmate does not see this as CSS code */
p { margin-bottom: 1em; }
</style>
</head>
<body>
Actually I need to manually type each css instruction because textmate does not detect such part of code to be CSS.
Is there any workaround?
thanks!
--
Ciao
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
VOGLIA DI VACANZE ?
* A Riccione i Riviera Park Hotels sono gli alberghi specializzati per le vacanze nei parchi divertimento.Vieni nei Riviera Park Hotels! Ti aspettano sconti per tutti i parchi della Romagna! Prenota subito on-line la tua vacanza!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid820&d=5-8
I often find myself wanting to place the cursor just left of the first
non-whitespace character in a line. I know ctrl-A will get me to the very
beginning of the line. Is there another command that will get me just left
of the first non-whitespace character?
thanks,
-Morgan
Hey all, I am wondering if any of you have any issues using the Flex bundle.
The actionscript bundle seems to work great. I am wondering if there have
been any improvements to autocomplete in MXML files. Also I may need to
check my configuration of the bundle. I don't seem to get any suggestion in
the script block for actionscript at all.
--
Matthew Wallace
http://www.615flash.comhttp://twitter.com/mswallace
When I am debugging python code, I get the following message pop up from TextMate:
This version of TextMate does not support “(null)” in its URL scheme.
Has anyone seen this message and know where it comes from?
Thanks,
cf
hi all - I noticed that the functionality of the gutter isn't what I expected - namely that when I scroll sideways (to the right) in a document I lose the gutter - i.e. it scrolls across to the left with the rest of the text in the doc window...
not SOP in most text editors!
anyway - is there a way to restore/enable this functionality? it's pretty basic stuff!
cheers,
bennett
I pressed control alt shift B and then clicked on one of the popup items:
Blog HTML
Blog Markdown
Blog Text
Blog Textile
LaTeX Beamer
Now all of my syntax highlighting is gone.
I was edting javascript. How do I get textmate back to normal?
And more generally, how do I figure out what that keyboard shortcut did
without asking the mailing list? (I searched for a long time to no avail).
Thanks.
hi there - I know that there's a way to use different code coloring for different parts of a document according to the scope of the section - for example when I have Javascript code in a <script> tag or CSS in an HTML doc etc etc.
I read through the Textmate Help and found that it is possible but admit to being rather confused by how it works.
is there a tutorial of any kind?
or an example theme I could look at that would illustrate the process?
thanks,
bennett
I've realized I waste many precious milliseconds lifting my fingers up from
their homes over to the arrow keys. Is there a key combination which will
move the cursor left and right for me? How would I go about setting one up?
thanks,
-Morgan
Cheers everyone!
I do not now if regular expressions are involved in the way TextMate detects URLs in text, but I'd gather they do. In that case, John Gruber has just compiled a regexp that seems to make an even better job at finding URLs embedded in plain text (even surrounded by parenthesis, or LaTeX code). First link contains the description, second link contains a text case page:
http://daringfireball.net/2010/07/improved_regex_for_matching_urlshttp://daringfireball.net/misc/2010/07/url-matching-regex-test-data.text
The only problem I find with it is that the references to LaTeX parts, sections, chapters, etc., built from the LaTeX templates would be matched as well. So, using as inspiration the last expression he offers (only for http/https links), I have generalised it to include also ftp, sftp, smb, afp, and telnet:
(?xi)
\b
( # Capture 1: entire matched URL
(?:
https?:// # http or https protocol
| # or
s?ftps?:// # sftp or ftp or ftps protocol
| # or
smb:// # smb protocol
| # or
afp:// # Apple file sharing protocol
| # or
telnet:// # telnet protocol
| # or
www\d{0,3}[.] # "www.", "www1.", "www2." … "www999."
| # or
[a-z0-9.\-]+[.][a-z]{2,4}/ # looks like domain name followed by a slash
)
(?: # One or more:
[^\s()<>]+ # Run of non-space, non-()<>
| # or
\(([^\s()<>]+|(\([^\s()<>]+\)))*\) # balanced parens, up to 2 levels
)+
(?: # End with:
\(([^\s()<>]+|(\([^\s()<>]+\)))*\) # balanced parens, up to 2 levels
| # or
[^\s`!()\[\]{};:'".,<>?«»“”‘’] # not a space or one of these punct chars
)
)
Can this be built into TextMate, or where should I change if I wanted it just for personal use?
Thanks!
--
Juande Santander Vela
Applied Scientist, Archive Management Group
Archive Department, Data Management & Operations Division
European Southern Observatory (Germany)
Felix Klein: Todo el mundo sabe lo que es una curva, hasta que estudia suficientes matemáticas como para confundirse con la innumerable cantidad de excepciones posibles.
Hello all,
I get this error when I select php code and type apple(command) + ' / '
(forwardslash)
interpreter failed: No such file or directory
Any suggestions as to why? I tried doing a google search for similar issues.
this post came up:
http://lists.macromates.com/textmate/2007-October/022878.html
but my ruby bundle commands are working. just not my php commands.
Best,
Victor
Hello,
I'm trying to write a snippet that will create a footnote in a TM file
(using markdown syntax), and I'm having some difficulties:
Footnote syntax works as follows:
Here's a string of text [^footnote_identifier] which continues here.
then, at the beginning of a new line:
[^footnote_identifier]: text of the footnote itself
So, what the snippet needs to do (theoretically) when snippet is
triggered: generate a (not too long, 5 digit alphanumeric should be
fine for a single document) unique id, and insert the full
[^footnote_identifier] string, then jump to the end of the document,
insert [^footnote_identifier]: and a space, allow typing of the
footnote text, then return to the original insertion point when tab is
pressed again.
I have no idea whether any of this is possible using snippet syntax,
so any pointers would be appreciated.
--
steph
Hi There, I wanna know if anyone knows of any bundle or command to fold the phpdocs comment styles
cuz when I have the following:
/**
* #code
*/
dont appear on the the left the controls, and when I have this:
/**
*
**/
they appear, but I don't wanna put like this to have the fold.
Hi everyone,
The shortcuts for adding an existing file or folder in
textmate. Shift+command+A don't seem to work.
I don't understand why? is there a particular mode I
must be in, in order for it to work.
Ted.
--
View this message in context: http://old.nabble.com/shortcut-not-working-tp29232794p29232794.html
Sent from the textmate users mailing list archive at Nabble.com.
hello all -
question: why would TM being using 25-35% of my CPU when it is sitting in the background with *no documents* even open?!?
see screen shot.
cheers,
bennett
hi there - I'll keep it simple, here's what I'm trying to do:
I'm converting a text doc to a HTML doc and I decide I want to enclose a
paragraph in <p> tags (or whatever). so I manually select the paragraph and
use my command-ctrl-. command and everything's beautiful.
but wait I say to myself - I don't like having to take my fingers off the
keyboard to select the paragraph... oh I'll just use TM's 'Select Paragraph'
command (via recorded macro to assign keystroke).
but it turns out it doesn't work the way I want it to: 'Select Paragraph' -
and also 'Select Line' - both extend their selection past the last character
out to an apparently 'infinite' margin...
here is an example - I have this text:
Orsay School Group Lottery FormFor K–12 school groups a limited number of
free tickets are available for Monday-only viewings (9:30 a.m. to 1:30 p.m.,
October 4 through December 13, 2010). These tickets will be distributed as a
lottery. Please read carefully the Orsay lottery guidelines below to
determine if the lottery system is appropriate for your class.
To apply, please complete the application below. For questions about the
lottery, please e-mail kerickson(a)famsf.org or call 415-750-2603.
and I select the first paragraph using the 'Select Paragraph' command and
then use the Cmd-Ctrl-. shortcut to enclose in <h3> this is what I get:
<h3>Orsay School Group Lottery FormFor K–12 school groups a limited number
of free tickets are available for Monday-only viewings (9:30 a.m. to 1:30
p.m., October 4 through December 13, 2010). These tickets will be
distributed as a lottery. Please read carefully the Orsay lottery guidelines
below to determine if the lottery system is appropriate for your class.
</h3>To apply, please complete the application below. For questions about
the lottery, please e-mail kerickson(a)famsf.org or call 415-750-2603.
notice that the </h3> tag is on the next line - obviously this is
undesirable and it slows down my coding way too much to have to then
manually take my cursor over and insert a return after the closing tag - so
much that it is obviously not worth it.
so for the sake of my being able to write readable code how do I accomplish
this?
thanks.
bennett
Hi
I have seen two different 'move caret by word' behaviors in TextMate:
the first stops the caret at capital letters, underscores, and after every
number, such that moving the caret across "aB_911" is 5 movements
the second *doesn't* stop the caret at any of the above, so moving across
"aB_911" is one movement
On my setup (see below) the former is bound to ctrl-arrow and the latter to
alt-arrow.
I would like to change the bindings of ctrl-arrow to do the latter, but I
don't know the name of the command to bind to in DefaultKeyBinding.dict (the
former seems to be MoveWordLeft/Right or MoveWordForward/Backward).
Any help appreciated
Thanks!
Mac OS X Snow Leopard
External Kinesis ergonomic keyboard
Custom DefaultKeyBinding.dict
--
View this message in context: http://old.nabble.com/Caret-movement-by-word-tp29157860p29157860.html
Sent from the textmate users mailing list archive at Nabble.com.
Can TextMate 1.5.9 (r1510) be used with Mac OS X 10.6.4? The TextMate web
site says:
TextMate 1.5.9 (r1510)
Mac OS 10.4.2 PPC/Intel
Guess I am just getting used to my new Mac (former PC user). I know Linux
has issues sometimes when downloading software not specifically
compiled/tested for a particular release.
Thanks.
--
View this message in context: http://old.nabble.com/Can-TextMate-1.5.9-%28r1510%29-be-used-with-Mac-OS-X-…
Sent from the textmate users mailing list archive at Nabble.com.
Allan wrote:
>> Could this have been the result of a change in the latest TextMate
>> version? [...]
>
> No.
Thanks, I guess I'll try a clean install and see if that reinstates the WebMate Show Options checkbox.
jon