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