> I'll give a talk on the ConTeXt bundle next weekend in
> Epen/Netherlands. Until then I will enchance it a lot and post it to
> the ConTeXt mailing list. (And here, if anyobdy is interested.)
>
>
> Patrick
Patrcick,
Would you mind posting a link to your talk here too? (I don't
subscribe to the
ConTeXt mailing list anymore)
> I suppose that given that the syntax is very similar, we could try to
> add ConTeXt to the existing LaTeX bundle and try to make the commands
> work for ConTeXt as well. I'd be happy to help people out with this,
> but I don't know much ConTeXt. (On the other hand, I do know the
> workings of the LaTeX bundle pretty well ;) ). So perhaps we can
> figure out what needs to be done and then start doing it.
>
> Do I understand correctly that ConTeXt is an extension of TeX, i.e.
> all TeX code is valid in general? In that case we can use the
> existing TeX syntax and include it, and just add the special features
> that ConTeXt has.
>
> Really the only reason ConTeXt is not part of the LaTeX bundle at
> this point is (I think) simply the fact that the people who have
> worked on the LaTeX bundle haven't had much use for ConTeXt. But I
> see no reason not to make it work, if there are enough people
> interested in it and willing to make it work.
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
>
>
Haris,
In general, I believe that you can use plain tex commands, but
ConTeXt also provides a complete macro
set built on TeX, so that you do not need to use plain TeX commands.
I've attached a good template file from Sanjoy Mahajan that you can
typeset in TeXShop.
-paul
% "Hello world!" document for the ConTeXt typesetting system
%
% === History ===
% 2006-12-29 Sanjoy Mahajan <sanjoy(a)mit.edu>
% * Created
%
% This document is the public domain (no copyright).
\setupcolors[state=start] % otherwise you get greyscale
\definecolor[headingcolor][r=1,g=0.0]
% for the document info/catalog (reported by 'pdfinfo', for example)
\setupinteraction[state=start, % make hyperlinks active, etc.
title={Hello world!},
subtitle={A ConTeXt template},
author={Sanjoy Mahajan},
keyword={template}]
% useful urls
\useURL[author-email][mailto:a.u.thor@somewhere.edu][]
[a.u.thor(a)somewhere.edu]
\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
\useURL[sanjoy][mailto:sanjoy@mit.edu][][sanjoy@mit.edu]
% for US paper; the sensible default is [A4][A4] (A4 typesetting,
% printed on A4 paper)
\setuppapersize[letter][letter]
\setuplayout[topspace=0.5in, backspace=1in, header=24pt, footer=36pt,
height=middle, width=middle]
% uncomment the next line to see the layout
% \showframe
% headers and footers
\setupfooter[style=\it]
\setupfootertexts[\date\hfill \ConTeXt\ template]
\setuppagenumbering[location={header,right}, style=bold]
\setupbodyfont[11pt] % default is 12pt
\setuphead[section,chapter,subject][color=headingcolor]
\setuphead[section,subject][style={\ss\bfa},
before={\bigskip\bigskip}, after={}]
\setuphead[chapter][style={\ss\bfd}]
\setuphead[title][style={\ss\bfd},
before={\begingroup\setupbodyfont[14.4pt]},
after={\leftline{\ss\tfa A. U. Thor $\langle$\from[author-email]$
\rangle$}
\bigskip\bigskip\endgroup}]
\setupitemize[inbetween={}, style=bold]
% set inter-paragraph spacing
\setupwhitespace[medium]
% comment the next line to not indent paragraphs
\setupindenting[medium, yes]
\starttext
\title{Hello, world!}
Here is a hello-world template document to illustrates a few \ConTeXt\
features. Have fun. You can find a lot more information at
\from[wiki]; the preceding text should be colored and clickable, and
clicking it should take you to the wiki.
\subject{A list}
Here is an example of a list.
\startitemize[a] % tags are lowercase letters
\item first
\item second
\item third
\stopitemize
\subject{Math}
An equation can be typeset inline like $e^{\pi i}+1=0$, or as a
displayed formula:
\startformula
\int_0^\infty t^4 e^{-t}\,dt = 24.
\stopformula
% don't use $$...$$ (the plain TeX equivalent)
You can also have numbered equations:
\placeformula[eq:factorial-example]\startformula
\int_0^\infty t^5 e^{-t}\,dt = 120.
\stopformula
And you can refer to them by name. I called the previous equation {\tt
factorial-example}, and it is equation \in[eq:factorial-example].
\ConTeXt\ figures out the number for you. And with interaction turned
on, you can click on the equation number to get to the equation.
\subject{Text with figures}
Now text with a few figures. The first figure goes on the right, with
the paragraph flowing around it.
\placefigure[right,none]{}{\externalfigure[dummy]}
\input tufte
The next figure will go inline, like a displayed formula:
\placefigure[here,none]{}{\externalfigure[dummy]}
\input tufte
Here's another reference to the numbered equation -- equation
\in[eq:factorial-example] on \at{page}[eq:factorial-example], so that
you can test clicking on it or on the page reference.
% most plain TeX commands work
\vfill
\noindent
\framed[corner=round, width=\textwidth,height=1in,
backgroundcolor=gray,background=color]
{This document is in the public domain, so that you can improve it,
share
it, and otherwise do what you want with it.
Suggestions are welcome. You can send them to me
at \from[sanjoy] (Sanjoy Mahajan).}
\stoptext
Hi,
I noticed some weird indentation problem when using "Insert as
Snippet" as the output for a command. I reduced it to a simple test
case (at least I hope):
Make a command with
Output: "Insert as Snippet"
Command: echo -n "$TM_SELECTED_TEXT"
Example text:
✂------✂------✂------✂------
- list1
[tab]- indented list2
paragraph 1
paragraph 2
✂------✂------✂------✂------
If I select the text somewhere in the first line to the end and run
the command, nothing changes, which is good.
If I select the text somewhere after the tab in the second line to
the end I get this:
✂------✂------✂------✂------
- test list
[tab]- test indented list
[tab]paragraph 1
[tab]paragraph 2
✂------✂------✂------✂------
If I use "Replace selected text" instead, this doesn't happend.
So, if I understand this right: When a command inserts a snippet on a
indented line, everything in the snippet is indented. Why?
Just in case, I deselected "Re-indent pasted text" in the prefs,
still the same.
Am I missing something?
Thanks
--
FredB
Hi,
I was wondering if there's an easy to to prefix or suffix selected
lines with a string.
Anyone who has used BBEdit will know what I am taking about.
I assume there is a way to do this, but I was hoping to avoid regular
expressions other overly complex gyrations.
Thanks in advance.
I've found this topic a few times in the archives, but never came up
with a definitive answer.
I'm using Textmate for basic XHTML/CSS/JavaScript editing and while
Camino and Safari happily pop right up when I choose "Open Document
in Running Browser(s)" and Refresh when I pick "Refresh Running
Browser(s)" but Firefox responds a bit differently.
It doesn't respond at all to "Open Document in Running Browser(s)"
and Refresh Running Browser(s)" just opens a new, empty, window or tab.
It's a bit frustrating as Firefox is my browser of choice for working
on sites, thanks of course to the Web Development plugin among others.
Any advice?
Hi all.
I've just finished the 0.1 release of a command I've been working on
tonight, based on Tom Counsell's (http://tom.counsell.org/view/
ExcelToLatexTableConvertor) excel2latex, that will take an excel
table from clipboard (copy from excel. doesn't work for selected text
yet.) and run by typing excel[tab] (excel⇥').
It requires that the longtable package is included, but if you're
working with tables, you'll probably want that anyway. This isn't
perfect, you'll probably want to change the '\begin{longtable}{c c c
c c c }' to format the rows how you like, but it seems to work for me.
let me know what you think. I know this saves me a lot of time, so I
hope it will for you too.
Cheers, Al.
☠☢✯☢☠
Hello!
Two Problems on the Latex bundle.
I have a project structure like this:
-Projectfolder
projectmain.tex (master file)
-- subfolder1
-- file_1_1.tex
-- file_1_2.tex
-- subfolder 2
-- file_2_1.tex
When I now drag file file_1_2.tex into file_2_1.tex,
I get
\include{../subfolder1/file_1_2.tex}
The problem is, that I´get an error, because the file
can not be found. The file path has to be
\include{subfolder1/file_1_2.tex}
because it depends on the master file. But when I then
invoke the command "Show outline", the file file_1_2.tex
is not found, because it expects the path as the first
statement.
Another problem is, that latex does not typeset the
files, that where included. Why does the drag command
produce a include command?
Helge
Hi,
Is there a way to setup Textmate (for Ruby on Rails development) such that
when I'm "tailing" the error log I will get different line colors for errors
based on the severity of the error?
Eg
- logger.error ('xxx') => RED
- logger.warning ('xxx') => ORANGE
- etc
Thanks in advance
Greg
Hi,
I'm looking for a way to crate a simple snippet so that tab
completion: //(tab) will insert CSS comments and wrap any text on the
line if applicable.
I've got so far as this:
/* ${1:${TM_CURRENT_LINE/(^\s+)(.+;)/$2/g}} */
$2
Which when you feed something like:
//(tab)some-property: some-value;
Produces output:
/* some-property: some-value; */
some-property: some-value;
What I would like is to delete the second instance. Is there any
way? Or, will I just have to settle for selecting the text and
create a key equivalent snippet (which means I have one snippet for
plain comment and another for wrapping...).
Oh and one other question about snippets: in the sequence ${«tab
stop»/«regexp»/«format»/«options»} what are the options? I stuck with
g because that's what I had seen.
thanks in advance,
Gabriel
Hi!
Just wondering because of the news that input managers will be banned
in Leopard. Is there already a new solution planned for "Edit in
TextMate"?
Niels
--
Jammern für Anfänger: Niels K. (25) Jammerbacke -- auch für
professionelles Jammern zu haben
http://jammern.wordpress.com
I made my first screencast ever. It's 11 minutes long, and 15Mb big! The
volume is a little low,
pronunciation could be better, but I hope you enjoy! demonstrates the
latest svn features.
http://home.mac.se/joachimm/Objective-C_with_TextMate.mov
Joachim Mårtensson
For a bundle I'm maintaining, I wanted to be able to easily toggle
between having changes written directly to the bundle (so that I can
commit them) and having changes written to deltas (so that I can make
local customizations that are not committed).
I wrote a command for this:
http://henrik.nyh.se/2007/03/24/textmate-command-to-toggle-writing-deltas/
I'm sure others have done similar things before, but I couldn't find
anything, so I rolled my own, and thought I'd share.
If the command does something bad or unnecessary, or if you've solved
this problem in a better way, please let me (us) know.
I have lately had to use code that includes
\begin{SaveVerbatim}[commandchars=\\\{\},codes={\catcode`$=3
\catcode`^=7}]{guard}
$\lnot$busy(phone)
\end{SaveVerbatim}
The \catcode`$=3 confuses the TextMate's grammar and thus everything
that follows is treated at maths in scopes and hence in colouring.
Is there an easy solution without messing with the main language
definition?
Hi there,
after getting nagged at my blog (http://www.gnegg.ch/archives/354-
External-blogging-tools.html) to look into why TextMate's Blogging
Bundle behaves strangely with Serendipity blogs, I had a look into
the problem.
Actually, there are two problems, but so far, I've only fixed one
(it's getting late here):
1) When you have a Date:-Header in your Posting, s9y will interpret
the date wrongly and will assume it to be the beginning of the epoch
(1970-01-01). This is problably a flaw in s9y and I'll report it
there as soon as I know what's going on.
2) The Pings- and Comments-Headers were ignored and Pings/Comments
were turned off regardless of what the headers were set to. This is
what I've actually looked into this evening (GMT+1 here):
Basically it all comes down to the fact that parse_post (blogging.rb)
is unable to cope with empty headers of which s9y produces at least
one: s9y always sends an empty mt_convert_breaks-member in the post
record and when no tags are defined, it'll also send an empty
mt_keywords member.
With an unpatched blogging.rb, this will create something like this
(ignore the f*ed up date - that's caused by bug 1) above):
Type: Blog Post (Markdown)
Blog: s9y
Post: 1
Title: First entry
Date: 1970-01-01 02:00:00 +0100
Keywords:
Format:
Pings: On
Comments: On
This causes the parser to stop after the Keywords-header (lines
206/207) which will lead to the following headers to be ignored, thus
turning off comments (s9y assumes Comments=off if the information
isn't present in the RPC-call).
Now I'm not sure if s9y's behaviour is actually legal here (please
enlighten me), but I think the blogging bundle should be able to cope
with empty fields.
There are two possible fixes: One is to fix the fields-parser to make
it stop bailing out at empty fields. I've attached bb_fixparser.diff
which does that. The other way is to make post_to_document stop
adding empty format and keyword fields. bb_skipempty.diff does that.
I'm not sure which way is the correct way to go. fixparser has the
tendency of working with even more crude blogging engines, while
skipempty is what the bundle did so far (look at the handling of
mt_tags for example.
Anyways. Please consider merging one of the patches to make the
blogging bundle work better with serendipity.
Thanks
Philip
Hi Allan
How diffiicult would it be to add an option to
the folding system telling it to obey indentation
exclusively?
With this option, TextMate would become a
very nice cataloging tool for removable media:
I drag and drop the CD on a TextMate window
and the tab-indented list of the content appears.
It is already very easy to search such lists,
with folding-at-indentations it would be also
easy to navigate them.
Thanks
Piero
Hi,
We are evaluating textmate as part of a wider move from PHP to Rails. I have an issue which I hope someone here might be able to help me with...
We have a shared linux development server and we each checkout and edit our files on the server remotely either via samba shares or directly by SSHing in. This is so we can preview the changes in our dev sites as we make them.
This works OK for the windows guys (they use Tortoise svn and map a network drive to get to their files). I am OK as I am comfortable in the terminal and don't mind SSHing over to the dev server to do any subversion stuff, but we have a couple of designers who have a fear of command lines and want to work strictly within textmate. Running any SVN command from textmate fails because the samba share appears like a local directory and all the SVN commands get screwed up. It then locks their copy and we have to clean up the locks.
Is it possible to set up textmate to either tunnel the SVN commands through SSH so they run in the devserver environment as if performed in a dev server shell or switch to using a different network filesystem (SSHFS, maybe?) so that we can edit our files remotely on the development server and use SVN from within TextMate?
We'd even consider moving to another open source version control system to fix this as long as there is good support for Mac, Win and linux...
Many thanks in advance,
Matt.
---------------------------------
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
Hi,
Textmate incorrectly labels italicised and bolded text.
In the following markdown: "this is s_om_e markdown", 'om' will be
tagged as italicised. When converting to HTML, 'om' will not be
italicised. I am guessing that the Markdown processor requires that
italicised text be surrounded by white space. The same is also true
for bolded text.
I was able to modify the language grammar to not incorrectly tag the
text. My solution is probably quite naive but it did work for me. Can
someone with more regex fu vet this and can we get it added to the
official bundle please (assuming it should be added and I am not
wrong on this).
Luke.
I've been toying around with the idea of a PHP/HTML language
definition. The problem is that when I'm working on a PHP project, I
switch back and forth between pure PHP files and PHP/HTML files all
the time. As you can imagine, switching the language definition each
time to get proper syntax hilighting can get bothersome. It would
most likely be a huge bundle and take a lot of work, but I was just
wondering if anybody else has found any tricks for this kind of issue
before I investigate it further.
Thanks,
Michael
Hello!
I have the following Latex code.
\begin{lstlisting}[language=PBN]
[Board "<Boardnummer>"]
\end{lstlisting}
The "< starts the scopes
punctuation.definition.string.begin.latex
string.quoted.double.guillemot.latex
The scopes are still active after the code.
Helge
With this function declaration TextMate will not show it in the
symbols list. Is there anyway of importing symbollists from external
commands instead of using regexps?
void client_clause_string(char *buf, int bufsiz,
struct Clause *pclause)
{
}
--
/Erik
Hi --
A quick request for help...
I thought there might be someone knowledgeable here about an error
that cropped up for me with the latest build (1372). I apologize in
advance is this isn't the sort of thing discussed here or if I should
bring this to another forum, but since it just happened NOW, minutes
after my update, I thought this might be the place.
Anyway, I'm using GTDalt and the context command (shift-@) gives this
error after the selection from the dialog:
/Users/mcg/Applications/Text/Textmate/TextMate.app/Contents/
SharedSupport/Support/lib/dialog.rb:138: warning: Insecure world
writable dir /Users/mcg/Documents, mode 040756
Any advice. Did I do something clueless when I grabbed the latest build?
-- Michael
I am having a problem with the GTDAlt date picker. The date inserted
does not correspond to the date entered. So entering 12/03/2007 gives
me 2007-03-11. And entering 31/05/2007 gives me 2007-05-29.
While on the topic of the date picker a small issue about the UI.
Dates are entered day month year. I think it should be year month day
for two reasons:
1. That way it is consistent with what is entered in the file.
2. The date picker defaults to the current date which is now
February. Helpfully it doesn't allow you to pick a day not in that
month. So to enter in 31/05/2007 I first had to tab ahead to change
the month before entering the day (since there are not 31 days in
February). The year month day format would avoid this problem.
Thanks.
All the best, Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Departmental webpage: http://www.ucl.ac.uk/philosophy
Personal webpage: http://markelikalderon.com
Hello all,
I use the Pascal bundle quite a bit, and I've been annoyed that it can't tell the difference between declarations/prototypes of functions and definitions of functions.
I'll give you that this is tricky - in Pascal they both mostly look the same, and what they are is really determined by the next line (which would be a BEGIN if it was a definition)
FUNCTION aTest(varName: theType);
However, there is two cases where such a difference can be seen easily: the forward keyword and the external keyword
FUNCTION aTest(varName: theType); FORWARD;
{a prototype of a function found later in the file}
FUNCTION aTest(varName: theType); EXTERNAL;
{EXTERNAL is just like C's extern keyword}
And, in GPC (the Gnu Pascal Compiler) there's also:
FUNCTION aTest(varName: theType); attribute (name = 'aTest');
{You could see this kinda like declaring a prototype in C -
functions above this in the file OR outside the file
can call this function
}
Can we make the Pascal bundle use the following regular expression in the meta.function.prototype.pascal scope (so then we can use a preference to turn off their appearance in the symbol list?
\b(?i:(function|procedure))\b\s+(\w+(\.\w+)?)(\(.+?\)); (attribute|forward|external)
Or other thoughts etc would be appreciated - this could be an inefficient way of doing this.
Thanks In Advance,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
Hi All,
I just got the latest build, Version 1.5.5 (1372), and I noticed that
the python language syntax is now somewhat broken for comment
characters (#) inside regular expression strings r'some regular
expression'.
like:
some_reg_string = r'#'
shows up as illegal / incomplete syntax.
And e.g. all my code following this line:
parentPattern = re.compile(r'^#extends (\w+)\s*$')
becomes:
source.python
meta.function-call.python
meta.function-call.arguments.python
which is a little confusing.
best,
dirk
-----------------------------
Dirk van Oosterbosch
de Wittenstraat 225
1052 AT Amsterdam
the Netherlands
http://labs.ixopusada.com
-----------------------------
This morning I got the notice to update to a new cutting edge build.
Now when I try to use the svn status command I get the following error:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
web_preview.rb:70:in `html_head': undefined method `+' for
nil:NilClass (NoMethodError) from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/web_preview.rb:117:in `html_header' from
(erb):29
svn update gives this error:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
web_preview.rb:70:in `html_head': undefined method `+' for
nil:NilClass (NoMethodError) from /Applications/TextMate.app/Contents/
SharedSupport/Support/lib/web_preview.rb:117:in `html_header' from
(erb):29 -:13:in `write': Broken pipe (Errno::EPIPE) from -:13:in
`puts' from -:13 from -:13:in `each_line' from -:13
svn info:
NoMethodError
reason: undefined method `+' for nil:NilClass
trace:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
web_preview.rb:70:in `html_head'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_info.rb:43
I didn't have any reason to test other commands.
Previously I never had any errors. Is there some new setting to get
svn status working again? Or some old setting I might have that would
be throwing it off?
In the advanced prefs I have TM_SVN set to /usr/local/bin/svn and
that's the only svn related change I have made to TextMate.
thanks,
john
Hello,
We have recently moved to an authenticated only proxy..
and when I open TextMate it gives me an error:
Error NSURLLErrorDomain -1012
I've tried to enter the user/pass in SystemPrefs and it doesn't work..
any idea how I could get updates again?
Thanks
hi there,
I see in the change list that
[NEW] Perl bundle: PerlMate will now request for user input when
reading from <STDIN> (Ciarán Walsh)
This seems very handy: Does anyone have an example of a command which
does this? If it is not perl specific, are there examples of syntax
for other languages, like cmd line php?
cheers,
t
If I write the following snippet:
${3:x}${1:$TM_SELECTED_TEXT}$3$2
activate it, then press tab twice so the first 'x' is selected, I would
expect what I type to be mirrored in the other 'x' too. Why isn't it?
Similarly,
${1:x}${2:y}$1$2
doesn't do what I'd expect: the 'x' is mirrored, but the 'y' is not.
What am I missing?
Thanks,
Robin
Hi,
I'm working on a set of XHTML/PHP pages and the document header
resides in a separate file. Is there a way to tell TextMate to insert
tags properly, ie. <br /> instead of <br> etc.?
Thanks!
Christian
To: All TextMate Actionscripters.
I'm looking to find a simple "Hello World" downloadable TextMate
project which demonstrates how to configure and compile with MTASC.
Haven't been successful yet with the Help documentation.
Sincerely,
Tony Jacobson
Ratio Interactive
Hey all,
i'm using 'xbel' for some specific xml file and like to know if it's
possible to let TextMate knows the files with extension xbel are xml
files ?
best,
Yvon
I have just tried enabling using Textmate from Apple's Mail
application to get better text editing. Works fine, but one thing I
miss from Mail is that text at different quote levels is coloured
differently. This would seem a simple enough thing to do (I would
have to do a bit of reading up though), but has anyone already done
this?
Dave.
Hi there
I have a non-public Wordpress blog behind a htpasswd
authentification. Is it someway possible to use the blogging bundle
all the same? When trying to fetch the posts, I get the following
errors:
/usr/lib/ruby/1.8/xmlrpc/client.rb:533:in `do_rpc': Authorization
failed. (RuntimeError)
HTTP-Error: 401 Authorization Required from /usr/lib/ruby/1.8/xmlrpc/
client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/metaweblog.rb:31:in `getRecentPosts'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:547:in `fetch'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:546:in `popen'
from /Library/Application Support/TextMate/Support/lib/progress.rb:
11:in `call_with_progress'
from /Library/Application Support/TextMate/Bundles/Blogging.tmbundle/
Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.V9d44n:3
Thanks for any help in advance!
Oliver
I've just released BlogMate 0.4 which adds support for reading from
and writing to blogs behind HTTP Basic and Digest authentication.
Also, system keychain support is used for storing/fetching username/
password.
hope some of you can check it out.
http://ditchnet.org/blogmate
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
Hi,
I am a new Textmate user, and this is my first post. My initial
interest in Textmate was in using it as a python editor, although as
I learn more about it, I am interested in using it for LaTeX and
Context. The LaTeX bundle is very nice, though the ConTeXt bundle
doesn't seem to have a way to typeset the resulting file (at least as
far as I can see.) I have configured TeXShop to use Textmate as an
external editor---this works, but it is not as nice as working solely
in Textmate.
Is anyone is working on a ConTeXt bundle similar in functionality to
the LaTeX bundle?
Cheers,
-paul
Hi,
I'd link to run a shell command in a bundle and capture the output in
the html window. So I thought scriptmate.rb seems to be a good way to
go, but I am a bit clueless. Running this from the command line gives
me an error.
--------------------------------------------------
#!/usr/bin/env ruby
ENV['TM_SUPPORT_PATH']="/Applications/TextMate.app/Contents/SharedSupport/Support"
$:.unshift ENV['TM_SUPPORT_PATH'] + "/lib"
require 'scriptmate'
cmd_mate("ls")
--------------------------------------------------
nil
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:92:in `waitpid': no implicit conversion from nil to integer (TypeError)
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:92:in `emit_html'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/scriptmate.rb:16:in `cmd_mate'
from ./parse_texrun.rb:42
And scriptmate.rb looks a bit strange to me:
....
def emit_html
emit_header()
stdout, stderr, stack_dump, pid = @command.run
....
is trying to get 4 parameters from @command.run, but UserCommand#run
only returns 3. A related question: is it possible to get a pid from
popen3?
Patrick
> Looking at the diff, the b was previously a <, so the intent was to
> convert \< to \b (because of a change in the regexp library), but
> accidentally all <’s where converted to b’s.
>
> I have now reverted this part of r976, better late than never :)
Excellent! My first bug report and fix! Most exciting. Please
forgive my enthusiasm; I only came to programming in a serious way
about a year ago. I was 'inspired' to do so by a custom program my
company rolled out that was so astonishingly awful that I felt that I
had to demonstrate that better could be done. So, a year later, with
20+ newly purchased yet well worn O'Reilly titles on my shelf, it's
nice to be able to start contributing back to projects I like.
In addition, I have found another small problem with the Python
bundle - it has to do with the way it scopes 'meta.item-
access.python' sections.
In particular, it gets confused by the end ], and does not recognize
it as 'punctuation.definition.arguments.end.python', although it
recognizes the lead [ correctly as
'punctuation.definition.arguments.start.python'. For instance, put
the following in TextMate as Python, and note the scopes/coloring of
the []'s.
pairing_name = findNextWord(packet[row])[0]
The regexes responsible are below, along with my explanation of the
problem and proposed fix:
{ name = 'meta.item-access.python';
begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\[)';
end = '(\])';
patterns = (
{ begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*
\[)';
end = '(?=\s*\[)';
patterns = ( { include = '#dotted_name'; } );
},
{ begin = '(\[)';
end = '(?=\])';
beginCaptures = { 1 = { name =
'punctuation.definition.arguments.begin.python'; }; };
endCaptures = { 1 = { name =
'punctuation.definition.arguments.end.python'; }; };
patterns = ( { include = '$base'; } );
contentName = 'meta.item-access.arguments.python';
},
The problem is that the 'meta.item-access.python' begin regex tags a
LOCATION, specifically the location of the beginning of the first
legit Python dotted name followed by a [, thus correctly allowing the
[ itself to be matched within by
'punctuation.definition.arguments.begin.python'. However, the
'meta.item-access.python' end regex tags not the LOCATION of the
end ], but the end ] itself, thus preventing
'punctuation.definition.arguments.end.python' from selecting the
end ] as it should. In addition, the regex for
'punctuation.definition.arguments.end.python', instead of selecting
the end ], selects the LOCATION followed by an end ], which gives it
no characters in its scope!
My proposed fix swaps the two; both the start and end 'meta.item-
access.python' regexes select for LOCATION, and both
'punctuation.definition.arguments.begin.python' and
'punctuation.definition.arguments.end.python' select for the actual
CHARACTERS [ and ]. The code is below, and I have tested that it
properly scopes the Python constructs now.
{ name = 'meta.item-access.python';
begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*\s*\[)';
end = '(?<=\])';
patterns = (
{ begin = '(?=[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*\s*
\[)';
end = '(?=\s*\[)';
patterns = ( { include = '#dotted_name'; } );
},
{ begin = '(\[)';
end = '(\])';
beginCaptures = { 1 = { name =
'punctuation.definition.arguments.begin.python'; }; };
endCaptures = { 1 = { name =
'punctuation.definition.arguments.end.python'; }; };
patterns = ( { include = '$base'; } );
contentName = 'meta.item-access.arguments.python';
},
);
},
Hope this is helpful - I am (slowly!) looking through the rest of the
Python language definition to see if there are any other glitches I
can spot. Cheers,
Nick
When connecting to a blog over SSL, various blogging commands (e.g., Fetch Post) will include "warning: peer certificate won't be verified in this SSL session" in their output. Net::HTTP generates this warning when its verify_mode hasn't been set. It then defaults to OpenSSL::SSL::VERIFY_NONE. My patch sets it explicitly to avoid the warning.
I don't work with column editing much at all, but I do instinctively
use "select, drag, option key" to copy text. But most of the time my
clicking option gets me into column select mode.
Is there a way to remap the "select column" off of option so it'll
just drag-and-copy for me?
Thanks.
Hi,
Any tips on how to change the format of a line of Ruby based on it's
content?
In particular I was wanting to try deemphasize logging lines (i.e. starting
with "logger.*") by setting the text font to a gray. Any ideas/tips would
be great. Couldn't seem to see when it would be possible to do this in the
bundle manager.
Tks
Greg
TextMate has a syntax element called "Embedded Source", which is used
for things like the lstlisting environment in LaTeX or JavaScript
code embedded in HTML. The default background color for this element
is a light blue, which is almost identical to the light blue used for
selected text. Because of the similarity, I always get confused and
think I've inadvertently selected some embedded source. I'm wondering
why there is such a similarity between these colors. Was it
deliberate (and if so, what was the reason?) or was this an oversight?
Trevor
Hey folks -
I'm trying to get up-and-running with TextMate, which I will be using
primarily for LaTeX-ing, and I'm having some troubles. I've been
using LaTeX installed via MacPorts/DarwinPorts for a few months now,
so I'd prefer to get TM working with that if possible rather than
abandoning it for MacTex (unless there is really and truly a good
reason to do so).
The main problem I'm having is that when I call the "Insert Label/
Citation Based on Current Word" command, TM spits out "The tex
binaries cannot be located!" I assume this means that I have not
properly told TM where to find my LaTeX installation, but I can't
figure out how to do so. I tried creating a PATH environment
variable equal to the output of "echo $PATH" in Terminal, but I don't
think it helped. Sorry... either I'm doing something dumb or I'm
just not unix-y enough to understand what's going on here.
Any suggestions?
Thanks very much!
Best
- Chris MacMinn
Hi - I was looking over the Python language definition, and I came
upon a regex that I don't understand - or, it might be a bug. The
regex is in the FoldingStartMarker:
<key>foldingStartMarker</key>
<string>^\s*(def|class)\s+([.a-zA-Z0-9_ b]+)\s*(\((.*)\))?\s*:|\{\s*
$|\(\s*$|\[\s*$|^\s*"""(?=.)(?!.*""")</string>
The key mysterious part is right in the first character class, which
I believe is designed to pick out the name of the class/def in question:
[.a-zA-Z0-9_ b]+
Okay, I get it up until the ' b' part. Essentially, the name of a
class or def is a series of characters that are in a-z, A-Z, 0-9, or
are '_' or '.' . What's the point of the ' b' part? Was this meant
to be '\b', signifying a word boundary? Or is there some deeper
meaning to space b that I don't understand? Please forgive if this
is not an appropriate place for this question; I am rather new (well,
completely and totally new) to the use of mailing lists.
Brilliant program, btw - it takes time to appreciate it.
Nick
Hi,
Is there a way to highlight all occurances (e.g. in yellow say) of a
particular piece of text? Say a variable name for example?
Ideally also is there a way to, once such a variable is highlighted
through-out the file, you can change it in one place and it automatically
changes it in real time in other places in the file (I know I had this in
Jbuilder).
Tks
Greg
Hi!
Now I sit at my laptop because my other computer is right now not
available, my blog is set up here exactly (at least I think so) like
at my working-computer and if I use the cat-Snippet from the blogging
bundle I get the following behaviour and error:
TextMate tries to contact the blog for fetching the items and then I
get the error
/usr/lib/ruby/1.8/xmlrpc/client.rb:403:in `call':
XMLRPC::FaultException (XMLRPC::FaultException)
from /tmp/temp_textmate.xQsjEh:27
from /tmp/temp_textmate.xQsjEh:24:in `call'
from /Users/nik/Library/Application
Support/TextMate/Support/lib/progress.rb:36:in `call_with_progress'
from /Users/nik/Library/Application
Support/TextMate/Support/lib/progress.rb:32:in `call'
from /Users/nik/Library/Application
Support/TextMate/Support/lib/progress.rb:43:in `call_with_progress'
from /Users/nik/Library/Application
Support/TextMate/Support/lib/progress.rb:40:in `dialog'
from /Users/nik/Library/Application
Support/TextMate/Support/lib/progress.rb:40:in `call_with_progress'
from /tmp/temp_textmate.xQsjEh:24
Any help appreciated
Niels
Hi,
I am trying to follow this approach in the latex-help file:
In the case where what is expected is a label, then pressing escape
will similarly offer all matching labels from the TeX document.
Depending on your naming conventions, this could for instance offer a
list of all theorems: If the labels for theorems are all of the form
thm:labelname, and you have included the colon (:) in the list of
word characters in TextMate’s preferences, then pressing escape when
the caret is right before the closing brace in \ref{thm} will offer
as completion options all labels corresponding to theorems.
If there are many matching completions, it is often more convenient
to use the pull-down-list versions of the commands, which are
triggered by ⌥⎋.
I do have ":_" (just a colon and an underscore, no quotations)in the
preference pane as Word Characters. Is this ok or do they need to be
separated / in quotations / ... ?
Neither pressing <escape> nor <escape> + <alt> while the caret is
right in front of the closing bracket in latex mode, doesn't do
anything.
Now, I looked into the bundle editor, into the latex bundle in my
installation:
1) <escape> is the key equivalent for bibdesk completion
2) <alt>+<escape> is the key equivalent for "Citation based on
Current Word / Selection" AND for "Label Based on Current Word /
Selection" --- this seems a little weird to me. Is this how it should
be originally? Or have I changed this accidently at some point?
I remember a time when hitting <escape> (I think) actually has
worked and I used "eqn:" and "fig:" for labeling and referencing
equations and figures, respectively. Should the difference between
<alt>+<escape> and <escape> only that <alt>+<escape> should offer a
pull-down list and hitting <escape> multiple times would move through
the possible choices?
Is this something that got changed over the releases (I am working
with cutting edge)? That leads me to another question: when a bundle
gets updated in the bundle repository... do those changes get updated
in each new (cutting edge) release or would I check them out and
update them as I would with any other "default" bundle?
Thanks for your help,
Claus
Hello:)
1) I know that my use of Latex is different from the majorities of
the users because I create especially packages. I need to have a
really different completion. I need for example :
newcommand
renewcommand
RequirePackage
newcounter
setcounter
stepcounter
newlength
etc..
for xkeyval
define@cmdkey
define@boolkey
presetkeys....
for ifthen
ifthenelsee etc....
etc...
I would like to know the good way to obtain this
Is it necessary that I modify LateXCommandCompletions.rb ?
2) But I do not understand why in the LateXCommandCompletions.rb,
there are words like pi, Pi, lim etc ... words with 2 or 3 letters ?
Which is the interest to complement these words?
greetints alain
Hi,
I'm just trying to work out how to open a recent file from within the same
project. Eg have files open in project A, close file X, then want to be
able to get a list of recently closed files in the that project which in
this case would have file X on top?
Using the Open Recent doesn't seem to offer this?
Tks
Greg
I don't think there's a default multi-select nib for tm_dialog yet,
is there? I used one that I had already created for this, so if it's
out of place please switch it out. This should be up to date with
the latest specs, the DIALOG environment variable and the previous
fallback mods to the cat command. The nib is included and should
reside in the nibs folder in the same bundle folder as blogging.rb.
Thanks,
Brett
I hope I am sending this correctly. I need assistance with the Blogging Bundle of TextMate.
Per the very helpful video I found on the site, I setup the bundle for my WordPress login. After I completed the setup, I made sure I saved it. When I attempted to Fetch Blog and entered my password for the site, I got the below error message and nothing was received:
Received Exception:HTTP error: 301 No Post are Available
I even attempted to send a blog up to my site and got, basically, the same error message.
I was using WordPress 2.0.6 when I first attempted and decided to upgrade WordPress last night to 2.1.2 (mainly because I need to also) to see if that would fix the problem, it did not.
Thank you ahead of time for your assistance.
I have been using TM for quite a while, and one of my most-used
features is the PHP syntax validation. Immediately after the latest
update (to 1.5.5 (1368)) this stopped working. Instead, I see the
following lines in place of the error / success readout:
dyld: ruby Undefined symbols:
_rb_attr_get
_rb_attr_get
_rb_ll2num
_rb_num2ll
_rb_string_value
I have tried updating Ruby to 1.8.6, and downgrading it to 1.8.4. I
have deleted and downloaded a new copy of TM. Nothing helps. I am on
10.3.9 + all patches.
Has anyone else seen anything like this?
Thanks,
Walter
I don't know if I'm using TextMate in a strange way, but: I have an HTML
blogging project open with a couple of root folders, and each of those
folders have one sub-folder for archive purposes. Every now and then I like
to archive posts from the main folder into the sub-folder, but when I do
this the sub-folder unfurls - and I really don't want this to happen. Is
there any way to stop it? A preference I can check somewhere? Why does it
open in the first place; is this behavior useful to some other workflow or
language?
Thanks for any thoughts
- david
I was getting the wrong auto-close \end{...} tags when I pressed
apple-option-. in my LaTeX document.
The problem turns out to be caused by a bug (or design flaw) in the helper
script "$TM_SUPPORT_PATH/bin/checknest.rb", which only recognises a single
delimeter per line: in a few places I have a short environment on a single
line.
I have applied the attached patch to my copy. I admit that I haven't tested
it especially thoroughly, but it seems to work for me.
I hope this is useful.
Robin
I have started using Textmate for editing c source but seem to be
unable to customize the indentation rules to match our code convention
Here is an example of I need indentation to work
void example_function()
{
short i, n = 10;
for (i = 0; i < 10; i++)
{
do_something(i);
}
do_completion();
}
I would even be happy to do without the regular c indentation rules,
and have tried overriding them with empty patterns, but I still have
a problem when I type the semi-colon to complete the do_completion()
line as this line will get auto-indented to match the indent level of
the loop block.
Thanks in advance for any help with this.
Simon
Hi!
Would there be the possibility to include some more cite-commands for
citation-completions?
\citeNP
\citeA
\citeANP
\citeN
\citeN
\shortcite
\shortciteNP
\shortciteA
\shortciteANP
\shortciteN
\citeyear
\citeyearNP
Niels
--
Jammern für Anfänger: Niels K. (25) Jammerbacke -- auch für
professionelles Jammern zu haben
http://jammern.wordpress.com
I just received this message from a user of my UTW-RPC/Autotag
combination, and I'm a little mystified. Can anyone on the list tell
me what might be the issue here? I am running the same combination
as this user and have none of these issues:
_______________________________
Greetings,
I just tried UTW, and got some errors. Firstly, I cannot fetch blog
posts with textmate using Brad Choates plugin when the WP plugin is
activated. I get:
RecievedException: Wrong content type
When I try to run it. Its a tool tip, so I couldn't cut and past it
for you.
Secondly, I get the following when I run 'autotag' on a blog post:
error 63 (File name too long) opening sem /tm_dialog async/
mycomputername/30.
tm_dialog (async_update): Window '30' doesn't exist
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/
dialog.rb:83:in `parameters=': Could not update () (RuntimeError)
from /tmp/temp_textmate.dHfCTa:42
from /tmp/temp_textmate.dHfCTa:34:in `call'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:36:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:32:in `call'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:49:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:47:in `fork'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:47:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:40:in `dialog'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:40:in `call_with_progress'
from /tmp/temp_textmate.dHfCTa:34
I am running WP 2.1, utw-rpc1.2.zip, autotag3.1.zip, TextMate v1368.
The second of these errors are while textmate is set to 'blog HTML'.
_____________________
Thanks for any assistance,
Brett
I am having trouble with citation insertion in the LaTeX bundle (both
the Ref-TeX style and the Insert Citation Based on Current Word).
Each issues in a never ending spinning beach ball. A quick look at
Activity Monitor reveals ruby to be consuming upwards to 80% of my
cpu. When I kill the process I get the following error:
/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
96:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filemap'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
71:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
200:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
199:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
170:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 4: syntax error: unexpected end of
filerecursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
206:in /bin/bash: -c: line 1: unexpected EOF while looking for
matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of
fileget_citations'
from /tmp/temp_textmate.2NjSUX:37
Any ideas? I am using TM 1.5.5 (1368). Thanks in advance. All the
best, Mark
I just updated to the latest cutting edge version, and updated my
bundles. I wanted to try the Ruby auto complete, but either I'm doing
something wrong, or it just doesn't work.
No matter what I try to type, all I get is a tooltip saying "No
matches were found". In a Ruby/Rails document, I start typing
'validates' (without the quotes, obviously) and hit Option Escape and
get No Matches were found.
Is there something else I need to do to get this working?
Thanks,
John
While I'm here, there's an obvious typo in the "LaTeX and view" command,
which means
it fails to respect the
%!TEX TS-program = xelatex
directive. I fixed that, and also made it respect 'TS-program=latex', which
is supposed to mean
that a Latex -> DVI -> PS -> PDF compilation path should be used, rather
than PDFTeX's
straight-to-PDF compilation.
(I need this because I have a package which uses PSTricks. So although
PSTricks is being
used, the text \usepackage{pstricks} doesn't appear in my actual .tex file.)
Patch attached.
Robin
I switched from FF to Safari for a couple days because I really,
really liked the edit in TextMate option. However it only lasted for
a few days because I like FF a lot more...so I decided to give the
"It's all Text" plugin another shot. Hated it. First of all I can't
open the editor using my keyboard, and secondly when I save and close
my document it doesn't switch back to FF automatically. The edit in
TM for Safari does both...are there any alternatives to this IAT
plugin for FF? I want easy FF editing in TM.
Pat
Hi all,
I love a lot of things about TextMate - but I'm still
having one major problem.
How can I edit multiple files straight from an FTP
server in a single window? I use Transmit 3 - which
lets you ctrl-click a file and "edit in" whatever.
Then, when you save, it shoots the new file up to the
server. However, I'm trying to figure out how to do
this within one window - like when you're working on a
"project".
This works fine in BBEdit but in textmate it just won't work.
It's probably the last thing that's holding me back from switching over
completely...
Hi list,
I've just released a public beta of BlogMate, my free blogging
palette plug-in for TextMate. If some of you could backup your blog
databases, download a copy, try it out, and send me a letter saying
your blog didn't blow up that would be sweet.
I'm serious about the whole backup part too.
http://www.ditchnet.org/blogmate/
thanks,
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
This has been discussed before, you should find a bunch of stuff on
here with a search.
I don't get the technical reasons behind it but it seems that it is
impossible to get that behavior from TextMate. The easiest way to
solve this problem is to use Interarchy (FTP program - not free
though...). It allows you to create what they call "Net Disks" which
are local mirrors that auto synch to server on change and/or regular
intervals. Since they're pretty much local files, you can create
TextMate "projects" with them. Not ideal... But it does the trick
until a better solution gets built in TextMate. Seeing how
customizable TextMate is, I would have thought one of the super smart
people on this list would have come up a "reopen current opened
documents in a project" but I guess it's not as easy as it sounds ;)
On Mar 15, 2007, at 5:15 PM, textmate-request(a)lists.macromates.com
wrote:
> Hi all,
>
> I love a lot of things about TextMate - but I'm still
> having one major problem.
>
> How can I edit multiple files straight from an FTP
> server in a single window? I use Transmit 3 - which
> lets you ctrl-click a file and "edit in" whatever.
> Then, when you save, it shoots the new file up to the
> server. However, I'm trying to figure out how to do
> this within one window - like when you're working on a
> "project".
> This works fine in BBEdit but in textmate it just won't work.
> It's probably the last thing that's holding me back from switching
> over
> completely...
hi,
I want to share a few suggestions for subversion bundle that comes
with Textmate, I hope this is the proper place.
* Add the ability to set the ignore propset on folders directly in
menu (ctrl+shift+a).
* When viewing status (ctrl+shift+a+0), right clicking in window to
reload will present a blank page, I'm the only one?
* Add the ability to use the --force flag, this will reduce command
line editing in some cases.
* Add the ability to use svn move (svn ren) on files in project
drawer, or just make rename function svn-aware
next, for textmate
* add the possibility to directly have a terminal window opened
sticked at the bottom of textmate like project drawer.
* sorting files and directory in project drawer, directories first
instead of alphabetic order.
* set a default preference for the position of the project drawer
(left or right).
thanks for making textmate, the best text editor so far.
Claudio
Hi,
this might be a very stupid question and I'm not so sure about
whether this is the right place to ask either so I hope you can
forgive me if this post is in some way inappropriate.
I'm trying to reproduce the screencast about tm_dialog on my computer
but somehow it doesn't work. Whenever I try to open a nib-file with
"tm_dialog some_nib_file.nib" my shell is stalling but nothing else
happens. I wonder what I'm doing wrong!? Are there any Variables I
should set?
I'm using /Applications/TextMate.app/Contents/PlugIns/Dialog.tmplugin/
Contents/Resources/tm_dialog (=$DIALOG)
on a core duo macbook with 10.4.8. The nib file is saved as 10.2 and
later.
Thx, Dominik.
> Are any others interested in figuring out guidelines and
> stylesheets for such things?
Yes. I'm low in coding mojo, but assign me a granular task and I will
do it.
>> I wish I had the time to help you solve the MORE / CONT'D feature.
>> That's be pure awesomenesses.
>
> Can you explain this issue? Maybe someone will take up the charge.
When either a scene or a bit of dialogue spans a page-break
indicators are placed in the scene and in the dialogue that tell you
the scene, or bit of dialogue, continues on the next page. It looks
like this:
INT. STORE ROOM - NIGHT
Darcy sits alone.
DARCY
I can't stand just waiting here.
(more)
(CONT'D)
-----------------Page-Break-----------------------
(CONT'D:)
DARCY (CONT'D)
Give me something, anything...
The only place this pops up in is when printing to PDF. As of now the
PDF creation is handled by PrinceXml, so prince determines where the
page-breaks should go. Because prince is deciding where the page-
breaks go prince would need to determine when it needs to place the
"continued" indicators.
I'm using Prince because it's easy to install and I can leverage the
HTML conversion I can do to create the PDF. People have suggested
that I could get much more sophesticated odcuments using LaTex but
I've found it to be a large download, a pain to install, and yet
another document language I'd have to learn. So, I'm not too
interested at this point.
But to be frank, this issue is not a priority.
Hi folks,
I am just starting to get into TM a bit (I'm considering switching
from VIM), and I noticed that the Stats for Document command is a bit
overly complicated. I just wanted to suggest the following instead:
wc | sed -e ':x' -e 's/\([0-9][0-9]*\)\([0-9][0-9][0-9]\)/\1,\2/' -e
'tx' | awk '{printf "%11.11s lines\n%11.11s words\n%11.11s bytes\n",
$1,$2,$3}'
Nice app, so far... well, except it's that a modeless editor, of
course :)
Regs,
Derek
Derek Wyatt
http://derekwyatt.org
Hi All,
I've got localhosting set up and I'd like to edit a folder as user
www, but
sudo -u www mate folder_name
doesn't seem to work as expected. This could be because I don't know
the default Mac OS X www user password, I need to modify the sudoers
file, or because sudo doesn't pass privs to Textmate when called via
mate, as Allan seems to suggest here:
http://comox.textdrive.com/pipermail/textmate/2006-November/014625.html
Is this possible, or should I add it to the Wiki requests page? If it
is possible, can someone point me in the right direction?
peace - oli
dear list,
pardon my ignorance on this one... I have a feeling this has been
covered many times...
I'm wanting to try using TM for projects I'd usually use just Xcode
for... but I'm missing the class/method/function suggestions you get
when you are typing symbols in Xcode and press esc. does TM offer
popup suggestion menus like this? specifically for cocoa/
corefoundation/core graphics, etc?
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
Hi!
I have a category with a "," in the category name. If I fetch now the
categories via the "cat"-snippet I get the following:
Category: part until the comma
Category: part from the comma
In my case the category "Liebling, ich hab Migräne weil…" becomes
Category: Liebling
Category: ich hab Migräne weil…
Niels
--
Jammern für Anfänger: Niels K. (25) Jammerbacke -- auch für
professionelles Jammern zu haben
http://jammern.wordpress.com
Hi all,
I am having a problem getting started with tm_dialog. I followed the
instructions (intro_to_tm_dialog.mov --
http://macromates.com/blog/archives/2006/10/28/new-dialog-system-for-comman…
) but the first error I found was this:
> tm_dialog
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/tm_dialog:
line 5: /bin/tm_dialog_v5: No such file or directory
( In this 20 seconds I learned the ctrl-R - whoa KICK BUTT!! -- but sadly
`which tm_dialog` didn't work (strange tm_dialog worked)..)
The script was easy so I just will use tm_dialog_v5, but then the
following error occurred. Upon simply creating an empty nib and attempting
to use tm_dialog with it I get the following error:
> tm_dialog_v5 ~/Desktop/test.nib
tm_dialog: you have updated the Dialog plug-in to v8 but the tm_dialog
tool is still at v5
Since the movie ended abruptly I figured someone has a working example
buried in the TM application. I dug into the SharedBundles and started
looking around hoping to find a completion to the movie - or a bunch of
people who have created some nibs. I only found 10. (Uh-oh) Doing some
digging I can't seem to find any code which calls a nib other than the
subversion example but I don't understand how that works - it doesn't
appear to actually call it (i.e It doesn't ever seem to do a tm_dialog??)
So I am left with a bunch of questions I hope you experts can help me
with.
1. How can I get tm_dialog v8 or how do I get this to work as is?
2. Can someone give me a crude example of how to call a nib from a bundle
command and use it's output?
3. When creating a nib I want to get a password from a user - how do I
obfuscate the input?
4. How can I store that password so I can use it in other functions
within the bundle?
5. There was mention of a python property list parser - does anyone know
how this works with tm_dialog (example would be great), where it is and
how to use it?
Thanks a lot from A paying customer - who just bought the book too!!
---
Steven M. Klass
Strategic Manager, Design Automation - Analog Mixed Signal
SMSC
3930 East Ray Road, Suite 200
Phoenix, Arizona 85044
(480) 704-7046 (Desk)
(480) 225-1112 (Mobile)
steven.klass(a)smsc.com
Hello everyone, I'm not sure if this is how I am supposed to commit or
if there is a bug with TextMate's subversion bundle but here goes...
If I modify a few files and want to commit all my changes in 1 commit
with 1 message there is only 1 way I've found to do so. I have to
select the top level folder (like trunk, that contains my app, public
etc directories) at which point you can use the menu or the key
shortcut Ctl+Shift+A to pop up a window and choose commit, see the
multiple file, type you message and subversion sends the changes off
to the repository... the only problem is that in order to get a pop up
dialog on the top level folder (ie trunk) you have to have some (any)
file ope in textmate. Is this normal? I have gotten used to it but
sometimes before I quit for the night I close all my windows so no
preview is open in textedit and just the file drawer is there and I go
"shoot...I should really do a commit" but I can just select the folder
and get the list...I have to have a file open.
I know it's picky...is this how everyone else is doing it???
Thanks,
-Jon
I'm headed over to your site now. As my few very noob questions have
revealed, I'm no code jockey -- wish I was a little bit -- but a word
jockey. The coolness of your efforts is much appreciated.
john
--
jlaudun(a)gmail.com
http://johnlaudun.com
So I'm not sure how much interest this bundle will hold for a bunch
of code-jockeys on a mailing list, but I released version 3 of my
screenwriting bundle today. The bundle is all new, it's got a help
file, a preview function, a 'check for updates' function, Auto-
Complete, an 'Import from Final Draft' function that actually works,
and a lot more.
Thanks to SubtleGradiant for the Code Completion work and everyone on
the IRC channel.
Check out the screencasts and the bundle at http://ollieman.net/
screenbundle/
hi all,
I am a longtime bbedit user but someone said I should check textmate
out. I like it so far but I have encountered some weird and
frustrating behavior while using the project file pane while editing
text files loaded through transmit's 'edit with...' over sftp:
- sometimes when files open up through transmit and then I drag them
to the project pane, they're blank. I'll repeat the same process and
then they show up fine.
- sometimes after working on a file for awhile, the filename turns
red, which I'm assuming means the link has died and I can't open them
up anymore. I can toggle back to the tab if it's still open and see
the file, but it won't save any changes at that point. This is the
most frustrating because I have set up 100+ html/php/js/css files and
then they break.
Anyone have similar problems?
I'm running 10.4.8 on an intel macbook.
thanks!
Alan
When I use the command *Comment Line* then comes no text but only:
/tmp/temp_textmate.fQZTsU:119: warning:
Can anyone Help? Sorry for my little english.
Udo Wendler
My Versions:
Mac mini Intel
Mac OS X Version 10.4.8 (8L2127)
TextMate Version 1.5.5 (1368)
cat '/Library/Application Support/TextMate/Support/version'
6716
/usr/bin/ruby --version
ruby 1.8.2 (2004-12-25) [universal-darwin8.0]
Not sure who to address this to, but I have a few suggestions about
how the MTASC compile works in the ActionScript bundle. The new MTASC
addition is really great, way better than the one I built for myself,
but I do have a few suggestions to make.
The mtasc.yaml support file should allow for a tad bit more flexibility:
- The option to not use XTrace, a lot of Mac Flash developers use
Console and the debug Flash player for this. Right now it seems if no
trace is defined it uses XTrace; so there is no way to fall back on
the Flash default. Also removing the XTrace class paths if not using
them.
- The option to easily add additional MTASC arguments in the yaml; for
example '- strict'.
- The option to NOT include the 'std' and the 'std8' classes.
- '- keep' should not be called by default if a SWF is present. This
could cause some classes to be present two times if also compiled with
MTASC. I would suggest allowing the user to add this command in the
additional MTASC arguments variable I mentioned above.
My apologizes if there is currently a way to do any of the above
without editing the 'build_with_mtasc.rb'. I would be glad to make the
changes myself...
Thanks for your time.
best,
Aaron Clinger
http://casaframework.org/
This is an updated version of the Yahoo bundle, renamed and packaged
to include the two Wikipedia commands revised to use link builder
templates. I revised the templates one more time to allow for
insertion as snippets with just the title being set up for immediate
editing. I changed all of the bundled commands to Insert as Snippet.
I included the simplest version of my modified google lucky linking
command that grabs the title of the retrieved link, I can't remember
how you guys felt about that, so do what you will with it.
I also modified the Yahoo commands to use the DIALOG environment
variable. I've been using them lately and I have to admit, they're
slicker than I thought they'd be.
Also...
My most useful (to me) blog linking commands require my related post
xmlrpc Wordpress plugin, but if there's any interest, they allow for
searching of your posts by selected text or input box, linking
selected text to related posts on your blog, etc. Those commands
haven't been updated for the link builder yet, but will be if it's
added to the default distro.
http://blog.circlesixdesign.com/download/relatedposts-rpc/
Forgive this really bone-headed question, but when I go to save a
collection of files as a project -- and I have created them within
the project using CMD + Shift + N -- both a project file is saved as
well as the individual files. In other words, the individual files
appear in the finder. Now, if the groupings were also being saved as
folders/directories, it might be okay -- this is what happens when
drags a collection of folders and files to Textmate. I thought the
save as project feature produced a package of some kind? I don't see
a preference I could have changed, so I'm wondering what's going on.
Hey everyperson, I just noticed that the change Allan made isn't quite
accurate to the syntax of =begin and =end. Ruby only checks that the
start of the line matches; any characters after the 'n' in =begin are
considered part of the embedded document, and anything after =end is
considered Ruby code. Thus, it should be "^=begin" and "^=end".
Thanks,
Harrison
Simion Ruderich wrote:
> Allan Odgaard wrote:
> > Sorry, this wasn't clear from my message, but I did not checkin this
> > change, I just tested that it would work -- I wasn't sure if folding on
> > these keywords would generally be good.
> >
> > Here is the patch for the change I did, I may check it in later:
>
> I noticed you committed the change to the repository.
> Thanks for this,
> Simon
Hi
As some developer ;) told me i can improve the BB-Bundle by myself. I have
done that!
How can i contribute now?
The way it is mentioned on this page:
http://macromates.com/wiki/Bundles/HowToContribute
doesnt work.
When i am svn co it copies me the Bundle to the Library but when i
double-click it TextMate opens with the Project View and in the sidebar i
have the folders "Snippets" "Commands" and so on o_O
What's wrong there?
Here are my improvements (so far):
1. Wrap selection as Link vBulleting & phpBB - takes the adress from the
pasteboard and places it where it should be. (Taken from the HTML or
Markdown Bundle don't know exactly anymore)
2. Wrap selection as Code Block
3. Wrap selection as Quote - takes the whole text from pasteboard and
inserts it. It asks to enter the quoted Username, too.
4. Indent > - lets you make an indented text (don't know if that works in
phpBB - not tested yet)
5. Strikout - erm strikes the text out
TODO:
1. Outdent < - i haven't figured out yet how to find last occurence of
[INDENT] within some indents, delete it, let the text untouched and delete
the next [/INDENT]. I was thinking about using some kind of regular
expression, but since a i didn't know of RegEx before 3 weeks or so i am
very new to this. ;)
2. Integrate "strikeout" to the bundle language.
Thanks!
==================================
Zettt
azeitler(a)zettt.de
==================================
--
View this message in context: http://www.nabble.com/Improvements-for-Bulletin-Board-Bundle-tf3380961.html…
Sent from the textmate users mailing list archive at Nabble.com.
I just gave TextMate a try...
I'm sorry to say it was simply awful, which brings me up against the
troubling paradox of TextMate's growing popularity. This is truly a
big conundrum for me, one that I'd love to figure out...
The first thing I learn about working with TextMate is that to open a
file I need to use a GUI. This is a bad start. I, and all other
programmers I know, hate to use the mouse while coding, so I must
conclude that TM's developers just do not know their target market. A
very bad sign indeed. (Yes, I know that one can navigate a GUI with
the keyboard, but it is awkward at best, not the kind of action I want
to perform often.)
Fine, let's use the mouse. I open an HTML file and a JavaScript file.
Now I have TWO windows open. Good grief... Let's see, in my typical
coding session I work on at least a dozen buffers at any one time. So
I suppose that, if I were using TextMate as my text editor, I'd have
to wade through at least a dozen windows cluttering my desktop...
Strike 2.
In the first 60 seconds or so, TextMate has already managed to look
pretty darn awful to me, but I continue on the optimistic assumption
that all the flaws I have found so far (which are deal breakers AFAIC)
can be "customized away". (If so my only remaining misgiving would be
regarding the supreme lack of customer awareness responsible for not
having these hypothetical customizations as standard-out-of-the-box in
the first place.)
But what followed is simply inexcusable.
I visit the JavaScript file and start using F1 to fold blocks of code.
The third or fourth one of these F1s results in a beep (and no
folding of the block), but no error message is visible anywhere, nor
is any other indication of what TextMate is having a problem with.
Signalling an error without telling the user what the error is is an
example ATROCIOUS software design. Revoke the developers' licenses,
and put them all in jail for software engineering malpractice...
Seriously now, by this point I was already truly astonished that I
ever even heard of TextMate to begin with.
After scanning the menus and the preferences and finding no clue on
why the beep, I decide to try TextMate Help under the Help menu. I
search for "beep" and get nothing; then I search for "error", and get
a few hits. When I visit one of them, there's a lot of stuff on the
page, nothing obviously devoted to errors, so I hit Cmd-F to search
for the word "error", and all I get is yet another beep. The same
thing happens when I visit other pages in the original results list.
What's going on here? Things have been bad enough so far that I'm
suspecting the unthinkable, I'm suspecting that maybe TextMate's HELP
pages are not accessible to Cmd-F. To test this hypothesis, I use
Cmd-F to search for a word that I can clearly see on the page in front
of me. Again, I get a beep. Whaddya know?
Please someone tell me how can it be that software like this is not
only for sale, but actually SELLING??? What did I miss?
tlm
Ok,
I found the CMPluginContext bug, and a way to reproduce it.
in your project, have a few items already added, and ready to be
commited. Have a new item in your tree. Bring up the commit
window. Click add next to that file, and click the checkbox, type
your message in and hit enter. The commit will fail.
- Eric
I apologize for starting a new thread; my mailing list mail is
cleared pretty quickly. This is a continuation of a previous thread:
http://comox.textdrive.com/pipermail/textmate/2007-March/017974.html
In any case, I have managed to get a screenshot of the issue taking
place with normal font settings (i.e. no italicization). Screenshot
(sorry for the nasty code :-D): http://img144.imageshack.us/
img144/5830/picture6eu8.png . This is actually three separate
screenshots composed. On the left is TM behaving normally with AA
off, the center is normal AA on behavior, and on the right is the
issue taking place.
Deleting the font cache + restart seemed to fix it, but I haven't
experimented enough to verify that that is what is actually fixing it.
Thanks,
Andy K.
Hi Foks,
Not sure if this goes to you all or not but Pymate is using the
wrong version of python when it runs my script. Basically I have a script
which looks like this
#!/usr/bin/env python
print "Hi"
It fires python version 2.3.5.
If I open a shell and type /usr/bin/env python it brings up the version I
want.
I have set TM_PYTHON to point to the version I want but still no luck. Any
ideas?
---
Steven M. Klass
Strategic Manager, Design Automation - Analog Mixed Signal
SMSC
3930 East Ray Road, Suite 200
Phoenix, Arizona 85044
(480) 704-7046 (Desk)
(480) 225-1112 (Mobile)
steven.klass(a)smsc.com
Hello everyone;
Please see the attached tmCommand for a little doodad which reads
a PHP script for private variables and generates getters and setters.
Cheers,
JC.
Hi everybody.
a while ago is followed this article:
http://encytemedia.com/blog/articles/2006/11/3/increasing-
productivity-with-texmate-s-new-tm_dialog
and everything worked well.
but after a while, when inserting an image from the menu generated by
the command it would return that i have a tm_dialog conflict.
at the time i removed the command as i was afraid to do something bad
to my text mate when asked to checkout the dialog.tmplugin
After a while a removed the dialog.tmplugin from my application
support folder.
and i forgot about it.
i just tried to recreate the command but when i use it it return this
/tmp/temp_textmate.n4JLBy:7:in `require': No such file to load -- /
Users/zapata/Library/Application Support/TextMate/Support/lib/plist
(LoadError)
from /tmp/temp_textmate.n4JLBy:7
and i do not have a plist file in my lib folder indeed.
any idea how to fix this or if removing the dialog.tmplugin frommy
application support was a bad idea?
i tried to copy the one from the application content back into the
folder but it doesn't change anything.
cheers people from the world.
other wise i'm as well trying to set up django on my mac osx 10.4.8
but it does/nt do anything when i follow the instruction there :
http://www.djangoproject.com/documentation/install/
tar xzvf Django-0.95.tar.gz
cd Django-0.95
sudo python setup.py install
it keep returning an error message and abort the installation, even
with the firewall off
Downloading http://cheeseshop.python.org/packages/2.5/s/setuptools/
setuptools-0.6c1-py2.5.egg
Traceback (most recent call last):
File "setup.py", line 2, in <module>
ez_setup.use_setuptools()
File "/Users/zapata/Desktop/django/Django-0.95.1/ez_setup.py",
line 72, in use_setuptools
egg = download_setuptools(version, download_base, to_dir,
download_delay)
File "/Users/zapata/Desktop/django/Django-0.95.1/ez_setup.py",
line 126, in download_setuptools
src = urllib2.urlopen(url)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 121, in urlopen
return _opener.open(url, data)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 380, in open
response = meth(req, response)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 491, in http_response
'http', request, response, code, msg, hdrs)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 418, in error
return self._call_chain(*args)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 353, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/urllib2.py", line 499, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
Hi,
I rewrote my Command 'Insert File/Path Name + AutoCorrect'.
Key: CTRL+TAB
Scope: none
BTW I use this Command very often to open a file without a mouse or
GUI. Just type:
'mate ' and invoke this Command, and finally press CTRL+R.
To illustrate that Command I did a screencast (without sound because
my mic is out of order, but there are written comments)
http://www.bibiko.de/TM_InsertFilePathNames.mov (ca. 5.7MB)
Comments are welcome!
Best,
Hans
Some features:
- simulates the TAB behaviour on a console with pull down menu,
auto correction by looking backwards for a vaild begin of a path/
file name,
and supports relative path names using TM_DIRECTORY
- it tries to complete that file name according to the file name
before the caret's position
(i.e.: It is possible to use this command not only at the end of
the line but also at the end of a
given path within the line and even inside a given path to
change it.)
- to auto-complete files beginning with a dot type:
e.g.: '~/.p' to look for dot files beginning with p
'~/.+' to list all dot files in the home directory
- if TM_BUNDLE_SUPPORT, TM_SUPPORT_PATH, etc. occures in a line it
will use this directory as start point
Hints:
The path ./ will be substitue with $TM_DIRECTORY!
../ is also supported for relative paths using $TM_DIRECTORY as root!
You can use wildcards. e.g. ~/Pictures/.*jpg (for all jpg files)
[case sensitive!]
Symlinks are supported but not for changing a given path name.
You can use TAB to jump to the end of the line, or if there is a
space in front of the
inserted path name you can jump to that space to delete or to
insert a /.
(Because this command inserts the text as snippet)
Am I missing something or does the 'Revert' option from the subversion
bundle menu (ctrl-shift-A) doesn't display a confirmation dialog? I
managed to crash TextMate as soon as I accidentally pressed that (it's
right next to Update!!!) so I only lost my local changes in 2 of the 15
files I was working on... But honestly... no confirmation dialog? What's
up with that?
(btw, I still think TextMate kicks *ss, don't get me wrong :)
Wow...can't believe I missed that one. I knew about Cmd + T I hadn't
really used it yet because I am just starting work in TextMate and am
working in a project called test and haven't really named my files
something super great yet (and can't remember their names) so clicking
was more efficient for this project but thank you for pointing out the
obvious! So many of the great features are so subtle :-)
Thanks,
-Jon
A little command that's especially useful for writing emails.
It takes a highlighted URI and uses murl.info to shorten it to
something more like:
http://murl.info/14511
Very tinyurl but a little more underground ;-). Plus I couldn't get
tinyurl to do this...
It will accept a uri with or without a protocol (http(s)) and will
accept just about any amount of garbage on the end. It does a pretty
decent job of recognizing if what you have selected is actually a uri
or not.
Brett

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
Hi list,
generally, I use textmate to write source code for various languages
and systems. Everything works nicely.
Textmate is set to use ISO-Latin1.
From time to time, I need to copy text fragments from Word oder PDF
documents
to PHP scripts. As soon save the file with the copied text, the
encoding of textmate
document suddenly changes. All diacritical characters get converted
to funny
chars. All in all, the resulting PHP isn't any longer useable.
It took me some time to exactly figure out the reasons. But, I failed
to solve it.
Does someone has an idea regarding this?
BTW: If I try this using Eclipse, the IDE reports a problem saving
the file, since
the encoding changed. I have to start windows and copy the Word text
fragments -
since Eclipse on Windows works just fine.
An ideas?
Kind regards,
Stefan
TextMate list,
how can I command TextMate to create a new untitled document from a
separate process? Basically, I want textmate to create a new window
(titled 'untitled n', that does not have a file path associated with
it yet.
Can you do this somehow thru the mate command line command? typing
just 'mate' seems to activate textmate.app, but it doesn't guarantee
that a new window will be opened (which is good). typing 'mate
new' (replace new with whatever title you want for your doc) creates
a new file with a path of /new. I would like to create a new file
that does not have any path info yet. any ideas?
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
Howdy folks!
Is it possible to tell TextMate not to search specific folders or files
when searching a project for a particular string? In BBEdit, I could
establish a list of file extensions or folders to skip when performing a
multi-file search. Something similar in TextMate?
Charley
I know ctl+tab right now switches focus between the text and the
sidebar, which I think is very useful and I don't think that feature
should go away, I just really would like a way to switch between the
most recently edited file and the one I'm currently working on...
I realize that I could order my tabs so that I could use apple +
option and left or right, but I would love not to have to care what
order my tabs are in to be able to switch between the 2 most recently
edited files. Visual Studio has this feature as I mentioned in the
subject through the ctl+tab feature. I use quite frequently.
Any possibility we could see this implemented?
Thanks,
-Jon
On 3/11/07, textmate-request(a)lists.macromates.com
<textmate-request(a)lists.macromates.com> wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/mailman/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
>
> Today's Topics:
>
> 1. Re: Insert File/Path names + open a file without using a GUI
> (Charilaos Skiadas)
> 2. How to create new untitled doc from another process.
> (Todd Ditchendorf)
> 3. Question about searching a project (Charley Tiggs)
> 4. Re: Textencoding problems renders scripts useless (Stefan)
> 5. Re: Textencoding problems renders scripts useless (Charley Tiggs)
> 6. Re: Textencoding problems renders scripts useless (Xavier Noria)
> 7. Re: Textencoding problems renders scripts useless (Stefan)
> 8. Re: Textencoding problems renders scripts useless (Stefan)
> 9. Re: Textencoding problems renders scripts useless (Xavier Noria)
> 10. Re: How to create new untitled doc from another process.
> (Peter Jaros)
> 11. Re: Go Murl Yourself (xolela(a)mac.com)
>
>
> ---------- Forwarded message ----------
> From: Charilaos Skiadas <skiadas(a)hanover.edu>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 15:03:03 -0400
> Subject: Re: [TxMt] Insert File/Path names + open a file without using a GUI
> On Mar 11, 2007, at 1:57 PM, Hans-Jörg Bibiko wrote:
>
> > well, in principal it is possible to implement this. The question
> > is how?
> >
> > Suggestion:
> > Supposing I use the character '='. '=' will be replaced by
> > TM_PROJECT_DIRECTORY if it is defined.
>
> Why not simply have the command also expand environment variable
> names, e.g. if I type:
>
> $TM_P
>
> and then ctrl+tab I would get
>
> $TM_PROJECT_DIRECTORY
>
> Btw, ctrl+tab is the key combo that takes you to the drawer and back,
> so it is a bit of an unfortunate choice.
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
>
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Todd Ditchendorf <itod(a)mac.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 12:07:44 -0700
> Subject: [TxMt] How to create new untitled doc from another process.
> TextMate list,
>
> how can I command TextMate to create a new untitled document from a
> separate process? Basically, I want textmate to create a new window
> (titled 'untitled n', that does not have a file path associated with
> it yet.
>
> Can you do this somehow thru the mate command line command? typing
> just 'mate' seems to activate textmate.app, but it doesn't guarantee
> that a new window will be opened (which is good). typing 'mate
> new' (replace new with whatever title you want for your doc) creates
> a new file with a path of /new. I would like to create a new file
> that does not have any path info yet. any ideas?
>
>
> Todd Ditchendorf
>
> Scandalous Software - Mac XML Developer Tools
> http://scan.dalo.us
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Charley Tiggs <lists(a)tiggs.net>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 15:26:41 -0400
> Subject: [TxMt] Question about searching a project
> Howdy folks!
>
> Is it possible to tell TextMate not to search specific folders or files
> when searching a project for a particular string? In BBEdit, I could
> establish a list of file extensions or folders to skip when performing a
> multi-file search. Something similar in TextMate?
>
> Charley
>
>
>
> ---------- Forwarded message ----------
> From: Stefan <seaside.ki(a)mac.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 21:01:53 +0100
> Subject: Re: [TxMt] Textencoding problems renders scripts useless
> no one?
>
> Am 11.03.2007 um 18:34 schrieb Stefan:
>
> > Hi list,
> >
> > generally, I use textmate to write source code for various languages
> > and systems. Everything works nicely.
> >
> > Textmate is set to use ISO-Latin1.
> >
> > From time to time, I need to copy text fragments from Word oder PDF
> > documents
> > to PHP scripts. As soon save the file with the copied text, the
> > encoding of textmate
> > document suddenly changes. All diacritical characters get converted
> > to funny
> > chars. All in all, the resulting PHP isn't any longer useable.
> >
> > It took me some time to exactly figure out the reasons. But, I
> > failed to solve it.
> >
> > Does someone has an idea regarding this?
> >
> > BTW: If I try this using Eclipse, the IDE reports a problem saving
> > the file, since
> > the encoding changed. I have to start windows and copy the Word
> > text fragments -
> > since Eclipse on Windows works just fine.
> >
> > An ideas?
> >
> > Kind regards,
> >
> > Stefan
> >
> >
> >
> >
> > ______________________________________________________________________
> > For new threads USE THIS: textmate(a)lists.macromates.com
> > (threading gets destroyed and the universe will collapse if you don't)
> > http://lists.macromates.com/mailman/listinfo/textmate
>
>
>
>
> ---------- Forwarded message ----------
> From: Charley Tiggs <lists(a)tiggs.net>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 16:23:45 -0400
> Subject: Re: [TxMt] Textencoding problems renders scripts useless
> Would the "Transliterate Word to ASCII" command in the Text bundle be
> what you're looking for? I think it takes text that comes from word and
> converts the necessary chars to the ASCII equivalents (curly quotes to
> straight, etc).
>
> Charley
>
> Stefan wrote:
> > no one?
> >
> > Am 11.03.2007 um 18:34 schrieb Stefan:
> >
> >> Hi list,
> >>
> >> generally, I use textmate to write source code for various languages
> >> and systems. Everything works nicely.
> >>
> >> Textmate is set to use ISO-Latin1.
> >>
> >> From time to time, I need to copy text fragments from Word oder PDF
> >> documents
> >> to PHP scripts. As soon save the file with the copied text, the
> >> encoding of textmate
> >> document suddenly changes. All diacritical characters get converted to
> >> funny
> >> chars. All in all, the resulting PHP isn't any longer useable.
> >>
> >> It took me some time to exactly figure out the reasons. But, I failed
> >> to solve it.
> >>
> >> Does someone has an idea regarding this?
> >>
> >> BTW: If I try this using Eclipse, the IDE reports a problem saving the
> >> file, since
> >> the encoding changed. I have to start windows and copy the Word text
> >> fragments -
> >> since Eclipse on Windows works just fine.
> >>
> >> An ideas?
> >>
> >> Kind regards,
> >>
> >> Stefan
>
>
>
>
> ---------- Forwarded message ----------
> From: Xavier Noria <fxn(a)hashref.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 21:40:58 +0100
> Subject: Re: [TxMt] Textencoding problems renders scripts useless
> On Mar 11, 2007, at 9:01 PM, Stefan wrote:
>
> > no one?
>
> Why do you think pasting from Word non-ASCII should work out of the box?
>
> -- fxn
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: Stefan <seaside.ki(a)mac.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 21:45:24 +0100
> Subject: Re: [TxMt] Textencoding problems renders scripts useless
>
> Am 11.03.2007 um 21:40 schrieb Xavier Noria:
>
> > On Mar 11, 2007, at 9:01 PM, Stefan wrote:
> >
> >> no one?
> >
> > Why do you think pasting from Word non-ASCII should work out of the
> > box?
>
> Because if I type the same non-ASCII using the keyboard, everything
> works
> fine.
>
>
>
> ---------- Forwarded message ----------
> From: Stefan <seaside.ki(a)mac.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 21:45:54 +0100
> Subject: Re: [TxMt] Textencoding problems renders scripts useless
>
> Thx, Charley! I'll try it soon.
>
> Am 11.03.2007 um 21:23 schrieb Charley Tiggs:
>
> > Would the "Transliterate Word to ASCII" command in the Text bundle
> > be what you're looking for? I think it takes text that comes from
> > word and converts the necessary chars to the ASCII equivalents
> > (curly quotes to straight, etc).
> >
> > Charley
> >
> > Stefan wrote:
> >> no one?
> >> Am 11.03.2007 um 18:34 schrieb Stefan:
> >>> Hi list,
> >>>
> >>> generally, I use textmate to write source code for various languages
> >>> and systems. Everything works nicely.
> >>>
> >>> Textmate is set to use ISO-Latin1.
> >>>
> >>> From time to time, I need to copy text fragments from Word oder
> >>> PDF documents
> >>> to PHP scripts. As soon save the file with the copied text, the
> >>> encoding of textmate
> >>> document suddenly changes. All diacritical characters get
> >>> converted to funny
> >>> chars. All in all, the resulting PHP isn't any longer useable.
> >>>
> >>> It took me some time to exactly figure out the reasons. But, I
> >>> failed to solve it.
> >>>
> >>> Does someone has an idea regarding this?
> >>>
> >>> BTW: If I try this using Eclipse, the IDE reports a problem
> >>> saving the file, since
> >>> the encoding changed. I have to start windows and copy the Word
> >>> text fragments -
> >>> since Eclipse on Windows works just fine.
> >>>
> >>> An ideas?
> >>>
> >>> Kind regards,
> >>>
> >>> Stefan
> >
> >
> > ______________________________________________________________________
> > For new threads USE THIS: textmate(a)lists.macromates.com
> > (threading gets destroyed and the universe will collapse if you don't)
> > http://lists.macromates.com/mailman/listinfo/textmate
>
>
>
>
> ---------- Forwarded message ----------
> From: Xavier Noria <fxn(a)hashref.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 22:03:31 +0100
> Subject: Re: [TxMt] Textencoding problems renders scripts useless
> On Mar 11, 2007, at 9:45 PM, Stefan wrote:
>
> > Am 11.03.2007 um 21:40 schrieb Xavier Noria:
> >
> >> On Mar 11, 2007, at 9:01 PM, Stefan wrote:
> >>
> >>> no one?
> >>
> >> Why do you think pasting from Word non-ASCII should work out of
> >> the box?
> >
> > Because if I type the same non-ASCII using the keyboard, everything
> > works
> > fine.
>
> Sure, but their flow is different.
>
> When you type the computer maps keystrokes to glyphs. That
> interpretation is the one you configure via the Input Menu. Then,
> when text is saved the encoding configured in the editor is used to
> map again from glyphs to bytes. So the chain is well-defined.
>
> On the other hand, the clipboard is a different story. I am not a
> Cocoa programmer but reading pages like this one:
>
> http://www.bekkoame.ne.jp/~n-iyanag/researchTools/clip_utils_osx.html
>
> looks like the flow is not so clear as to be able to robustly handle
> pastes from any source, as Word. Can anyone elaborate this point if
> it is correct?
>
> -- fxn
>
>
>
>
>
>
> ---------- Forwarded message ----------
> From: "Peter Jaros" <peter.a.jaros(a)gmail.com>
> To: "TextMate users" <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 17:14:46 -0400
> Subject: Re: [TxMt] How to create new untitled doc from another process.
> I would say
>
> $ osascript -e 'tell application "TextMate" to make new document'
>
> but that doesn't seem to work properly. However,
>
> $ osascript -e 'tell application "TextEdit" to make new document'
>
> works for TextEdit. Methinks this is a TextMate bug. Allan?
>
> Peter
>
>
> On 3/11/07, Todd Ditchendorf <itod(a)mac.com> wrote:
> > TextMate list,
> >
> > how can I command TextMate to create a new untitled document from a
> > separate process? Basically, I want textmate to create a new window
> > (titled 'untitled n', that does not have a file path associated with
> > it yet.
> >
> > Can you do this somehow thru the mate command line command? typing
> > just 'mate' seems to activate textmate.app, but it doesn't guarantee
> > that a new window will be opened (which is good). typing 'mate
> > new' (replace new with whatever title you want for your doc) creates
> > a new file with a path of /new. I would like to create a new file
> > that does not have any path info yet. any ideas?
> >
> >
> > Todd Ditchendorf
> >
> > Scandalous Software - Mac XML Developer Tools
> > http://scan.dalo.us
> >
> >
> >
> >
> > ______________________________________________________________________
> > For new threads USE THIS: textmate(a)lists.macromates.com
> > (threading gets destroyed and the universe will collapse if you don't)
> > http://lists.macromates.com/mailman/listinfo/textmate
> >
>
>
>
> ---------- Forwarded message ----------
> From: xolela(a)mac.com
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 11 Mar 2007 17:37:39 -0400
> Subject: Re: [TxMt] Go Murl Yourself
> Thanks Brett,
>
> I agree that for the most part, its not agreeable, but there are
> cases when it is unavoidable, in which case "your tool" becomes
> handy...
>
>
> While I would like to keep the original I for instance had to send
> the following link [1] to colleagues - some not that web/mailer
> savy for whom their mailer breaks the link in which case I spend
> most of the time addressing the failure to get to the link...
>
> If there is another way to do this a make it easier for people that
> I work with while keeping to the intended usability as suggested by
> Alan I will take that way any day - I have no intention of cheating
> anyone of their google rank etc...
>
> danstan
>
> [1] http://docstore.ingenta.com/cgi-bin/ds_deliver/1/u/d/ISIS/
> 36029671.1/cabi/pns/2000/00000059/00000001/
> art00018/39ECAA2F26C5A0E511736294004DBC666BB0601AA9.html?link=http://
> www.ingentaconnect.com/error/delivery&format=html
>
>
>
>
>
> On Mar 11, 2007, at 2:40 PM, Brett Terpstra wrote:
>
> > <XRL URL.tmCommand.zip>
>
>
>
> --===============1331305142==--
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
>