Hello everyone,
On my french AZERTY keyboard, some keys are dead by default. This
includes the ‘^’ key and is necessary for circumflexes such as î or
ê. However, when in math mode, circumflexes are seldom needed; in
math mode, I'd rather have the ‘^’ not dead, in order to easily type
exponents. Worse, in fact TM behaves strangely when one tries to type
a character which can't be circumflexed, it doesn't display anything:
when typing ‘^{’ on my keyboard, nothing appears.
So I though the easiest solution would be to override the ‘^’ key
with a snippet in scope string.other.math.latex, but the shortcut
doesn't seems to work. Any other solution?
Oh, and while I'm at it. I found it really useful to bound a ~
snippet to alt-space - ~ is a dead key too on my keyboard. I was
wondering if it was worth including this in the LaTeX bundle. And the
X ~> \Xi command completion is lacking in my version of the package.
Why is that?
As always, thanks for your help,
Édouard
Hey guys,
I am right now trying the out TextMate and it seems pretty awesome.
I do have a Problem with using my old pything files with TextMate. They are
all indented by whitespaces and not by tabs. So when I add a new line with
TextMate, the python script won't run anymore, since TextMate indents by
using tabs.
So I would either have to convert my python scripts to use tabs or tell
TextMate to use whitespaces.
How would I achieve one of the above?
Regards,
Samy
--
View this message in context: http://www.nabble.com/Question-about-python-indentation-tf4646652.html#a132…
Sent from the textmate users mailing list archive at Nabble.com.
Some frequent discussion topics on this list are:
1. How do I use TextMate's cool project features when my directory is
on some other machine? Or…
2. I've created a TextMate project out of a directory on some other
machine, but now Subversion is broken. Or the extremely common…
3. I've created a TextMate project out of a directory on some other
machine, but every time I switch to TextMate, there's this huge delay.
I've had all of these problems myself and have developed a bundle to
work around them.
<http://kendra.oit.gatech.edu/remote_project_bundle.zip>
The intro in the bundle's documentation sums it up nicely:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
## About This Bundle
### The Problem
You want to work with files in a TextMate project on the local
filesystem (for speed, Subversion compatibility, and other reasons),
but the files you're working on are useless unless they're on some
remote machine. This is most common with web based projects where the
code only works on a sever that has been configured in a particular way.
### Who This Bundle Is For
This bundle is meant to support a workflow where all (or almost all)
changes are made locally using TextMate, while all (or almost all)
viewing/running/testing of those changes will be done on a remote
machine (such as a web server).
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
For more details, run the bundle's Help command. If anyone uses this,
send suggestions to me or to the list. I'd like to go through a
couple of feedback and improvement cycles before submitting it for
consideration as an "official" bundle. Thanks.
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i'm using mySQL Version 14.12 Distrib 5.0.41, for apple-darwin8.5.1
(i686).
I've configured my Setup to use the SQL Bundle. When I select a Query
(working
in Shell) and press Ctrl-Shift-Q, I get the folling Errors:
- -- snip --
/Library/Application Support/TextMate/Bundles/SQL.tmbundle/Support/
bin/db_browser_lib.rb:5:in `require': No such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/
keychain (LoadError) from /Library/Application Support/TextMate/
Bundles/SQL.tmbundle/Support/bin/db_browser_lib.rb:5 from /Library/
Application Support/TextMate/Bundles/SQL.tmbundle/Support/bin/
db_browser.rb:7:in `require' from /Library/Application Support/
TextMate/Bundles/SQL.tmbundle/Support/bin/db_browser.rb:7
- -- snap --
As I do not code in Ruby, I do not exactly know where the Problem is.
Same Query in Project worked in a prior Version of TextMate.
Maybe there ist someone who can give me a Hint to fix this. :o)
Thanks in Advance from Aix-la-Chapelle,
Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iD8DBQFHFnDrf47P97gjAUwRAr2uAKCNpjR+r0y5SHzr1aKXexTJbfHqTgCgxnOG
SxInY58C3Vr+EDNlT+WntU4=
=PZOZ
-----END PGP SIGNATURE-----
The \href{URL}{text} command of the hyperref package doesn't get
scoped correctly, I think. URL receives the following scope:
text.tex.latex
meta.group.braces.tex
meta.reference.label.latex
constant.other.reference.lable.latex
Shouldn't it rather receive:
text.tex.latex
meta.group.braces.tex
meta.function.link.url.latex
markup.underline.link.latex
Small thing, I know, but it affects syntax coloring and it means that
you cannot launch the URL with ⌅.
Best, Mark
I was just writing an e-mail, which is scoped as Markdown, and got an
error when trying to convert something to lower case using ⌃⇧U. I
discovered that ⌃⇧U is bound to "Update References" in the
Markdown2Book bundle. It probably needs to be changed to something else.
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
I'm curious about the reiationship between textmate projects and the
subversion bundle.
I've had occasion to commit changes in a Textmate project, then go to
the terminal in the working directory and svn info shows me at a
previous revision, but doing svn up just reports that I'm now at the
latest revision.
Is this an artifact of the way I set the project up?
I have to admit that I'm still a bit confused by JEG IIs description
of two types of text mate projects in the book. I never managed to
understand what he was saying about the difference.
I think now that it's not really that there are two types of projects,
but two types of relationship between items in the project and the
filesystem.
When I first set up my first existing rails project as a textmate
project, I picked File>New Project and then dragged the individual top
level items from the finder to the textmate project pane, so the top
level of the project has the standard rails folders: app, components,
config, db ...; and two files README and Rakefile.
I think this means that the directories are folder references and I'm
not sure what the difference, if any there is for the two top level
files. I just changed README in textmate and saved it and it
certainly seems to be directly changing the file in the rails project
directory. So just what is the difference? I think that the real
difference is between a folder reference and a group inside a textmate
project, Yes?
And I guess that I really want to restructure the project so that it
has one toplevel folder reference which is the rails project
directory.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
I tend to use snippets a lot in textmate because they help me
standardize my data (text files, reports, blogs, wiki pages, code,
etc). I wanted to know if there was anyway (or any planned features)
that would allow the use of a temporary snippet, so that someone can:
1. while working in a file goto a blank line
2. type in some snippet code
3. highlight the code
4. hit a key combo to copy the snippet into a temp register/key that
can then instantly be used in the document.
For example, say I'm writing a document that has is starting to use a
bunch of citations:
"Begin with the name of the author, moderator, or other responsible
person or organization, if available, followed by the date of
publication, the title of the site, the URL, and the date of access.
(ex: American Chemical Society. (2006). Chemistry.org. http://
www.chemistry.org/portal/a/c/s/1/home.html (24 Mar. 2006).)"
So on a blank line I type:
$1. ($2). $3. http://$4 ($5).
I then select the text, and copy it to a temp register[1], (perhaps
with a fixed tab trigger, or hot key) and now I can quickly call on
it to populate the rest of my document.
This would save me time without having to goto snippets, create a new
snippet, assign a name, key combo, code, etc, then use the snippet,
and after I'm done with the document, go back in and delete the snippet.
I find I love the use of the snippets, but sometimes a formating
issue is only needed once, not enough to warrant creating permanent
snippets.
[1]: If there were 3-4 registers, then that would be even better.
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
I'm really missing the ability to diff two files that I've selected in
the project drawer from the context menu, coming from an IntelliJ IDEA
background (now doing Ruby work).
Currently I have to do option-shift-apple-D, and then press 4 (??)
I see from an earlier post that you can't add things to the context
menu from a Bundle.
Is there anything into the works to add diff functionality into the
context menu for the project drawer? I can see at least two scenarios
that would be big time-savers:
Select modified file:
1) diff with saved version
Select two files:
2) diff between these files (regular and HTML) options, order same as
selection order
Hi,
I just uploaded the new version 0.902
Download:
http://email.eva.mpg.de/~bibiko/downloads/textmate/TMTools.tmplugin.zip
Help:
http://email.eva.mpg.de/~bibiko/downloads/textmate/tmtoolshelp.html
or
"$TMTOOLS" help me
Changes:
added: to get allEnvironmentVariables an option variables to output
only these values
added: close allAuxiliaryWindows (very useful for developing ;)
added: close allFloatingDocumentWindows
changed: do closeAllWindows to close allWindows
added: get openDocumentFiles (for all opened floating windows)
added: set/get frontMostDocument (one can edit more than one document
with one script)
added: to get openProjectFiles the output option format=mate;
changed: get openProjectFiles output option escape is renamed to
shellEscape
added: do openFileInNewWindow
added: do revealFileInFinder
added: do openFileWithFinder
added: show alertSheet
Regarding to show alertSheet: I tried to get rid of it within
TMDIALOG but I had some problems to get the return value out. Maybe
it can be done in TMDIALOG 2.0 to show an alert in a sheet attached
at the current window.
I attached two examples:
editAllFloatingWindows:
This will resize and arrange all floating windows, and inserts into
the first line the html escaped file name. Finally it will show an
alert sheet.
reopenAsProject:
This will put all floating documents into a new project (for me very
helpful ;); close all floating windows; and open the front most
document in the project. This also works if only one window is open.
Please note: these are ONLY examples for showing what can be done.
Regards,
--Hans
When I try and add a date to an action in the GTDAlt bundle, I get the
following error:
--
/usr/local/lib/ruby/1.8/date/format.rb:230:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filestrftime'
from /usr/local/lib/ruby/1.8/date/format.rb:201:in /bin/bash: -c:
line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filestrftime'
from /usr/local/lib/ruby/1.8/date.rb:1343:in
--
Any clues on how to sort this out?
This has happened several times today. I'm using the "cutting edge". I
believe it has happened consistently (at least twice) when I did the
following: if I enter a "(" in the middle of some text, e.g., before the "s"
here:
method_namestuff_after
so it becomes (after TM fills in the right parenthesis)
method_name()stuff_after
TM then goes into an infinite loop, taking all the CPU time and doesn't come
back, at least not before I kill it.
I'm using the Ruby Experimental bundle and MacBook Pro (i.e., Intel CPU), OS
X.4.
dean
--
Dean Wampler
http://www.objectmentor.comhttp://www.aspectprogramming.comhttp://aquarium.rubyforge.orghttp://www.contract4j.org
Hi,
can anybody tell me how to use the file selection dialog in a ruby script
with the --select-only-directories option?
i tried:
folder=Dialog.request_file(:'select‑only‑directories' => "")
next i tried:
folder=Dialog.request_folder()
after adding to file dialog.rb :
def request_folder(options = Hash.new,&block) # added by PV 13.10.2007
_options = default_hash(options)
_options["title"] = options[:title] || "Select Folder"
_options["informative-text"] = options[:prompt] || ""
_options["text"] = options[:default] || ""
_options["select‑only‑directories"] = ""
dialog("fileselect", _options,&block)
end
On page 140 of Textmate by James Edward Gray II it says:
"You may pass any other options supported by CocoaDialog"
thanks,
Peter
--
View this message in context: http://www.nabble.com/tm_dialog-fileselect---select-only-directories-tf4617…
Sent from the textmate users mailing list archive at Nabble.com.
I've just started using TextMate for perl editing and I noticed today
when I opened up a file that this line of code confusing the syntax
coloring...
if ($link eq '' || $user eq '' || $user =~ / / || $link =~ / /) { ... }
TextMate saw a string starting at the first ~ and never stopping.
I looked through the bundle and I found what seemed to be the problem
here...
{ name = 'string.regexp.find.perl';
match = '(?<!\\)((~\s*)?\/)(\S.*?)(?<!\\)(\\{2})*(\/)';
captures = {
1 = { name = 'punctuation.definition.string.perl'; };
5 = { name = 'punctuation.definition.string.perl'; };
};
},
The \S there is matching any non-whitespace character so it doesn't
like the space character being used between the //. I changed that
match line to this and it seems to have fixed it for me...
match = '(?<!\\)((~\s*)?\/)([\S| ].*?)(?<!\\)(\\{2})*(\/)';
Is there any reason that's not a wise change to make?
Thanks for any info,
Dallas
Hi all,
I think I’ve finally managed to get a statically linked build of
SVNMate working, which means that it should work on any system
without problems. Maybe.
Apologies if you tried to install it previously and had problems.
Download at the same place: http://ciaranwal.sh/2007/10/10/svn-plug-
in-for-textmate
Ciarán
Hi,
would it be possible to add support to the
chktex semantic LaTeX checker? it's a nice
program that checks for structural errors
in the latex file and is able to spot errors
in many situations (unmatched braces etc).
It is more advenced than lacheck and last
version 1.6.3 compiles perfectly on Mac OSX.
The ideal would be to produce an HTML view
with links to the offending lines (and to
have an additional button "Chktex" alongside
"Re-Run pdflatex"... etc
Thank you,
Piero
Hi,
I 'finished' the recoding of TMTOOLS. If someone has a bit time
please give me a feedback about the functionality, bugs, wishes, etc.
Please note: The version 0.9 is still beta, i.e. please be careful
while testing it. By myself I use it every day while working, and it
helps me a lot; at least for me ;)
I also wrote a tentative help file for it very quickly.
To install the plug-in download it, uncompress it, and double-click it.
http://email.eva.mpg.de/~bibiko/downloads/textmate/
TMTools.tmplugin.zip (111kB)
(it should be universal - if not please give me a hint)
For help have a look at this page (utf-8 encoded!)
http://email.eva.mpg.de/~bibiko/downloads/textmate/tmtoolshelp.html
or type in an empty TM document (after installing ;):
"$TMTOOLS" help me
and press CTRL+R
A short demo:
http://www.bibiko.de/TMTOOLS_demo_01.mov (10MB)
Up to now TMTOOLS contains 106 shell commands which interact with TM.
some examples:
"$TMTOOLS" get windowOriginAndSize
"$TMTOOLS" get currentWord '{only=tail;delimiter=" ():.";}'
"$TMTOOLS" set spellCheckerLanguage '{to=en_GB;}'
"$TMTOOLS" set windowSize '{width=100;height=200;}'
"$TMTOOLS" set grammar '{to="Ruby";}'
"$TMTOOLS" call template '{name="From Clipboard";}'
"$TMTOOLS" show projectDrawer '{onEdge=0;}'
"$TMTOOLS" complete usingDictionary
'{lang="da";showInternalListFirst=yes;}'
"$TMTOOLS" use nsstring '{initWith="たてもの";
toGet="canBeConvertedToEncoding:"; with="8"; }'
The command "$TMTOOLS" do onKeyDownAfterDelay is still experimental.
I tested it a lot, and it works.
This command installs an event manager which will execute any shell
command after a delay of X seconds if no other keyDown event occurs
within X seconds.
The following example will save the current document in /tmp after
5sec if there is no further key pressed. (A kind of AutoSave function
while non-typing)
If one presses ESC (stopkey=53) one destroys that event handler. For
more details see help.
Furthermore it can be used to display suggestions for the code
completion à la XCODE (see demo).
"$TMTOOLS" do onKeyDownAfterDelay "{
delay="5";
repeat=no;
startAtCall=no;
shell='\"$TMTOOLS\" get textString > /tmp/\"$TM_FILENAME
\".txmtbkp;say \"document was saved\"';
stopkey=53; }"
Best,
Hans
Hi,
I finally got a macbook and Textmate about a month ago, primarily for
ruby/rails development.
I looked at the various screencasts, and the one on the rails bundle
shows some features like the mdct (migration drop and create table)
and mrac (migration remove and add column) which use schema.db to
generate code in the migration's down method to recreate the table or
column being dropped or removed.
The rails ruby bundle which came with TextMate doesn't seem to have
these. I did find what seems to be the bundle demoed on the
screencast at the syncPeople web site, and installed it, but it seems
to replace the 'standard' bundle which came with TM (the names differ
though).
What's the status of this/these bundles?
By the way, I wrote another mini-bundle which has one command which is
a 'magic' snippet for adding an item to a rails test fixture. It also
works by reading db/schema.db
The code for the command in the bundle can be found in an article on
my blog. I had planned to add the bundle as a resource to the
article, but it seems that typo(my blog engine) doesn't seem to
support uploading bundles.
The article is at
http://talklikeaduck.denhaven2.com/articles/2007/10/09/my-first-serious-tex…
I'd appreciate any feedback on this textmate command.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
Hi,
I wonder if it would be possible to tell TM (2.0) to execute a
specific tmCommand on some events like:
-TM starts : execute a autostart script
-TM quits : before quitting execute a script
-TM looses its focus to an other App
-TM gets the focus
-for each TMPROJ, specify an autostart script and a shutdown script
Maybe also:
onRightMouseDown
onLeftMouseDown
etc.
This behaviour could be set in TM's Preference.
Esp. if one develop a plug-in for TM one has to restart TM very
often, and it would be nice if my window settings (code documents,
bundle editor opens with the last edited item, etc.).
I tried to write a plug-in for that, but for me it's a bit tricky. I
got rid of onOtherMOuseDown, etc. but to start a script if TM starts,
well I have no idea to do that because no document is open if the
plug-in will be initialized. Or has someone an idea?
Regards,
--Hans
Hi,
I don't know if someone else is interested in this, but the TMTOOLS
plugin has very nice side-effect ;)
Now I can write quite easily my own dialog/menu/monitor in HTML,
meaning a tmCommand with output 'ShowAsHTML', with my favorite tasks.
see demo: http://www.bibiko.de/TM_HTMLDIALOG.mov (1.5MB)
--Hans
I've been using pdfsync with Skim, and notice that every time I hit the key combo for pdfsync in TM, Skim reloads the document (this is obvious because Skim now displays a progress sheet). Would it be possible to avoid telling Skim to revert the document unless it's actually changed? That would speed up syncing quite a bit, I think. Skim's displayLine command should handle opening it if necessary, also. If I stare at textMate.py a bit more I might be able to figure it out on my own.
thanks,
Adam
I was a long-standing user of emacs for my LaTeX documents, and I
have recently switched to TextMate, but I miss some features of
emacs. In particular:
pressing TAB in an environment (or in math mode, or inside
parenthesis) move the cursor out of the environment (math mode,
parenthesis). In addition pressing tab when in sub/superscrit takes
the cursor out of the superscript and removes the curly brackets if
the sub/superscript contains a single character.
For inserting symbols I were used to the RefTeX way, i.e., pressing a
key (` in the original setting and ! in my customisation) followed by
a letter produces a (LaTeX) symbol. So for example typing !a produces
\alpha and !A produces \forall.
I wonder if there are ways to replicate the behaviours in TextMate.
All the best
Guido
--
Dr Guido Governatori
School of Information Technology and Electrical Engineering
The University of Queensland
Brisbane, Queensland, 4072, Australia
Phone: +61-(0)7-336 52907
Fax: +61-(0)7-336 54999
http://www.itee.uq.edu.au/~guidohttp://www.governatori.nethttp://www.defeasible.org
I'd like to automate the date entries for a journal I write in "LaTeX"
and have come up with this snippet:
\subsection{${1:`date +%A`, `date +%d` `date +%B` `date +%Y`}}
which gives me the date as follows in my files (example):
\subsection{Wednesday, 10 October 2007}
It works--that is, it gives me the spaces I want between the elements of
the date, but it looks cumbersome to me to invoke the date command
repeatedly to get these spaces and I wonder if someone could supply a
more elegant way to get the same result.
Thanks.
--Gildas Hamel
Hi gang,
I'm using TM/Skim for some LaTeX and when typesetting — using
mklatex.pl —, nearly everything is alright. Except for a little
annoying message : Skim tell me that “The document 'file.tex' can‘t
be opened. File does not exist.” Yet, it just has been. This happened
on different files, but only when there are non ascii characters in
the file path. Removing those character make the message disappear.
I'm not sure wether it is a problem with Skim or TM. I tried with
both "retail" and svn version of the LaTeX package.
Any hint of what it could be?
Thanks,
Édouard
hi ciarán :)
sadly your plugin at http://ciaranwal.sh/?p=6 doesn't seem to work
here - it won't show up.
in my console.log i found this:
2007-10-11 12:09:44.093 TextMate[23439] Can't open input server /
Users/oktay/Library/InputManagers/Edit in TextMate
2007-10-11 12:09:44.181 TextMate[23439] *** -[NSBundle load]: Error
loading code /Users/oktay/Library/Application Support/TextMate/
PlugIns/SVNMate.tmplugin/Contents/MacOS/SVNMate for bundle /Users/
oktay/Library/Application Support/TextMate/PlugIns/SVNMate.tmplugin,
error code 4 (link edit error code 4, error number 0 (Library not
loaded: /usr/local/apr/lib/libapr-1.0.dylib
Referenced from: /Users/oktay/Library/Application Support/TextMate/
PlugIns/SVNMate.tmplugin/Contents/MacOS/SVNMate
Reason: image not found))
2007-10-11 12:09:44.181 TextMate[23439] instance SVNMate plug-in has
no principal class
i don't have the libapr-1.0.dylib - i only have these:
[oktay@blackbox oktay]$ ls /usr/local/apr/lib/
apr.exp libaprutil-0.a
aprutil.exp libaprutil-0.dylib
libapr-0.0.9.7.dylib libaprutil-0.la
libapr-0.0.dylib libexpat.0.1.0.dylib
libapr-0.a libexpat.0.dylib
libapr-0.dylib libexpat.a
libapr-0.la libexpat.dylib
libaprutil-0.0.9.7.dylib libexpat.la
libaprutil-0.0.dylib
can i update this thing? from where?
i'm a heavy svn user so this plugin is really interesting for me :)
regards,
oktay.
Hi all,
Every now and then my Project Drawer groups seem to collapse every
time TM becomes the active application, which bugs me no end. Is the
cause for that known? I can't seem to detect a pattern, it is fine
for weeks, then there are days where it does that all the time.
Thanks
Gerd
Hi all,
I'm sure this has been asked a thousand times, but I can't seem to
find a simple answer via Google...
I just want to know if there is a function that searches your HTML
document and tells you about invalid characters, or just replaces all
invalid characters with their HTML entities. Can it be activated via a
keyboard shortcut?
I'm pretty lame at understanding regular expressions and the like, so
if you could explain it to me in laymans terms, that would be great!
Cheers
Hi there
When running the todo bundle I get the following error about 9 times
in the output window:
/Library/Application Support/TextMate/Support/lib/textmate.rb:83:
warning: Insecure world writable dir /Library/Application Support/
TextMate in PATH, mode 040777
Below, the Todos are displayed correctly. Is there an error on my
side or is this a bug?
Oliver
Hi,
I have a problem:
I wrote a tiny command:
Save:
nothing
Command:
CHAR=$(cat)
echo -en "($CHAR)"
Input:
Selected Text OR Character
Output:
Show as Tool Tip
If I don't make a selection it outputs only '()'.
But I expect between the parenthesizes the character left from the
caret.
Can this verified by others as well, or am i wrong, or is my TM
installation broken?
Many thanks,
Hans
Hi all,
I'm trying to run rspec bundle command but am getting errors.
/Users/alastair/Library/Application Support/TextMate/Bundles/
RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:34:in `run':
undefined method `parse' for Spec::Runner::OptionParser:Class
(NoMethodError) from /Users/alastair/Library/Application Support/
TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/
runner.rb:33:in `chdir' from /Users/alastair/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/
runner.rb:33:in `run' from /Users/alastair/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/../spec/mate/
runner.rb:12:in `run_file' from /tmp/temp_textmate.U7M7Xe:4
Does anyonene have any ideas what might be causing this?
Thanks,
Alastair
-----
Alastair Moore
Freelance web design, development and consultancy
t. 07983 983945
e. alastair(a)kozmo.co.uk
w. http://www.kozmo.co.uk
skype. alastair_kozmo
FYI, Typeset and Preview didn't capture the following error message
in the log:
/usr/local/texlive/2007/texmf-dist/tex/generic/pgf/systemlayer/
pgfsys.code.tex:
847: Package pgfsys Error: Driver file ``pgfsys-xetex.def'' not found..
Best, Mark
Ok, I am not sure how to explain this but it is driving me crazy. I looked
around the forums but could not easily describe the issue so forgive me if
this is simple.
The cursor on my scree will show about 4 spaces outside where I am typing,
and when I turn on finish quotes or auto quotes in the prefrences and try to
type, the last pair of quotes will follow the cursor.
Can someone clue me in on this program and what I am missing here?
thanks,
Paul
--
View this message in context: http://www.nabble.com/Very-Wierd-Issue.....-tf4559431.html#a13011657
Sent from the textmate users mailing list archive at Nabble.com.
I'm being slowly driven mad by two things that I suspect other people
just shrug and live with.
- Sometimes, the command-T list seems to 'forget' where I've been
recently. So when I'm flipping back and forth between, say, a test
and its code, cmd-T RET takes me to some surprising file, usually
beginning with 'a'.
- Sometimes, the Find dialog becomes inert. Nothing happens when
hitting the gently throbbing Find button. Often (always?) the little
red gumdrop doesn't dismiss the window.
What I'm mainly wondering is: is it just me?
-----
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
www.exampler.com, www.exampler.com/blog
Trying to build a new project I get this:
/Library/Application Support/TextMate/Bundles/Xcode.tmbundle/Support/
bin/parse_build.rb:99:in `initialize': Permission denied
- //.tm_build_errors (Errno::EACCES) from /Library/Application
Support/TextMate/Bundles/Xcode.tmbundle/Support/bin/parse_build.rb:
99:in `open' from /Library/Application Support/TextMate/Bundles/
Xcode.tmbundle/Support/bin/parse_build.rb:99 from /Library/
Application Support/TextMate/Bundles/Xcode.tmbundle/Support/bin/
format_build_output.rb:288:in `load' from /Library/Application
Support/TextMate/Bundles/Xcode.tmbundle/Support/bin/
format_build_output.rb:288
Seems that ENV['TM_PROJECT_DIRECTORY'] is set to '/'. I opened the
project in TM via Xcode/Open frontmost project.
Any ideas? Older projects seem to work fine.
Gerd
There are some annoyances with this Bundle. It does not work.
It tries to call the application called "Term" but it should be "Terminal"
(was Terminal ever called Term in previous versions of OS X?).
Then, it moves the terminal window to an awkard position (100,100 ?) (See
the diff).
So the diff to repairs those. It is not a big patch but it corrects
annoyances I get everytime I checkout that bundle or tell someone else to.
Also, not included in the diff : The bundle shows support for gprolog on the
command line. Some people (like at my university) prefer using swi-prolog
(swipl). Should I make a patch that supports gprolog but falls back to swipl
if it is not installed? Is it appropriate for a "texmate Run command" to
support 2 implementations of Prolog?
Thanks
Guillaume Carbonneau
Hi,
I was doing Japanese translation of TextMate manual, but I can't
complete the task soon.
The reason is simple. I was jobless, but now I got my first full-time
job in my life.
I'm now, yes, a programmer. I'm extremely busy with learning new
things and adapting myself
to a Japanese office environment.
It would be great if Allan could cook up a script that generates
Japanese manuals in HTML dynamically.
Thus, I can still update when I have time. Other pages can still be
English.
(If I see my Japanese writing on macromates.com, that would be
encouraging and motivating...)
As TextMate 2.0 approaches, I wonder what part of the manual is worth
translating at this point.
Is everything changing in 2.0? Or, language grammars and scoping will
have overhaul?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hello everyone.
I'm starting to use Markdown for most of the documents I produce.
Usually I go directly to PDF or for more complex documents I firt do a
Latex export and mostly get good results. Today I needed to export a
document which includes spanish accents to RTF but it doesn't look
right in Textedit. Anything with an accent or an 'ñ' just shows as a
series of symbols. I have Textmate to encode the document using UTF8.
Anyone has a solution for this?
Thanks,
Andrés
Hi all,
I haven't developed with PHP in a while and just recently started
again... but I noticed that there's no longer a HTML (PHP) bundle.
What's up with that? Why was it removed?
Thanks
Mike Gregoire
> Well, welcome to the club.
> I highly recomend that you watch all the screencasts and read all
> the documentation. I'm not normally the type to bother with the docs
> but I was amazed at how much stuff textmate can do. There's just so
> much awesome right under the surface.
>
> Thomas Aylott [SubtleGradient] from iPhone
>
> On Oct 4, 2007, at 10:05 AM, hairball <stop.the8thday(a)gmail.com>
> wrote:
>
>> Like to say HELLO,
>> I'm a new member to the list and also a new user of TextMate. This
>> seems to be a wonderful tool and I'm looking forward to working
>> with it.
hey all. so i am an eclipse user trying to switch over to textmate
for some perl development. usually i end up with project folders that
have their own modules (.pm files) within, and eclipse allows me to
specify the library folders to be part of the @INC path at run time.
this is great because it makes the whole project folder portable, and
i don't have to "install" developement modules on the system in any
of the usual locations.
my issue is that the perl module "run script" command doesn't seem to
allow for any of this. what solutions do you all use to get around
this? please save me from eclipse. thx
e
Like to say HELLO,
I'm a new member to the list and also a new user of TextMate. This seems to
be a wonderful tool and I'm looking forward to working with it.
Hello all,
I am having problems were by attempt to word completion (say for
something starting "people..") leads to the following error:
peopleWarning: PropertyList is deprecated. Use OSX::PropertyList
instead.
dom
I am using the latest cutting edge Textmate version: Version 1.5.6
(1414)
I also updated the bundles that I loaded separately using :
cd /Library/Application\ Support/TextMate
export LC_CTYPE=en_US.UTF-8
svn up *.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'
And then
After a search at the macromate site I read a suggestion that I
would have to use the following commands to change to the most
recent version of support:
cd /Library/Application\ Support/TextMate
sudo svn co http://macromates.com/svn/Bundles/trunk/Support
indeed, this was confirmed after I checked by using ^R on:
echo "$TM_SUPPORT_PATH"
which now gave
/Library/Application Support/TextMate/Support
IN PLACE OF the previous
/Applications/TextMate.app/Contents/SharedSupport/Support
This has not helped...
Is there another solution to ridding myself of the above error?
Thanks in advance.
danstan
Hi everybody,
being a new TextMate user I want to install now a TeX/LaTex distribution.
Yet there are so many of them. Which one works best with the LaTeX bundle of
Textmate?
Thanks for your help.
kuka
I'm attempting to use TM for my most common development tasks, but haven't
got my head around it yet. Can someone point me at the right place to find
documentation about the following:
Task 1: I work on a code base of about 50,000 lines of ordinary C code,
spread over about 30 files. Most of what I do is cut, paste, search, make. I
want to add some functions to the context menu. First, I want a function
that would take me to the definition of the item under the cursor. E.g., if
it's a function, open a window containing the prototype, or otherwise show
me the prototype. If it's a constant, take me to the header file where it's
defined. Second, I want a function that will find references to the symbol
under the cursor. I don't want it to find definitions or comments, just any
chunk of code that actually uses the symbol. This would be some variant of
the 'Use Selection For find', but as a context menu item.
Task 2: I want to add an item to the context menu that will do the
following: save any dirty files, then run the makefile of the project. If
there are any errors, take me to the place in the source file that contains
the first error. This would be something like the Command-B, but as a
context menu item. Also, when I tried using Command-B, it attempted to build
the code using Xcode. I just want it to run the makefile in a shell and show
me the errors. I would also want to
--
View this message in context: http://www.nabble.com/Context-menu%3A-Help-me-get-my-mind-around-this...-tf…
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I'm trying to get the feel for TextMate right now, and I'm wondering:
can it be that there is no nice support for Makefiles?
I checked out the Makefile bundle from SVN, but while that does allow
you to *run* a Makefile, it doesn't allow you to click on an error
message and be taken to the relevant source file, or do any other
interactive goodness, unless I am mistaken.
In general, it seems it would be nice if there were a way to run an
arbitrary command and filter the output for file names and line
numbers (kind of like M-x compile); this would be quite flexible for
those of using projects that don't build in Xcode. Is there a bundle
out there that provides this kind of feature? Or, at least some kind
of "Build with Makefile" support?
I am not trying to slight the work of the author of the Makefile
bundle, by the way: no doubt s/he just doesn't use Makefiles that
often. But I would be surprised to learn that there aren't a lot of
users still working on projects that use makefiles to build...
thanks for any information!
Niko Matsakis
Hi!
When I use the section and similar snippets to create a section and
have a title with an Umlaut then it looks like this:
\section{this is an Umlaut-test: äöüß} % (fold)
\label{sec:this_is_an_umlaut_test_äöüß}
% section this_is_an_umlaut_test_äöüß (end)
The problem with this is that LaTeX seems not to handle umlauts and
other special characters in labels and therefore I always have to
change them to something else like
\section{this is an Umlaut-test: äöüß} % (fold)
\label{sec:this_is_an_umlaut_test_aeoeuess}
% section this_is_an_umlaut_test_aeoeuess (end)
by hand. Isn't there a possibility to do this automatically?
Ä -> Ae
Ö -> Oe
Ü -> Ue
ß -> ss
ä -> ae
ö -> oe
ü -> ue
I think similar stuff would be useful for anyone using languages with
accents or whatever with the LaTeX-bundle and it works already with
":" and other special characters which become an underscore.
Would be really appreciated by me if this small addition could be
made :)
Niels
I'm bouncing between Homesite at work (well, ColdFusion Studio actually,
I'm that much of a stick-in-the-mud), and TextMate at home, and I'm
looking for the TM equivalent of "select full tag" -- a keyboard
shortcut that selects the whole tag block whether your cursor is in the
start or end tag.
Can TextMate do that?
Thanks,
Owen
I'm trying to create a bundle for RealBasic. I've made some
progress, but I keep getting stumped in trying to create a single
line comment, (which in RealBasic is either // or '
The double-forward slash works fine, but the single quote doesn't.
This is the code:
{ name = 'comment.line.single-quote.myRB';
match = "(\').*$\n?";
captures = { 1 = { name =
'punctuation.definition.comment.myRB'; }; };
},
Thanks,
mvreade
Hello,
I'm wondering if anyone here can help with two 'slightly-related to
TextMate' problems I've encountered. I've been given a couple of
hundred documents in different formats (.doc, .pdf, .rtf) that need to
be put into one big document (which will be about 200pp long).
I used 'textutil' to convert most of the documents to txt (ps2ascii
for the pdfs), and then gave them all a filename with a number. Using
TM, I created a macro that would add the filename at the top of each
individual file, and then converted this into "##number ##". I then
used 'textutil -cat' to merge them into one file. So now each
'section' has a filename, title, and block of text. I will then turn
this into a file format which will allow formatting (LaTeX or maybe
RTF, all I need is one big PDF at the end).
I have come across two issues:
1. There are some strange characters (most likely from different
character sets?) that have appeared in the text. I am assuming that
these are accented characters, smart quotes, and so forth, and was
wondering: *How I can automatically convert these characters?* I
started doing this using find and replace for the ones I know, but I
was wondering if there was some easier way to do it.
some examples follow:
actor –meaning
Prüm
Integration :
« new regionalism » i
EU’s energy
2. the numbering system I used for the files was based on a primary
key from our database, but I've been asked to renumber all the files
starting from 1 (for a silly reason, the database started with a
primary key of 67, and manually-entered records start at 400.). *Is
there any way that I can use TM to convert "##number ##" into "##
incremental number ##"?* e.g. in find and replace, use:
find: ##(\d*)\w? ## (the \w? is there as a couple of documents are
labelled like: 137a)
replace: ##(x+1) ##
It's the (x+1) that's bothering me.
Sorry if this is not in the realm of this list (any recommendations?),
but any pointers would be really appreciated!
Many thanks,
Jamal
--
Vrije Universiteit Brussel
Hi everyone,
I use a lot Mathematica and I am so used to the way to type greek letters…
Here is how it works, it's very simple :
– First press Esc
– Then press, e.g., the letter “p”
– press once again Esc and the “p” you just typed is replaced by Pi
Of course, you see the generalization to the other Greek letters. The thing
is that,
writing a LaTeX document, I often find myself reaching to the Esc key just
to realize
that nothing happens and that I'm NOT in Mathematica :-D
So, what do you think ? Would it be possible to implement this way of
entering
greek letters in TextMate ?
Thanks in advance :-)
--
View this message in context: http://www.nabble.com/-LaTeX--Entering-greek-letters-%E2%80%9C%C3%A0-la-Mat…
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I love textmate, but I feel like I'm missing out on one of its major
features...
I can't use any bundle keyboard shortcuts. The menu shortcuts work fine, but
not the bundle shortcuts. I feel like I am missing something obvious, but I
can't figure it out.
Thanks for your help!
-Ryan
Hey guys,
I want to suggest to change the "left...right" snippet, which wraps
"(something)" into "\left(something\right)". Right now the snippet
catches any trailing caracter, but commonly it will only be used with
brackets. I wanted to wrap "\{something\}" into
"\left\{something\right\}". So I changed the snippet to
${TM_SELECTED_TEXT/(.*)(\\}|\)|\])/\\left$1\\right$2/}
Maybe this is interesting for others and could be integrated into the bundle.
regards,
Ruben
Hello. It looks like `SmartyPants.pl` is still hard-coded in these
commands.
Markdown.tmbundle/Commands/Markdown preview.plist
Markdown.tmbundle/Commands/MultiMarkdown Preview.tmCommand
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
HTML.plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
LaTeX (Memoir).plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
LaTeX.plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
PDF.plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
RTF.plist
Markdown.tmbundle/Commands/↓↓ Generate Output and open in
Browser.plist
If someone gets a chance, can they be updated to use "$
{TM_SMARTYPANTS:-SmartyPants.pl}" instead? Thanks.
---
Rob
<http://www.skurfer.com/>
Hi!
Fortunately the blogging-bundle is working for me again (fetching and
posting), only the category-snippet is not working. When I use it I
get the following error:
/tmp/temp_textmate.XHi7MM:4:in `require': No such file to load -- /
Users/nik/Library/Application Support/TextMate/Support/lib/dialog.rb
(LoadError)
from /tmp/temp_textmate.XHi7MM:4
I'm using the actual svn-co and the support-folder and so on is up to
date as well.
Any ideas?
Niels
Hello,
I have found very limited XML editing applications that are
affordable for the Mac.
I am wondering if there is a good XML (.xsd, .xml, xhtml, ect) bundle
or even a really nice Theme for reading said XML files?
Thank you!
Having upped my PHP version to 5.2.4 I realized that the Validate
syntax command in the Textmate PHP bundle gets text from both stdout
and stderr. Don't know if it was like that with previous PHP version,
but the fix is simple.
change result = `#{ENV['TM_PHP'] || 'php'} -d display_errors=on -l`
to result = `#{ENV['TM_PHP'] || 'php'} -d display_errors=on -l 2> /dev/null`
in the Validate syntax command
I also found it useful to add a similar command for ZendCodeAnalyzer.
Create a new command with Save: Current document, Input: Entire
document, and Output: Show as tool tip containing this code:
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
result = `#{ENV['TM_ZCA'] || 'ZendCodeAnalyzer'} #{ENV['TM_FILEPATH']} 2>&1`
puts result.gsub(/^.*\(line (\d+)\)/, 'line \1')
TextMate.go_to :line => $1 if result =~ /line (\d+)/
In this case we do want both stderr and stdout, but they are in the
wrong order, so 2>&1 fixes that.
Perhaps this is useful for someone.
--
Sven Axelsson
Hi,
I have a first generation Intel Mac, and I never managed to get
pdfsync to work with Textmate and PDFView. I've now updated to Skim
and the latest Textmate, and the situation has got worse! Now if I re-
TeX a document, I'm taken to Skim, but I don't see the latest version
of the document; the only way for me to see this is to close the
window in Skim, and then click "View in Skim" in the Typeset & View
window. pdfsync takes to me Skim, but not to the current position,
and pdfsync from Skim does nothing. Any ideas?
Thanks,
Toby
Howdy;
I found this great HTML to Markdown converter online
http://milianw.de/projects/html2text/
any one have the chops to turn that into a TextMate Command?
I know that's I'd love it, and I'm sure I'm not the only one.
tia
s.i. rosenbaum
Hi,
Is there a way to find or colorize double-byte space that in the
document? I've been using a double-byle language, called Japanese
with TextMate. The problem I encounter every now and then is to
mistakenly type double-byte spaces where they, as they are treated as
strings, are now allowed.
At this time, there's no way to distinguish double-byte spaces and
single-byte spaces in the document window.
I guess there would be a way to find the space by grep and highlight
it adding scope in language grammars. Right? Anybody?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi ,
I encounter problems in installing the R bundle. I followed the steps
in the textmate doc. However, when running :
svn co http://macromates.com/svn/Bundles/trunk/Bundles/R.tmbundle
I obtain the following error message:
svn: Can't convert string from 'UTF-8' to native encoding:
svn: R.tmbundle/Commands/Plots?\226?\128?\166.tmCommand
and when double clicking on the R bundle (in Application Support/
TextMate/Bundles), this error message appears:
The bundle “R.tmbundle” does not contain the required
“info.plist” file (or that file is corrupt) and can therefore not
be installed.
I nevertheless able to install other bundles ...
Any help would be appreciated.
Regards,
Matthieu
Matthieu Dubois
Ph.D. Student
Cognition and Development Lab
Catholic University of Louvain
10, Place Cardinal Mercier
B-1348 Louvain-la-Neuve - Belgium
E-mail: Matthieu.Dubois(a)psp.ucl.ac.be
Web: http://www.code.ucl.ac.be/MatthieuDubois/
On Sep 27, 2007, at 7:00 AM, textmate-request(a)lists.macromates.com
wrote:
>> If I have a C comment such as:
>>
>> /
>> **-------------------------------------------------------------------
>> --------
>> * xxxx
>> *--------------------------------------------------------------------
>> --------
>> */
>>
>> And I paste/type in some code right after this, textmate indents one
>> character. I cant use cmd+{ to correct it because then all the
>> indenting in
>> the block I paste is incorrect.
>
> It does? I tried that in C++ mode, and I don’t seem to get
> additional indent.
It does indeed - and the mode is C++. In the code you pasted you
removed the leading spaces. Try
/**--------
(space)*
(space)*/
Then you will see what I mean.
I posted a file and window captures to my site:
http:://www.uner.com/sample.cpp
http:://www.uner.com/beforepaste.tiff
http:://www.uner.com/afterpaste.tiff
>> On a related note (loosely) the top of the block has a folding
>> symbol next
>> to it in the gutter, but no corresponding symbol at the end of the
>> block.
>> Comment folding would be great, but clicking on the symbol at the
>> start
>> of the block has no effect.
>
> The default grammar is set to fold on /** and stop on **/. So you
> would need to add another * for the stop marker of your comment,
> then it should fold.
>
> E.g.:
>
> /**
> * This comment folds
> **/
>
That does not fold for me either. The problem is the leading space.
So in the file I uploaded, sample.cc, if you take out the leading
space on line 13 then the comment folds.
I created this a while back, but I had forgotten about it until a
recent discussion of Drag Commands.
If you're using the pre-insalled Apache under Mac OS X, the
DocumentRoot is set to `/Library/WebServer/Documents/`. I try to
avoid attachments as much as possible, so I'll usually put a file in
that location and just send people a URL that leads them to it. To
make this easier, I created a Drag Command that applies to any file
in that directory. For example, if I drop /Library/WebServer/
Documents/some.zip in a document, it inserts http://
kendra.oit.gatech.edu/some.zip instead.
It's currently scoped to "text.mail,text.html" and I usually only use
it for e-mail, but perhaps it should be scoped for all "text"?
Anyway, I thought this might be a useful addition to the Mail or Text
bundle.
On a related note, what's the preferred way to say "I thought this
might be a useful addition to the XYZ bundle"? :)
FYI - If you're looking at the command and wondering why all the
gymnastics to get the Fully Qualified Domain Name for the local
machine, it is intended to work in either of these situations:
1. `hostname` returns something appropriate, like "kendra" and
`domainname` returns something appropriate like "oit.gatech.edu".
2. `hostname` erroneously returns the FQDN (like
"kendra.oit.gatech.edu") and `domainname` returns nothing at all.
(For reasons unknown, I think most systems are misconfigured like
this by default.)
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
Hi, this is a patch including a command to generate a graph using the
dot command so you don't need the Graphviz gui program in OS X. You
will need to have the dot command in your system. To do so, compile
graphviz or get it from macports like so :
sudo port install graphviz
see http://en.wikipedia.org/wiki/Graphviz for more information
I've already submitted a similar patch to the maintainer "Torsten
Becker" but I got no response so far so I'd like if you guys could
take care of it.
Thanks
Guillaume Carbonneau
Hi,
First of all thanks for the great product, i love TextMate and the
blogging bundle is really awesome.
I have been playing a bit with the blogging bundle in combination
with my blog and the strictness of the Ruby library forced me to
follow the specs as strict as well. So in some sense that is a good
thing.
However, the XML-RPC API itself kinda sucks and i really have to do
some magic with post id's in order for them both to understand each
other. Luckily the MetaWeblog (and blogger) API allow the post-id's
to be a string.
But, since the blogging bundle is casting the post-id to an INT it is
causing problems when i try to edit a post with a post id that
contains anything besides digits.
I glanced over the code and i do not see any reason for the post_id
to be an INT, i modified line 238 in blogging.rb (self.post_id =
@headers['post'].to_i if @headers['post']) by removing '.to_i' and
now everything is working as expected.
I hope this adjustment will find its way to all happy cutting-edge
TextMate users worldwide ;)
Cheers,
Nicholas Piël
Hello,
I searched extensively, but my problem seems so basic that I didn't find
anything...
No key bindings for any bundles work at all. This is very frustrating,
because bundles are supposedly one of the best parts of TextMate. The menu
key bindings work, but not bundles. For instance, the "Documentation for
Tag" command in the html bundle: ^H. When I press this key combination while
editing an html document, the previous character is deleted and nothing else
happens. I followed the advice here
(http://macromates.com/wiki/Troubleshooting/KeyBindings) and decided to try
the Key Codes application. Here is the result:
Characters:
Unicode: 8 / 0x8
Keys: ^H
Key Code: 4 / 0x4
Modifiers: 2359553 / 0x240101
I don't have any special custom key bindings set up anywhere.
Any advice? What am I doing wrong?
Thanks!
--
View this message in context: http://www.nabble.com/No-Bundle-Key-Bindings-Working-tf4523602.html#a129052…
Sent from the textmate users mailing list archive at Nabble.com.
If I have a C comment such as:
/
**----------------------------------------------------------------------
-----
* xxxx
*-----------------------------------------------------------------------
-----
*/
And I paste/type in some code right after this, textmate indents one
character. I cant use cmd+{ to correct it because then all the
indenting in
the block I paste is incorrect.
The only workaround I have found is to go to the beginning of the line
after the comment block, type some garbage (e.g. qqqq) then paste the
block after that.
Any better suggestions?
On a related note (loosely) the top of the block has a folding symbol
next
to it in the gutter, but no corresponding symbol at the end of the
block.
Comment folding would be great, but clicking on the symbol at the start
of the block has no effect.
Doc
Hello,
after updating my LaTeX bundle with GetBundle the "Include Image"
Drag command no longer works for me.
Instead of giving me
\begin{figure}
(all the normal stuff in here)
\end{figure
when I drag an image from the drawer to the text, all I get is
/tmp/temp_textmate.n4yQVj:3:in
or
/tmp/temp_textmate.Rd7QkI:3:in
I have alreay tried jpg as well as png images (both worked well
before), tried different LaTeX files and different folders for the
images.
Before updating everything worked fine!
Any help appreciated!
Bye,
Carsten
Hello to All
This is a revised version of Texari Reborn. As you might know, not all
Themes have support for more exotic Languages like Textile for Instance.
It was first created to cater the proper Textpattern Styles.
I have revised the Theme since then a couple of Times. It now has also
good support for Textile, php and HTML of course.
I even modified Brad Choate's Textile Language Grammar yesterday, to add
support for Acronyms, codeblocks and a couple of other things that
are only available in Dean Allan's version of Textile 2.
Unfortunately I lost my changes, due to the fact, that I had to force
quit TextMate.
However the Theme is there.
One useful addition, that I made, is to add support for zem_template,
which is used to create the Textpattern plugins, that are running from
cache. It helps to avoid Errors, styles comment blocks and special
comment blocks as distinguishable lines and so forth.
It has a very resting effect on the eyes.
Give at a go, if you wish.
regards, marios
Hi!
I am using wordpress 2.2 with utw and utw-rpc, toghether with
textmate's blogging bundle and circlesix' autotag bundle. That's a
really nice combination and I love working with it.
Now, today Wordpress released version 2.3, with tag support. Any
ideas on how to use this tag support with textmate?
Thanks in advance!
André
My project drawer used to scroll horizontally when I had several levels of
folders open, now it trims letters from the middle of filenames. Why did
this change and how can I change it back?
I don¹t recall changing anything in TM options and indeed I can¹t find this
as an option anywhere. I did get some Apple updates recently; from the
archives it appears that string squishing is a behavior of the system tree
control so it is possible that something changed underneath.
Thanks for any ideas!
Seth Cousins
(p.s. Fairly new to TM, I¹ve been using it for ~2 months and it¹s the best
GUI editor I¹ve ever used.)
--
iLike. Are we musically compatible? Find out now
at: http://www.iLike.com/user/sethco
For those of you adventurous enough to be using the Latex bundle from the
subversion repository I wanted to let you know that latexmk.pl has had a
significant upgrade, as has the integration of latexmk with the Latex
bundle.
For those of you that do not know, latexmk is a perl script that runs
latex/bibtex/makeindex at the appropriate times and places to make sure your
document, and all citations, cross references, and index entries are up to
date and properly typeset. The latest version of latexmk now supports more
packages like multibib and some glossary packages, and seems generally
better able to handle complex documents.
The latex bundle is now smart enough to tell latexmk to use alternative
versions of latex (xelatex for example) and is smart enough to tell latexmk
to to generate a dvi file --> ps --> pdf when you are using pstricks or
other packages. In addition any extra options you add in preferences or
through a %!TEX directive are passed on to latexmk.
Go ahead, check the box.
Brad
--
Brad Miller
Assistant Professor, Computer Science
Luther College
Hi
i got this error when im trying to run a python script:
csh: FDK.init: No such file or directory. /bin/bash: line 2: :
command not found
the python script is:
import os
print os
im running osx10.4.10
python 2.4.4
anyone any ideas???
it would be nice to get it working :)
thanks
Frederik
Hans-Joerg Bibiko bibiko at eva.mpg.de
Thu Sep 20 07:43:29 GMT 2007
> Hi,
>
> Over the past years I wrote some very tiny code snippets in order to
> save time while using TM. I copy&pasted it from one code to a new
> command etc. Then I had the idea to put everything together in a
> plugin to use my code snippets more flexible.
> Ok, I did this. I took the idea of tm_dialog, Joachim Mårtensson's
> completion menu, and me tiny code snippets. The result is the TMTOOLS
> plugin.
>
> usage:
> "$TMTOOLS" -[fsgiem] -p PLIST
> f --extended-popup
> s --set
> g --get
> i --insert
> e --execute
> m --play macro
>
> Each of the following commands can be used within any tmCommand/
> script written in bash, ruby, perl, etc.
>
> (tentative) LIST OF COMMANDS:
> -----------------------------------------------
> Show as completion menu:
> -TM's internal word list completion
> -Word completion with Cocoa's spellchecker dictionaries of different
> languages
> (TM's internal word completion list is added before the
> spellchecker's list :)
> -File/Path Completion
>
> -Insert text
> -Insert text as snippet
>
> Set: (also as batch)
> -set word characters
> -place the caret to
> -select something within the document
> -set tab size
> -set soft tabs
> -set soft wrap
> -set the language/grammar by its name
> -set show line numbers
> -set font size
> -set font name
> -set bookmarks for lines
> -set userdefault for a key
>
> -play a dynamic generated macro
>
> Get:
> -get the _current_ text from the document
> -get the XML representation of the document
> -get the XML representation of the selection
> -get the position under the caret
> -get all bookmarks out the current document
> -get all symbols
> -is document edited?
> -get font size
> -get font name
> -get current stylesheet
> -get all opened files in a project
> -get the default for a key
> -get the head of the current line according to the caret
> -get the tail of the current line according to the caret
> -get the head of the current word according to the caret
> -get the tail of the current word according to the caret
>
> Execute: (also as batch)
> -reloadBundles
> -select current scope
> -run any macro, command, template, or snippet by its name
> -open saveAs panel
> -open open Panel
> -open web preview
> -open bundle editor
> -open print panel
> -center selection in window
> -delete all bookmarks
> -go to next/previous snippet field
>
> -convert a text according to unicode's mapping [(de)compose]
>
>
> and some more...
>
>
> One can do very nice things with TMTOOLS.
> E.g., by myself I'm using very often
> -go to next snippet field and show suggestions according the selected
> text, select a suggestion, and go to the next snippet field
> (It was always annoying to see only 'NSStringEncoding'. Now, if the
> snippet field is 'NSStringEncoding' it shows me 'NSUTF8Encoding,
> NSASCIIStringEncoding, NSJapaneseEUCStringEncoding, ...'. Or if the
> snippet field is something like uft8|ascii|utf16, it gives me these
> items as inline menu. )
> -create an HTML page out of my document, change the font size, and
> open the web preview
> -get all bookmarks, show a inline menu, and go to the selected
> bookmark
> -open a text document *.txt, set my grammar to a language which
> highlights consonat clusters, hide line numbers
> -open a text document *_jp.txt, set the font name to ForMateKonaVe
> and size to 14pt, to input Japanese
> -the chance to execute dynamic generated macros - very helpful ;)
> -if you have a long text you can set bookmarks to line
> 50,100,150,200,...
>
> To illustrate the syntax of such commands here some examples:
>
> play a macro:
> "$TMTOOLS" -m -p '{
> commands = (
> {command = "moveWordRight:"; },
> {command = "moveWordLeftAndModifySelection:"; },
> {command = "moveWordLeftAndModifySelection:"; },
> {command = "moveWordLeftAndModifySelection:"; }
> );
> }' $val
>
> set a grammar:
> "$TMTOOLS" --set -p '{grammar;to="Objective-C++";}'
>
> set as batch:
> "$TMTOOLS" -s -p '{
> batch=(
> {grammar;to=Perl;},
> {wordchars;to="_$";}, <= this is very useful ;)
> {caret;toLine=2;toColumn=2;},
> {selection;toColumn=end;}
> );
> }'
>
> execute as batch:
> "$TMTOOLS" -e -p '{
> batch=(
> {command;name="Add Line Numbers to Document / Selection";},
> {command;name="Duplicate Line / Selection";},
> {macro;name="Move to EOL and Insert “.”";}
> );
> }'
>
> go to next snippet field and show according to its selection a inline
> menu with suggestions:
> "$TMTOOLS" -e -p '{nextsnippetfield;}'
> "$TMTOOLS" -e -p '{command;name="ShowAsList";}'
>
> prepare a coloured print version of my document:
> "$TMTOOLS" -e -p '{command;name="Create HTML From Document /
> Selection";}'
> "$TMTOOLS" -m -p '<?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
> www.apple.com/DTDs/PropertyList-1.0.dtd">
> <plist version="1.0">
> <dict>
> <key>commands</key>
> <array>
> <dict>
> <key>argument</key>
> <dict>
> <key>action</key>
> <string>replaceAll</string>
> <key>findInProjectIgnoreCase</key>
> <false/>
> <key>findString</key>
> <string>font-size: .*?px</string>
> <key>ignoreCase</key>
> <true/>
> <key>regularExpression</key>
> <true/>
> <key>replaceAllScope</key>
> <string>document</string>
> <key>replaceString</key>
> <string>font-size: 8px</string>
> <key>wrapAround</key>
> <true/>
> </dict>
> <key>command</key>
> <string>findWithOptions:</string>
> </dict>
> </array>
> </dict>
> </plist>
> '
> "$TMTOOLS" -e -p '{showwebpreview;}'
>
>
>
> convert the unicode mapping of the entire document:
> IN=$(cat)
> PLIST="{convert;what=\"$IN\";using="nfd";}"
> "$TMTOOLS" -g -p "$PLIST"
>
> # allowed parameters for key 'using'
> #
> # nfd = decompose according to canonical mapping
> # nfc = compose according to canonical mapping
> # kd = decompose according to canonical compatibility mapping
> # kc = compose according to canonical compatibility mapping
> #
> # see more at http://www.unicode.org/reports/tr15/
>
>
>
> set the selection from the caret 4 chars back:
> "$TMTOOLS" --set -p '{selection;length=-4;}'
>
>
>
> one has the line "This is rub|bish and" [| = caret]:
> "$TMTOOLS" -g -p '{wordaftercaret;}'
> gives you "bish"
>
>
> Up to now this plugin is more or less a collection. I have to fixed
> some error handlings, unify the output, etc.
>
> So, my question whether it would be worth to clean the code and
> publish it. In other words: Is someone interested in such a plugin?
> One has to mention that TMTOOLS depends on Allan's code. If he
> changes the code maybe one has to adjust TMTOOLS' code as well. Then
> Allan plans to include some of these commands in TM2.
>
> Any feedback?
>
> Cheers,
>
> Hans
Sorry not to reply to this properly and destroy all threading. I've
been having email issues.
This all sounds extremely awesome and useful.
Am I right in assuming that you'd be able to run that command
periodically to get all this stuff out of textmate through the plugin
without interrupting your workflow?
What I've always wanted to be able to do is have an HTML Output window
open and have it constantly update with all the TM_ variables. There's
lots of stuff that you could use that for.
You could watch the current document from the background and keep
track of all the cursor positions where an edit was made and enable
some sort of back/forward thing like in a browser.
That's just one of the uses I can see for all this.
Where is the code for this or is it all just theory at this point?
Thanks.
—Thomas Aylott – subtleGradient—
I bought a copy of textmate and use it on my portable. I would like to
use a copy on my desktop. I tried to copy textmate to the desktop
computer and use the registration code from the portable but the app
acts like a 30-day trial version. Can you use textmate on more than
one computer?
hello:)
I would like to know if in a macro we can use the latex grammar to
know for example if we are in an environment or in displaymath etc...
to adapt the command to this situation ?
regards Alain
Off-topic half way, but I just had to get it out of my Brain.
In search of a better cross-format conversion, I followed Oliver Taylors
advice about Prince, to generate my PDF files, and after investing a
couple of hours, this proved to be rewarding.
I made a command in a similar way as Oliver did, and made a custom CSS,
which in this case suits the needs for a Client Manual.
Currently, I keep the Source File in XHTML format. (One large file, not
like in DocBook ).
My problem is, that apart from the prince-bookmark-level property I also
need to structure the content using ID anchors for the Targets and then
keep a TOC, that would then dynamically update as per command, much like
the one, that is available in AMAYA.
And second to this, I'd like to keep the source file either in Textile
or Markdown format and then convert to XHTML and PDF.
I use Bret Teerpsa's HTML Index Bundle in the meanwhile, for what I need.
I believe for some reason, that a command that dynamically updates a
TOC, if present, would be of much sense, to be available in the
markdown, textile and HTML Bundles by default.
Out of Interest, I'd like to know Allan's opinion about this for version
2, and if so, any other advice, suggestions about maintaining
Documentation files in a separate Project in General.
regards, marios
Hi,
I'm using the latest version of TM with all the updates applied on Tiger
10.4 with all the latest updates.
This is a really minor thing but it would be nice to have fixed. I
suspect it's just a regex tweak that's needed.
If I write a method declaration in an interface:
public interface MyInterface {
public void somethingSpecial(Object foo,
Object bar) throws SomeException,
AnotherException;
public String getName();
}
Then it breaks the highlighting.
If I put it all on the one line then it works fine.
Cheers,
Chris
Hi!
Didn't use the blogging-bundle for a longer time and now I needed it
again and get the following when I tried to fetch a post from a long
time ago set up blog:
Received exception: wrong dateTime.iso8601 format
No posts available
Any ideas?
Niels
Guys, the file i linked is just a chapter... all the include,
documentclass etc are in the main file... just trust me the file is
regular latex, i can compile it even through textmate without any
warning/error... there is just a problem in coloring and i'd be happy
if someone, which know the latex bundle, can fix it.
btw, i've also an improvement request in the latex bundle... every
time i do typeset and view the pdf go to the beginning of the
document, which is very annoying, especially if you are reviewing a
document of many pages... TexShop for example keep the position in
the pdf viewer, letting you see the changes very fast.
> Da: Charilaos Skiadas <cskiadas(a)gmail.com>
> Data: 21 settembre 2007 12:10:48 GMT+02:00
> A: TextMate users <textmate(a)lists.macromates.com>
> Oggetto: Re: [TxMt] latex bundle - coloring error - \ and lstlisting
> Rispondi a: TextMate users <textmate(a)lists.macromates.com>
>
>
> Hi Luca,
>
> I cannot reproduce this, and downloading the file you put on the
> ticket did not help either. Perhaps you can send me the sample file
> over email? The version on the web looks really weird, no newlines
> etc.
>
> Btw, what is the scope on the lines both before and after your
> lstlisting? You can find that by placing the caret there and
> pressing ctrl-shift-p. Also what is the scope inside your lstlisting?
>
> On Sep 20, 2007, at 12:22 PM, Luca Torella wrote:
>
>> There is an error in the coloring of a latex document when i put a
>> '\' in a lstlisting; here is the example:
>>
>> \begin{lstlisting}
>> reservedWordsFM = listToUFM $
>> map (\(x, y, z) -> (mkFastString x, (y, z)))
>> \end{lstlisting}
>>
>> the '\' is legal in the lstlisting but the bundle show an invalid
>> string and invalidate all t he remaining document
>>
>> if u wanna see the file which introduce the error you can download
>> it here:
>> http://macromates.com/ticket/show?ticket_id=0A9B755F
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
>
>
>
>
>
>
>
>
> Da: "Robin Houston" <robin.houston(a)gmail.com>
> Data: 21 settembre 2007 12:18:47 GMT+02:00
> A: "TextMate users" <textmate(a)lists.macromates.com>
> Oggetto: Re: [TxMt] latex bundle - coloring error - \ and lstlisting
> Rispondi a: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 21/09/2007, Charilaos Skiadas <cskiadas(a)gmail.com> wrote:
>> The version on the web looks really weird, no newlines etc.
>
> I think that's because your web browser is trying to interpret it
> as HTML.
> If you download it, it looks okay; though it's not a standalone
> document
> (it doesn't start with \documentclass, nor indicate which packages
> it uses.)
>
> Robin
There is an error in the coloring of a latex document when i put a
'\' in a lstlisting; here is the example:
\begin{lstlisting}
reservedWordsFM = listToUFM $
map (\(x, y, z) -> (mkFastString x, (y, z)))
\end{lstlisting}
the '\' is legal in the lstlisting but the bundle show an invalid
string and invalidate all t he remaining document
if u wanna see the file which introduce the error you can download it
here:
http://macromates.com/ticket/show?ticket_id=0A9B755F
hello
Ruben Debeerst suggests to change the "left...right" snippet which
wraps "(something)" into "\left(something\right)"
I think that is interesting but I would like to make this for ( and
[ but not for {
In this case, I would prefer
"{something}" into "\left\{something\right\}"
But I've a problem because actually I learn regex, ruby syntax
grammar etc....
I'm sure that's possible with a command and a script with ruby or
perl but is it possible only with regex in a snippet.
The proposition of Ruben is :
${TM_SELECTED_TEXT/(.*)(\\}|\)|\])/\\left$1\\right$2/}
If I make a special snippet for {
I have two snippets
for ( and [
${TM_SELECTED_TEXT/(.*)(\)|\])/\\left$1\\right$2/}
and for {
${TM_SELECTED_TEXT/(.*)(\})/\\left\\$1\\right\\$2/}
How to make this with only one snippet ?
Thanks
Regars Alain
I found it. The ruby call is directly in the command with slash bang.
Sorry for my earlier post. I'm new to TextMate and to the list.
BTW: Hi list!
---------------------------- Original Message ----------------------------
Subject: Re: [TxMt] Blogging bundle receives exception
From: "Ferhat Ayaz" <fa(a)kedisoft.com>
Date: Thu, September 20, 2007 12:39 pm
To: textmate(a)lists.macromates.com
--------------------------------------------------------------------------
Allan Odgaard-2 wrote:
>
>
> Alternatively you can upgrade to a newer Ruby, which is more lax in
> what date formats it accepts.
>
>
Hi,
I installed a newer ruby (1.8.6) under /opt/local/ (my rails environment).
How can I use this one instead
of /usr/local/bin/ruby with TextMate?
No, I don't want to add /opt/local/bin/ to my PATH.
Thanks,
Ferhat
--
View this message in context:
http://www.nabble.com/Blogging-bundle-receives-exception-tf4475902.html#a12…
Sent from the textmate users mailing list archive at Nabble.com.
______________________________________________________________________
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
hello
In the latex bundle we find:
A) a command (ctrl+shift+W)
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] +'/lib/escape.rb'
print "\\\\${1:emph}{#{if s = ENV['TM_SELECTED_TEXT'] then e_sn(s)
else '$2' end}}"
B) an other command (cmd B)
toggle_style.rb -style=textbf
C) a snippet(ctrl+shift+E)
\\${1:text${2:bf}}{$TM_SELECTED_TEXT}
----------------------------------------------------
three questions :
1) Why this snippet ? (the commands are useful !)
2) the snippet appears in the Select Bundle Item of the menu Bundle
but not in the item Latex of the menu Bundle (perhaps i don't
see it).
3) \${1:text${2:bf}}{$TM_SELECTED_TEXT} i don't understand the syntax
why not :
\\${1:text}${2:bf}{$TM_SELECTED_TEXT} ?
we can change text with math and bf with cal for example
Regards Alain
So, a long while ago, I mentioned I was working on a Velocity bundle
for use with Textmate (and e, etc). We've been using a version of this
internally at work, and it served our purposes reasonably well.
Having read James Edward Gray's superb book, I decided to rewrite the
bundle from scratch. The initial language grammar was very much a
reverse-engineering job based on other grammars. This time around, I
started from scratch, and based my grammar on JEG's tips and on the
Velocity documentation (which served as a useful spec and test suite).
An initial public release of the bundle is available here:
http://code.google.com/p/txm-vtl-bundle/
and you can get the bundle itself thus:
svn checkout http://txm-vtl-bundle.googlecode.com/svn/trunk/
---
I'd be really interested in feedback, fixes, and patches. Do use the
GoogleCode issue tracker, and do submit diff files. I'm particularly
interested in more snippets - I've literally put in the basic stuff we
use (and nothing specific to our templating) - but am aware many
people use Velocity in different manners. Also, if anyone wants to
produce grammars for Velocity-XML (or whatever), based upon the
Velocity-HTML grammar, feel free.
Sorry it took so long to make public. I hope people find it useful,
and that we can improve it together - and at some point get it into
the official repository (if you're around, Allan...)
All the best,
t.
Hi,
Over the past years I wrote some very tiny code snippets in order to
save time while using TM. I copy&pasted it from one code to a new
command etc. Then I had the idea to put everything together in a
plugin to use my code snippets more flexible.
Ok, I did this. I took the idea of tm_dialog, Joachim Mårtensson's
completion menu, and me tiny code snippets. The result is the TMTOOLS
plugin.
usage:
"$TMTOOLS" -[fsgiem] -p PLIST
f --extended-popup
s --set
g --get
i --insert
e --execute
m --play macro
Each of the following commands can be used within any tmCommand/
script written in bash, ruby, perl, etc.
(tentative) LIST OF COMMANDS:
-----------------------------------------------
Show as completion menu:
-TM's internal word list completion
-Word completion with Cocoa's spellchecker dictionaries of different
languages
(TM's internal word completion list is added before the
spellchecker's list :)
-File/Path Completion
-Insert text
-Insert text as snippet
Set: (also as batch)
-set word characters
-place the caret to
-select something within the document
-set tab size
-set soft tabs
-set soft wrap
-set the language/grammar by its name
-set show line numbers
-set font size
-set font name
-set bookmarks for lines
-set userdefault for a key
-play a dynamic generated macro
Get:
-get the _current_ text from the document
-get the XML representation of the document
-get the XML representation of the selection
-get the position under the caret
-get all bookmarks out the current document
-get all symbols
-is document edited?
-get font size
-get font name
-get current stylesheet
-get all opened files in a project
-get the default for a key
-get the head of the current line according to the caret
-get the tail of the current line according to the caret
-get the head of the current word according to the caret
-get the tail of the current word according to the caret
Execute: (also as batch)
-reloadBundles
-select current scope
-run any macro, command, template, or snippet by its name
-open saveAs panel
-open open Panel
-open web preview
-open bundle editor
-open print panel
-center selection in window
-delete all bookmarks
-go to next/previous snippet field
-convert a text according to unicode's mapping [(de)compose]
and some more...
One can do very nice things with TMTOOLS.
E.g., by myself I'm using very often
-go to next snippet field and show suggestions according the selected
text, select a suggestion, and go to the next snippet field
(It was always annoying to see only 'NSStringEncoding'. Now, if the
snippet field is 'NSStringEncoding' it shows me 'NSUTF8Encoding,
NSASCIIStringEncoding, NSJapaneseEUCStringEncoding, ...'. Or if the
snippet field is something like uft8|ascii|utf16, it gives me these
items as inline menu. )
-create an HTML page out of my document, change the font size, and
open the web preview
-get all bookmarks, show a inline menu, and go to the selected bookmark
-open a text document *.txt, set my grammar to a language which
highlights consonat clusters, hide line numbers
-open a text document *_jp.txt, set the font name to ForMateKonaVe
and size to 14pt, to input Japanese
-the chance to execute dynamic generated macros - very helpful ;)
-if you have a long text you can set bookmarks to line
50,100,150,200,...
To illustrate the syntax of such commands here some examples:
play a macro:
"$TMTOOLS" -m -p '{
commands = (
{command = "moveWordRight:"; },
{command = "moveWordLeftAndModifySelection:"; },
{command = "moveWordLeftAndModifySelection:"; },
{command = "moveWordLeftAndModifySelection:"; }
);
}' $val
set a grammar:
"$TMTOOLS" --set -p '{grammar;to="Objective-C++";}'
set as batch:
"$TMTOOLS" -s -p '{
batch=(
{grammar;to=Perl;},
{wordchars;to="_$";}, <= this is very useful ;)
{caret;toLine=2;toColumn=2;},
{selection;toColumn=end;}
);
}'
execute as batch:
"$TMTOOLS" -e -p '{
batch=(
{command;name="Add Line Numbers to Document / Selection";},
{command;name="Duplicate Line / Selection";},
{macro;name="Move to EOL and Insert “.”";}
);
}'
go to next snippet field and show according to its selection a inline
menu with suggestions:
"$TMTOOLS" -e -p '{nextsnippetfield;}'
"$TMTOOLS" -e -p '{command;name="ShowAsList";}'
prepare a coloured print version of my document:
"$TMTOOLS" -e -p '{command;name="Create HTML From Document /
Selection";}'
"$TMTOOLS" -m -p '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>commands</key>
<array>
<dict>
<key>argument</key>
<dict>
<key>action</key>
<string>replaceAll</string>
<key>findInProjectIgnoreCase</key>
<false/>
<key>findString</key>
<string>font-size: .*?px</string>
<key>ignoreCase</key>
<true/>
<key>regularExpression</key>
<true/>
<key>replaceAllScope</key>
<string>document</string>
<key>replaceString</key>
<string>font-size: 8px</string>
<key>wrapAround</key>
<true/>
</dict>
<key>command</key>
<string>findWithOptions:</string>
</dict>
</array>
</dict>
</plist>
'
"$TMTOOLS" -e -p '{showwebpreview;}'
convert the unicode mapping of the entire document:
IN=$(cat)
PLIST="{convert;what=\"$IN\";using="nfd";}"
"$TMTOOLS" -g -p "$PLIST"
# allowed parameters for key 'using'
#
# nfd = decompose according to canonical mapping
# nfc = compose according to canonical mapping
# kd = decompose according to canonical compatibility mapping
# kc = compose according to canonical compatibility mapping
#
# see more at http://www.unicode.org/reports/tr15/
set the selection from the caret 4 chars back:
"$TMTOOLS" --set -p '{selection;length=-4;}'
one has the line "This is rub|bish and" [| = caret]:
"$TMTOOLS" -g -p '{wordaftercaret;}'
gives you "bish"
Up to now this plugin is more or less a collection. I have to fixed
some error handlings, unify the output, etc.
So, my question whether it would be worth to clean the code and
publish it. In other words: Is someone interested in such a plugin?
One has to mention that TMTOOLS depends on Allan's code. If he
changes the code maybe one has to adjust TMTOOLS' code as well. Then
Allan plans to include some of these commands in TM2.
Any feedback?
Cheers,
Hans
> On 9/18/07, Jacob Rus <jacobolus(a)gmail.com> wrote:
>
>>
>> I'm planning to someday turn my right ⌘ key into an ⎋ key.
>> I've been
>> too lazy so far to figure out how though.
>>
>>
>
>
> Check Ukelele[1], it probably does that without too much hassle...
>
> [1]: <http://scripts.sil.org/cms/scripts/page.php?
> site_id=nrsi&item_id=ukelele>
Has anyone managed to make this swap with Ukelele? An obstruction I
found is that left ⌘ and right ⌘ are linked together.
Jenny
hello
I find in a post :
> I had been playing around with the language grammars and snippets,
> and started thinking that Allan probably has thought of some better
> way to edit the grammar.. I felt really stupid when I came across
> this blog that stated the obvious: while in bundle editor,
> naturally select Edit in TextMate.. - Voilá, the Language is set to
> 'Language Grammar' and colored nicely.
1) But If I select all the latex grammar I can't edit in textmate
do't work
but if I copy the text and textedit now I can edit the text with TM.
Now that we have a bundle development and language grammar snippets,
I suppose
that we make in a more elegant way. But how that' my question ?
2) I have an other problem we have show scope and copy scope but for
Show TM_*variables how to copy the result ?
regards Alain
Jacob Rus <jacobolus(a)gmail.com> wrote:
> DushanM wrote:
> > When reformatting a paragraph using ^Q, TextMate starts reformatting
> > from the beginning of the paragraph, puts just one space between
> > sentences, then leaves the cursor in that paragraph.
> >
> > Is there an option to specify two spaces between sentences?
> No. Make a macro which first reformats the paragraph, then selects it,
> and replaces ". " with ". ", etc.
Okay, thanks. Time for me to learn how to make macros in TextMate.
> > - reformat starting from the line containing the cursor
> > - when done with one paragraph, place cursor at start of the next one
>
> These can also be done with macros.
> > - when in a window for saving or opening a file, right below the name
> > is the folder being looked at; is it possible to arrange to have that
> > show the full path to the folder instead of just the folder name?
> > I sometimes have similarly-named folders in different places, and
> > seeing the full path would let me distinguish between them.
> I doubt it.
This saves me trying to change the unchangable.
Thanks for the tips.
- Dushan
Hello everyone,
Auto-completion of text is marvelous, but I have to decide each time
whether it is worth the trouble to reach all the way up to esc. For
me, this requires taking my left hand off the keyboard. I wanted to
remap caps lock to esc but have not been able to find this anywhere.
(Do any of you know how to do this?) I have worked out a little fix
that approximates this ideal.
1. Remap caps lock to ctrl via System Preference -> Keyboard & Mouse
-> Keyboard -> Modifier Keys.
2. In Quicksilver, make a trigger to activate Next Completion from
the TextMate Menu. (Current Application (tab) Show Menu Items
(enter) and type Next Completion). I use control-A for my trigger so
the hand motion is minimal. (Be sure to hit caps lock before A,
though!)
For this to work, be sure to turn on Proxy Objects under Quicksilver -
> Preferences -> Catalog, as well as Enable Advanced Features
under Preferences -> Application.
Now auto-complete to your heart's content!
Jenny
Department of Mathematics
University of California, Berkeley
I wrote a little script a while back to help with some of this. You
can grab the bundle at
http://homepage.mac.com/calfeld/SimpleWrap.tgz
It defines two commands:
WrapSelection wraps the selection. I bind it to ^Q for myself but I
left it unbound in the bundle.
WrapAtLine Cmd-Ctrl-Q. Wrap the paragraph around the current line.
Unlike the text mate wrapping it'll look for an initial prefix of
symbols and preserve it. This makes it wrap most comments properly.
I.e.,
# some sample comments
# that span multiple lines
Wraps to
# some sample comments that span multiple lines
I use it extensively in my own development and while it's not always
right it's more useful than the built in version.
It's not very advanced and, at this time, I have no intentions of
supporting it or adding features. But it might handle the first item
in your wish list or serve as a starting point for your own custom
wrapper.
c.
On Sep 18, 2007, at 3:05 AM, DushanM wrote:
> This is my third attempt to send these questions.
>
> When reformatting a paragraph using ^Q, TextMate starts reformatting
> from the beginning of the paragraph, puts just one space between
> sentences, then leaves the cursor in that paragraph.
>
> Is there an option to specify two spaces between sentences?
>
> Might as well mention two other items in my wish list:
>
> - reformat starting from the line containing the cursor
>
> - when done with one paragraph, place cursor at start of the next one
>
> Are any of these doable at present in TextMate?
>
>
> ... while I'm at it I'll repeat an even earlier question that I never
> saw show up:
>
> - when in a window for saving or opening a file, right below the name
> is the folder being looked at; is it possible to arrange to have
> that
> show the full path to the folder instead of just the folder name?
> I sometimes have similarly-named folders in different places, and
> seeing the full path would let me distinguish between them.
>
>
> Thanks.
>
> - Dushan
>
> ______________________________________________________________________
> 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
>
--
[PGP Key available at www.keyserver.net - http://homepage.mac.com/
calfeld]
This is my third attempt to send these questions.
When reformatting a paragraph using ^Q, TextMate starts reformatting
from the beginning of the paragraph, puts just one space between
sentences, then leaves the cursor in that paragraph.
Is there an option to specify two spaces between sentences?
Might as well mention two other items in my wish list:
- reformat starting from the line containing the cursor
- when done with one paragraph, place cursor at start of the next one
Are any of these doable at present in TextMate?
... while I'm at it I'll repeat an even earlier question that I never
saw show up:
- when in a window for saving or opening a file, right below the name
is the folder being looked at; is it possible to arrange to have that
show the full path to the folder instead of just the folder name?
I sometimes have similarly-named folders in different places, and
seeing the full path would let me distinguish between them.
Thanks.
- Dushan
hello
I work actually on a new bundle LaTeX_Author and I would like If
someone have an idea to code the control's structures below :
I think that's that's very common in a lot of languages :
% from package ifthen.sty
* \ifthenelse{test}{then clause}{else clause}
* \whiledo{test}{while clause}
% from package pgffor.sty
* \foreach \var in {list}{ }
\from TeX
* \@for\var:={list}\do{ }
I would like to have a color for the control words and for {}
Thanks
Regards Alain
PS : i've a problem to understand this line :
{ name = 'meta.space-after-command.latex';
match = '(?=\s)(?<=\\[\w@]|\\[\w@]{2}|\\[\w@]{3}|\\[\w@]{4}|\\[\w@]
{5}|\\[\w@]{6})\s';
Hello,
some months ago, I changed TextMate's Transmit Bundle to work with
YummyFTP (to be accurate: I duplicated the Transmit Bundle before
playing aroung with it).
"DockSend File" works fine with Yummy.
But when I select "Send File with Active Connnection", I get the
following error message:
37:41: syntax error: Expected ", " but found class name (-2741)
Using the original Transmit bundle, "Send File with Active
Connnection" _will_ trigger Transmit to upload the file, but my
modified version for Yummy does not work.
I only replaced 'Transmit' with 'Yummy FTP' in the bundle editor:
================================================
osascript -e "tell application \"Yummy FTP\"
(upload item \"$TM_FILEPATH\") in current session of first document
end tell"
================================================
So, what is going wrong?
Kind regards,
Tobias Jung
Just wondering, is there currently a way to get the md5 of the current
document (whether its changes have been saved or not) from within textmate?
I often have to compare a copy of a document I'm working on with what's on a
remote server, and since I can open it in TM from within my ftp client, it
would be potentially easier than downloading a copy to save somewhere on
disk and running the md5 command seperately.
Does something like this exist? If not, perhaps I'll look into implementing
it myself. Thanks!
--
View this message in context: http://www.nabble.com/MD5-of-current-file-tf4467307.html#a12737547
Sent from the textmate users mailing list archive at Nabble.com.
I'm not 100% certain that this is caused by the subversion bundle,
but I have not been able to pinpoint the exact cause, and it only
seems to be happening when I'm working through TextMate:
At some (undetermined) points, when I try to commit my project I get
this error:
svn: Commit failed (details follow):
svn: Your file or directory 'config.inc.php' is probably out-of-date
svn: The version resource does not correspond to the resource within
the transaction. Either the requested version resource is out of date
(needs to be updated), or the requested version resource is newer
than the transaction root (restart the commit).
(where config.inc.php is the first file that was modified in the list)
Now the problem is this: The resource is NOT out of date, and I'm the
only one with access to the repository. An update command says that I
have the latest revision checked out, and `svn info` verifies the
fact. Subsequent check-ins come back with the same error. The only
way I've been able to get around this is check out a new copy of the
repository, move the modified files over one by one, and check in
from there. And next time I need to check in, the same thing happens.
Is there an issue with the 'Find in Project' search and replace
feature that I should be aware of? (I use it a lot). Also I don't
have any modifications in the bundles, nor any related checked out
bundles.
Additionally, the 'diff' button from the subversion bundle status
list displays the correct diff, but there's no syntax highlighting.
When I use the diff bundle directly, or even through the subversion
menu, the highlighting works just fine.
Any ideas?
Constantinos
>>From: Allan Odgaard <throw-away-1@...>
>>Subject: Re: HTML autoconversion of urls to hyperlinks
>>Date: 2007-09-05 00:32:36 GMT (1 week, 3 days, 1 hour and 28 minutes ago)
>> [...] it would be more useful for me to have a macro that would
>> auto-convert all urls in a text document to active hyperlinks [...]
>Are you familiar with Markdown? Perhaps it would be more effective
>for you to write the first draft of your text in Markdown and press
>⌃⇧H to generate the HTML -- Markdown will convert <http://
>macromates.com/> into
><a href="http://macromates.com/">http://macromates.com/</a>
Allan,
Thanks for the tip--I can see Markdown is going to make my life much easier!
One follow-up question: Brett Terpstra alluded to an HTML bundle he was working
on that would offer the option of omitting the link title lookup. I downloaded
the snippet (a .bin file) he had attached and double-clicked on it, but nothing
happened.
Then I figured maybe the update would be in the bundle repository at
http://macromates.com/svn/Bundles/trunk/, but I couldn't figure out how to
update these or load them from different sources.
Any instructions for updating bundles appreciated--
thanks as always for your help.
jon
Dear all,
in the past there're some mails regarding to Find In Project.
Henrik Nyh wrote the wonderful command 'Grep In Project'. This
inspired me to go one step further.
Instead of using 'grep' in fixed string mode I used 'onigrep'. I
wrote the command line tool 'onigrep' in C which includes Kosako
's Oniguruma regexp engine (5.8.0) and works ONLY on utf-8/ASCII text
files.
You can find it within the bundle in folder ./bin/ppc or /bin/i386.
More details on that 'onigrep --help'.
(By myself I copied onigrep to /usr/bin to use it system-wide ;) but
please note: onigrep is work in progress too!)
The matches, also for regexp!, are highlighted as usual.
Furthermore I used a self-made dialog with history list etc. The
search function is working not only in a project but also for a
single document.
If you select 'Search in the entire project' it will exclude the
paths '*/.svn' '*/vendor/rails' '*/build'.
If you select the root folder of your project in the drawer, and you
select 'Search in Selection' it will search in all subfolders.
The option 'Ignore diacritics' is up to now only working if you saves
the entire text according to the canonical Unicode decomposition.
Then you can search for 'arger' or 'facade' or た and you will get
words like 'Ärger', 'façade', で. A command line tool which does it
will be included in the near future.
So, if someone has a bit time I would be appreciated if s/he can test
it. My main question is whether it runs also on Intel Macs. I
compiled 'onigrep' for both architectures, and I don't know whether
my ruby code got rid of it.
Some words about the speed of 'onigrep'. Of course, to deal with
utf-8 regexp, well it takes a bit more time. I compared 'onigrep'
with 'LC_ALL=en_US.UTF-8 grep' and the search speed was almost
identical, but 'onigrep' is 'ignore case' safe and it uses the
Oniguruma syntax ;)
You can download the BETA VERSION! of the Hypersearch here:
http://email.eva.mpg.de/~bibiko/dt/Hypersearch.tmbundle.zip (256k)
Any other suggestions, bugs, etc. are highly welcomed for both the
Hypersearch bundle and for onigrep.
Many thanks in advance
Hans
hello:)
It's a recurring problem.
I read the doc and now i have
in /Library/Application\ Support/TextMate/Bundles
the Latex.bundle
in ~/Library/Application\ Support/TextMate/Bundles i've the
personnal bundle
with some modifications. This bundle is created by TextMate
Now after reload Bundles, and try Command R on a latex file , I've
env: python2.3: No such file or directory
Perhaps there is a problem with support files so I update the support
directory
cd /Library/Application\ Support/TextMate
svn co http://macromates.com/svn/Bundles/trunk/Support
After this you can test it by pasting the following line into
TextMate and pressing ⌃R (to execute it):
and I get /Library/Application Support/TextMate/Support
but I always env: python2.3: No such file or directory
in my system I've python2.3 and python2.5 and in the terminal $python
launchs python2.5
What is the problem ?
Thanks
Regards Alain
I can't seem to figure out how to change which binaries TextMate uses
for PHP/Perl etc. My local path is set to the proper one first, but
textmate is using the old one...
Regards,
Eric
Hi, again and all the best.
On my install the View scope command is broken, and doesn't output anything.
Also Select CSS Language Scope, doesn't do anything right now although
key eqiv. is correctly assigned
Also: Conflicting key equivalents, don't get me the popup select form
anymore in all instances.
Ok, that's enough questions for now. ( I still don't have an Apple
keyboard, dammed. )
regards, marios
Hi this is a patch that contains support for comment blocks in prolog.
That means /* */ style comments. You could use the test case to verify
that it is working.
Thanks
Guillaume Carbonneau
The Pasteboard Server error that is detailed here: http://
macromates.com/wiki/Troubleshooting/CantPaste is happening every time
I use TextMate. TextMate will work fine for a run or two but it
quickly becomes dead to the world of copy-and-paste (other than
internally). Also, contrary to what is stated in the previous link
this is only a problem with TextMate. I can copy and paste between
apps like Eclipse, Firefox, Mail, Pages, TextEdit, etc... without
problem. Further the stated solution of restarting the pbs does not
alleviate the issue. The only solution is to log out and back in or
to restart completely.
I had never experienced this problem until I updated to the latest
version (1.5.6 (1414)) several weeks ago.
Am I the only one? Does anyone have any ideas for me? Is there any
info that I can provide to help diagnose this?
Thanks,
-------------------
Jeff Clark
Fairfax City, VA
http://www.nothoo.comhttp://www.fairfaxbirding.com
I am new to TM, and with the most recent version installed (1405), I
get the following error when I attempt to create a new XCode project
via the 'New Project Using XCode Template' menu item in the XCode
bundle. It appears that there is a problem with the templates not
being found. There was no Project Templates folder at the path
indicated in the error message. Is this a standard folder that XCode
should have installed (or somehow got deleted?). XCode seems to be
functioning just fine without it.
/tmp/temp_textmate.ocWNhI:97:in `open': Not a directory - /Library/
Application Support/Apple/Developer Tools/Project Templates/
00README.txt (Errno::ENOTDIR)
from /tmp/temp_textmate.ocWNhi:97:in `foreach'
from /tmp/temp_textmate.ocWNhi:97:in `scan_dir'
from /tmp/temp_textmate.ocWNhi:108
from /tmp/temp_textmate.ocWNhi:106:in `foreach'
from /tmp/temp_textmate.ocWNhI:106
hello
It's a eally recurring problem.
Ih the archives :
"On 8/25/07, Charilaos Skiadas <cskiadas-
Re5JQEeQqe8AvxtiuMwx3w(a)public.gmane.org> wrote:
On Aug 25, 2007, at 7:44 PM, Clover wrote:
> What could I have done that will give me this error when I hit
> command-R for compiling latex:
>
> "python: execv: /Library/Frameworks/Python.framework/Versions/2.5/
> Resources/Python.app/Contents/MacOS/Python: No such file or
directory"
It sounds like there is some problem with your setup for python. The
command runs a python script that starts with the line:
#!/usr/bin/env python2.3
That should be #!/usr/bin/env python
I inadvertently left the 2.3 on there since I need to force 2.3 to
make sure it works with the version of python that is shipped with
the OS. I use 2.5 for my daily work. I just checked in a change
that removes the 2.3
This means it should explicitly look for and use python2.3. In your
case, it seems to be doing something weird. Have you messed with the
python installation in any way? Hopefully Brad, or someone else more
knowledgeable with Python, might be able to help us here.
I don't think OP is using the the bundle from svn since it was
looking for python2.5. There is definitely something very
nonstandard about the OP's setup since it is looking for the Python
inside the .app bundle."
Well, i am in this case . On my mac, I've Python2.3 and Python2.5. If
I write in the terminal
$ python
I get : Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
Actually I work with build 1414 and it's the latest cutting-edge
build of TextMate is 1414.
With that' all is fine. Now If I dowload the Latex.tmbundle and put
it anywhere, I have an error
around python 2.3
Regards Alain Matthes
Hi all,
If a new section is created in LaTeX mode with the sec[TAB] shortcut,
the following will appear:
\section{section name} % (fold)
\label{sec:section_name}
% section section_name (end)
Which is great! However, if the "Tidy" command is then performed on
the file, it will be re-arranged to
this:
\section{section name}
% (fold)
\label{sec:section_name}
% section section_name (end)
Which not only looks really ugly, but means that the fold takes up 3
lines instead of one, and doesn't have
a title.
Could somebody please have a look at this and see if it's fixable?
Files saved by TextMate crashes when opened in BBEdit. The file encoding
default is UTF-8. Is there a compatibility issue between these two apps?
Which encoding format should I be using?
--
View this message in context: http://www.nabble.com/TextMate-file-encoding-crashes-BBEdit-tf4437491.html#…
Sent from the textmate users mailing list archive at Nabble.com.
hello:)
I try to make a specific theme for latex but I have some problems and
some questions :
Firstly, we need something like :
{ name = 'constant.numeric.math.latex';
match = '(([0-9]*[\.][0-9]+)|[0-9]+)';
},
because $ a+2b $ and \[ a+2b\] don't give the same thing
Then I don't understand very well why all the part about "lstlisting"
"lstlisting" don't work with utf8 and why it is not possible to make
this work outside text.tex.latex ?
(perhaps it is not possible ?)
I would like to make a grammar about Tikz so I try to understand how
to make this...
I think perhaps a system of preferences like in Kile will be a good
think : for the grammar but for completion
1) A kernel around tex and latex
2) modules for book with index and biblio....
3) modules for the different packages pstricks, tikz, beamer
or perhaps different scopes : latex, latex-writer
An other thing I would like also make a scope for latex-developper
because we need a lot of keywords
like global let def edef etc... with tex
but with calc, ifthen, xkeyval there are a lot of others keywords,
for example ifthenelse is very important.
What is the good way to make this? I suppose that I need to add
specific files but hox to proceed... ?
Regards Alain (sorry for my bad english)
Hi Team.
Congratulations for you. It is becoming an amazing and helpful repository!!
About Textmate, I have a TODO bundle question.
After typed fixme or changed + TAB, I cannot obtain the same behaviour
obtained when I type todo + TAB.
For instance,
After typed todo + TAB, the content is changed to % TODO
But fixme + TAB
or
changed + TAB
Nothing is changed.
Could you please help with this?
Thanks in advance,
Rei
--
View this message in context: http://www.nabble.com/TODO-bundle-tf4422505.html#a12614333
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Just got a new machine and had to reinstall the file system and all
my apps, among those TextMate and the LaTex system (CTAN).
Opening a previously made latex file and trying to compile it, I get
the following error message:
---
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6
Typesetting: ./master_project_outline.tex
Document Class: report 2005/09/16 v1.4f Standard LaTeX document clas
! LaTeX Error: File `utf-8.def' not found.
master_project_outline.log
---
Would appreciate it very much if someone could drop me a line and
tell me how to make TextMate aware of the utf-8.def file.
Sincerely,
Kjell Are Refsvik
Lillehammer, Norway
Hello all,
I'm looking for a way to delete all extra space from a file on save.
Extra space would include extra space on the end of lines. For empty
lines, this would delete all space contained within them. Any ideas?
Thanks,
Michael
Hi Team.
Congratulations for thelist. It is becoming an amazing repository!!
About textmate, I have a TODO bundle question.
After typed fixme or changed + TAB, I cannot obtain the same behaviour
obtained when I type todo + TAB.
For instance,
After typed todo + TAB, the content is changed to % TODO
But fixme + TAB
or
changed + TAB
Nothing is changed.
Could you please help with this?
Thanks in advance,
Rei
Hi,
I have a question and sure about that this question has answered
before : ), but I'm not able to browse the message archive now,
Is there any keyboard shortcut or trigger that matches and focuses
opening or closing tag (or selects its content)? (without fold).
thanks.
--
Özgür Odabasi
The run command throws up this error:
/Users/jashugan/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec_mate.rb:18:in
`run_files': private method `split' called for nil:NilClass
(NoMethodError) from /tmp/temp_textmate.HNHo7l:5
Running the specs using rake works fine.
Hi All,
I love using Skim for viewing the pdf files produced by LaTeX. But I don't
like its auto-refresh behavior. It seems buggy, (crashes on auto-reload too
often) and I hate having to click Auto every time Skim restarts.
So, I added some applescript goo to the Typeset & View command to tell
Skim/TeXShop/TeXniscope to reload.
This means you could uncheck the box in Skim, et. al. that tells them to
check for file updates and rely on TextMate to tell them when to reload.
According to the TeX mailing list using applescript is also more resource
efficient than having the viewer watch for file changes.
Would others also prefer to have this part of the bundle?
Brad
--
Brad Miller
Assistant Professor, Computer Science
Luther College
Dear All,
When I use the "Show Outline" command in the LaTex outline on a single file
(with no /include or /input), the command works perfectly. However, when I
use it on a file that includes /include, I get the following error:
`each_with_index' from /tmp/temp_textmate.lsbsz4:34:in `each' from
/tmp/temp_textmate.lsbsz4:34:in `each_with_index' from
/tmp/temp_textmate.lsbsz4:34:in `outline_points' from
/tmp/temp_textmate.lsbsz4:36:in `outline_points' from
/tmp/temp_textmate.lsbsz4:34:in `each_with_index' from
/tmp/temp_textmate.lsbsz4:34:in `each' from /tmp/temp_textmate.lsbsz4:34:in
`each_with_index' from /tmp/temp_textmate.lsbsz4:34:in `outline_points' from
/tmp/temp_textmate.lsbsz4:47
The /include files are not in the same directory as the master file, but the
file typesets just fine.
Any ideas?
Thanks,
zsteir
--
View this message in context: http://www.nabble.com/%22Show-Outline%22-error-tf4410356.html#a12581754
Sent from the textmate users mailing list archive at Nabble.com.
Definitely True. We need good code completion for RoR on Textmate. It's all
about having the right tools and decent code completion is definitely top of
the list. Something like what MS visual studio has, they call it
intellisense, would be everything. I mean code completion for your own
classes/methods anywhere....
Is there anything we as a community can do to improve the Ruby bundle for
this? I understand the plugin API is not done yet for TM...
cheers
-James
_________________________________________________________________
Get a FREE small business Web site and more from Microsoft® Office Live!
http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/
I've looked for an answer but, as yet, haven't found one. I'm experiencing
irregular spacing within the textmate window. It doesn't matter what format
the file is in. It looks something like this: 'Po in t you r b rows e r
to'. I've looked at preferences but don't see an answer. I'm using ver
1.5.6 on PowerBook G4 running mac os x 10.4.10. Any suggestions?
--
View this message in context: http://www.nabble.com/Irregular-spacing-tf4406810.html#a12572251
Sent from the textmate users mailing list archive at Nabble.com.
I have a question that I'm sure has a simple solution, and if my
brain worked properly these days I'd be able to find it either online
or somewhere in the archives... But I can't, so here goes...
I need to parse an entire project through a regex, and produce some
formatted output. The regex is quite simple, and the reason is to
create a 'translation' file. I have a huge project where I've used
the wordpress-style convention (which in turn is based on the gettext
style convention) of translating strings, namely passing them to the
__() function (this is all in php). I'm not using gettext, i've just
wrapped my own code around that function (which is why i'm using __()
instead of _() )
This function at the moment simply returns the input as output (since
all the text strings are in english, and I haven't really translated
anything yet so my translation files are empty). What I want is to
parse all of my code for /__\(['"](.*)['"]\)/ and some variations
thereof, and produce a line-separated list of strings that need to be
translated. I'd like to make this an automated process, because this
is an ongoing project and i'd like to refresh the to-be-translated
strings file frequently.
I believe poedit already does something like this, but attempting to
get my head around .po and .mo files at this point just gave me a
migraine (nb: if someone knows of a good, step-by-step 'for dummies'
tutorial for this stuff, I'd appreciate it).
Any ideas?
Constantinos Neophytou
Is there any way to excluding some directories from "go to file"? I
have a project set up where three (library) directories contain
something like 15000 files that I never want to complete on. Because
there's so many files, the "go to file" dialog box takes a few
seconds to appear. --M.
--
http://beebo.org
+44 78 2118 9049
Hello:
I work developing software using Windows at the office, but at home I
get to do my own stuff in a Mac -- so I use TextMate for that.
However, I've noticed that most (all?) language syntaxes in the bundles
menu use the 'C' escape character, even if the language really doesn't
support that escape sequence. Specifically, I was interested in
changing the Pascal/Delphi syntax to use doubled single-quotes ('') as
an escaped quoted-string quote instead of \' (which is taken as literal
in Pascal).
Anyway, before I take the time to learn and figure out the syntax
formatting stuff to do this, I was wondering if someone already had
done this (or if it could be included in the next version :).
Cheers!
dZ.
--
"Bastard Operators don't just win. Anyone can win. Bastard Operators
win and totally demoralise. That's real winning."
-- BOfH
hi,
just a short note: there is still a problem with the error parsing
machinery:
undefined control sequences don't get caught:
from the log file:
./pozdniakov-segerer.tex:38: Undefined control sequence.
l.38 \bikkkk
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
from the typeset & view output window:
Found 0 errors ...
greetings
christoph
Is this normal? <see the screen shot>. As far as I know, the blank bar
appear when in Python, Ruby, SQL, Regular Expression, and
AppleScript... probably more. I have poked around more and can't
figure what it does.
hi @all,
i am trying set up TextMate for using latexmk.pl as describe in
http://plesslweb.ch/2007/04/02/setting-up-latex-on-mac-os-x/ and , but
am running into some problems.
The symptom is
! LaTeX Error: Unknown graphics extension: .eps.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.72 ...\includegraphics[width=80mm]{pics/au4.eps}
?
! Emergency stop.
...
l.72 ...\includegraphics[width=80mm]{pics/au4.eps}
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
and, yes, i have
\usepackage{graphicx}
on my main file.
At this point I should say that I'm able to successfully compile the
project with TeXShop, but not with latexmk (simple manual latex +
bibtex + latex). In Linux, latexmk is doing the job perfectly.
What I guess might be the source of the problem is that I have two
latex installations, so i am guessing that One is texlive2007, and the
other results from installing too much stuff in Fink.
So, my question would be: how can I correctly setup TextMate/latexmk
so that it is going to use the correct installation?
Are there any path variables that need setting, or simply an explicit TEXINPUTS?
Any help would be greatly appreciated!
Hi there,
I just found out that Araxis Merge (IMHO one of the best merging tools
available, and the only program that makes me miss Windows sometimes)
is coming to the Mac platform.
The current beta is quite nice, has AppleScript support and includes
commandline tools for automation.
So... is there any chance of having the Subversion.tmbundle crew take
a look at it?
Hopefully you'll instantly fall in love and add support for it as a
diffing/merging tool : )
More info, and download at
<http://www.araxis.com/merge_mac/>
Thanks in advance ; )
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
Hi,
I don't know whether this is a bug or it's the normal case. I'm using
TM 1.5.6 (1414)
[ a '|' is indicating the caret]
Supposing you have a plain text file with a line:
Dies ist ein | Test.
TM_CURRENT_WORD = 'ein Test'
Why??
If I have that one:
Dies ist ein Test. |
TM_CURRENT_WORD = is undefined
Fine.
Can someone explain me that behaviour please.
Thanks,
Hans
I got the following error today when I tried to run a TextMate
command in the GTD2 bundle:
/tmp/temp_textmate.P3vuHw:4:in `require': No such file to load -- erb
(LoadError) from /tmp/temp_textmate.P3vuHw:4
I've been playing around with my ruby installation, but it seems to
be running fine (1.8.6). I can run a script with "require 'erb'"
from within TextMate, so I don't think that ruby is the problem. I
also checked to make sure that I haven't changed the code for the
command, but it checks out as the most current in svn.
Any idea what's going on? Thanks.
Mike
Hi Brad,
thx for the quick answer :)
The Latex bundle is the original which came with TextMate, Version 1.5.6 (1405).
The excerpt I mailed was taken from the main.log file.
Anyway, compilation with pdflatex is indeed unsuccessful due to the eps figs.
On my linux system I've always had success with 'latexmk -ps', and so
I've set 'TM_LATEX_OPTIONS' to '-ps'.
The output of the typesetting process is the following (WARNING: LONG)
Typeset & View
main.tex
Theme:
Compiling LaTeX…
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6
Typesetting: ./main.tex
Document Class: article 2005/09/16 v1.4f Standard LaTeX document clas
Typesetting: ./draft.tex
Typesetting: ./introduction.tex
LaTeX Warning: Citation `klattklatt1990' on page 1 undefined on input line 9.
LaTeX Warning: Citation `hms1964' on page 1 undefined on input line 15.
LaTeX Warning: Citation `guenther1998' on page 1 undefined on input line 19.
LaTeX Warning: Citation `hanson_stevens2002' on page 1 undefined on input line
LaTeX Warning: Citation `stevens1989' on page 1 undefined on input line 28.
LaTeX Warning: Citation `liberman1985' on page 1 undefined on input line 28.
LaTeX Warning: Citation `perrier2005' on page 1 undefined on input line 28.
LaTeX Warning: Citation `doupekuhl1999' on page 1 undefined on input line 31.
LaTeX Warning: Citation `leonardo2005' on page 1 undefined on input line 32.
LaTeX Warning: Citation `doupekuhl1999' on page 1 undefined on input line 33.
Typesetting: ./synergies.tex
LaTeX Warning: Citation `rabiner1967' on page 2 undefined on input line 37.
LaTeX Warning: Reference `eq:amps' on page 2 undefined on input line 44.
LaTeX Warning: Reference `eq:main' on page 2 undefined on input line 45.
LaTeX Warning: Reference `fig:au' on page 2 undefined on input line 64.
./synergies.tex:72 Unknown graphics extension: .eps.
Typesetting: ./results.tex
LaTeX Warning: Citation `klattklatt1990' on page 3 undefined on input line 8.
LaTeX Warning: Citation `klatt1980' on page 3 undefined on input line 9.
LaTeX Warning: Reference `sec:vowels+consonants' on page 3 undefined on input
LaTeX Warning: Citation `ladefoged2005' on page 3 undefined on input line 25.
Typesetting: ./voweltable.tex
LaTeX Warning: Reference `fig:voweltriangle' on page 3 undefined on input line
Typesetting: ./voweltriangle.tex
./voweltriangle.tex:13 Unknown graphics extension: .eps.
LaTeX Warning: Reference `fig:au' on page 3 undefined on input line 48.
./results.tex:63 Unknown graphics extension: .eps.
./results.tex:71 Unknown graphics extension: .eps.
LaTeX Warning: Reference `fig:klatt' on page 3 undefined on input line 89.
./results.tex:93 Unknown graphics extension: .eps.
Typesetting: ./discussion.tex
LaTeX Warning: Reference `sec:vowels' on page 4 undefined on input line 11.
Typesetting: ./bibliography.tex
LaTeX Warning: There were undefined references
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right
Output written on main.pdf (4 pages, 121801 bytes)
main.log
This is BibTeX, Version 0.99c (Web2C 7.5.6
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6
Typesetting: ./main.tex
Document Class: article 2005/09/16 v1.4f Standard LaTeX document clas
Typesetting: ./draft.tex
Typesetting: ./introduction.tex
Typesetting: ./synergies.tex
./synergies.tex:72 Unknown graphics extension: .eps.
Typesetting: ./voweltriangle.tex
./voweltriangle.tex:13 Unknown graphics extension: .eps.
./results.tex:63 Unknown graphics extension: .eps.
./results.tex:71 Unknown graphics extension: .eps.
./results.tex:93 Unknown graphics extension: .eps.
Typesetting: ./bibliography.tex
Output written on main.pdf (4 pages, 120871 bytes)
main.log
Found 0 errors, and 5 warnings in 2 runs
It would be nice to have Code Completion included in the Rails bundle.
I have split my time using TextMate for PHP and Ruby on Rails, and one
thing that I like about how PHP is handled in TM is code completion
(hitting Escape for a partial function name to get a list of possible
functions to choose from.)
It would be extremely useful to have this for Rails. I read that if I
freeze Rails, then code completion would work, but in most cases, one
does not want to freeze Rails. One thing that would be especially
convenient is to have code completion for Rails methods that are
globally available in Rails views, such as link_to; this method alone
has no less than SIX other variations, to give you an example of the
standardized method naming convention in Rails. This is commonplace
among the other methods in Rails.
link_to variations include:
- link_to_function
- link_to_remote
- link_to_if
- link_to_image
- link_to_unless
- link_to_unless_current
Anyways, hopefully this will drum up some discussion about this and
get something going. It would be nice if someone who already has
experience creating Completion code for TM Bundles could handle this
task, since I rarely touch TM Bundles and Snippets.
--
Gary King
http://www.kinggary.com/http://www.linkedin.com/in/garyking
I searched the archives back to July of '06, but did not find anything
on the list about this...
I'm developing on a Linux box that's got my source tree on it. My Mac
NFS mounts this directory, and I use TextMate on my Mac to edit the
sources on the Linux box. Whenever I leave the textmate window and come
back, I have to wait for about 5-15 secs (with a spinning beach ball),
before I can edit my files again. Is there some NFS setting that I can
tweak to remove this wait? Or some config thing in textmate?
Any help would be appreciated.
Thanks in advance,
Per
--
Per Reedtz Thomsen | Reedtz Consulting, LLC | F: 209 883 4119
V: 209 883 4102 | pthomsen(a)reedtz.com | C: 209 996 9561
GPG ID: 1209784F | Yahoo! Chat: pthomsen | AIM: pthomsen
Hi,
Joachim Mårtensson wrote a marvelous extension to tm_dialog - the
code completion popup.
(See his mail http://lists.macromates.com/pipermail/textmate/2007-
August/021853.html)
Now I had the idea to enhance it a bit in respect of file/path name
completion and a word completion based on cocoa's spell checker
dictionaries.
####
File/Path completion:
tmCommand:
"$DIALOG" -f -p '{pathcompletion=YES;}'
Input: None
Output: Show as Tool Tip (for errors messages)
It turns out that this is the fastest way to insert a path I ever saw ;)
If you type '/App' it will start there and inserts the longest match
automatically.
If the current document is saved and you type ' ' it starts at
TM_DIRECTORY.
Is there TM_SUPPORT_PATH or TM_BUNDLE_SUPPORT before the caret and
you type e.g. ' ' it starts at the given path.
The popup window doesn't disappear if I inserted an item. Instead it
shows the content of the inserted path.
####
Word Completion
tmCommand:
"$DIALOG" -f -p '{wordcompletion=YES;lang=nl_NL;}' or "$DIALOG" -f -p
'{wordcompletion=YES;lang=en_GB;}'
Input: None
Output: Show as Tool Tip (for errors messages)
By my opinion it's better than cocoa's built-in completion ;)
It also doesn't disappear if I append a new character to my word or
if I delete a character. Instead it shows new suggestions.
A demo can be found at:
http://www.bibiko.de/TM_completion.mov (2.6MB)
Some tiny things have to be done but the tentative code works. If I
fixed them I will post the changes to Joachim. He will commit it to the
http://macromates.com/svn/Bundles/branches/Dialog%20PlugIn%
20Completion%20Menu/ branch.
My question is whether there are other possibilities to use this
extraordinary extension.
One idea would be to feed this popup window with TM's internal
completion list but up to now I didn't find a way to have access to
it (Allan?).
Comments, suggestions?
Cheers,
Hans
Hi!
Does anybody know how to add ability to edit/add post slug (for
WordPress blog) in TM?
I like to post through TM but my posts mostrly in russian so slugs are
too... And that is very non frendly for IE/FFox users - if i want to
send them link to my post...
Alexey Blinov
Hi all,
The Hyperlink Helper bundle is fun, but it would be more useful for me to have a
macro that would auto-convert all urls in a text document to active
hyperlinks--eg, replacing:
Please visit my home page at http://mysite.net/home.html today!
with
Please visit my home page at <a
href="http://mysite.net/home.html">mysite.net/home.html</a> today!
or some variation on this.
I could write this macro as a RegExp global replace, but I was thinking someone
else may have already scripted it. If you know of a pre-existing macro, please
let me know.
BTW this forum has been very helpful and quick to respond in the past--thanks
for the support!
jon
Hello,
One extremely useful command that I use very frequently when editing code in
Visual Studio.net is the "back to previous edit location" command.
For example; I am editing file X on line 12. When editing I decide I need to
change something in file Y. After making the change I want to go back to
file X on line 12. This happens a lot of times during coding sessions.
(there is also a next edit location command that would go back to file Y, so
it's kind of navigating in a stack of edit location history).
Is this functionality already present in Textmate? If not, consider this as
a feature request. Also is this something I could add myself using Textmate
extensibility features?
Regards,
Ward
--
View this message in context: http://www.nabble.com/feature-request%3A-back-to-previous-edit-location-tf4…
Sent from the textmate users mailing list archive at Nabble.com.
Ahoy.
I've been thinking about doing a smart codecompletion thing for HTML.
Then maybe CSS too.
The way it would work would be similar to how CSSEdit and Dreamweaver
code completion works.
Inside of an HTML tag, you hit space to bring up a list of attributes
that are valid for that tag.
Outside of an HTML tag you hit a key command or tab completion to
bring up a list of tags.
Also, it should be smart enough to insert xhtml tags or html4.0 tags
depending on the doctype.
Pretty simple really, but I'm not sure if people really want me to
share this or just do it for myself.
So, if you would use such a feature, please reply to this message.
Please also reply with what other features you'd like to see in this.
thanks
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Ciao Folks,
is it just me or is there something broken in the 'Typeset and
View'-Command after Revision 8121?
Using an otherwise unchanged setup, I am getting the following output:
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6
Traceback (most recent call last): File "/Library/Application
Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texMate.py", line
376, in ? isFatal,numErrs,numWarns = commandParser.parseStream() File
"/Library/Application
Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texparser.py", line
47, in parseStream fun(myMatch,line) File "/Library/Application
Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texparser.py", line
237, in startLatex bp = LaTexParser(self.input_stream,self.verbose)
TypeError: __init__() takes exactly 4 arguments (3 given)
Any ideas?
Greetz
Bastian
hello list.
As I've mentioned before on Allans blog, I'm developing a plugin which
should ease developing Actionscript 2 with TextMate.
The plugin is a interface for Mtasc and has an integrated SocketServer which
can display your trace commands. It also has it's own browser (based on the
WebView of course), which can show which files are loaded by your flash
movie.
You can see some screenshots here: http://nesium.com/blog/flashmate/
It works pretty solid right now (I use it for production on a daily basis)
and I hope that I can release a beta version over the next week. So if
you're interested in using it, please drop me a line. I would be pretty
happy if someone could assist me in testing this thing!
cheers,
Marc
One of the very few complaints I have regarding Textmate is how it
handles font sizes for printed documents. I have the apple 30" cinema
display (beautiful!). The problem is that if I have a reasonably
small size font on the screen, the print size is huge. In order to
get the print on the page down to a reasonable font size, I have to
reduce the screen font size down to practically microscopic!
The help system mentions something about the Source Bundle having a
"View Source as PDF" function, but I couldn't find that function.
Bundles -> Source does not show it.
Anyway, I was wondering what other users have done to mitigate this
problem.
Thanks,
sjf
I love how Monaco 11 looks like against my dark TM background when in the
"light" smoothing style. However I can't stand the rest of the OS text and
especially Helvetica in Safari and prefer those to be in "standard" style,
they all just look too fat in "light" while Monaco looks anaemic in
"standard".
Thanks in advance
Allan,
I love Find in Project's... preview window which shows every matched
line in every file in the project. I love it so much so that I often
use it even when I only care about a single file in a project and
just ignore the extraneous results of the other files.
Thus, I am always disappointed when editing a single file (not part
of a project) and I select Find in Project... only to be greeted with
a window titled "Find in Project: <none>" that only beeps at me when
I try to use it. :-(
This may already be on the docket for 2.0, but I'd much prefer if
"Find..." and "Find in Project..." were to always bring up the same
window (whether editing a single file or a project) with one
difference. The window would have a radio-button such as:
(o) Search in current file
( ) Search in project
With the selected radio button according to whether the user used
"Find in Project..." or "Find..." to bring up the window. For single
file editing, the control would be disabled.
I'm sure you can think of a better UI design; I'm just arguing that
the preview functionality is useful in more than just a project context.
Said window could even grow an additional feature:
(o) Search in current file
( ) Search in project
( ) Search files in project matching pattern: [......]
(It should go without saying that any unique features of the
"Find..." window should be available in this unified window.)
I'm sure I'm missing something obvious that makes this a poor
suggestion or difficult to implement. :-)
Thoughts?
j.
Hello,
Can I please get the Grails <http://grails.codehaus.org> TextMate
bundle <http://ldaley.com/downloads/Grails.tmbundle.zip> considered
for inclusion in the bundles repository. It was primarily developed
by Graeme Rocher who developed the Groovy bundle which is in the
repository now. I am submitting this as I have made some changes/
additions with Graeme's blessing.
I would also like to get commit access to this bundle and the Groovy
bundle. What do I need to do to prove my worthiness so to speak? (not
meant to sound antagonizing)
Thanks,
- LD.
Hello,
I have a project in TextMate that compiles without giving me errors, but
when I compile it using TexShop, they are errors. How come isn't
TextMate showing me what and where the errors are ?
Thank you,
Maxime Boissonneault
i'd like to know if it's possible to get XCode bundle without direct
internet connection ???
because at this time i don't have svn i'm going to a net shop to connect
thru another computer ( win*)
<textmate(a)lists.macromates.com>
--
yvon
On 04/09/07, Clover <antikraft(a)gmail.com> wrote:
> Seems like I am having problems updating my LaTeX bundle.
> I have been trying to update my bundles using the script at
> http://blog.bleything.net/2006/10/15/keeping-textmate-bundles-up-to-date-wi…
> and also the GetBundle bundle, but I don't think my bundle gets updated.
> The former script when doing the update says "* LaTeX: bundle exists,
> updating
> * updated to " without saying the version number to which it was updated
> — makes me think that there was an update failure (a similar thing
> happens to the "Text" bundle during updating.
I'm afraid I don't know what the problem is. I've never used either
that script or GetBundle. I hope somebody else will be able to help.
(You could always try
http://macromates.com/wiki/Troubleshooting/RevertToDefaultBundles then
updating again, to see if that helps.)
Robin
Here is an example of a code block that is processed correctly by markdown,
but is not correctly scoped in TextMate.
* level 1
def test():
pass
The def test() line should be scoped markup.raw.block.markdown, but instead
is meta.paragraph.list.markdown. According to Gruber: To put a code block
within a list item, the code block needs to be indented *twice* — 8 spaces
or two tabs: The spec doesn't say, but if you put a code block inside a
level 2 list then you have to indent your code 12
Brad
--
Brad Miller
Assistant Professor, Computer Science
Luther College
Hello,
When I use the "Typeset & View" command from the Latex bundle I get
the following error:
Traceback (most recent call last):
File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/texMate.py",
line 299, in <module>
tmPrefs = tmprefs.Preferences()
File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/tmprefs.py",
line 18, in __init__
self.prefs.update(self.readTMPrefs())
File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/tmprefs.py",
line 39, in readTMPrefs
plDict = plistlib.readPlist(pl)
File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/newplistlib.py",
line 77, in readPlist
rootObject = p.parse(pathOrFile)
File "/Applications/TextMate.app/Contents/SharedSupport/Bundles/Latex.tmbundle/Support/bin/newplistlib.py",
line 402, in parse
parser.ParseFile(fileobj)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line
634, column 17
I Googled and found a posting with a similar problem:
http://www.nabble.com/-BUG--Latex-Bundle-t4317028.html. Brad Miller
replied with a suggestion to check out /tmp/tmltxprefs.plist - I did,
and found a line with some weird characters that are probably to
blame. Here are lines 632-641:
<dict>
<key>command</key>
<string>grep '
[Extreme newbie alert]
I have been hearing about the Latex Watch setup which sounds like a
dream. However, couldn't find any directions for setting it up.
Any pointers?
Thanks!
Raheel
Hi
asking for help
I have the next code for to eat the spaces behind the cursor (with
Shift and FwdDel). My problem is I know only how to move around the
current line but not how to go beyond and eat also new lines in order
to reach the start of the next line.
#!/usr/bin/env ruby
sel = ENV['TM_SELECTED_TEXT']
if sel != nil
sel = sel.dup
sel.gsub!(/\s/, '')
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]
right.gsub!(/^\s+/, '')
print left + right
I have found the env vars
TM_CURRENT_LINE'
TM_LINE_INDEX
TM_LINE_NUMBER
TM_INPUT_START_LINE
but it is not evident for me how to know the whole text before/after
the cursor.
Any idea will be welcome.
I recently had the following problem: I needed to move the contents of my
footnotes in a latex document to parentheses in the main text. I.e. search
and replace \footnote{......} capturing the contents of the footnote etc.
My problem was that \footnote could contain other latex commands, so that it
was not possible simply to search using the braces. I needed some way to
search and replace using matching braces. Is that possible?
Textmate is very good at working out which close brace goes with which open
brace, but as far as I can see that ability is not available when doing a
search and replace. Is that right?
Best wishes,
N
hi brad,
here is a serious tex-code error which apparently goes unnoticed by
the error parsing mechanism of typeset & view:
from the log file:
======
Runaway argument?
\a . \begin {treetab}[t]{ccccc} & \Node {}{NP}\\[3ex] \Node {l}{} &&
\ETC.
./kula-cheng.tex:788: Paragraph ended before \ex was complete.
<to be read again>
\par
l.788
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
======
typeset & view window:
Found 0 errors, and 2 warnings in 1 runs
wat is missing in the tex code is a closing } in this kind of tabular
environment (which produces syntax trees as used in linguistics).
because of this the entire object gets dropped.
BTW: the revised typeset & view (with the buttons in the typeset &
view window) is fabulous, thanks a lot for your work!!
christoph
I've installed the getBundle bundle and the autoupdater.
the autoupdater announces a failure and the update installed bundles
causes this to be logged:
Skipped 'CSS(plus).tmbundle'
Skipped 'CSS.tmbundle'
svn: REPORT request failed on '/svn/Bundles/!svn/vcc/default'
svn: Target path does not exist
svn: This client is too old to work with working copy '/Users/
tonycrockford/Library/Application Support/TextMate/Support'; please
get a newer Subversion client
launchd[91]: com.macromates.textmate.bundleupdate: exited with exit
code: 1
launchd[91]: com.macromates.textmate.bundleupdate: 8 more failures
without living at least 60 seconds will cause job removal
can anyone suggest where to start fixing this?
cheers
Is there a key combination for selecting a line (or lines) of code in a tag but
omitting leading and trailing spaces and tabs? I'm familiar with the Shift-Cmd-L
shortcut, but it leaves in the whitespace. This makes a mess of indented HTML
when I'm using the Ctrl-Shift-W and Ctrl-Shift-Cmd-W HTML shortcuts.
In other words, if I apply the combination Shift-Cmd-L followed by Ctrl-Shift-W
to this line:
Here's a paragraph!
I get this:
<p> Here's a paragraph!
</p>
instead of what I want, which is this:
<p>Here's a paragraph!</p>
Obviously I could use the mouse to select only the correct part, but I was
hoping there might be a keyboard shortcut.
If it's best to create my own macro using Regular Expressions, any pointers as
to how to get started would be helpful.
Many thanks!
jon
I'm trying to write a command that reformats Python triple-quoted
(""") strings. The scope of such strings is:
source.python string.quoted.double.block.python
when I create a command that has:
Input: Selected Text or Scope
and said scope as the Scope Selector, then run the command with the
cursor inside a triple-quoted string, the entire document is fed to
the command instead of just the triple-quoted string (the current
scope).
I've confirmed the scope via TM_SCOPE. Clearly I have the Scope
Selector correct else my command wouldn't be activated (I've bound it
^Q).
Any ideas?
j.
On Aug 30, 2007, at 11:54 PM, "Baluta Cristian"
<cristi.baluta(a)gmail.com> wrote:
> do you have this line in your mtasc.yaml ?
> params: -main
> this was my problem. this was for the projects wich compiled with a
> blank screen, but i think i remember your error also, was for single
> files.
Unfortunatly the problem isn't that simple. I get an error screen and
no compile. I am almost certain it is because the script is running
MTASC from the wrong scope, for when I run the same command manually
from Terminal it compiles fine.
I have no idea what could be causing this and have even deleted
TextMate and reinstalled with the same results.
> On 8/30/07, Aaron Clinger <aaron(a)odopod.com> wrote:
> On Aug 29, 2007, at 1:24 PM, Baluta Cristian wrote:
>
> > stopped to work after an update? a month ago i had this problem and
> > was something about settings file, is missing something wich was
> > default in the past. i'll try to come back with a link.
>
> I don't think so but maybe. It be great if you could pass me the link.
>
> Thanks.
>
>
> >
> > On 8/29/07, Aaron Clinger <aaron(a)odopod.com> wrote:
> >> The build with MTASC command suddenly stopped working for me on my
> >> work
> >> computer. I am at a total loss.
> >>
> >> I am now getting this output when I try to compile on projects
> >> that had
> >> previously worked:
> >> (unknown) : type error class not found : com.package.Class
> >>
> >> It seems in my testing that it might be using the folder that
> >> contains the
> >> class you currently have open, instead of the folder the
> >> mtasc.yaml resides
> >> in. I have tried using the same command in the right folder
> >> location from
> >> Terminal and it works fine.
> >>
> >> I am running the edge build 1414.
> >>
> >> Thanks in advance for any help.
> >>
> >> -Aaron
> >>
> >>
> _____________________________________________________________________
> >> _
> >> 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
> >>
> >
> >
> > --
> > Cristi
> > www.ralcr.com
> >
> >
> ______________________________________________________________________
> > 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
> >
>
>
> ______________________________________________________________________
> 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
>
>
>
> --
> Cristi
> www.ralcr.com
>
> ______________________________________________________________________
> 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
Hi
Not sure who's maintaining the PHP bundle (Ciarán?) but any chance
you could include this tiny, tiny snippet? It makes writing longer
blocks easier.

Also - I'm using Doxygen rather than PHPDocumentor (as it seems
easier to get it into TeX ? let me know if I'm wrong here!) - any
chance we could have
/**
*
**/
as the docblock defn? I don't think it interferes with PHPDocumentor,
and it makes folding easier on long comments.
Kind regards,
R
--
Richard Dyce MA (Cantab.) MBCS MIET
http://dyce.com
Hi,
I've been seeing this for some time, and I'd like to know if any of
you knows what the problem is:
Let's say I'm editing a file (file1.html), and I save it with another
name (Save as file2.html). After that action, I'll be editing
file2.html, but if I want to open file1.html, it doesn't show in the
project drawer. I can't access it using Command+T, either.
If I quit Textmate and reopen it, then I can see file1.html in the drawer.
Thanks!
The build with MTASC command suddenly stopped working for me on my
work computer. I am at a total loss.
I am now getting this output when I try to compile on projects that
had previously worked:
(unknown) : type error class not found : com.package.Class
It seems in my testing that it might be using the folder that
contains the class you currently have open, instead of the folder the
mtasc.yaml resides in. I have tried using the same command in the
right folder location from Terminal and it works fine.
I am running the edge build 1414.
Thanks in advance for any help.
-Aaron
Allan,
Just out of mild curiosity, how long has TM2 been self-hosting (i.e.
when did you switch from TM1 to TM2 in order to develop the rest of
TM2)?
As long as you're teasing us about it and all... :-)
j.
On Aug 27, 2007, at 7:00 AM, textmate-request(a)lists.macromates.com
wrote:
> I use textmate a lot to write in markdown. However, the documents
> I produce need to be printed out and proofread often. Is there any
> way to get textmate to print out documents double spaced? If not,
> I preview the documents in firefox on OS X. Is there any way to
> get firefox to print double spaced?
In addition to tweaking/hacking the built-in print.css file, you
should also consider installing Fletcher Penney's MultiMarkdown set-
up. It comes in two parts: (1) a TextMade bundle and (2) a
MultiMarkdown folder you place in ~/Library/Application Support.
Why? Because Multi-Markdown actually lets you include meta-data at
the top of a document. One item you can include looks like this:
CSS: http://path.to.styles/sheet.css
You can then "style" a particular document any number of ways. I have
not found a way for this to work fully using TextMate's built-in
Preview browser, however. (HELP coding gurus!) Fonts work. As do line
spacing, which would get you what you want, but not margins and page
numbering.
Of course, to be fair, I haven't found a browser yet that respects
page numbering as specified in CSS when I have outputted using
MultiMarkdown. (If I am doing something wrong not to get this, please
someone feel free to set me straight.)
So far as I can tell, truly print-ready formatting is only available
through LaTeX or through using something like Prince. (Or by being
XSLT competent.) I really can't work up the desire to immerse myself
in LaTeX when Markdown works so well for me. Prince is too expensive.
And I am definitely incompetent when it comes to XML/XSL/great googly
moogly.
Given my ignorance, setting up MultiMarkdown can't be that hard.
Now, where's a piece of wood so I can knock on it.
john
Hi,
How can you make it so when you press a '(' when editing source-code '( )'
is inserted instead of '()', that is, there are two spaces between the
brackets and the cursor is in-between those two spaces? It makes code much
easier to read.
Thanks!
P.S. Sorry if this message shows up as a duplicate.
--
View this message in context: http://www.nabble.com/Auto-Paired-with-Spaces-tf4295400.html#a12226736
Sent from the textmate users mailing list archive at Nabble.com.
This is barely a bug, but still seemed worth a quick mention. I've
got a project file in my /opt/ directory, which I'm using for fooling
around with my local apache installation. I do not have write
permission in /opt/, because I'm not logged in as admin (a habit from
the early days of great bash disasters). When I go to 'create a file'
in the project drawer and choose a location within /opt/ to create
it, clicking 'ok' fails silently – no error message or request to
authorize. In other circumstances I've seen TextMate ask for
authorization as admin, and it would be nice if it did the same here.
Like I said, hardly a crucial issue, there are a million ways around
it, but it seems like it ought to work.
I'm using build 1414, if that makes any difference.
Yrs,
Eric
HI,
I don't know whether this is an issue for other users as well and
whether it would be possible, but I'd like to have a built-in chance
to enable or disable installed plugins (maybe integrated in TM's menu).
Background:
I often use Hetima's CJK-Input plugin for writing Japanese.
This plugin will be also invoked if I want to write German umlauts
like ä because I use an US-keyboard and I have to type the key
combination ALT+u plus a for inserting an ä. This behaviour is a bit
annoying.
[I know that TM can display the key combination ALT+u or ALT+e not
yet but still ... ;)]
Up to now I use a script to rename the plugin and restart TM.
Furthermore if more plugins will be developed in the future which
maybe interact with others it would be nice to have such a chance to
(un)load plugins while running TM.
On the other hand it would 'solve the problem' while developing a
plugin to restart TM after building a new version of it. Just unload
and load that plugin.
Or am I wrong?
Best,
Hans
Greetings list,
I've just recently started getting a couple of errors when using the
"mate" command:
~ $ mate
sysctlbyname_with_pid: sysctl failed:Operation not permitted
is_pid_native: sysctlbyname_with_pid failed:Operation not permitted
It still seems to work properly.
I haven't been able to find anything on this re: TM, any clues on
where to start?
Best,
David
Hi there,
I have problems with the "reformate method call" of the Objective-C
bundle. I don't know if I don't understand the function or if it is a
bug - hope you can help me :)
Code snippet:
[nc removeObserver:self];
NSLog(@"%s: Unregistered with notification center: %@", _cmd, [self
fileName] );
[super dealloc];
The NSLog line is longer than my wrap-settings. So I want to reformat
that line to have the log command splitted over two lines, possibly
with an intendation for the second line. But if I press ^q the code
ends up like this:
[NSNotificationCenter defaultCenter]; [nc removeObserver:self]; NSLog
(@"%s:
Unregistered with notification center: %@", _cmd, [self fileName] );
[super
dealloc]; } @end
Do I use the wrong command? Is it a bug?
Thanks for reading ;)
Simon
Hi all,
I'm working on some PHP files and cannot get Show TODO List to work.
I recall this bundle was updated recently, but I haven't really used
the new version until now.
An example: one file has 1 FIXME comment and 2 CHANGED comments. When
I try Ctrl-Shift-T, I get the TODO window which lists 1 FIXME and
only the 1st CHANGED, and each of those seems to contain everything
from the comment line to the end of the document.
Am I making some error with how the comment lines are formatted? E.g.:
// FIXME: need to copy header section to sitedev file.
--
Tim Mansour <tim(a)neologica.com.au>
Hi,
I'm trying to customize the completion with my custom Ruby script. In
order to do this I've created a custom Preference item in my bundle
with a specific scope.
{ completionCommand = '"${TM_BUNDLE_SUPPORT}/bin/
completion_command.rb"';
disableDefaultCompletion = 1;
}
And this way surprisingly it doesn't work, because $TM_BUNDLE_SUPPORT
seems to be undefined for measly preference items. Should I file a
bug report or is there any work-around? ;-)
-Michail
When writing C++ code in TextMate, it appears that the method names are not
well detected when I use the throw\([^\)]*\) keyword on my method
declarations, as in this example:
void Foo::Bar(int argument) const throw()
{
/* ... */
}
or like this:
void Foo::Bar(int argument) const throw(std:exception, int)
{
/* ... */
throw std::exception("exception message");
/* ... */
throw 42;
/* ... */
}
When I use the throw keyword on my method declarations, the method name
detected by TextMate is "throw", which isn't really useful, especially when
all the method names are detected as "throw". How can I fix this to ensure
TextMates resolves the proper names?
Thanks for your help,
Marc-Antoine Courteau
Hi!
Can someone help me to tune BloggingBundle to avoid iconv error?
The problem is: when i try to fetch category list (cat->) i get an
error "iconv: (stdin): cannot convert"
I'm using WordPress as blog engine with MySQL (all fields set to utf8 manually).
PS
Some of the categories is in russian (utf8).
Hello,
I use textmate a lot to write in markdown. However, the documents I
produce need to be printed out and proofread often. Is there any way
to get textmate to print out documents double spaced? If not, I
preview the documents in firefox on OS X. Is there any way to get
firefox to print double spaced?
Thank you for your time,
-Colin Palmer
Hello,
Attached is a patch to
Bundles/Rails.tmbundle/Support/lib/rails/rails_path.rb that adds .erb
files to the list of files considered as view files. .erb files are
the new default view files for edge rails.
Thanks
-Lee
Allan, team, I was wondering if anyone can help me. I'm intrigued by
the implementation of textmate's incremental search feature for file.
What intrigues me most is the fact that it's partially ordered, though
it works on any set of characters that appear within a name.
Most incremental searches are implemented using trie structures, but
I'm not seeing how that can be used to implement partial ordered
searches, or I don't believe that data structure is the most efficient
way of doing so.
I'm wondering if someone can share a bit info on how this is
implemented. Are you using some known tree algorithm/structure, or is
the search performed by regex? I'm hoping the earlier and that you
can point me in the right direction.
I really appreciate any information.
Thanks.
Ilya Sterin
What could I have done that will give me this error when I hit command-R
for compiling latex:
"python: execv:
/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python:
No such file or directory"
[my earlier post went to another thread — sorry about that]
Starting a new thread because it is new issue.
> Updating should make both this and the overprint/overlayarea stuff
> work. I added some shortcuts for them and other beamer commands in
> the "Insert Environment/ Insert Command" dictionary.
After updating, I checked the configuration file via LaTeX → Edit
Configuration File and could not find these. I then checked /Library/
Application Support/TextMate/Bundles/Latex.tmbundle/Support/
latex.config, and the changes were there, but have no effect---the
shortcuts do not work. In the past I have edited the configuration
file through the LaTeX bundle (I added support for the quote
environment which I use often). Does this mean that editing the
configuration file in this way somehow blocks the changes made to /
Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/
latex.config? Or am I doing something stupid? (Likely, I am afraid)
Best, Mark
A couple requests about beamer support.
First, highlight and smart typing pairs should include the ones
supported in LaTeX. So Miscellaneous (Beamer) should be:
{ highlightPairs = (
( '<', '>' ),
( '"', '"' ),
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '“', '”' ),
( '$', '$' ),
( '`', "'" ),
);
smartTypingPairs = (
( '<', '>' ),
( '"', '"' ),
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '“', '”' ),
( '$', '$' ),
( '`', "'" ),
);
}
Second, it would be nice to support the overprint environment in
which \onslide functions similarly to \item. Specifically, it would
be useful to hit enter and to create another \onslide. \onslide takes
a number between angle brackets (e.g., \onslide<3>, *without* a plus
or minus sign since overprints may not overlap). Another difference
from \item is that the text begins indented on a new line as in the
following example:
\begin{overprint}
\onslide<1>
lorem
\onslide<2>
ipsum
\end{overprint}
Thanks in advance.
All the best, Mark
I discovered a little quirk of TextMate this afternoon that cost me several
hours of work.
I had a file within a project called "distributions.py", and wanted to make
a new file called "Distributions.py" to experiment with a few things.
When I created this file, it generated a new file, but rather than the usual
template, it contained the contents of distributions.py. Fine, I thought,
I was going to copy some of the contents of "distributions.py" over
anyway. I went ahead and heavily edited Distributions.py, including
deleting much of the original contents.
I was shocked to find that when I went back to the original file, all
the editing that I had done in the new file was mirrored in the second!
I had done enough editing that I was unable to undo changes to get most
of it back. Several hours of work -- gone.
Why on earth did creating a *new* file in a project apparently just
create some sort of symbolic link to an existing file?? 2 different files
"Distributions.py" and "distributions.py" both appeared in the project list,
and both had their own tabs. Does this have something to do with having
files that differ only in case? Very frustrating.
Since it seems entirely possible that the subversion bundle developers do
not read the intricate details of some LaTeX discussions I thought I would
just highlight a couple of ideas that came out of yesterday's emails.
Could you make it more difficult to commit without a comment? For example
if the comment is blank could you pop up a confirmation dialog? Or could
you disable the commit button until something has been entered in the
comment field?
Another suggestion was to have it so that the comment field gets the focus
when the window pops up. Although this seems to be how it works for me
already, so maybe this is done already.
Thanks,
Brad
--
Brad Miller
Assistant Professor, Computer Science
Luther College
Hi
I would like to change the cursor size on my TextMate.
I know there is a similar question posted several years ago, but I am not sure I
understand the answer.
Could someone let me know which option determines the size?
Thanks
Alexandra
I'm looking for a way for a snippet to perform a transformation on a
tab stop, but to output the number characters, not to modify the
captured tab stop. Can anyone think of how this would be done?
Example: A tab trigger for the PHP function strncmp(), and when I
type 'string', the third argument would update to the total number of
characters in the string.
strncmp($$1, '$2', <character count of $2>)
giving me:
strncmp($foo, 'string', 6)
-Derek
Ahoy me TextMateys,
I just had a kindof a neat idea.
TextMateHistoryManagement
Currently, when you do a thousand changes in textmate and then close
your document, all your changes are totally lost :(
What if every time you saved your document, I caught that action,
backed up your original version and the new one and then archived it
away in a magical forrest for safekeeping. Then when you open that
document up again you have the option to undo every previous save
you've ever made to the document? And you can even see how many
changes were made every time you saved with a timestamp and a full
diff and all kinds of crazy stuff?
I know tons of people use some kind of SCM like subversion or
mercurial or something, but you normally only commit working changes
and projects that you're working on. Instead, this
TextMateHistoryManagement would keep track of every single change you
make to every single document you ever save, good changes or bad ones,
who cares, just everything.
Personally, I think this would be stinking awesome to the power of
infinity -1 squared! (aka, it'd be nifty)
So, as far as UI goes…
I want a new history to be saved every time I save the document.
I want to have a nice GUI palette like photoshop to see a list of
changes.
That list shows the filename, hide-able full file path, timestamp and
the number of lines added, removed or changed in that version.
There should be a hide-able diff drawer or area with a tabbed safari-
esque view with tabs for each diff available. Diff that version to
it's parent, the selected items to eachother, or the selected item
with your open version.
There are some obvious technical hurdles to leap, but it's all totally
doable. The purpose of this poll is to see if anyone would be
interested in this from a fronend user interface level. I already know
how I'm likely going to actually build this thing, and we can talk
more about that later.
What I'm most interested in is workflow.
I'd like us all to come up with the best and most genericly usable
workflow for everyone. Maybe some advanced stuff for the nerds, but I
want this as mostly a noob feature and for people who don't want to
have to care about version control or whatever.
For example, with the implementation that I just suggested, you could
do this…
You're working on a version of some random webpage, then someone
emails you a changed version. You could just replace your current file
with that one and open it up and check your history palette to see the
changes. (assuming you had opened and saved the original file in
textmate at some point)
You'd never had to install or configure or set up anything. It should
all just work™
Thoughts?
thomas Aylott — subtleGradient — CrazyEgg — bundleForge
Is there a way to make the HTML output window autoscroll? For things
like RakeMate, it would be great if the window auto scrolled as new
content was added.
- LD.
Hello everyone,
I am working with the TextMate Subversion bundle and a German shell
localization (LC_ALL=de_DE.UTF-8). It turns out the commit result
window will always show 'unknown revision committed' in its title.
To fix that I put a copy of svn_commit.rb out of the Subversion
bundle's Support folder in ~/Application Support/TextMate/Bundles/
Subversion/Support/ and changed the regex in line 214 to the following:
http://pastie.textmate.org/89801
Hopefully this will catch other languages as well. Maybe someone
finds this useful, so I thought I would post it here.
cheers
Tibor Claassen
Hi all,
i am running TM Version 1.5.6 (1414) and have a question regarding memory use..
First, uname -a:
Darwin *.local 8.10.3 Darwin Kernel Version 8.10.3: Wed Jun 27 23:29:36 PDT 2007; root:xnu-792.23.3~1/RELEASE_I386 i386 i386
2.2 CD2 MacBook Pro
2 GB 667 Factory RAM
after opening text files of moderate size (10M-20M) for editing, applying the edits, and closing them, TM retains *lots* of memory (~ 285 MB Real). The memory is only released upon restarting the program. This can be reproduced simply by opening a large text file, closing it, and monitoring RAM usage (top/Activity Monitor).
My question boils down to whether or not this is the desired/expected behavior?
cheers,
brant
<*)
(_\\
_||
Hello,
a quote from the release notes from REVISION 1401:
> When TextMate bumps your encoding to UTF-8 it will first display a
> confirmation dialog (there is no help in finding which characters
> cause a problem though, but a bundle command can be devised)
Is there already such a bundle command anywhere?
Kind regards,
Tobias
Hello everybody,
First of all, I'm well aware of the ability to use column selections
instead of rows, so please don't respond with that. What I'd like to
be able to do is select a random bit of text here and another there,
no matter where they are in the document, and then be able to use cmd-
c to copy it and paste it to another section (perhaps separated by
line breaks to indicate that the text fragments are from non-
continuous selections). Kind of like the cmd key lets you do in some
other cocoa editors (like Pages). Any ideas?
Thanks,
Michael
Hi everyone,
I'm wondering if there was a mean to insert some kind of “informative
text” in a snippet, i.e. text that informs you of what should be
inserted where but disappears when it's not needed any longer.
Here's a short example (a method definition in some Lisp dialect) of
a problem I currently face that should make the situation a bit clearer.
Here is what I'd want to appear with my defmethod snippet, with
“normal” default text between [ ] and informative text between { } :
(defmethod [name] ({parameters}) ({code}))
The parameters are written as “(name type)”, so when I reach the
{parameters}, the first thing I do is adding a parenthesis. Result:
the default text (“parameters”) is still there, but now unselected
and between parenthesis. I thus have to remove it by hand, which is
quite annoying. Of course, a possibility is to let the default string
empty, but you can easily get lost in your structure, then
(especially in Lisp). So is there a way to have text reminding you
what you should be typing, but disappearing after a while (ideally,
when you hit tab in order to jump to the next snippet point or when
you reach $0)?
Thank you very much,
Édouard
Textmate is more sluggish lately for me than in the past. I notice it
when I switch from the terminal back to Textmate. TM takes a little
while to respond. Almost like it has to awakened from a good nap. At
least it isn't grumpy afterwards.
I'm running TextMate 1.5.6 (1414)
Anyone else notice this? Suggestions?
-David