I just discovered the "Edit each line in selection" feature. It works
great... for adding something to the end of the line. But how do I add text
to the beginning of the line?
Thanks!
Justin
Hi
A Friend of mine hast a big problem with typesetting in TextMate.
When he uses TeXShop for EXACT the same document everything is fine.
But from within TextMate he gets the following error message with an
"Open"-Dialog popping up:
Typesetting: ./unitlted.tex)
(/usr/local/gwTeX/texmf.texlive/tex/context/base/supp-pdf.tex
Output written on untitled.pdf
Viewing the PDF file with "Preview" works but not the preview in TextMate
:-O
What shall we do?
Thanks for your help!
--
View this message in context: http://www.nabble.com/LaTeX-Typesetting-Problem-tf3281363.html#a9127219
Sent from the textmate users mailing list archive at Nabble.com.
>> [...] Is there a keybinding or some other default I can set to
>> make PageUp/Down actually move one page up/down based solely on
>> the visible lines, not the location of the caret? (Move PageUp/
>> Down would then, either re-center the caret on the new page or
>> place it at the same relative location.)
>>
>
> The default behavior is to move exactly one page up/down without
> moving the caret (look at the scrollbar for the exact distance moved).
>
> You can change it e.g. to move the caret as well [1]. Could it be,
> that you already changed this, but moved the movePageUp:/
> movePageDown: selectors? If so, you get a third behavior, where
> caret will first move to the screen boundaries, and then move a page.
>
>
> [1] http://macromates.com/blog/archives/2005/07/05/key-bindings-for-
> switchers/
>
I just verified my key bindings and they're at the defaults (e.g.,
PageUp binds to pageUp:). I tried binding to movePageUp: just to
verify. What I'm seeing is different than what you've described.
Perhaps I've altered some other binding, but heck if I can find it.
As long as the caret is on the center line, I get the behavior you
describe. If the caret is not on the center line then I get other
behavior. For example, if display is showing lines 283-364 (so, 82
lines per page), if the caret is on line 323 (the center) and I page
up, the windows displays lines 201-282 (that is, it's move backward
by 82 lines. However, if the caret is on line 360 (below center) and
I page up, the window displays (roughly) lines 237-319 and the caret
is on line 278. It's moving backward one page as measured from the
caret location (360 - 82 = 278) and then making that line the center.
The visual effect is a movement of more/less than a whole page
depending on how far from center you are.
It seems that Xcode and TextMate do the same, while BBEdit moves a
strict page up/down (perhaps leaving the caret outside of the visible
window). If I could request something, what I would prefer is to
always move exactly one page up/down based on the window size alone,
regardless of where the caret is. If that leaves the caret outside
the window, well, Ok. It'd be cool if the caret would land on the
same relative position on the newly displayed page (e.g., if
displaying 100-200 with caret on 175, a page down would display
200-300 with caret on 275).
Is this making sense? Are there defaults or bindings I can change to
obtain this effect?
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
On Feb 22, 2007, at 8:52 AM, Nathan Paxton wrote:
> All bundles are in as they should be.
>
> Here's a screenshot. As you can see, the spellcheck is alerting
> for words in the preamble. It seems to occur with any dictionary I
> use.
>
I just committed a fix that should take care of the preamble issue
for the most part. We now match \usepackage and \documentclass
explicitly.
> Best,
> -Nathan
Haris Skiadas
Department of Mathematics and Computer Science
Hanover College
Yes, I think the problem is encoding. Textmate uses UTF8 and perhaps Final
Draft uses ASC II? Is there any way to work in TM in ASC II or perhaps there
is some way to convert the file before I import it into Final Draft. Thanks.
First, I really like TextMate. It's clean and extensible (in a nice,
well-behaved way). It has numerous features quickly becoming part of
my muscle memory.
Though, there's one aspect I can't get my intuitive head around:
PageUp/Down. Often times I feel as if I've landed somewhere quite
different from what I expected - TextMate seems to like to re-center
things or treat the current line (that with the caret) as if it were
the center line (it's often not) and move things accordingly. Is
there a keybinding or some other default I can set to make PageUp/
Down actually move one page up/down based solely on the visible
lines, not the location of the caret? (Move PageUp/Down would then,
either re-center the caret on the new page or place it at the same
relative location.)
Thanks!
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
On Feb 21, 2007, at 10:13 PM, Nathan Paxton wrote:
> I don't think so.
Perhaps I wasn't very clear, either the Source bundle shows up in the
list of bundles in the Bundle editor, or it doesn't. If it doesn't
then you need to click on the Filter List... button at the bottom of
the bundle editor and enable it.
I take it you mean that you checked there and it does indeed appear,
in which case it is mysterious that you have problems. Do the
problems persist if you disable CocoAspell and use the built in spell
checker? I don't personally use CocoAspell, never found the need for
it, but perhaps it's useful. In any case, it would be helpful to know
if the problem appears only with CocoAspell, or with any spell checker.
Can you send us a screenshot showing the bad highlighting?
> I haven't done anything to those bundles except perhaps update them
> from the svn when I have updated the bundles in general.
>
> -N
Haris
Hi all,
I have TM 1.5.4 and Cocoaspell on OX 10.4.8. When I write a LaTeX
document, the spelling unit marks all my LaTeX syntax as incorrect
spelling. I've set the spelling to use the English aspell dictionary,
and everything works nicely in TeXShop, for example, but I can't
figure out what to do to get this to work in TM. Any suggestions?
Thanks.
Best,
-N
--
----------
Nathan A. Paxton
Ph.D. Candidate
Dept. of Government, Harvard University
Resident Tutor
John Winthrop House, Harvard University
napaxton(a)fas.harvard.edu
http://www.fas.harvard.edu/~napaxton
=======================================================================================================
When you have to stay eight years away from California, you live in a
perpetual state of homesickness.
- Ronald Reagan
The most courageous act is still to think for yourself. Aloud.
-Coco Chanel
=======================================================================================================
Hi!
I've got here some code with very long lines thus vertical scrolling
is necessary, while I scroll the line-numbers and folding-markers are
disappearing. Imho it would be better if those aren't disappearing
meaning that the vertical scroll-bar is only for the text-area while
the horizantal one is for line-numbers etc and text-area.
Do other ppl think the same?
Niels
We're working on a new system for tagging/searching/browsing bundles.
But, should we allow specific bundle items to be tagged too?
One purpose would be to mark something that is Mac or xNIX only.
Or something that requires some application or tool to be installed.
That way we could write a single system for dealing with requirements .
If a user tries to run a command that requires Python 2.4 or
whatever, there will be a single system for dealing with it.
Currently, every bundle item that has a prerequisite either breaks or
handles the requirements system itself.
Since bundles are becoming more and more cross-platform and being
used in more than just TextMate on a Mac, this seems like a good idea.
I know of at least two editors on Windows that are supposed to
support the TextMate Bundle formats.
Personally, I'm all for making the formats as cross-platform friendly
as possible.
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Just a quick update: I finally got around to updating the reftex-
style citation completion command. The command should now work with
the recent updates to the latex bundle, and has been added to the
repository as Build Citation.
Cheers-
-Alan
I write my plays in Textmate and then copy and paste them into Final Draft.
What's happening is that apostraphes, quotation marks, and em-dashes (—)
become garbled, weird combination of characters.
Anyone know why this might be happening? I notice it sometimes happens when
I take text out of TM and put it into TextEdit as well.
Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi Dr. Drang,
Thanks, I hadn't considered using a Snippet for this.
(Ignoring some edge cases that you already mentioned), it seems to
work for normal selections, but unfortunately not for column selections.
I'm not sure how much room there is in an external program/Command to
do anything about this, but if you have some suggestions for making
it work with column selections I'd appreciate hearing them.
Strangely enough replacing each non-CR/LF character with a single
character like 'x' works for column selections, but replacing with
"$1" doesn't - that is, it seems to insert unwanted line breaks when
doing this.
Thanks,
Chris
In a PHP file, embedded code followed by punctuation or digit fails
to close scope.
For example:
<h1><?php echo $title ?><h1>
Control-Shift-P just before ?>< produces:
text.html.basic
source.php.embedded.line.html
Control-Shift-P between ? and >< or between ?> and < produces:
text.html.basic
source.php.embedded.line.html
keyword.operator.comparison.php
...and scope continues to be 'source.php.embedded.line.html' until it
hits a ?> not followed by punctuation/digit somewhere in the file.
If I put whitespace or A-Za-z after the ?> (which I can't do in some
cases, like in a filepath), the source scope closes, but its still
says 'keyword.operator.comparison.php'. Same thing happens in a multi-
line embed immediately followed by punctuation.
The HTML language bundle has a comment about "match only multi-line
PHP with leading whitespace", but even when I make the embedded php
multi-line with leading whitespace, it still fails to close without
trailing whitespace, et al.
Very annoying for me since I use different syntax highlighting for
source and text in the same document. Tried googling mailing list
archives, couldn't find another mention of this.
Ashley
Hi all,
I'm new to TM and trying to implement a Command that fills the
current selection with a character. Right now I have a simple program
that replaces every character in the current selection with a space
character (but skips CR/LF), so far so good.
main()
{
char *x=getenv("TM_SELECTED_TEXT");
char c=32; /* Space character - this is what I'd like to be able to
replace at invokation time */
for ( ;x && *x;x++) putchar((*x==10 || *x==13) ? *x:c);
}
Now I'd like it to fill the selection not just with a space, but with
a user-entered character...
Ideally I'd like to:
1) select an area of text
2) press ^F (or whatever)
3) get a character from the keyboard
4) use that character to fill the selection
How do I accomplish #3 above?
Thanks for any pointers,
Chris
I am using the latest version, and have been using it for a month or two
now.
"Latest beta build of TextMate is 1324.
You are using build 1324."
On 18. Feb 2007, at 17:05, Ulai Beekam wrote:
>To be more precise, I just found out it doesn't just happen when I press
>Cmd-R twice on a short interval. It seems to just happen now and then. But
>when it happens, if I press Cmd-R it just works fine. :S
What version of TextMate? Try upgrade to cutting edge (preferences ?
software update), there previously was a problem with comparing the
date stamp of the resulting PDF to the source file.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hi,
Using textmate SVN I can't really see how to easily perform a project wide
commit that including picking up any new files which were created (e.g. from
generator) so they are (a) included as files to be versioned and (b) then
committed as they'll be in the commit list?
Any suggestions? (don't want to have to manually work out which files
aren't in scope for versioning and add them one-by-one).
Thanks
Greg
Hi there
I didn't use LaTeX for some time with TM and started to use it again
today. I noticed the bibliography completion stopped working. I
remember some message by Haris on the list about removing an
environment.plist file which was necessary once. So I removed the
file but didn't use LaTeX until today. Now when using escape in a
cite scope, I get a spinning beach ball and I have to kill the
command via Command-. . If I use Alt+Esc I also get the spinning
beach ball and after killing the command I get this error message:
/Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:84:in
`parse_bibfile': Interrupt
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
71:in `map'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
71:in `parse_bibfile'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
193:in `cite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
191:in `call'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
163:in `recursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
162:in `each'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
162:in `recursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
161:in `each_pair'
... 6 levels...
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
153:in `recursive_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
196:in `cite_scan'
from /Library/Application Support/TextMate/Support/lib/LaTeXUtils.rb:
23:in `get_citations'
from /tmp/temp_textmate.vAzA1V:8
}
Another thing, which stopped working, is the template insertion
command. When I write 'temp' and hit tab I get the following error:
sh: line 1: ls: command not found
/tmp/temp_textmate.NvRU8j:14: undefined method
So could someone please update me on the current way of making the
Bib-completion and template insertion work (variables, plist-files,
or similar) and/or maybe add it to the LaTeX help-file? I'm updating
my bundles via svn so I should have the most recent commands etc. I'm
also using the latest cutting edge build of TM.
Big Thanks in advance!
Best. Oliver
The blogging bundle image_upload method creates a tag that doesn't
validate. It is missing a slash before the closing bracket.
The diff with http://macromates.com/svn/Bundles/trunk/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb is:
--- - 2007-02-18 18:45:49.000000000 -0500
+++ /dev/fd/63 2007-02-18 18:45:49.000000000 -0500
@@ -719,7 +719,7 @@
height_width = %Q{ height="#{height}" width="#
{width}"}
end
end
- print %Q{<img src="#{url}" alt="${1:#{CGI::escapeHTML
alt}}"#{height_width}#{ENV['TM_XHTML']}>}
+ print %Q{<img src="#{url}" alt="${1:#{CGI::escapeHTML
alt}}"#{height_width}#{ENV['TM_XHTML']}/>}
end
else
TextMate.exit_show_tool_tip("Error uploading image.")
To be more precise, I just found out it doesn't just happen when I press
Cmd-R twice on a short interval. It seems to just happen now and then. But
when it happens, if I press Cmd-R it just works fine. :S
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
You should have a look at the paste service that the cakephp group built
http://bin.cakephp.org/
with this you can mark pastes to save (if you don't they last for 24
hours) then people can edit with suggestions and changes. It's
actually pretty useful. And at one point I had it hooked up to
textmate
Sam D
Hi,
I am using TextMate with TeXniscope to do my LaTeX document as was described
in the LaTeX screencasts, or at least, I'm trying to.
Whenever I do two times Cmd-R quickly in a row, I get this error:
Error: PDF file not written to disk
Why is this? It looks like I cannot do two Cmd-R too quickly because it
seems that when I press it the second time it is still reading or writing in
that PDF file or something. How can I fix this behaviour? This behaviour
does not appear in TeXShop, where I can hit Typeset as many times and as
quickly as I want.
But I still don't really want to use TeXShop anymore because TextMate offers
much quicker editing, so moving back to TeXShop is not really a real
solution.
Thanks in advance,
ulai
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
It seems to me that a common problem with paste type services such as
pastie.textmate.org is that it's a one-way street, which is strange
considering a lot of people who use the pastie service are after
solutions to problems in the text they have pasted.
I came up with the idea of running a service which would allow people
to connect to a server, submit the text and then give them a unique
ID. This ID could then be quoted to other users and used to connect
to the server remotely, grab the text, and view the paste using a
TextMate command. Any changes made to the original could then be
saved and re-submitted to the server. The original paster can then
query the server at any time to review any changes made to the
original along with the names of the users who have made the amendments.
I considered starting on a project which does all this using a fancy
tm_dialog UI, but besides being a cute idea I wondered if this is a
solution seeking a problem rather than something people would
actually use?
Hi,
I'm just playing aroung with TextMate's Subversion bundle. I'm
totally new to this, so please forgive me if I'm missing something
obvious or leaving out important information.
Martin Ott's svn client is installed. svnX is installed, too, and I
can browse the repository there.
In Textmate, I selected "Check Out...", entered the URL to the
subversion server (after starting a VPN connection) and all the files
were downloaded to my hard disk. Fine. :-)
But then I changed a file, selected "Commit" and TextMate said:
svn: Commit failed (details follow):
svn: Can't get password
So what am I doing wrong?
Kind regards,
Tobias
Hello to everyone and to our Lord Allan Odgaard (and welcome back from the
vacation).
I have a question. Can we get a very easy feature in TextMate that allows,
when that feature is checked (with checkbox), that when we quit TextMate,
the documents that were open when we last quit TextMate will *not* open the
next time we load TextMate? I find this to be unintuitive behaviour because
I often quit textmate and do different things. One day HTML. The next day on
some C code, so the next day I don't want those HTML docs to open up in
front of me.
Regards,
Ulai
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hello,
In JavaScript, I'd like to be able to fold not only functions (that
works great) but also "variables" as declared in json for example.
function Bookmark(p_idx, p_type, p_text) {
this.index = p_idx;
this.bookmarkType = p_type;
this.text = p_text;
}
folds great, but:
var UNITS_METRIC = {
name: "metric",
distance: " m.",
speed: " m/min.",
weight: " kg.",
pressure: " bar"
}
does not fold when JavaScript language is selected but folds when
HTML language is selected!
Wouldn't it be possible to add a "rule" to be able to fold such
variables in JavaScript language as it works in the HTML language? How?
Many thanks for your help.
/p
it seems like the "edit in textmate" does not support page names with
(e.g. german) umlauts. when saving and doing an apple+w the contents
do not get pasted back to safari. i think the problem must be related
to the umlauts, since it works with non-umlaut html form documents.
will this be fixed in the future?
> Harold,
>
> Are there any files in the directories ~/Library/Application
> Support/TextMate/ or /Library/Application Support/TextMate/? It's
> possible that you have an older version of the Support directory in
> one of those folders. If you do see a Support folder in one of
> those directories, it is OK to delete it. Restart TextMate and see
> if you still get a hung PyMate when running the test script.
1. I have a directory: /Users/harry/Library/Application Support/
TextMate which contained 3 subdirectories:
Bundles Pristine Copy Support
a. Bundles directory merely contains an extra command added to
Python.tmbundle (Run Script (PyMate) version 2.tmCommand based on
using the pymate.py script)
b. Pristine Copy directory contains bundles that have been downloaded
via svn and installed ... to be safe (from conflict) I moved/deleted
all these bundles.
c. Support directory seemed to be empty; only contained a hidden .svn
subdirectory
2. After deleting the Support directory (/Users/harry/Library/
Application Support/TextMate/Support) as you suggested ...
I ran the test python script using PyMate ...
but the latest (bleeding edge) version TextMate Version 1.5.4 (1360)
still gets hung ...
PyMate r6190 running Python 2.3.5 (/usr/bin/python)
>>> test_input.py
3. whereas a previous version, TextMate Version 1.5.4 (1324) works OK
(cut and paste from PyMate screen; excess blank lines deleted):
HIDE STDERR SHOW STDERR
Python 2.5.0 - PyMate r5848
For comments contact the author.
The regular Python interpreter can be invoked using ⌘⇧R.
>>> test_input.py
1
forcing redraw!!! don't remove
Script terminated with success.
4. as does TextMate Version 1.5.2 (1103)
Python 2.5.0 - PyMate r3226
For comments contact the author.
The regular Python interpreter can be invoked using ⌘⇧R.
>>> test_input.py
1
forcing redraw!!! don't remove
Script terminated with success.
5. These older versions use $TM_BUNDLE_SUPPORT/pymate.py rather than
$TM_BUNDLE_SUPPORT/PyMate/pymate.rb
I can more or less make sense of the pymate.py code but the Ruby code
pymate.rb appears enigmatic.
so far it is a mystery which may have to go on the backburner ...
Adios
Harry.
------------------------------------------------------------------------
----
Dr. Harold W. Schranz, Research Fellow, Computational Genomics Group
Division of Molecular Bioscience, John Curtin School of Medical Research
Australian National University, Canberra ACT 0200, Australia
------------------------------------------------------------------------
----
Hello,
I'm a new textmate user.
And starting to try to use textmate for this simple website I have to edit.
I'm trying to use the tidy bundle function and it's not working as I
think it should have.
I an html page on the screen (actually it's file.php) and when I press
Ctrl+Shift+H I get a new blank screen ;)
No errors, nothing.
Am I missing something?
For what it's worth it has one single <?php include(); ?> in it and
about 500+ lines of html.
Is that the problem?
Thanks in advance.
I cannot commit a file to my repository using the subversion bundle.
When I try I get this error message:
Couldn't find /usr/bin/ruby
We need Ruby to proceed.
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS
/opt/local/bin
/opt/local/sbin
/Users/phurley/bin
/usr/local/bin
/sw/bin
/sw/sbin
/bin
/sbin
/usr/bin
/usr/sbin
/usr/X11R6/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
>From the bash prompt:
which ruby
> /opt/local/bin/ruby
ruby -v
> ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.8.2]
which svn
> /opt/local/bin/svn
svn --version
> svn, version 1.4.2 (r22196)
> compiled Jan 9 2007, 01:05:16
(snip)
FYI I can add files to repository without a problem. Any suggestions
would be welcome,
Thanks
pth
> Harold,
>
> Can you post the specific error you are encountering? Do you scripts
> not run at all? Can you post a minimal example script that isn't
> working?
>
> I am able to execute the following script without any problems using
> the latest PyMate:
>
> #!/usr/bin/python
> x = input("Foo:")
> print x
For example, if I put your script above in a file called test_input.py
1. It will run successfully over the terminal (directly and via the
Run Script (Terminal) command).
2. However, if I use the Run Script (PyMate) command (based on
pymate.rb) I get the following lines printed:
PyMate r6190 running Python 2.3.5 (/usr/bin/python)
>>> test_input.py
and no dialog window for input, the task keeps running ... a ruby and
python process hang around ... until I interrupt it.
3. If I use the previous version of PyMate based on pymate.py I get
an input dialog and successful completion of the script.
I'm running Mac OS X 10.4.8 on a MacBookPro (Intel Core 2 Duo) 2.33
GHz with 2GB RAM and 4MB L2 Cache (per processor).
Assuming ruby from /usr/bin/ruby is being used that is ruby 1.8.2
(2004-12-25) [universal-darwin8.0] as indicated by the ps line:
/usr/bin/ruby -- /Users/harry/Library/Application Support/TextMate/
Pristine Copy/Bundles/Python.tmbundle/Support/PyMate/pymate.rb
If I use python 2.5 (installed in /usr/local/bin/python), same deal ...
Any suggestions?
Harry.
Hi.
http://pastie.textmate.org/40039 is parsed wrong by my textmate
installation. I'm running the latest version from svn. Seems to have a
problem with $<delim> under qr. works fine with m//.
--
With regards
Marcus Ramberg
It appears a bug has crept in the Python bundle for the Run Script
(PyMate) command in TextMate ...
All appears well with the following version which correctly runs
interactive Python scripts (requiring a dialog):
Version 1.5.4 (1324) [2006-11-02: REVISION 1324] Python 2.5.0 -
PyMate r5848
uses the code:
# Save file, use tmp-file if there's no filepath.
[[ -z "$TM_FILEPATH" ]] && TM_TMPFILE=$(mktemp -t pythonmate)
: "${TM_FILEPATH:=$TM_TMPFILE}"; cat >"$TM_FILEPATH"
TPY=${TM_PYTHON:-pythonw}
"$TPY" "$TM_BUNDLE_SUPPORT/pymate.py" "$TM_FILEPATH"
rm -f "$TM_TMPFILE"
However the following (bleeding edge) version
Version 1.5.4 (1360) [2007-02-13: REVISION 1360] PyMate r6190 running
Python 2.5 (python)
uses the code (Ruby in a Python bundle???):
export TM_RUBY=$(which "${TM_RUBY:-ruby}")
"$TM_RUBY" -- "$TM_BUNDLE_SUPPORT/PyMate/pymate.rb"
and only works for non-interactive Python scripts (I'm partly
suprised it works at all).
Should this code change have happened between versions or is there a
glitch.
Adios
Harry.
------------------------------------------------------------------------
----
Dr. Harold W. Schranz, Research Fellow, Computational Genomics Group
Division of Molecular Bioscience, John Curtin School of Medical Research
Australian National University, Canberra ACT 0200, Australia
------------------------------------------------------------------------
----
I think the reason you used hg status $WorkPath is because it limits
the status to the current sub directory of a hg repository.
i.e.
Let's say project/ is a hg repo
cd project/
hg status # This shows status for everything under project/
cd project/subdir
hg status project/subdir # This shows status for everything in subdir
Now...if this is GOOD or BAD behavior is up for discussion.
Personally I like the former better, I usually want to see the status
of all files in my repo.
What do you think?
Yi
Hi,
Using the LaTeX mode, I had &'s appear at the beginning of rows in
tabular environments, which abviously breaks the table. I don't really
know how what triggers this, but I think it happened after upgrading
textmate's bundles from svn...
any idea ?
--
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org
Hello folks,
I'm using Mac OS X 10.4.8 OS, I installed Subversion using 4 different
methods with no success (Using Fink, OpenDarwin, directly compiled it,
and using Matthew E. Porter's Package)
With all of them, when I try to checkout source code from anywhere
(RoR, TextMate, ...) with following command:
svn co --username anon http://macromates.com/svn/Bundles/trunk Bundles
It give me an error like:
subversion/libsvn_ra_dav/util.c:826: (apr_err=175002)
svn: REPORT request failed on '/svn/Bundles/!svn/vcc/default'
subversion/libsvn_ra_dav/util.c:296: (apr_err=175002)
svn: REPORT of '/svn/Bundles/!svn/vcc/default': 400 Bad Request
(http://macromates.com)
May someone please help me to find the problem?
Did I forgot anything? Or is there a bug with SVN?
Thanks in advance,
Hello all,
I'm writing a command to mimic eclipse's semicolon insertion. In
Eclipse, when you press ';' it looks for a semicolon at the end of the
line; if there is one already there, you get a ';' at your cursor (as
if you had typed it normally); if not, it puts it in the proper
position at the end of the line, and your cursor is at the end of the
line.
With the following command, TextMate will put the semicolons in the
desired place, but the cursor doesn't move, which is annoying.
input: selected text or line
output: replace selected text
activation: key equivalent ';'
scope: "source"
#!/usr/bin/env ruby
$t = STDIN.read
if $t =~ /\A(.*)\;\Z/
$c = ENV['TM_LINE_INDEX'].to_i
print $t.insert($c, ';')
else
print $t+';'
end
Any idea how to move the cursor? Snippets handle cursor motion, but
I'm not sure I can get the semicolon to go to the right spot. Ideas?
Tricks?
Best,
Kevin
Sorry, if this topic has been brought up before, but I was absent
from the list for a while.
The LaTeX templates extract the name and address from the file ~/
Library/Preferences/AddressBookMe.plist.
Now, I have recently moved and thus changed my address (also in
Address Book.app) but the AddressBookMe.plist is not updated. Indeed,
if I delete the file it is not re-created at all. Any ideas? Is this
due to an update of Apple's Address Book application. Can the content
of my own Address Book entry be retrieved in some other way?
Thanks,
Berndt
Hello,
First time poster to the list, please be gentle!
I installed the mercurial bundle from svn and it is a wonderful tool,
however some parts do not work correctly. For example, viewing the
status of a repo does not work, I get the following error message:
Traceback (most recent call last):
Revert
Diff
File "/opt/local/bin/hg", line 12, in ?
Revert
Diff
commands.run()
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 3000, in run
Revert
Diff
sys.exit(dispatch(sys.argv[1:]))
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 3223, in dispatch
Revert
Diff
return d()
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 3182, in <lambda>
Revert
Diff
d = lambda: func(u, repo, *args, **cmdoptions)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 2371, in status
Revert
Diff
files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/cmdutil.py",
line 139, in matchpats
Revert
Diff
opts.get('exclude'), head)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/util.py", line
367, in cmdmatcher
Revert
Diff
return _matcher(canonroot, cwd, names, inc, exc, head, dflt_pat, src)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/util.py", line
454, in _matcher
Revert
Diff
name = canonpath(canonroot, cwd, name)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/util.py", line
348, in canonpath
Revert
Diff
name = os.path.join(*rel)
TypeError: join() takes at least 1 argument (0 given)
Any clues?
Thanks,
Yi
what do I have to do to correct this error (when listing installed
bundles in bundle GetBundle:
Couldn't find svnversion
Locations searched:
/Users/boldfish/Library/Application Support/TextMate/Pristine
Copy/Bundles/GetBundle.tmbundle/Support/bin
/Users/boldfish/Library/Application
Support/TextMate/Support/bin/CocoaDialog.app/Contents/MacOS
/sw/bin
/sw/sbin
/Library/Frameworks/Python.framework/Versions/Current/bin
/bin
/sbin
/usr/bin
/usr/sbin
/usr/X11R6/bin
/Users/boldfish/Library/Application Support/TextMate/Support/bin
TIA
Hello All,
I have been using the sshfs to connect to one of my servers and while
Finder seems to do a particularly bad job when the server goes down
and I don't eject properly, TextMate seems to do an even worse. Is
this just me or is anyone else seeing this.
As soon as the server goes down TextMate seems to start going into
wait mode for long periods of time. Eventually I just get frustrated
and do a Force Quit.
Thanks!
--
~Tyler
Hi,
As it's my first post, let me thank all the macromates guys and the textMate
community for the great work done already. So, Thank you all!
My work led me to edit my own (LaTeX) templates, and for the first of them,
I pressed an uncountable number of times that precious "Test" Button, to see
if everything was OK. I noticed a few things:
1) In my opinion, there should be a kb shortcut for that button.
2) Bug: It happened sometimes that the modifications made to the script
and/or to the template itself were not taken into account. It generally does
not happen at the beginning of the template building session, but once that
famous "Test" Button had been pressed a number of times.
Notice that closing/reopening the bundle editor window solves the problem.
It's up to you, now!
Thx,
Xavier C.
Hi,
is there a possibility to change or turn of the smart quote function
of textmate?
Since I need to write some german TeXt i would like to have the
„German Anführungszeichen“ instead of “English quotes”.
Having a mac gives me the great advantage of typing those quotes but
TextMate does to much here and generates „“” which
is a bit annoying.
Any suggestions?
Thanks
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
Does anyone out there have easy access to a PPC machine where they
could compile app-cmigrep from godi (it's an OCaml thing)? I'd like
to include it in Support/bin as a universal app to support the new
swank code completion for OCaml.
-David
Is anybody using TextMate to write Docbook? If so, I'd appreciate any
information about how to set up the tools to manage the various XSL
transformations.
Thanks,
Noel
--
Noel Rappin
noelrappin(a)alumni.brandeis.edu
I'm new to TextMate and am already recommending it to my students, but I don't
understand the conventions for Scope Selectors.
Let's say I want to color all div tags in HTML red. I've tried variations on
"entity.tag.div" in Prefs > Fonts & Colors without success. I've a basic
familiarity with RegExp, and it looks like Bundle grammar supports RegExp, but I
can't see where syntax coloring might be defined in the HTML Bundle either.
(For the record, I also can't figure out how to duplicate a Theme--say, if I
want to tweak a version of the default Theme but keep the original too.)
Thanks for any help getting me going in the right direction.
jon
I just downloaded and installed the latest "cutting edge" version of
TextMate. Just after I restarted TextMate to bring up the new version
however suddenly I faced a kernel panic, and had to cold-restart my
computer.
Is there anyone else who experienced something like this?
Anyone,
In version (Version 1.5.4 (1360)) of textmate there is a new
XHTML1.1 template. The problem I now have is that when you run Tidy
from the HTML bundle on a XHTML1.1 document it converts the document
to XHTML1.0 strict. This is a little odd. Additionally it does not
do this well because the resulting XHTML1.0 Strict document is not
valid. Iit leaves the (version="-//W3C//DTD XHTML 1.1//EN") attribute
from the original XHTML1.1 document templet. So, you end up with
some odd non-valid document. I love html tidy but maybe I'm doing
something wrong. I don't know how to change it so that HTML tidy is
nicer to XHTML1.1 documents. The XML bundle version of tidy works
well for now, but its not that same because I have to select in
manually. I can't just press (opt, shift, H).
If anyone has fixed up how they have Tidy cleanup an XHTML1.1
document please share.
Thanks you for your help!
- Ethan
i must be missing an obvious thing here, but whats the easiest way to
find the path to the current document you are editing?
i know of "reveal in project" but the full path? i would expect a
right click to bring up some way to find this.
interestingly running pwd as a command inside a doc returns "/"
using ^S to search, opens up a search bar. it would be neat if this
were like a command input area ala vi ... to run commands in the cwd.
thanks!
/dc
(counting the days for japanese support in TM!)
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle 株式会社
http://www.pikkle.com
-------------------------------------------
--
-------------------------------------------
David "DC" Collier
mailto:dc@pikkle.com
+81 (0)80 6521 9559
skype: callto://d3ntaku
-------------------------------------------
Pikkle 株式会社
http://www.pikkle.com
-------------------------------------------
The current situation
A major goal of all the scoping standardizationstuff we do in the
syntaxes is to make it really easy so make a single theme that can be
used for any language.
Unfortunately, the reality is that languages are really complex and
it takes work to make a theme look good in more than a few languages.
And then more work to keep that theme looking good as the languages
syntaxes are updated and improved.
So, what do we have?
We have a handful of deep themes and a whole hugh mess of really good
looking shallow themes.
the deep themes are constantly updated and work in most every
language. The shallow themes are usually never updated and only work
in a few languages and break on most edge cases like deeply nested
embedded source.
The future
Themes are going to be even more important in the next major release
of TextMate. Themes will be more than just style, they will really
start making inroads into real functionality.
We'll be able to color things like the current selection, the current
line, merge conflicts, tab triggers, placeholders, etc... probably
even more.
[see http://pastie.textmate.org/39665]
This means that themes are going to become much more important to the
way you use the application than ever before.
Which means that it's going to become that much more difficult to
make a theme that really works for more than a few people and keep it
updated.
Tweaked Theme Versions instead of new Themes!
I think we need to move away from a Theme-as-style type of mentality
and more to a Theme-as-functionality type of thinking.
I've put a lot of work into my Brilliance Black theme, but frankly a
lot of people think it's really ugly.
Why is it so ugly? Mostly just my color choices. People all have
different tastes.
Also, it's totally unusable on a dark CRT or LCD.
I've made a few versions of my Brilliance Black theme. Brilliance
Dull, Brilliance White, Brilliance BBS, etc…
The advantage of doing a version of an existing deep theme is that
you get a new style without having to do all the coding of the random
edge cases. It looks pretty without losing any theme-based
functionality.
ShapeShifter
Have you ever user ShapeShifter? There are all these OS themes that
you can use to change the look of the chrome on all the windows and
dock and whatever else on your system. There's also a new tool you
can use to make a tweaked version of an existing theme. You can apply
core image tweaks to all of the images in the theme and save out a
tweaked version of a theme.
I think TextMate should do the same thing.
Start with a good deep base theme like Twilight and tweak the colors.
Then save the recipe of how you tweaked that theme.
The advantage is that when Twilight is updated, all of your tweaked
themes based off of it are also updated since they're just recipes
instead of actually different themes.
And you can make really creative new versions of themes without
having to do all the work of figuring out all the crazy edge cases
and junk.
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
http://blog.circlesixdesign.com/download/utw-rpc-autotag/
The Autotag bundle for Wordpress\TM has been updated to include a new
interface, better fuzzy matching, progress reporting, header endpoint
checking and more. The bundle automates tag suggestions and
insertions in blog posts for Wordpress blogs using Ultimate Tag
Warrior. It requires the UTW-RPC plugin available at the above
address, which adds xmlrpc capabilities to Ultimate Tag Warrior
without having to hack any files.
Thanks,
Brett
hello list,
i was searching this list and also the web for an easy way to use the
diff bundle or how to apply a diff to a whole directory. strangely
this does not work as expected.
i am having a quite large diff file that should patch various files in
a directory in several sub directories. if i am trying
Bundles->Diff->Apply Patch to Files...
and selecting the base directory from where it should patch, strange
things happen.
The Output for all files is the following:
File to Patch
Skip this patch? [y]
Skipping patch.
is there anything wrong with the current diff bundle? or is it maybe
not working with more than one file to patch?
thanks for the help,
mz
Hello,
I have problems with tm_dialog. I get this message, when I start TextMate:
--snip--
2007-02-06 23:19:17.132 TextMate[6159] *** -[NSBundle load]: Error
loading code /Users/thomas/Library/Application
Support/TextMate/PlugIns/Dialog.tmplugin/Contents/MacOS/Dialog for
bundle /Users/thomas/Library/Application
Support/TextMate/PlugIns/Dialog.tmplugin, error code 2 (link edit
error code 0, error number 0 ())
--snap--
And it doesn't work with the bundles like Blogging (Fetch Post) or
TextMate (Paste online).
Thomas
Hello all,
If you have a chance, it's a fun read and great responses from Allan.
http://nslog.com/2006/11/08/textmates_undo/
In my opinion, Erik is just upset that he did not get a free license
from Allan. :)
When working on a LaTeX document, folding is
a superior way of focusing on a part of the document,
much better than splitting the document into
pieces and \include'ing them. So I use it a lot.
But when I unfold a section of my paper to
edit it, only the first level is unfolded; inside it.
the nested levels remain folded. I understand this
is exactly how it is supposed to work, but I feel
for LaTeX it would be much better to have the
possibility to unfold a section completely, down
to the deepest level, with only one keypress.
I have a much better view of the section I'm
working on if nothing is hidden (it's different
from coding I guess).
Is there a way to achieve this with the present
folding system?
Thanks,
Piero
Hi guys,
I'm trying to build a template which will consist of an HTML file and
a CSS file (eventually a number of CSS files in a separate directory)
but I'm having a few problems. I tried duplicating the Objective-C
singleton template and essentially copied and pasted the code with a
few changes. This is what my template code looks like now:
export TM_YEAR=`date +%Y`
export TM_DATE=`date +%Y-%m-%d`
export TM_USERNAME=`niutil -readprop / /users/\$USER realname`
TM_HEADER="$TM_NEW_FILE_BASENAME.css"
if [[ ! (-f $TM_NEW_FILE || -f $TM_HEADER) ]]; then
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <html_in.html >"$TM_NEW_FILE"
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' <css_in.css >"$TM_HEADER"
fi
This creates the HTML file but not the CSS file. Or at least it
didn't until I reloaded the bundles and discovered "untitled.css" had
appeared in the template file list alongside html_in.html and
css_in.css. Very odd! I did some more reading and found a post in the
mailing list archives (http://article.gmane.org/
gmane.editors.textmate.general/8424/match=templates+multiple+files)
which Allan mentioned I need to edit an info.plist file.
Unfortunately I've not been able to find this file anywhere. Could
anyone suggest where it might be and what I need to edit?
Eventually I want to build a template which looks like
index.html
\stylesheets
master.css
standard.css
Would this be possible and if so, any pointers on how I might go
about it?
Cheers!
Alastair
I'm trying to fetch a post from a blog and receiving the message that
my dialog tool is at v8 while my plug in is at v5 - anyway to remedy
this problem without having to use svn?
Jose
This morning I posted a message using the Blogging bundle to a Typo
blog hosted on my desktop machine. The headers in the initial post
were pretty minimal: Title, Blog, and Format. As usual, when the
posting completed, the document was updated with several new header
fields. The Date field came back as
-4713-12-31 18:00:00 -0600
which is, pretty clearly, not today's date. At first, I didn't notice
this, and when I edited the message and tried to repost it I got an
error message:
Error: Internal server error (exception raised)(2)
Fixing the date to a valid value solved the problem, but I'm
surprised that an invalid date was produced in the first place. I've
posted only a few messages to this blog with the Blogging bundle, but
have never had this problem before. Any ideas on where it comes from?
My version of TM is 1.5.4 (1349); Typo is version 4.0.3. I can't find
a version number for the Blogging bundle, but Blogging.tmbundle has a
modified date of November 21, 2006.
--
Dr. Drang
When you edit bundle Commands/Macros/etc you have a final
trigger. Why not to add:
??
Close File should always Discard the Output and
Open File should always have None Input
but I find no other problems.
Sorry if I am posting an out of topic, but this problems raised to
me when hooking the save process to hold a saved file history stack:
------------- Command, Cmd-S (pre: SaveFile)
#!/usr/bin/env ruby
H = "/Users/me/.TM_LastFiles"
files = []
last = ENV["TM_FILEPATH"]
files << last
if FileTest.exist?(H)
IO.readlines(H).each {|l|
if l != last
files << l
end
}
end
f = File.new(H, "w")
files.each {|l|
f.puts l
}
f.close
puts files
--------------------
Why it always ignores the "if" and adds always the current file to
the files array??
????
Sorry for the text dump but I received this error after trying to run
a few lines of ruby. I'm fairly new to *nix which I think might be
related. Anywho, this is what I got:
RubyMate r6189 running Ruby r1.8.2 (/usr/bin/ruby)
>>> ruby.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in
`filter_stdout': undefined method `test_script?' for nil:NilClass
(NoMethodError) from /Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:70:in `emit_html' from
/Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:64:in `each' from
/Users/josevillalobos/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:64:in `emit_html' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:73
I tried running a simple puts, too and got this.
Jose
The "folding away ugly docstrings" makes me wonder, would it be
possible wire up a command that folds elements in the document based
on their scope?
It's a bit different than folding on their nesting level, but I think
can be pretty handy. Especially for things like (ugly) docstrings :-)
Consider it a future feature request if it can't currently be done.
Thanks,
-steve
Hi everyone... I catalog my external media using the 'tree' command
and this generates a file such as the one attached.
Does anyone know of a bundle developed to allow folding for this?
Benjamin Steigmann
blissentia(a)mac.com
Hi, I have a question. When I installed textmate, it did not create
an application support folder. Why might this be?
Is impossible to access "Edit -> Indent line" since it is binding to
Cmd-Opt-]
On the other hand in Sp keyb. you must press Opt fot access ] or
[ keys....
] = Opt-]
actually the ]-key contains the *+] chars, * is with Shift, + is the
default and, I've said ] is with option.
then if you press Cmd-Opt-] you always get "Edit -> Shift right" as
if you've pressed Cmd-]
Hi,
Allan seems to be back, so here's a question: Will there be a
maintenance release soon that contains a fix for the endless loop
when editing python?
I know this is fixed in svn, but I prefer to use official released
stuff instead of svn versions... :-P
Bye,
Nico
Hi,
I was wondering what the best approach to enable this functionality
would be:
I use reStructuredText as the format of my doc strings in my python
files, and so I'd like to enable the reStructuredText snippets,
macros, etc. to fire in my python """ ... """ strings.
The scope of these strings in the Python files are:
string.quoted.double.block.python
Should I just add this scope to all of the commands in the
reStructuredText bundle, so all of the scopes for those commands
would be changed to:
text.restructuredtext, string.quoted.double.block.python
Or should I change the Python grammar to somehow set those two scopes
for the """ ... """ string matching pattern (I'm not sure if you can
do that, though).
Thanks,
-steve
Hi Everyone,
I have the strangest problem that I'll be darned if I can figure out
how to fix. When I double click a word, it selects all the words left
and right until it hits some sort of non-text or non-whitespace
character. So when typing normal text it selects the entire sentence
all the way left and right until a period or the end of the window. In
C coding, it selects until some sort of other style character " [ () ]
* _ " etc. I figured out how to list TM_CURRENT_WORD and it is not
just a word, but the whole sentence so clearly something is screwing
the way that gets parsed. Its really quite annoying and I'm pretty
sure it didn't always do this.
Any help would be greatly appreciated. I've googled around a bit,
including in the list and haven't found anything useful.
cheers,
Max
------------
Max Rietmann
mar76(a)cornell.edu
Is discontiguous text selection possible with TextMate?
On a somewhat related note (this is a long shot...), does anyone have
any idea what the -[OakTextView setMarkedText:selectedRange:] method
is supposed to do? I can't seem to have it make any effect on my
OakTextView...
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools
http://scan.dalo.us
I have been using different approaches to Transpose chars and
transpose words in AlphaX for a long time.
The usual way is really annoying, it swaps the chars around the
cursor. In the Cocoa (emacs-like) version it is also not symmetric:
if you do it two times the result is not the original (!)
Usually you notice you made a mistake after you have written the
chars. It is annoying to need to position yourself between the last
two chars to swap them.
The approach I use (and many Alpha users) is
transpose the last really chars, though spaces or parenthesis, etc
could be in between the cursor and the last two chars!
transpose word in this way is even better, since it also can swap
function arguments, etc.
Here I send the source for this to commands:
---------------------------- transpose chars ^T (v)SelecText|line (^)
ReplaceSel
#!/usr/bin/env ruby
sel = ENV['TM_SELECTED_TEXT']
if sel != nil
sel = sel.dup
sel.gsub!(/^(\w)(.*)(\w)$/u, '\3\2\1')
print sel
exit 0
end
left = ENV['TM_CURRENT_LINE'][0, ENV['TM_LINE_INDEX'].to_i]
right = ENV['TM_CURRENT_LINE'][ENV['TM_LINE_INDEX'].to_i .. -1]
left.gsub!(/(\w)(\W*)(\w)(\W*)$/u, '\3\2\1\4')
print left + right
----------------------
---------------------------- transpose chars ^-Opt-T (v)SelecText|
line (^)ReplaceSel
#!/usr/bin/env ruby
sel = ENV['TM_SELECTED_TEXT']
if sel != nil
sel = sel.dup
sel.gsub!(/^(\w+)(.+?)(\w+)$/u, '\3\2\1\4')
print sel
exit 0
end
left = ENV['TM_CURRENT_LINE'][0, ENV['TM_LINE_INDEX'].to_i]
right = ENV['TM_CURRENT_LINE'][ENV['TM_LINE_INDEX'].to_i .. -1]
left.gsub!(/(\w+)(\W+)(\w+)(\W*)$/u, '\3\2\1\4')
print left + right
--------------------------------
I use a lot a command that I call "quickSearch" that look for the
next text equal that the one that is selected. It is very useful
since you can find quickly var declarations, etc. only selecting the
word (you'll need only the keyboard!) and press, for exmple Shift-
Ctrl-Opt- -> or Shift-Ctrl-Opt- <- (arrow keys) for
quickSearchBackward.
The only way I've found is building the macro:
copySelectionToFindPboard:
findForward:
or the analogous for findPrevious:
The problem is with this simple action I destroy the FindPboard and
this is an unnecessary, I think, colateral effect.
Have s/o solve this not destroying the FindPboard?
Another:
I love to reread the last closed file in a time sorted (stacked)
way: last closed file, first one to open. This also allows me to
open several files (and close) them quickly.
I used to use Ctrl-Opt-O for that process in AlphaX. I can't find
the way for doing this with TM. I think you should save in a file
the history of open files, or so... TM haven't memory variables, in
any way. Alpha has an embedded interpreter inside it and then read
many many procs and variables at start and is easy to refer to them
and also has open-hook and close-hook procs that make this stack
very easy.
Any idea?
-- juan
Hello everyone,
I'm new to many things here -- textmate, regular expressions, etc,
etc. so I hope this isn't too far off topic for this list (apologies
in advance if it is). I'm trying to figure out how to do something
using find/replace. I have a long bibliography that was sent to me
as a single line of text. I'm trying to find a quick and elegant way
to insert line breaks between each of the individual citations.
Here is an example of the text I'm working with:
> Baddeley, A. "Working Memory." Science. 255: 556-559,1992. Baecker,
> R. J. Grudin, W. Buxton, et al. Readings in Human-Computer
> Interaction: Toward the Year 2000. USA: Morgan Kaufinann
> Publishers, Inc. 1995. Bevirt, B. "Designing Hypertext Navigation
> Tools.'' Digital Information Group, National Center for Atmospheric
> Research web site: < http://www. schlucar/dig/bra.inb/design/
> navtool.D.html>. 1996. Chandler, P. and J. Sweller. ''Cognitive
> Load Theory and the Format of Instruction." Cognition and
> Instruction. 8: 293-332, 1991. Chandler, P. and J. Sweller. 'The
> Split Attention Effect as a Factor in the Design of Instruction."
> British Journal of Education Psychology. 62: 233-246, 1992.
I'm just figuring out how to use regular expressions (sorry, not a
programmer) and I've been able to successfully select the endpoint of
each of the citations using:
\d{4}\.\s
My problem comes about when I try to replace the space represented by
\s with a carriage return. I'm not sure how to structure this in the
find/replace dialogue. Is anyone willing to point me in the right
direction here? I'm hoping to end up with something that looks like:
> Baddeley, A. "Working Memory." Science. 255: 556-559,1992. Baecker,
> R. J. Grudin, W. Buxton, et al. Readings in Human-Computer
> Interaction: Toward the Year 2000. USA: Morgan Kaufinann
> Publishers, Inc. 1995.
>
> Bevirt, B. "Designing Hypertext Navigation Tools.'' Digital
> Information Group, National Center for Atmospheric Research web
> site: < http://www. schlucar/dig/bra.inb/design/navtool.D.html>. 1996.
>
> Chandler, P. and J. Sweller. ''Cognitive Load Theory and the Format
> of Instruction." Cognition and Instruction. 8: 293-332, 1991.
> Chandler, P. and J. Sweller. 'The Split Attention Effect as a
> Factor in the Design of Instruction." British Journal of Education
> Psychology. 62: 233-246, 1992.
Thank you for any help you can offer.
--
j.
Is there any way to access the commands (API?) that are listed when
you build and then saving a Macro?
I think accessing them should make the programmer live really easier.
For example, you could send to TM, from an scripting program, a
sequence of such commands and TM could easily interpretate them.
-----
Juan
juanfc(a)lcc.uma.es
Hi
You're a thief! ;)
OK I did what you said and made some improvements to the Bundle. I
like to share what i did with others! Maybe you want to implant it in
the Bundle.
But in the meanwhile i have some problems here:
1. There are to main Forum Softwares out there which the people (and
me) use most. The one is vBulletin and the other is phpBB. These two
have slight differents in their way reacting to BBCode. For example
Lists and Links.
vBulletin writes a link like this:
[URL=http://www.examplesite.com]Please visit this great Page![/URL]
phpBB writes:
[URL="http://www.examplesite.com"]Please visit this great Page![/URL]
(with quoation marks for the URL)
How do i get rid of this problem? Or do i have to expand the Bulletin
Board Language for this to work?
2. This one is quite easy i hope ;) How do i make a submenu from
quite similar items? Like all the List items i want to appear in the
List submenu and so on.
Thanks for your help!
Zettt
Is there some way for telling TM to highlight the HTML "braces" like
<p> Lorem ipsum dolor sit amet, consectetur </p>
etc.
I think the way should be highlightPairs in Grammar, but why nobody
haven't do it yet?
(is it possible?)
Fellow textmaters,
I have been playing with the blogging bundle now for quite some time
and would love to see the following additions:
(I currently am at SVN revision 6430, my blogs are running Wordpress)
1. As I am writing un multiple blogs, I would really appreciate if
e.g. the category tab trigger would read my current post to see if
there is already a selection of blogs instead of asking me which blog
to post to, at the very least use a popup instead of the dialog (as
is done with the blog tab trigger)
2. Same goes for selecting categories… would there be a way to cache
the list of categories, maybe?
3. Is there a way to post drafts? Or, if not, is it possible to post
at future dates, so I can prepare and upload my next few posts
without needing to do copy/paste?
4. Is the common "linking" code progressing? e.g. if you insert a
link to a recent blog post (btw a great addition!) it inserts a HTML
link, but I am writing in markdown – so it is quite a pain in my eyes
to see the full clutter of <a> tags…
5. I very much love the "insert google lucky hit" functionality!
6. Image upload is soo cool!
Thanks again to all who are contributing to all those cool bundles!
Dan
Sorry if this is an obvious noob question, I've searched the help and
all the menus and can't find what I'm looking for, so I thought I'd seek
help here.
I'm in the process of "switching to a Mac" and currently weaning myself
off Topstyle Pro and so far I'm loving TextMate's workflow, one thing I
miss though is a way to move the cursor from the start of a section to
the end, e.g Topstyle allows for placing the cursor in a starting tag
pressing ctrl+M and the cursor will jump to the end tag (and back again
if you press ctrl+m again), it does this for {} in PHP as well and I'm a
bit lost without it, as it's the quickest way for finding those badly
nested tags...
I'm aware I can collapse and expand folds, but it's not quite the same.
is there a quick way to create this functionality?
or is it there already and I missed it?
Thanks in advance
;)
--
Join me: http://wiki.workalone.co.uk/
Thank me: http://www.amazon.co.uk/gp/registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/
I can adjust my print font size by shrinking my display font size way
down, but is there another way? Or can you specify a default font size
delta between display and print?
Thanks
pth
I use the CTags bundle frequently. Thank you to its creator!! But I'm
having an issue now. When I press the key sequence to look up a symbol, the
file with the symbol is loaded in a new window, not as a tab in my project.
Why is this? It just started doing this recently.
Thanks,
Ernest
--
View this message in context: http://www.nabble.com/CTags-bundle-issue-tf3184686.html#a8839142
Sent from the textmate users mailing list archive at Nabble.com.
Hey folks. I'm testing out the tm demo for using with rails, but i'm
having a weird behavior on the Rails -> Go To file keystroke (command
option shift down).
It seems to work when I have a view file open, and will send me back
to a controller. But if I have a controller open, it does not
respond... could somebody sanity check me? (by not respond, I mean
the context window does not pop up).
Thanks,
Chris
When I typeset and view a LaTeX file I get this message:
The document file://localhost/RegionalEE.pdf couldn't be loaded
The LaTeX comes from a working copy of an SVN repo and consist of
multiple .tex files with a master document.
The error comes with PDFView and the standard viewer. But PDFView
eventually opens the correct file anyway.
I think it is related to the TM_LATEX_MASTER setting. But was is wrong with
TM_LATEX_MASTER=RegionalEE.tex
I just hope it doesn't have to include a hard coded directory.
Thomas
Howdy
When I do a pastie and hit escape at the tm_dialog thing
it does a pastie paste and IM's it to the first person on the IM list.
That ain't hip
thomas Aylott — design42 — subtleGradient — CrazyEgg
Hi There.
Can anyone help me with the Blogging Bundle for Nucleus? I can’t get
it to work. I’m using:
“http://....@www../nucleus/xmlrpc/api_metaweblog.inc.php#2″
and "...server.php#2"
for the setup.
But nothing’s happening.
Thanks in advance.
Greetz Dink
If you're writing a bundle that needs its own nibs, but needs another
bundle's libraries, is there a way to determine if and where those
libraries are stored on the users system? A series of fallbacks,
perhaps?
I figured out how to do a fuzzy search using stemming, but had to
create a small bundle to pull it off. It depends, however, on the
endpoint functions in the blogging bundle, so at this point I have
blogging bundle's lib directory copied into the Autotag bundle. Is
this unacceptable?
Thanks,
Brett
hi there,
sorry if this question was asked before, but i am new to the list
and did not found something like that in the archive.
i would love to have highlightPairs for ruby in such a way that:
{ highlightPairs = (
( 'def', 'end' ),
( 'def', 'return' ),
( 'class', 'end' ),
( 'begin', 'end' ),
( 'if', 'end' ),
( 'if', 'else' ),
( 'else', 'end' ),
);
}
would render a result. but as the documentation states the
mechanism of highlightPairs is restricted to 'characters'.
now obviously we do not have (use) braces and such for blocks
in ruby.
my question is: how can i implement a mechanism which tells
me my current scope.
frank'annoyed by accidental parse errors'waldheim
p.s.: if this question is complete bogus please just
let me know by replying a 'rtfm'
--
\|/ ____ \|/
@~/ ,. \~@ "When you are going to die,
/_( \__/ )_\ a wombat is better than no company at all."
\____/ [waste of money, brains and time - wombat(A2DA482A)]
Hi all,
1. Currently, if you have some numeric data and do a math evaluation, for
instance
60 + 220 = 280
If you do a new evaluation on that line, the result is
60 + 220 = 280 standard_in) 1: parse error
SUGGESTION to the math maintainer: Might you alter the code to delete the
contents of the line or selection subsequent to an "=" character, before
evaluating?
2. The currency math commands, would it make sense to use the detected
prefix?
i.e., currently "$20 + $40" evaluates to "$20 + $40 = 60"
Perhaps it should evaluate to "$20 + $40 = $60"
Cheers,
Tim
____________________
Outside of a dog, a book is man's best friend.
Inside of a dog, it's too dark to read.
-- G. Marx
^> works properly and gives me <%= %> but when I press the sequence
again to remove the '=', I get "/tmp/temp_textmate.tG33ud:4:in" Is
this a known problem?
Sorry if this is a repost.
---Brian Yamabe
Ahoy textmaties-
Over the past few weeks,, I'll be working in text-mate when all of
the sudden it loses it's ability to access the system cut and paster
buffer. It will only cut and paste internally. At the same time, the
"Find in a single" page functionality fails too, although I can still
perform global searches ( and sometimes "in selection" searches.) Any
one had these problems?
Version 1.5.4 (1349)
Thanks!
Hello. I was looking for some help from some RE experts.
We have a lot (as in hundreds of files) of javascript code that uses
the following declaration format:
function
MyJScriptFunction()
{
}
Because the "function" keyword and the function name are not on the
same line, the Javascript parser cannot populate the function list
with functions declared like this.
Is there a way to tweak the Javascript bundle so that it recognizes
functions declared as described above?
----------------------------
B.C.
Hello,
I've been using the blogging bundle for the past month with no
problems. However, yesterday I came back to university and am now
inside the network, with all sorts of restrictions. When trying to do
any of the commands such as posting to a blog, getting the category,
or looking the current word up in google and linking (my personal
favourite) I get the following error:-
/usr/lib/ruby/1.8/timeout.rb:42:in `new': execution expired (Timeout::Error)
from /usr/lib/ruby/1.8/net/protocol.rb:83:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:55:in `timeout'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:64:in `initialize'
from /usr/lib/ruby/1.8/net/http.rb:430:in `open'
from /usr/lib/ruby/1.8/net/http.rb:430:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:419:in `start'
... 9 levels...
from /Users/Joanna/Library/Application
Support/TextMate/Support/lib/progress.rb:41:in `call_with_progress'
from /Users/Joanna/Library/Application
Support/TextMate/Support/lib/progress.rb:38:in `dialog'
from /Users/Joanna/Library/Application
Support/TextMate/Support/lib/progress.rb:38:in `call_with_progress'
from /tmp/temp_textmate.IbaTBN:45
I was wondering if anything could be done about it, if I needed to
change some preferences or something.
Thanks, Joanna