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