On 27/5/2006, at 4:17, Allan Odgaard wrote:
> But when speaking of the parser and other text editors (that you
> bring up): the performance difference is a) psychological because
> TextMate does not redraw the first page of the document before the
> entire document has been parsed b) because TextMate does something
> very different compared to the editors you mention and c) it
> generally has more complex grammars (try put PHP in an HTML here
> doc in a ruby script embedded in Erb tags in an HTML file -- unlike
> other text editors, TextMate handles this gracefully.)
>
Data: a 2.5 MB text file (plain text / no coloration / 225800 lines,
none exceeding 30 characters) structured as follows:
> ABACA~
> ABACULE~
> ABAISSABLE~
> ABAISSAIENT~
Problem: Replace all the 225800 occurrences of "~\n" by "\n" (iMac G4
800 Mhz, 1GB ram, 10.4.6):
TextWrangler: 30 s (gracefully interruptible)
TextMate: who knows? (forced to quit after 15 mn)
Looks like there is some psychological issue here, indeed.
;-)
I do love TextMate. But for such search/replacements, I couldn't live
without TextWrangler.
Cheers,
A.
It's not that I have to choose it manually the first time which
bothers me, but that TextMate FORGETS the settings sometimes. So
files that have been already saved in the correct encoding are
misinterpreted by TextMate to use UTF8.
Also, the other part of the problem seems to be that TextMate assumes
that UTF8 is used when it's not sure which encoding the file uses
instead of respecting the settings in the prefs.
Max
PS This is just a minor, but annoying bug of mine, I'm a big fan of
TextMate :-)
>> Problem: Replace all the 225800 occurrences of "~\n" by "\n" (iMac
>> G4 800 Mhz, 1GB ram, 10.4.6):
>> TextWrangler: 30 s (gracefully interruptible)
>> TextMate: who knows? (forced to quit after 15 mn)
>
> What happens if you replace '~$' with '~' instead?
Good idea! I thought using regexp would be slower somehow, but:
Problem: Regexp-replace all the 225800 occurrences of "~$" by ""
TextWrangler: no difference
TextMate: 4 mn
It seems that the search engine of TextMate performs far better on
single lines...
Thanks!
A.
Hi,
I've been playing with TM 1.5.1 (948) and wanted to see how it handled XML
files on my 1.67GHz Powerbook.
The file I needed to mess with was a 3.7MB FO file with some long lines
(over 10000 characters and some over 100000.) The formatted objects were
generated by an XSL processor which didn't care about long lines ;-)
Because it had a .fo extension it was opened as Plain Text.
Scrolling around would cause a beachball on some of those really long lines.
(Soft wrapping was on.)
I used the popup to switch to XML. This caused a beachball for about 2
minutes, and subsequent attempts to scroll often beachballed too. Soft
wrapping seems to have got turned off by this switch, which is consistent
with the line numbers in the margin.
The big mistake was to try and do a Find/Replace of all ">" with ">\n".
Whoah. It's been using all the CPU and beachballing for over 30 minutes now,
with no obvious way to interrupt it...
It is a bit distasteful to bring up other products ;-) but TextWrangler did
that Find/Replace in about 2 seconds. Going to XML mode in TextWrangler was
instantaneous.
Are these known problems? I googled for a bit but couldn't find anyone
reporting similar things.
Is there any chance these might get addressed in the 1.5.x codebase? I want
to love TM but currently cannot :-(
Cheers,
Chris
I have posted here before on the topic of encoding issues.
I still have problems with TextMate loading files as UTF8, although I
have set latin1 as standard encoding in the prefs (I have disabled
`use for existing files' though). This is particularly annoying since
I have to manually save every file again just to check whether
TextMate uses the correct encoding.
Thus I would propose to introduce a feature which sets the encoding
globally for one project if the user wishes to. Just add a checkbox
(one encoding for this project) and the same two options you have in
the file save dialog box (encoding and linefeed). If a user still
wants to create a file with a different encoding, he can still choose
to do so in the file save dialog.
This feature would really help speed up my work since I *have to* use
latin1 as standard encoding for LaTeX documents (it's what my co-
workers use) and UTF8 for the webpages I create.
Thanks.
Max
I experience a somewhat strange behavior with footnotes using
MultiMarkdown -- in fact, footnotes stopped working all of a sudden.
Thus,
Text[^fn]
[^fn]: Footnote text
evokes the error message "Use of uninitialized value in substitution
iterator at /Users/sbr/Library/Application Support/TextMate/Bundles/
Markdown.tmbundle/Support/bin/MultiMarkdown.pl line 1582, <> line 1."
MultiMarkdown at line 1582 is handling footnotes, but I cannot figure
out what's wrong. As said, this worked before... And yes, I reverted
to the version in the svn repository to ensure MultiMarkdown is not
contaminated.
Did anyone else experience this before? Any help is greatly appreciated!
Thanks and regards
- Stefan
One of the things that still puzzles me about how people use TextMate
is how they navigate the source code.
I can navigate quite fast on both Emacs and Vim using etags (or
ctags). You just basically put the cursor over a function call, and
press M-. (or Ctrl-]) and that takes you to the definition of the
function. To go back to where you were, you just press M-* (or Ctrl-
g) and you're back.
I know about the Ctrl-] command in textmate that brings up an HTML
list of things to click at, but that is really slow. Besides, I don't
know how to go back to were I was. I also know about 'Find in
Project' but that is _extremely_ slow (although it seems that if you
do a Project Folder it's faster?). At any rate, it still doesn't
solve the navigation issue.
What I've found is that whenever I'm writing new code, and I know
what I'm writing, I can use TextMate and I'm faster on it (due to
snippets, context-sensitive commands, etc, etc). But when I'm
_reading_ code and trying to understand functions, I'm much, much
faster in Emacs or Vim.
Maybe I don't know about some better way of finding stuff?
How are people in the list navigating codebases?
Thanks,
-Oscar
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
I do a lot of programming in the IDL (Interactive Data Language). It
is an interpreted language that is very good for scientific
programming and data visualization. I've been using Emacs and the
idlwave mode for editing. I'm trying TextMate to avoid the overhead
that comes with emacs.
At this point I've developed a language grammar that works for
styling the text. I'm having trouble, however, with indentation
rules. A typical IDL construct looks like
if a gt b then begin
y = sin(z)
endif else begin
y = sin(x)
endelse
or, alternatively,
if a gt b then y = sin(z) else y = sin(x)
The keyword begin starts an indented block, the keyword end... ends a
block.
I've tried
/* preferences */
{ decreaseIndentPattern = '\bend(if|else|for|while|case|repeat)?/b';
increaseIndentPattern = '\b(begin|case|function|pro)\b';
}
Which results in indenting:
if a gt b then begin
y = sin(z)
endif else begin
y = sin(x)
endelse
You can probably tell I'm a regular expression neophyte, so any help
would be greatly appreciated.
Thanks
-----------------------------------------------------------
David A. Gell, Ph.D. David.A.Gell(a)umich.edu
University of Michigan
Space Physics Research Lab
2129B Space Research Building phone: 734.763.6221
2455 Hayward Street fax: 734.615.9723
Ann Arbor, MI 48109-2143 mobile: 734.657.6824
Hi,
This is more a regexp question rather than TextMate so it is a bit OT,
but I'll try anyway since I know that there are som clever regexp heads
on this list...
I'm trying to figure out a way to parse a string with an expression, so
that I can filter out subexpressions to build up a structure of
expression objects.
An example expression:
((print == MIB) >> (color == Black));
Our expression structure is built up so that everything is an
expression with a recursive structure (Expression = expression operator
expression):
((print == MIB) >> (color == Black));
(print == MIB)
(color == Black)
print
MIB
color
Black
Additionally, from this list, each variable is also an expression
(print, MIB, ...)
I guess that some regexp magic would be some great tool here, but I
can't seem to figure out the correct approach, and thus need some
starter help.
Any idea of how to approach this? Programming language shouldn't
matter, since it anyway would be some recursive structure to dig down
the structure, but for reference I can say that I'm using C#.
Hi all,
I would like my CV available in both HTML and PDF formats. I have a
Latex version, but am willing to rewrite it in something like
Markdown. In fact, I tried this, but it seems that the MultiMarkdown
Bundle's convert to PDF does not produce the correct output (i.e.
**word** should be strong, and not italic). I would like to know
what other people are doing to deal with this multi-format issue, and
how you're using Textmate to do it.
Thanks for your time,
Jeff.
That did the trick, thanks Brad!
On May 26, 2006, at 11:17 AM, Brad Choate wrote:
> When you specify *.tmbundle, svn only updates the existing
> bundles. Just do "svn up" and it will update everything in the
> Bundles directory, including new ones.
I want to try out the GTD Bundle but when I run the bundle's "Help"
command I get the following error:
/bin/bash: line 39: SmartyPants.pl: command not found
Any chance someone can help me decipher this?
Peace
Mike Gregoire
This morning the TextMate RSS feed announced a new GTD bundle, and I
did the usual bundle update:
cd /Library/Application\ Support/TextMate/Bundles
svn up *.tmbundle
The GTD bundle never got installed, however. I checked /Library/
Application Support/TextMate/Bundles/ and Bundles (disabled) but
it's not there.
Even ran "svn up..." again but still no go.
Do I need to do something special to get GTD?
TIA,
- Dave Winzler
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
With such a great markdown/multimarkdown bundle combination, and now
with CSS Preview, I am doing more and more writing/publishing with
prince from Textmate. However, I have to use a shell command to run
prince. I have tried to hack the screenplay bundles command without
much success. What I am trying to write is:
1. convert a multimarkdown (need multi's footnotes) file with
declared css file to html (or xml)
2. tell prince to run the file with the css file "prince -s /
file/css /tmp/$DST.HTML /tmp/" getting the css file name from the
header in the html file so I don't have to tell prince where it is.
3. open the generated /tmp/$DST.PDF il in preview.
I can get prince to run, but not glob the css file name. My end
product is a PDF of the html source file. Cutie, but not what I want.
Thanks in advance for any help, or if others would like to make this.
Robert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFEZNn30ZwlS5OIzRcRAus2AJwP6+gcwhFwT4FDWUljZdGBHB4izACeMj1z
TETVHHDSqVtg9/BRaAxwUqE=
=8gsc
-----END PGP SIGNATURE-----
Hi all - new to the list, loving TextMate so far.
Quick question that I cannot seem to find the answer to. After having
customized all my snippets and such, what is the recommended backup
procedure, so that I don't someday lose all my customizations?
Will backing up the TextMate app suffice? Will I need to write a script
to exit the application before backup or is it possible to backup the
bundles and all in-place with the app running? [normally I do not backup
applications - just necessary prefs and such]
Just thought I'd ask.
--
Chris Chapman
DataSetGo
I'm just starting to use TM and coming from skEdit where I could set
the preview to which ever browser I wanted. Is there a way to do that
in TextMate?
Josh
From the release notes:
"If you wish to set the default bundle yourself, the defaults key is
OakDefaultBundleForNewBundleItems."
Could you please give an example how to do this exactly?
Thanks. Oliver
I had Support/bin/CommitWindow.app all along, but I had some
extraneous files that got into Support/bin/CommitWindow.app/Contents/
MacOS/
CommitWindow.2.r3349
CommitWindow.r3349
CommitWindow.r3363
CommitWindow
CommitWindow.r3342
CommitWindow.r3350
CommitWindow.r3373
I'm not sure how they got there. But I wiped out the Support
directory and checked it out of SVN anew. And the problem went away.
Thanks,
Shiran
> On May 24, 2006, at 6:47 PM, Mikael Hultgren wrote:
>
>>
>> On 24 maj 2006, at 17.16, Chris Thomas wrote:
>>
>>>> <pastedGraphic.png>
>>>> If I go ahead and press 'Commit', it fails with the message:
>>>>
>>>> Subcommand 'commit' doesn't accept option '--diff-cmd arg'
>>>
>>> Somehow, on your system, the command line argument "--diff-cmd"
>>> to the CommitWindow is being interpreted as a filename. I'm
>>> baffled as to how this could happen.
>>>
>>> A workaround would be to uncheck the --diff-cmd and 'svn' items
>>> in the list. Anyone else see this problem?
>>>
>>
>> Yeah, i had the same problem. It resolved itself when i checked
>> out the new version of the CommitWindow.app.
>
> *forehead smack*
>
> Yes, you need to check out not just the bundle, but also the latest
> CommitWindow.app from the Support directory. Sorry I didn't make
> this clear in the checkin comments.
>
> Chris
Does anyone know how to take a list that looks like this. . .
# Staff Development
Purpose: Create a productive working environment.
* @schedule staff meeting
* @read
# Develop new class
* @email Frank re: class
* @call Mary re: syllabus
# Fix Car
* @call Jim 421-8532
* @computer google rental cars
. . . and create a new file that looks like:
# Develop new class
# Fix Car
# Staff Development
. . . and another file that looks like:
* @call Jim 421-8532
* @call Mary re: syllabus
* @computer google rental cars
* @email Frank re: class
* @read
* @schedule staff meeting
Some of you will recognize that I am trying to adopt a GTD system
inside of textmate. I am currently using a set of applescripts for
OmniOutliner (http://www.kinkless.com/), but I am looking for
something more portable and flexible (markdown format)
If you don't have any input on this, I would be curious to hear how
you keep track of projects and todo's in TextMate.
Thanks,
Stephen
First,
Sorry this isn't a TextMate question/comment/whatever, but I honestly
don't have a clue where to go.
I have this process that's been showing up for the last few days in
Activity Monitor. I can't seem to see it when I run ps aux or top.
bfobserver
is the name. It's been eating about 50% of my ram on a consistent
basis, and it's pissing me off. If I choose ALl Processes,
Hierarchically, I see the following:
launchd (root) -> bfobserver (root) -> python (eric)
Anyone have a clue?
- Eric
Folks,
I am just playing with TextMate and trying to get a better grasp of
regexps.. ;)
A language grammar for some time stamped log files (like system.log)
{ scopeName = 'text.logfile';
fileTypes = ( 'log' );
foldingStartMarker = '/\*\*|\{\s*$';
foldingStopMarker = '\*\*/|^\s*\}';
patterns = (
{ name = 'invalid';
match = '(crash(dump|ed)|error|failed)';
},
{ name = 'constant.numeric';
match = '[0-9]';
},
{ name = 'keyword.operator';
match = '(\(|\))';
},
{ name = 'string.url';
match = '\s(\/.*log)';
},
{ name = 'string';
begin = '^';
end = ':\s';
patterns = (
{ name = 'constant.language.time-stamp';
match = '[a-zA-Z]{3}\s[0-9]+?\s[0-9]{2}:[0-9]{2}:[0-9]{2}';
},
{ name = 'keyword';
match = '(launchd|authexec)';
},
{ name = 'variable.other.process';
match = '\w+?\[\d{1,6}\]';
},
);
},
);
}
Has anyone made, or thought of making, a bundle for webworks and/or
freemarker templates?
I'm going to use Webworks in an upcoming project and although it's
mostly html for me, it could be nice with complete correctness.
Andreas
Hi,
Ever since r3350, I have not been able to commit changes to
Subversion from within TextMate. When I try to commit, I get the
following screen.
If I go ahead and press 'Commit', it fails with the message:
Subcommand 'commit' doesn't accept option '--diff-cmd arg'
I don't have any SVN-related environment variables set in TextMate.
I've seen comments in the revision logs related to specifying a diff
command, but don't understand why commit should be affected by this.
Any ideas?
Thanks,
Shiran