hi all,
I have a quick question - is there a way to write a command that would
run the previously run ruby test - whether it was a whole test case
(command R) or the 'focused test run' ? I often want to tweak code,
rerun the last test, tweak code, rerun, etc....So basically I could
map ctrl-cmd-R to 'rerun previous test run', and it would be smart
enough to run whatever I ran last.
thanks,
Rob
--
http://www.robsanheim.com
Hi everyone,
This is a minor bug, mostly cosmetic in the LaTeX
bundle. Please have a look at this screenshot :
http://img213.imageshack.us/img213/5403/image1fd3.jpg
Notice that the accented characters in the name of the
section do not appear in italic in the label whereas they
are OK in the last line.
It probably has to do with the RegExp which is involved
in the definition of this command.
I'm very new to (yet enthusiastic about) TextMate... A quick search
of the web and this mailing list doesn't return much in the way of
XSLT bundles/extras/goodies for TextMate.
Can anyone provide any pointers and/or let me know that nothing
currently exists (In which case I'll develop something)?
Thanks,
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools
http://scan.dalo.us
Howdy.
In light of the recent C Library bundle, it's obvious that people re
extremely interested in having some code completion in TextMate.
I've done a few things will code completion already.
Filepath - http://subtlegradient.com/articles/2006/11/02/filename-
filepath-completion-for-textmate-screencast
English - http://subtlegradient.com/articles/2006/10/30/english-word-
completion-for-textmate-screencast
And someone did Cocoa completions
http://theocacao.com/document.page/332
I think we should come up with a brick simple library that will let
you do completions.
Then the hardcode d00ds can get on with extending and perfecting the
completion library.
While everyone actually gets the chance to use it.
Plus, we'll be able to unify all the code completion stuff into a
single library.
thomas Aylott — design42 — subtleGradient — CrazyEgg
Hi,
I looked at the R-bundle command 'Execute Line / Selection'.
I rewrote this command to improve it and fasten it a bit, at least in
my eyes.
Changes for this command and for the language grammar 'R console':
1)
I compiled the AppleScript and saved it as 'Run only'. This is a bit
faster.
Furthermore within this script I use the clipboard to pass the
command to R, and I also get back R's result via the clipboard.
This has a nice side-effect for the encoding problems:
Example: If I type 'print("Immer Ärger mit Jörg")'
I will get back '[1] "Immer Ärger mit Jörg"' with the 'old' version
caused by the UTF-8 encoding.
If I do it via the clipboard then it outputs the string correctly,
but if you have a look at R.app you see weird characters.
And finally I took care about the AppleScript file size, because it
remembers the the 'oldtext' and 'text_area'. So, I set these
variables to "" and the end.
Of course, to use the clipboard will destroy its content, but this
can be discussed.
To work with the AppleScript tm_get_r.scpt you have to copy the
attached script to R-bundle's /Support/bin folder, or you can compile
it by yourself.
2)
If you have a TM window set to R console scope, and you enter a
command like '> 3*3' the script now is checking whether R.app is
running. If not it opens it, waits 5 seconds, hides R.app, and sends
the command to R.
3)
I changed the language grammar for 'R console' to be able to do the
following:
I type '4+' press ENTER, R returns '+ ' to complete my command. If
you type now '4' the old grammar ignores that.
So I changed the line 'begin = ...' within the grammar to:
________________
{ scopeName = 'source.r-console';
fileTypes = ( );
patterns = (
{ name = 'source.r.embedded.r-console';
begin = '^[>|\+] ';
end = '\n|\z';
beginCaptures = { 0 = { name = 'punctuation.section.embedded.r-
console'; }; };
patterns = ( { include = 'source.r'; } );
},
);
}
________________
Now you can type as usual.
4)
If R asks for an user input via 'readline' you can't just type the
answer and press ENTER because TM's command expects '> ' or '+ ' at
the beginning of the line.
To solve it here's a suggestion:
If the last line of R's return is not '> ' or '+ ' I insert '\n> '.
It is not standard but now you can type the answer straightforward.
5)
I suppressed any error message coming from AppleScript. E.g., if you
type '?C' and R.app is not running, R starts, and shows the help, but
meanwhile AppleScript wants to have the content, but it does not get
it. Thus AppleScript outputs an error, but there is no error. In such
a case R's return is nothing and by using the suggestion of 4) you
have a '> ' and no error message at the last line in TM.
6)
I only changed the code, not the input/output settings.
#########
Here comes the new code for 'Execute Line /Selection':
__________________
echo
echo -e `tail -c+2` | pbcopy
# check whether R.app is running
if [ $(ps -xc | grep ' R$' | wc -l) -eq 0 ]; then
open -a R
# sleeps for 5 sec - can be fine-tuned
sleep 5
osascript <<-AS
tell application "System Events"
set visible of process "R" to false
end tell
AS
fi
osascript "$TM_BUNDLE_SUPPORT/bin/tm_get_r.scpt" &>/dev/null
RES=$(pbpaste | tail -n +2)
echo -en "$RES"
NL=$(echo -en "$RES" | tail -n 1)
if [ "$NL" != "> " -a "$NL" != "+ " ]; then
echo -en "\n> "
fi
##########################################
# source code for 'tm_get_r'
#
#
# tell application "System Events"
# -- Get a reference to the text field
# set text_area to (process "R")'s (window "R Console")'s (scroll
area 1)'s text area 1
#
# -- Get text before and after our command
# set oldtext to text_area's value
# tell application "R" to cmd (the clipboard)
# set newtext to text_area's value
#
# -- Find the difference between old and new
# set the clipboard to text from ((oldtext's length) + 1) to -1 of
newtext
# set oldtext to ""
# set newtext to ""
# set text_area to ""
# end tell
#
###########################################
_________________________
Any comments?
Is there someone who is quasi responsible for this bundle?
All the best,
Hans
I'm working with an open-source Java project that uses the so-called
"mixed" mode for indentation. This is the convention popularized by
Emacs where indentations are (say) 4 spaces but tab characters expand
to 8 spaces. Unfortunately, TextMate does not support this mode, as
discussed previously [1]. There is a script that converts between
mixed mode, but it appears to be manual [2], which won't work in my
case. (I'd have to run the conversion every time I open and save a
file.)
So, I need a better solution to get around TextMate's lack of support
for mixed mode. I was thinking about submitting a patch upstream that
would simply get rid of mixed mode and instead use Java's standard
convention [3], but then I noticed that it apparently recommends
mixed mode!
"Four spaces should be used as the unit of indentation. The exact
construction of the indentation (spaces vs. tabs) is unspecified.
Tabs must be set exactly every 8 spaces (not 4)."
Am I reading that right? Does Java's coding standard recommend mixed
mode indentation? What are TextMate users to do in this situation?
Trevor
[1] http://comox.textdrive.com/pipermail/textmate/2004-December/
002053.html
[2] http://comox.textdrive.com/pipermail/textmate/2006-November/
015565.html
[3] http://java.sun.com/docs/codeconv/html/CodeConventions.doc3.html
Newbie woes. Had TextMate working fine with TeXniscope with the
settings below. Then, I tried to set up PDFView (it just looks better)
according to the instructions on their web page.
In the Bundle Editor I wrote over the old TeXniscope item, calling the
new item "Show in PDFView (pdfsync)" and copied the commands from the
PDFView web page for setting up TextMate.
My TextMate preferences Shell Variables are:
TM_LATEX_COMPILER latex
TX_PSTRICKS 1
I hit Command-R (Typset & View PDF) and all the tex files are created.
I just cannot view the pdf file from within TextMate by hitting
Ctrl-Option-Command-O (Show in PDFView).
Any suggestions?
thanks
walter johnson
Is there any way to get a command to play a sound when it is complete?
I can't think of any shell script for just playing a sound, but I'm
looking for something like:
echo "
Aprox. page #$(( (TM_LINE_NUMBER+31) / 32 ))
"
play "$TM_BUNDLE_SUPPORT/harp.wav"
Settings:
Shell Variable: TM_BLOG_FORMAT
Value: Markdown
Problem:
Fetch post returns in HTML, I want to work in MultiMarkdown
Can not drag and drop image to the HTML
Questions:
How do I set so the post comes back in Markdown?
How can I alternate between html and markdown in the Blog Post
(Markdown) template?
Thanks
Hi,
I'm a newbie to TextMate, recently I found it's auto-indention
behavior quite different from XCode and Vim. For example:
if I have:
if (<condition>) blahblah;
When I hit return between if (...) and blah.., It will became:
if (<condition>)
blahblah;
But in XCode and Vim, it's correctly indented as:
if (<condition>)
blahblah;
The second problem is, in XCode or Vim when I have:
if (<condition>)
then hit return, the caret will appear in the next line, and
increase the indention automatically, like (_ shows the caret):
if (<condition>)
_
then if I hit {, they could decrease the indention automatically,
too.
if (<condition>)
{_
But in TextMate, I could not found something like that.
Could you please tell me how to achieve this? Thanks.
Regards,
jjgod.
Hi,
Some weeks ago I wrote this ruby script that works inside a TextMate
command to build a list of references declared in Latex files and let
the user select the reference he wants to insert in the text:
-----------------------
#!/usr/bin/env ruby -wKU
SUPPORT = ENV['TM_SUPPORT_PATH']
DIALOG = SUPPORT + '/bin/tm_dialog'
require SUPPORT + '/lib/escape'
require SUPPORT + '/lib/plist'
require 'pathname'
require 'find'
refs = []
Find.find(ENV['TM_PROJECT_DIRECTORY']) do |f|
file_name = File.basename(f)
if /\.(tex)$/ =~ file_name
File.open(file_name,"r") do |infile|
infile.each_line do |line|
if line =~ /.*\label\{.*/
line = line.gsub(/.*\label\{(.*)\}.*/, '\1').chomp
refs << {
'title' => line,
'code' => "\\ref{#{line}}"
}
end
end
end
end
end
abort if refs.empty?
plist = { "menuItems" => refs }.to_plist
res = PropertyList::load(`#{e_sh DIALOG} -up #{e_sh plist}`)
abort unless res.has_key? "selectedMenuItem"
print %(#{res["selectedMenuItem"]['code']})
-----------------------
Since the last updates (both of TextMate and its bundles), the script
does not work anymore.
When I invoke it, it gives me back the following error.
-----------------------
tm_dialog: you have updated the tm_dialog tool to v7 but the Dialog
plug-in running is still at v4.
tm_dialog: either checkout the PlugIns folder from the repository or
remove your checkout of the Support folder.
tm_dialog: if you did checkout the PlugIns folder, you need to
relaunch TextMate to load the new plug-in.
/tmp/temp_textmate.ZcyesN:32:in `load': Cannot parse a NULL or zero-
length data (PropertyListError)
from /tmp/temp_textmate.ZcyesN:32
-----------------------
I'm a TextMate newbe, thus I'm not sure, but from the error message
it seems like I need to update the Dialog.tmplugin file. How can I
fix this ?
Cheers,
Leonardo
I am trying to transfer my personal TM bundle from one computer to
another. I simply copied it into Pristine Copy/Bundles but it will
not open. When I double click on it, I see, "The bundle “Jenny's
Bundle.tmbundle” does not contain the required “info.plist” file (or
that file is corrupt) and can therefore not be installed."
Is there an easy way to fix this for someone who is still a bit of a
newbie?
Cheers,
Jenny
I noticed using TextMate today that when I use either the Docksend
File or Docksend Folder commands of the Transmit bundle, that
Transmit is brought to the foreground. Is there any way to change
this back to where Transmit isn't "popped" to the foreground? I use
Growl for Transmit notifications, so I have no need to watch the
progress in Transmit.
I'm using Version 1.5.4 (1349).
Hello fellow Python Bundle users,
I've been learning more about the Ruby bundle, and I have some ideas on how to make the Python bundle better. Some of them are blatantly stolen from the Ruby bundle, some of them I came up independently myself when I was using BBEdit, and thought they would be useful in the Python bundle.
#1: Create Dictionary From:
I thought Ruby could take the selected text and make a hash out of
it. (looking in the TextMate book now of course I can't find it).
I wrote something similar, turning the following text into a
dictionary:
a = 1
b = 2
--> result: {'a': '1', 'b': '2'}
You'll find my script at the bottom of this email
#2: Support for syntax coloring doctests
Wouldn't it be cool to have doctests syntax colored like code, and
not comments?
Likewise, it looks like the folding marker for Python comments
folds on a blank line. That means folding doesn't work very well
for doctests or comments with blank lines in it.
#3: super() in class snippet
It would be cool if the class snippet inserted super(...) into the
constructor for the class. (Is this possible with clever
mirroring?)
_______________________________
Bugs:
* Evaluate Selection As Python doesn't work
(Traceback (most recent call last):
File "/tmp/temp_textmate.KE9sFL", line 5, in ?
from traceback import format_exc
ImportError: cannot import name format_exc
)
* Documentation For Current Word doesn't work
(global name sh is not defined)
_______________________________
Looking forward to everybody's thoughts on these improvements!,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
_____________________________________________________________________
#!/usr/bin/env python
import fileinput
import re
"""
dictMaker takes a formatted string and generates a Python dictionary
from it.
Basically: it's easier to type in my format then to deal with all
the quoting required for dictionary creation
The Format is:
key = value
NOTE that at this time quotes are made around the values. So if you're
strings just don't add them (elsewise just find and replace the extra
quotes)
"""
a = re.compile("(\w+) = (.+)")
output = {}
for my_line in fileinput.input():
mtch = a.search(my_line)
output[ mtch.group(1) ] = mtch.group(2)
print output
_____________________________________________________________________
Hey everyone,
Is anyone working on JSP bundle and/or syntax file?
Does anyone work with JSP's in TextMate on the list?
I'd love to get my hands on one if it's out there, otherwise I might
be interested in working with someone on creating one. I'm new to
JSP's and creating syntax definitions though.
-Brian
––––––––––––––––––––––––––––––––––––
Brian Landau
UNC - Chapel Hill
School of Library and Information Science (SILS)
http://www.claimid.com/brianjlandau
AIM: Zippi Bat
––––––––––––––––––––––––––––––––––––
Settings:
Language: Blog - Markdown
Shell Variable: / Value:
TM_BLOG_FORMAT markdown
TM_BLOG-MODE wp
Problem:
Images drag and drop into the file and upload to server
The new file with new headers is in HTML rather than Markdown
When I fetch post it also returns in HTML, I want to work in Markdown
If I drag and drop another image to the HTML it does not convert on
posting
Questions:
How do I set so the post comes back in Markdown?
and
How can I alternate between html and markdown in the Blog Post
(Markdown) template?
Hi,
Some weeks ago I wrote this ruby script that works inside a TextMate
command to build a list of references declared in Latex files and let
the user select the reference he wants to insert in the text:
-----------------------
#!/usr/bin/env ruby -wKU
SUPPORT = ENV['TM_SUPPORT_PATH']
DIALOG = SUPPORT + '/bin/tm_dialog'
require SUPPORT + '/lib/escape'
require SUPPORT + '/lib/plist'
require 'pathname'
require 'find'
refs = []
Find.find(ENV['TM_PROJECT_DIRECTORY']) do |f|
file_name = File.basename(f)
if /\.(tex)$/ =~ file_name
File.open(file_name,"r") do |infile|
infile.each_line do |line|
if line =~ /.*\label\{.*/
line = line.gsub(/.*\label\{(.*)\}.*/, '\1').chomp
refs << {
'title' => line,
'code' => "\\ref{#{line}}"
}
end
end
end
end
end
abort if refs.empty?
plist = { "menuItems" => refs }.to_plist
res = PropertyList::load(`#{e_sh DIALOG} -up #{e_sh plist}`)
abort unless res.has_key? "selectedMenuItem"
print %(#{res["selectedMenuItem"]['code']})
-----------------------
Since the last updates (both of TextMate and its bundles), the script
does not work anymore.
When I invoke it, it gives me back the following error.
-----------------------
tm_dialog: you have updated the tm_dialog tool to v7 but the Dialog
plug-in running is still at v4.
tm_dialog: either checkout the PlugIns folder from the repository or
remove your checkout of the Support folder.
tm_dialog: if you did checkout the PlugIns folder, you need to
relaunch TextMate to load the new plug-in.
/tmp/temp_textmate.ZcyesN:32:in `load': Cannot parse a NULL or zero-
length data (PropertyListError)
from /tmp/temp_textmate.ZcyesN:32
-----------------------
I'm a TextMate newbe, thus I'm not sure, but from the error message
it seems like I need to update the Dialog.tmplugin file. How can I
fix this ?
Cheers,
Leonardo
I have written a replacement command for the C Library Bundle and placed
in the C Bundle. Type at least the first letter in the function you want
to autocomplete and hit ctrl-M, this will bring up a menu where you can
choose which function you want to complete.
The completions are stored in the file CLib.txt.gz, add that file to the
Support folder in the C Bundle in. The completions where taken from the
(now removed) C Library Bundle running the following command in the
Snippet folder.
ruby -e "Dir[\"*\"].each do |name| puts
open(name).read.match(/content<\/key>\n\s*<string>(.*)/)[1] end"
if for some reason CLib.txt.gz is to large for the list use that to
generate CLib.txt and gzip it.
Is there any way I can build a latex document and show only errors?
I'm currently getting a lot of warnings, and these are obscuring the
errors themselves.
Help file reads:
Image uploading - simply drag an image into the TextMate editor
window. The image is then uploaded to your blogging installation with
the correct URL now inserted into your document.
http://5thirtyone.com/archives/648 says:
Image uploading - simply drag an image into the TextMate editor
window. The image is then uploaded to your blogging installation with
the correct URL now inserted into your document.
Does this mean if I drag an image file into the textmate Blog Post
Markdown file that when I upload it will change the url to ../
wp_content/uploads/file_name.jpg
Or do I have to upload the image and manual edit the link before
posting.
I tried without ftping the image or editing the link and posted as a
draft and the wp edit window still shows the desktop location.
Using the Post Blog Markdown template
Post to blog leaves the > tags in front of block quotes and # in from
of headers
I am posting while still in Markdown mode
If I convert to HTML everything disappears except for the title.
To work around: I have been creating the post in Markdown converting
to HTML and then manually cutting and pasting to a new doc in post
blog markdown format.
I must be doing something wrong this is not efficient. I seemed to
work fine day before yesterday.
Posting to Wordpress blog on my site
Should I be using Markdown or MultiMarkdown as language?
Do I have to post to blog in HTML or shouldn't markdown work?
I get the error below when I try to run a command lookup (control-
shift-option L) in Markdown mode. I never did a Plugins checkout
(and don't know how to do so). What's the best way to fix this?
Thanks,
Ernest
tm_dialog: you have updated the tm_dialog tool to v6 but the Dialog
plug-in running is still at v4.
tm_dialog: either checkout the PlugIns folder from the repository or
remove your checkout of the Support folder.
tm_dialog: if you did checkout the PlugIns folder, you need to
relaunch TextMate to load the new plug-in.
/Users/ernest/Library/Application Support/TextMate/Support/lib/
dialog.rb:34:in `initialize': No such dialog ()
(TextMate::WindowNotFound)
} for command: /Users/ernest/Library/Application\ Support/TextMate/
Support/bin/tm_dialog -a -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\>details\</key\>'
'\ \<string\>\</string\>'
'\ \<key\>isIndeterminate\</key\>'
'\ \<true/\>'
'\ \<key\>summary\</key\>'
'\ \<string\>Asking\ Google\ for\ the\ link\</string\>'
'\ \<key\>title\</key\>'
'\ \<string\>Feeling\ Lucky\</string\>'
'\</dict\>'
'\</plist\>'
' ProgressDialog.nib from /Users/ernest/Library/Application Support/
TextMate/Support/lib/dialog.rb:17:in `new'
from /Users/ernest/Library/Application Support/TextMate/Support/lib/
dialog.rb:17:in `dialog'
from /Users/ernest/Library/Application Support/TextMate/Support/lib/
progress.rb:39:in `call_with_progress'
from /tmp/temp_textmate.Qqxuxz:5
Hello all,
Let me explain my use-case first. One of my projects uses code from an open source group, and I have this code in the same TM project as my group's own code. This works great, except when I run the TODO bundle. TODO picks up all the notes from the open source group, stuff really not relevant to my particular work - I just want to see notes for my group's code. You could use this to skip over log files/folders too, or whatever else you wanted in your TM project but not looked at by TODO.
To accomplish this goal I modified the TODO bundle to skip over files whose path matches a TODO_IGNORE_PATTERN grep.
The patch is attached, I hope this is useful to other people (and/or makes it into the todo bundle in subversion ;) )
Hope this helps,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
Hi,
I'm getting the following error with the svn bundle when I try to
view the log - any clues?
reason: undefined method `text' for nil:NilClass
trace:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_log_xml.rb:22:in `author'
(erb):32
/opt/local/lib/ruby/1.8/rexml/element.rb:939:in `each'
/opt/local/lib/ruby/1.8/rexml/xpath.rb:53:in `each'
/opt/local/lib/ruby/1.8/rexml/element.rb:939:in `each'
/opt/local/lib/ruby/1.8/rexml/element.rb:398:in `each_element'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_log_xml.rb:18:in `each_entry'
(erb):28
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/format_log_xml.rb:165
Thanks
---
Jeremy Wilkins
I just started looking more into the SQL bundle and using it to
execute the statements I'm creating but I keep getting an error in
the results display saying that it can't find mysql — and it, of
course, lists all the places it looked.
Is it possible to set the mysql path in the shell variables or is
there something else I have to do so TM can find my mysql?
Thanks,
Mike Stickel
Screenflicker Developments
http://screenflicker.com | http://gonecksgo.com
e: mike(a)screenflicker.com
Hallo,
I've got a file with a LOT of lines that match the following regular
expression:
([0-9]+);([^;]+);([0-9]+);([0-9.]+);\n
But within that file there are a few lines that don't match (in
various ways) and I've got to find those lines. Is there a way to
tell TextMate: "Find everything that DOESN'T match the given regular
expression"?
Kind regards,
Tobias Jung
Hi!
I just wanted to start using GTDalt but the iCal-sync just gives the
message that it will take a while and ends w/out any errors after a
few seconds. In iCal is now one additional calendar called GTDalt and
that's it, not one for each context specified in TM_GTD_CONTEXTS.
Does anyone have an idea how I can hunt down the failure or what I'm
doing wrong?
Niels
Hello list,
I thought I'd like to work through some
screencasts today. I was interested in
tm_dialog with the Interface Builder.
Now there are some problems in my environment.
First there was a problem that I use version 5
and I should have used version 6.
I've copied the tm_dialog from /Library/Application Support/...
into the Textmate.app/...
When I call tm_dialog test.nib/ with an very early version
out of the screencast it doesn't show an empty window?!
Could someone give me a hint?
Thanks.
Regards
Karl-Heinz
Within a snippet, I am trying to prefix the $TM_PROJECT_DIRECTORY
to a file name in applescript (but I am not sure how TM environment
variables & files are concatenated into the applescript world?).
In essence, the file textmatetostata.do is created (from
textmate) by default in the $TM_PROJECT_DIRECTORY. The problem is
that when stata activates it cannot find it - since it opens in a
different directory by default.
What I am trying to do is as below: (but this is failing!)
query=${TM_SELECTED_TEXT:-$TM_CURRENT_LINE}
echo "$query" > textmatetostata.do
osascript -e "tell application \"Stata\"
activate
open POSIX file {$TM_PROJECT_DIRECTORY} & \"textmatetostata.do\"
end tell"
- thanks
danstan
i checked the list archives, and i didn't see a definite answer on
this one..
whenever i do a migration in rails, i get this error message:
bash: line 1: selected_theme: command not found cat: /Applications/
TextMate.app/Contents/SharedSupport/Support/css/webpreview.css: No
such file or directory
along with a broken image link..
anyone have any ideas?
thanks!
___
peace,
sergio
photographer, journalist, visionary
www.coffee-black.com
I've found a problem with the syntax highlighting in the LaTeX bundle.
I use the Cobalt theme, and normally the argument of a citation
command such as `\citeauthor` appears in purple. However, I have the
following line in a document I am writing:
\section{\citeauthor{kager:1999}'s analysis}
The arguments to section commands normally show up gold-colored for
me, and "analysis" appropriately does so here. However, the
`kager:1999` part also does, which I believe is incorrect since it is
not part of the actual section title but rather a bibliography keyword
and thus should be purple.
Not a huge problem, but I wanted to point it out. I would fix it if I
had time to learn TextMate's grammar system -- as I said, I'm
currently writing a paper. :-)
OK, I seem to have answered my own question :-). In case it helps
anyone else, here are the steps I needed to take to get the Blogging
Bundle working with ExpressionEngine (1.5.1).
There are two problems with using the Blogging bundle with EE. The
first is that the blog id is not in the same format in the endpoint
URL as standard metaweblog endpoint urls. It looks something like
this:
http://mydomain.com/pathtoEE/index.php?ACT=25&id=1, where id=x is the blog id.
The second is that the date format returned by XMLRPC isn't parsed
properly by the the ruby parser.rb (I'm using ruby 1.8.4), because it
has a Z on the end of the time string. So, to fix it, make the
following changes:
1. Edit /usr/lib/ruby/1.8/xmlrpc/parser.rb (the path may be different
depending on where you installed Ruby), line 87 to read:
if str =~ /^(-?\d\d\d\d)(\d\d)(\d\d)T(\d\d):(\d\d):(\d\d)Z?$/ then
Note the extra Z? near the end of the regular expression.
2. blogging.rb, line 167 onwards:
if @endpoint =~ /#(.+)/
@blog_id = $1
elsif @endpoint =~ /&id=(.+)/ # EE format of blog id in endpoint
@blog_id = $1
else
@blog_id = "0"
end
That seems to do the trick for me. It would be sensible to copy the
Blogging bundle and save the new one under a new name, and with a new
UUID in info.plist, I guess.
Hope that helps anyone else using EE.
Jackie
Hello,
My first enthusiasm got an immediate stopper. After switching the
language environment to English and installing the newest version of
R (2.40), I was able to calculate 100^2 using the R bundle command R
> Console > Execute Selection. Here is the result:
100^2
[1] 0
>
Now, I wanted to do the following calculation 1/1e-1 and thats the
answer:
1/1e-1
Fehler: syntax error
>
Of course the same calculation leads to the correct result when done
in the R console. Does anybody on this list have an idea what
happened here? - Obviously I have not entirely got rid of the German
localization in R. But is this likely the problem? Now it appears to
be an error message generated by R rather than by AppleScript or
whatsoever. I am lost.
May be, I need to trash R entirely, which I thought I had. Or is
there an alternative way to go (without R). Which bundle should I
look up if I wanted to write my own bundle for doing very simple math
(I don't know anything about ruby etc)?
JJ
I recently sent an email to the MacTeX mailing list, in response to
someone's question about what each editor for LateX has going for
them. It is a long post talking about some of the major things in the
bundle, so I thought it might be of interest/useful to some people in
this list. Appended:
Haris
A lot of these things are documented in many places, so to begin with
I will add some links to resources, and then will talk about some of
the things it can do well, IMHO.
1. First and foremost, there are a number of screencasts I've done,
along with blog posts, a lot of them on the LaTeX bundle. They are here:
http://skiadas.dcostanet.net/afterthought/list-of-my-textmate-pages/
Also see here for more TextMate screencasts: http://macromates.com/
screencasts
2. The online TextMate manual is a key resource of information. There
you can learn about:
1. snippets (http://macromates.com/textmate/manual/
snippets#snippets). These are easy to create yourself for common
repeatable code (and so much more).
2. project navigation (http://macromates.com/textmate/manual/
working_with_multiple_files#moving_between_files_with_grace)
3. Find and Replace in multiple files (option regexp included)
(http://macromates.com/textmate/manual/
working_with_multiple_files#find_and_replace_in_projects)
4. Navigating within a single file (http://macromates.com/textmate/
manual/navigation_overview#navigation_overview)
5. Moving text (http://macromates.com/textmate/manual/
working_with_text#moving_text)
6. Setting up your preferred color arrangement via themes: (http://
macromates.com/textmate/manual/themes#themes)
Now I'll talk about the LaTeX-specific commands in TextMate. I will
not refer to their shortcuts, because you can set these to whatever
you like, though they do have some reasonable defaults. You can see
these commands using ctrl-esc and navigating into the LaTeX bundle.
The help file for the bundle is here, in markdown format: (http://
macromates.com/svn/Bundles/trunk/Bundles/Latex.tmbundle/Support/
help.markdown). From within TextMate this can be accessed through the
Bundle's help command.
Hm, perhaps I should explain what Bundles are very briefly. There is
a core TextMate program, which offers the ability to extend it by
creating Bundles, which are collections of rules, commands and
preferences on how TextMate should act in particular languages. In
some sense a lot of the power of TextMate is in these bundles. The
bundles have a very open license (http://macromates.com/svn/Bundles/
trunk/LICENSE), and are being maintained by a large group of
volunteers. The list of languages supported is quite extensive
(http://macromates.com/svn/Bundles/trunk/Bundles/). The success of
TextMate is largely due to this power it provides to the bundle. It
is easy for people to add functionality to TextMate, in a similar way
as one would add functionality to emacs or vi, with the difference
that it is a lot easier for "newbies" to add functionality.
Ok, on to the bundle then. First of all, you don't need any
customizing to begin with. Dragging a LaTeX document onto the
TextMate icon should just open it with TextMate and set you to LaTeX
mode. To start a new document, you can use the Templates found under
the file menu, or you can start from a scratch file. The moment you
save the file with extension .tex, TextMate will recognize it as a
LaTeX file and color it accordingly.
1. Now first of all, creating environments. TextMate has a command
called "Insert Environment Based On Current Word", triggered by
command-{ (which is command-shift-[ in US keyboards, (command
key=apple key)). You can even use this without a word and it will
offer you a list of environments to insert. If you type in a word
first, then TM creates an environment based on this word. For
instance, typing "en" or "enum" and then the command trigger (cmd-{)
will insert:
\begin{enumerate}
\item
\end{enumerate}
and place the caret right after the \item thing. When you are done
with the first item, pressing Enter (fn-return on laptops) inserts a
newline and a new \item entry. Similar behavior for "it", "item" for
itemize etc. You can further customize this list to your heart's
content by using the "Edit Configuration File" command in the LaTeX
Bundle. For me a typical workflow these days is using the exam class.
The "words" "q", "p" and "sol", followed by command-{, produce the
"questions", "parts" and "solution" environments respectively.
2. There is a similar command for inserting common commands, called
"Insert Command Based On Current Word". This is triggered by
command-}, and functions in a similar way. for instance "l" becomes
"\lim_{}" with the caret inside the braces. Once you are done adding
things there, pressing tab takes you out of the braces.
3. The LaTeX bundle offers context-sensitive completion, via the
common "esc" key. For instance, when typing a command, it will
complete only with respect to commands, and not every word in the
text. It will use any commands you have introduced before, as well as
a stock list of commands. For instance typing "\dis" and pressing
escape converts it to "\displaystyle". Typing "\di" and pressing
escape multiple times cycles through all commands starting with \di.
On the other hand, if you are inside a \ref{}, then it completes with
respect to all keys found in \label{} commands within the current
document or any tex file included in your "root document" (called
master document in TM). Similarly, inside a \cite{} it will offer
completion with respect to all bibliography keys in your bib file and/
or any \bibitem's in your document. Also, option-esc will offer you a
popup of all completion matches, similar to the BibDesk completion
plugin that BibDesk offers (though I think that plugin is a lot
closer to XCode style completion, anyway...).
4. Image drag and drop. You can drag and drop any image into the
text, and an appropriate figure environment will be created, with the
accompanying \includegraphics command. By pressing modifier keys,
option or shift in this instance, you can adjust whether you want the
entire figure environment, or just a simple \begin{center}
\includegraphics...\end{center} thing, or the \includegraphics by
itself. And these can to some extend be customized.
5. Table conversion. You can create a table by first typing the
entries into rows, with columns separated by tabs, like so:
one two three
four five six
and select it and run a command, and it will become:
\begin{tabular}{ccc}
\hline
one & two & three\\
\hline
four & five & six\\
\hline
\end{tabular}
Similarly, you can create a new table with a prescribed number of
rows and columns.
6. Wrapping things. You can tell TextMate to wrap the current
selection in a command. Suppose for instance you just typed the
sentence "foo bar" and what to higlight it, so to include it in
\emph. In TextMate, you would select it by pressing opt-left arrow
twice, and then press ctrl-shift-w. This results in:
"\emph{foo bar}" with the emph selected, so that you can type another
command in its place. Pressing tab instead moves you past the
closing }. There is a similar functionality for wrapping the
selection in a begin-end environment pair.
7. Changing environments. Suppose you are inside a split environment,
and decide to change it to aligned. In TM, you would press ctrl-
option-E, and then just type in the environment name, and both \begin
and \end entries get fixed. Similarly, there is a command to toggle
the presence of a * in the environment, like turning {equation} to
{equation*} and back.
8. Project Outline command. I recently added this command. It offers
you an HTML, clickable outline of your project, much like a table of
contents. Clicking on any section title takes you to the
corresponding section.
9. Special Beamer setting. You can set the language grammar to LaTeX
Beamer, which causes some commands to have particular behavior
related to beamer. For instance, the commands inserting a new \item
also add an overlay specification to it.
10. You can quickly turn a list of of lines into an itemize or
enumerate environment, by selecting them and running the command ctrl-
shift-L.
11. This is a general feature of TextMate that I found worth
mentioning, it's very useful. It has a columnar editing mode, where
you can for instance select a bunch of lines and add the same text at
the beginning of each line. For instance with the three lines:
foo
bar
baz
we could move the caret at the beginning of the first line, then
shift-down twice, and then press option for columnar insertion. Now
typing "\item " adds it to all three lines.
Ok, this is probably enough for now, but I would be happy to answer
any other questions you have about TextMate. And you can usually find
me in the irc channel, (irc://irc.freenode.net/#textmate). It is
populated almost all the time by extremely helpful and great people
(I would in fact say it is one of the great things TM has going for it).
Soryu wrote:
> I take it you didn’t have a look at [MultiMarkdown](http://
> fletcher.freeshell.org/wiki/MultiMarkdown)? It is an extended version
> of Markdown and allows for footnotes in general and bibliography
> support.
Soryu, I looked at it earlier and thought it was only for BBedit and
Moving Type. Your message prompted me to look again and I saw the
TextMate Bundle Readme.md. Thank you for response.
I do not think this will thread properly, so I changed my setting
from digest to individual emails and will be able to reply then and
keep the thread unbroken.
Regards,
Lloyd
Using markdown to write drafts for later conversion to html.
Question 1: Any way to reference bibliographical information while in
the research phase of collecting information so a single
bibliographic reference can be linked to multiple notes?
Question 2: I have the posts delivered in a txt digest. How do I
reply so comment is part of the thread?
Thank you,
Lloyd
In C++ mode, what is the correct method to modify
tmthemes such that function declarations written like :
TF Funk(T1 arg1, T2 arg2)
...and...
TF Funk(
T1 arg1,
T2 arg2,)
...or...
TF
Funk(
T1 arg1,
T2 arg2,)
..are rendered identically? or is that even possible?
(TF above is the function return type, possibly more than one
word to include a storage type. T1/T2 above are argument types,
again maybe augmented by an additional word(s) like const or
default assignments).
TIA,
-Shin
(This is my first time contributing, so please be gentle.)
I've found a problem (annoyance?) with the way that the `Typeset &
View (PDF)` command works in the LaTeX bundle. I set
`TM_LATEX_COMPILER` to `latexmk.pl` so that I don't have to deal with
manually running BibTeX and all that, but I also use packages that
depend on PSTricks and thus don't work with pdfLaTeX.
The problem is that while the command normally looks for the presence
of `\usepackage{pstricks}` and then automatically uses `latex` instead
of `pdflatex` for typesetting if appropriate, this does not happen if
the compiler is set to `latexmk.pl`, since the rc file passed to the
latter says to use `pdflatex`.
I've attached a quick and dirty patch to tell `latexmk.pl` to typeset
to PostScript first if PSTricks is detected, which fixes the problem.
The patch also contains a modification to the PSTricks detection part
to add a search for the following packages which depend on it:
* [xyling] [1]
* [pst-asr] [2]
* [OTtablx] [3]
These are packages that I personally frequently use, and it's annoying
to have to manually do a `\usepackage{pstricks}` just for the sake of
telling TextMate it's being used. There's probably a better way to
detect if *any* package uses PSTricks, but it would be cool if this
could be committed for now. Feel free to consider that a completely
selfish request, though maybe there are a few other linguists who
would appreciate it. :-)
Aaron Jacobs
[1]: http://www.ling.uni-potsdam.de/~rvogel/xyling/
[2]: http://www.math.neu.edu/ling/tex/
[3]: http://wso.williams.edu/~nsanders/OTtablx/
well, I'm glad to see thomas tackle bundleforge ;)
IMO, the most important thing actually is allowing for easy sharing of a
bundle and quick updating of the installed bundles -- ideally just a couple of
mouse clicks. easy bundle setup is trivial, and the rest is if secondary
importance: the focus of the server-side development should thus be on sharing
and updating.
then of course you need to take care of the UI, but I'm sure you know better
than me how to handle that! ;)
three good reasons:
* the GetBundle bundle is a solid foundation;
* in the community there is no shortage of server-side programming skills
and, most of all
* we have ten (10!) weeks without an official release, so that we can tinker
with BundleForge!
so... why don't we start doing something? :P if there's any amount of python
code involved, I'm ready to help!
Hello,
I am a plain textmate user and a complete computer/programming illiterate who
searches advice and input from other, potentially more experienced users of
textmate. When writing latex based papers using the wonderful latex bundle I
frequently want to do a quick and simple calculation. Unfortunately, this often
involves other formats than those provided by the existing math bundle and I
have to invoke an external calculator. Would it be possible to extend the math
bundle to normal calculator capabilities? IE providing
exponential/logarhithmic,
power function, trigonometric functions, numbers in ecponential notation
etc. ?
I don't know whether others miss this feature. I would certainly welcome
such extended functionality or some experienced guidance how to achieve the same
functionality with existing bundles. Using the R bundle I tried to send commands
to R, which I found very slow (and not what I would find useful), and also to
execute R on the selection, but only to the effect of receiving an error
message.
JJ
I am the maintainer of the C Library Bundle. I have removed it from
the repository until a better solution can be found. I apologize for
the trouble I have caused, I was unaware of the current practice of
discussing new bundle before adding them to the main repository and
committed my changes without thinking. It was not my intention to
offend any part of this excellent community.
My heartfelt gratitude to those of you who defended me on this list.
I hope that the C Library bundle (or a better replacement) can be
made available to those who may find it useful. If any of you would
like a copy, please contact me and I will make it available (probably
on my .Mac account).
Sincerely,
Steph
I would think this might work:
tell application "TextMate" to activate
tell application "System Events"
tell process "TextMate"
tell menu bar 1
tell menu bar item "Bundles"
tell menu 1
tell menu item "ActionScript"
tell menu 1
tell menu item "Test Movie"
perform action "AXPress"
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
But it seems to give no response. Anyone know how I might do this?
Thanks,
Ben
Hello,
I'm not sure who this stephen fellow is (he's not listed in the wiki
[list of aliases][alias]), but he just committed an absolute monster of
a bundle to the subversion repository, in the form of a "C Library"
bundle consisting of 1299 snippets, each of which takes the name of a
function as a tab trigger, and then fills in a skeleton body for that
library function. I have a few notes about this.
[alias]: http://macromates.com/wiki/Main/Aliases
1. This doesn't really follow Allan's recently posted [style guide][sg]
for bundles, which clearly explains how bundles should be constructed.
Though, to be sure, that style guide needs to be a lot clearer about
what *not* to do. Of note: this bundle falls in the "what not to do"
category.
2. There are a few recently added code completion commands which work
much better, don't require the user to remember the whole function name,
only require one menu item, instead of 1299, don't clog up menus (in
fact they can just be added to the language bundle instead of requiring
a specialized bundle just for snippets), and are pretty much better in
every way.
3. Note: Snippets ARE NOT DESIGNED for GENERIC CODE COMPLETION. This is
not their purpose, and if you do want to use them this way, you should
keep such monstrosities in your personal bundles, and not pollute the
subversion repository with them. If you absolutely positively must
distribute such things, please do it on your own server.
4. Yes, there are similar things in existing bundles, which should be
excised. This includes the OCamlCodeCompletion bundle, and the recently
added ColdFusion bundle. Hopefully something will be done about these soon.
5. I hope it becomes slightly easier to make generic completion commands
in the future, because at the moment, I'm not sure it can be done by a
complete newbie, and it's a useful enough feature that it would be nice
to give even new users such power. Allan is hopefully considering such
things for TextMate 2.0.
6. I'm going to remove this new bundle tomorrow if there isn't a very
compelling reason not to. If anyone wants to pitch in a code completion
bundle which does the same thing, only better, I'm sure the C coders who
use TextMate would be overjoyed. Hopefully it could be made in a
general enough fashion to read in arbitrary new header files (like the
ones included in the current «foo».c file, that is), and complete on
those functions, as well as functions in the usual C libraries (all the
stuff like malloc and printf etc. etc.)
Okay, I think that's all. Hope that didn't come off too strongly. I
don't mean to discourage contributions, but please ask around a bit
before checking in bundles with ~1300 items.
Thanks,
Jacob Rus
I'm looking for help implementing a few features for my screenwriting
bundle.
The features I'm looking to implement are beyond my knowledge, but
I'm sure will be trivial to a ruby-master or something. So if you're
interested in helping me out, please drop me a line and I'll explain
what I want to do.
The reason I don't just ask you how to do these things is that I'm
afraid they might be too basic for this list.
I've always wondered about what kinds of questions are appropriate
for this list. I'm hesitant to ask basic code questions regarding
things I'm trying to do in TextMate but have nothing to do with
TextMare per-se; for example, a complex regexp problem one might have.
Clearly we don't want this list to become littered with help requests
for things that are not directly TextMate-related. But at the same
time, I would never have been able to create the bundle I have
without the patient explanations of so many of the people on this list.
So my question is, where is the line? I'd be curious to know what you
all think.
--oliver
Didn't notice the filename completion until Thomas Aylott mentioned
it in a recent email. Thanks Thomas! One problem though. If I type `/
Users/` and hit control tab I am offered the following options in the
dialogue menu:
Incomplete/
Shared/
~/
I thought the tilde would expand when the path was inserted, but it
didn't. And if I type `/Users/` followed by the first few letters of
the name of my home directory, all that the menu offers me is the
tilde which, again, doesn't expand when the path is inserted.
All the best, Mark
I got a new machine recently and one of the first things I installed
was obviously TextMate. This was before I had installed anything in
(or even created) `/usr/local`. I realized this when TextMate offered
to create the `mate` symlink in `/usr/bin`. No big deal. I declined,
created `/usr/local/bin`, and started TextMate again. It still wanted
to put the link in `/usr/bin` and `/usr/local/bin` didn't appear on
the drop-down list. So, I just choose "Other…" and specified a path.
Still no big deal. It's a one-time operation after all.
But yesterday, I tried to use the Subversion bundle for the first
time on the new machine and it couldn't find `svn`. I typed `echo
$PATH` and hit ⌃R and saw that `/usr/local/bin` hadn't made it to
this list either (while it does appear on another machine I've been
using for a while).
Now, I know I can fix these problems one at a time as they come up
(specify a path for `mate`, set a path in `$TM_SVN`, etc) but I'd
rather not do that. Plus there may be other ramifications that aren't
obvious and I won't know they need fixing. This applies to newly
created users as well, so it seems to be a global thing, but I can't
figure out where. I see nothing in `/Library` that would affect
TextMate and I know Allan has a rule about the app not modifying
itself in `/Applications`.
Does anyone know how to make TextMate generally/globally aware that `/
usr/local/bin` exists now (as though it existed the first time I ran
TextMate)? Thanks in advance.
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
Folks;
I am trying to use the blogging bundle with LiveJournal's XMLRPC interface.
I run through the setup process just fine, but then when I go to
"Fetch Post" , the bundle prompts me for my password correctly and
seems to be starting to connect just fine, but then blows up with the
following:
---
/usr/lib/ruby/1.8/xmlrpc/parser.rb:154:in `fault': wrong
fault-structure: {"faultCode"=>"Client", "faultString"=>"Failed to
access class (metaWeblog): Can't locate metaWeblog.pm in @INC (@INC
contains:) at (eval 334)[/usr/share/perl5/SOAP/Lite.pm:2261] line
3.\n"} (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:562:in `tag_end'
from /usr/lib/ruby/1.8/rexml/parsers/streamparser.rb:26:in `parse'
from /usr/lib/ruby/1.8/rexml/document.rb:171:in `parse_stream'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:722:in `parse'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:462:in `parseMethodResponse'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:410:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/metaweblog.rb:31:in
`getRecentPosts'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:547:in
`fetch'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in
`popen'
from /Library/Application
Support/TextMate/Support/lib/progress.rb:11:in `call_with_progress'
from /Library/Application
Support/TextMate/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:546:in
`fetch'
from /tmp/temp_textmate.wBuvVB:3
--
Do I need to install some special Perl module somewhere?
Thanks!
-Chris
--
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail: cpatti(a)gmail.com
"The greatest dangers to liberty lurk in insidious encroachment by men of
zeal,well-meaning but without understanding."-- Justice Louis O. Brandeis
(Olmstead vs. United States)
⌘R seems to be broken for Perl scripts at the moment. After an svn
up in /Library/Application Support/TextMate/Bundles attempts to run a
Perl script yield
/Library/Application Support/TextMate/Bundles/Perl.tmbundle/Support/
PerlMate/perlmate.rb:1:in `require': no such file to load -- /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/
scriptmate (LoadError) from /Library/Application Support/TextMate/
Bundles/Perl.tmbundle/Support/PerlMate/perlmate.rb:1
Is it just me?
--
Andy Armstrong, hexten.net
Hi,
I have a small question.
If I write a command which should do something with highlighted text
of my current document I can specify within the myCommand.tmCommand
the plist key 'inputFormat' as 'xml' (e.g. Create HTML from Document).
OK.
But now I want to write a script which should be called by the Web
Preview option 'Pipe text through'. Here I don't get the content of my
current document with xml markups for syntax highlighting.
Is there a way without changing TM's source code to receive these xml markups?
Many thanks in advance !!!!!!!!!! ;)
Hans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
This is a test signed message because subtleGradient insisted I send
one more to the list.
If you aren't subtleGradient, you can ignore this.
Oh, and I'll try and remember to stop sending signed messages to the
list in the future.
--
Kevin Ballard
http://kevin.sb.org
kevin(a)sb.org
http://www.tildesoft.com
Hi Haris
Trouble: I do the following.
1-quit and relaunch tm (just to be sure)
2-create a New from template GTD file, the default Sample is ok
3-save as untitled.gtd on the desktop
4-add some garbage text at the top of the file (before the first project).
(Now Haris you will say: my fault, since nothing is expected to
work with extraneous text. Anyway)
5-execute the Current Actions command; it works
perfectly.
6-click on an action in the HTML window: the WRONG action
is selected in the gdt window. The selected lined is off
by the number of extraneous added lines, so this must be some
simple problem in the ruby script. I know it's my fault, but
surely you know how to fix it easily.....
Request: what about recurring events/actions?
I know, you will say GTD is not for this kind of
stuff, we have remind (or iCal) etc etc, but, please?
Let me show you an example: a permanent project
"pay taxes". I can put in it all kind of recurrent taxes;
each one has a due date, which is the same every year;
moreover, I would like to remember about it in advance,
say, two weeks. It would be so nice to just write e.g.
2006-12-20+1Ya2W
which means, due on December 20, every year, please
start nagging me 2 weeks in advance.
Maybe this is pushing too much the GTD bundle? (but
it should certainly be a pleasure to code ;)
Thanks,
Piero
On Dec 5, 2006, at 10:23 AM, Lloyd Williams wrote:
> Kevin, I am sorry but I do not understand the two replies. Please
> explain. I am not a programmer. I am a writer who likes the power
> of TextMate. Thank you. Lloyd
Lloyd,
I am sympathetic: I too am mostly a writer who understands only a
little of what transpires on this list. That said, Kevin is
describing to you ways of getting from MarkDown/MultiMarkDown to PDF
using only free and open source materials. In this case, he is
recommending that you use a converter to transform your MarkDown
formatted files into LaTeX files. Think of Latex -- I hate doing all
the capitals, so you only get them once -- as another form of markup,
like HTML or MarkDown. It is a very precise form of markup long used
by many in the sciences for getting the kind of outputs that others
had access to only when word processers developed robust page-layout
capabilities became widely available.
There are a wide variety of Latex installations available, you need
only google Latex and Mac to discover them, or perhaps someone on
this list will point you to a package particularly easily adapted/
adopted by a newbie.
I can't help you there. I use Mellel when projects get to be a of
certain structure or size.
I do enjoy doing a lot of writing in TextMate using the MarkDown
formats, if only I could get some form of code-folding -- I've been
meaning to ask this list about the possibility of using two returns
as a way to cue the end of header and how one would include that
within the parsing language in the bundle. (One of my goals for next
year is to teach myself PERL -- I'm a folklorist, so PERL's language-
oriented abilities are useful in and of themselves.)
I hope this helps. My apologies for blurting out my own question in
the middle of my answer. I will re-post it if it doesn't make any
sense at another time on this list.
john
I googled for it but I didn't find the correct answer.
Is it possible to control TM via AppleScript à la
tell app "TextMate"
activate
end tell
tell app "System Events"
tell process "TextMate.app"
tell menu bar 1
tell menu bar item "Help"
tell menu "Help"
click menu item "Release Notes"
end tell
end tell
end tell
end tell
end tell
I tried several things but I couldn't find a solution and it seems to
me that this is not possible.
Many thanks for every hint.
-Hans
I'm starting to want to edit every possible piece of text in my
system with TextMate. I use DevonThinkPro for certain things, and
type a lot of stuff into its Rich Text page type, but when I then do
Edit in TextMate, it comes in as Plain Text. All I want from the
RichText is to occasionally make something bold or change the font
size. Is there a page type in TextMate that will let me do that and
then save it back to DevonThinkPro and look correct there?
Thanks,
Ernest
Greetings,
I'm in the process of evaluating TextMate. Needless to
say, great.
Some of my work involves Mathematica. I have this
ambitious notion that TM with TerminalMate
(eventually) can be used to interface with the M'ca
computational engine.
What's missing is a tmbundle to start. I'm assuming
getting to the point of just highlighting syntax is
doable.
Typically, efficient M'ca is Lispish, with recursive
headers, eg, Header1[Header2[Header3 ]]] And the
bracketing syntax is pretty well formed:
(term) parentheses for grouping
f[x] square brackets for functions
{a, b, c} curly braces for lists
v[[i]] double brackets for indexing
//
Can someone point me in the right direction wrt an
existing bundle that has similar syntax so that I can
independently figure this out?(MatLab, btw, is largely
imperative.)
Is this a waste of time I wonder?
It seems that people have had sporadic success with TM
in the functional space. Someone feel free to correct
me.
//
Also, does anyone have suggestions about navigating
between multiline functions in C++? The syntax
highlighting/function hopping does not work in those
cases.
Thanks!
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
Hello. I have a tab trigger specified in latex, but it doesn't
appear to work any longer. It is set in the snippet to have a tab
trigger, and I am in the right scope, i believe (text.latex).
Moreover, it used to work. Is there some meta preference that I may
have turned off?
Kevin if it would be easier you may send it directly to my email at
wlw3(a)mac.com. Sorry for being so difficult. I do not understand why I
can read all the others and not your. I also can not figure how to
reply and keep it in the thread.
Thank you,
Lloyd
Will you please resend me your original response from Tue Dec 5
16:09:54 GMT 2006.
I do not have it and everyone else was quoting and referencing it.
Thank you,
Lloyd
Kevin,
I am reading these from the TxMt archives on the web with both
FireFox and Safari and every message you have posted has looks the
same as the one I sent to you. All the other messages are readable.
Thought you would want to know.
Lloyd
Yes this appears fine. Could you please resend your original
comments. Thank you,
Lloyd
Ok, I'm going to guess that my attached signature was causing a
problem. Something is scrubbing messages before they get to you - I
don't know if it's the listserver's digest mode, or if it's something
about your mailserver. In any case, please tell me if this message
appears fine.
On Dec 5, 2006, at 3:53 PM, Lloyd Williams wrote:
> Kevin if it would be easier you may send it directly to my email at
> wlw3 at mac.com. Sorry for being so difficult. I do not understand
why
> I can read all the others and not your. I also can not figure how
> to reply and keep it in the thread.
--
Kevin Ballard
http://kevin.sb.org
kevin at sb.orghttp://www.tildesoft.com
The following is how the message appears to me. I can read all the
other posts with out problem.
Kevin Ballard kevin at sb.org
Tue Dec 5 19:58:36 GMT 2006
* Previous message: [TxMt] Footer for Preview Print other than
Prince 5.1
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Skipped content of type multipart/alternative-------------- next part
--------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2432 bytes
Desc: not available
Url : http://comox.textdrive.com/pipermail/textmate/attachments/
20061205/bfe7519e/smime.bin
Hello Kevin,
Sorry for my confusion. I never got your message and still do not
have it. the only thing that came to me was the following:
Skipped content of type multipart/alternative-------------- next part
--------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2432 bytes
Desc: not available
Url : http://comox.textdrive.com/pipermail/textmate/attachments/
20061205/26e0bf1e/smime.bin
Kevin it seems from John's email that your response was full of
information I missed. If you or someone would please resend it. Thank
you.
James thank you for the info on MultiMarkdown I will look that up.
John thank you for your explanation. I feel like an idiot here. I am
still trying to learn how to respond to the email digest.
Skiadas thank you I will check out the links.
Thank you everyone for all your help and please excuse my lack of
experience and poor protocol.
Lloyd
Oookay.. I know this has to be easy :p but I can't figure it out.
My project drawer on one of my projects has suddenly decided to be on the
right side instead of the left. It always used to be on the left. I'm sure I
accidentally hit some key combination that did it-- but for the life of me I
can't find how to change it back and it's driving me insane :)
Anyone know how to fix? Thanks :)
How does Textmate use ruby (or how does it invoke it)?
I've got the 1.8.5 binary installed in /usr/local/bin/ and that's
definitely executable by me.
Thanks -
Jordan
Kevin replied December 5, 2006 10:10:42 AM CST:
It sounds like your ruby binary isn't executable by you.
On Dec 5, 2006, at 10:28 AM, Jordan von Kluck wrote:
As of late, anytime I use most any of the bundles items in TextMate I
get the following as output: "env: ruby: Permission denied".
I'm running the latest version of TextMate(r1324) on 10.3.9 and
haven't done anything wild and crazy to my ruby installation except
update it to 1.8.5 from the install that comes with 10.3.
I've tried setting a shell variable in TextMate for the proper
path to ruby and mucking around with the permissions and ownership of
ruby to no avail.
Does anyone have any idea what I've managed to break?
--
Kevin Ballard
http://kevin.sb.org
kevin(a)sb.org
http://www.tildesoft.com
That's my point - the movement commands used to be the OSX standard,
but now they've changed. I'm aware of what the various combinations
do, I'm asking why they changed all of a sudden, and how I can change
them back to the way they used to work. Control+Arrow used to move to
the beginning or the end of the line, and still does in every other
app on my system.
I'd rather not have to un-learn the key combinations and learn the new
ones, as I've gotten quite used to the way it used to work - it's more
muscle memory than conscious action by now!
Cheers,
-- Chris Sternal-Johnson
---------- Original message ----------
From: Charilaos Skiadas <skiadas(a)hanover.edu>
To: TextMate users <textmate(a)lists.macromates.com>
Date: Mon, 4 Dec 2006 23:34:13 -0500
Subject: Re: [TxMt] weird glitch - apple & option/control keys not
working as expected?
On Dec 4, 2006, at 8:47 PM, Chris Sternal-Johnson wrote:
> Hey fellow Texmaters,
>
> I've run into a strange glitch - I must have done something to cause
> it, but I can't for the life of me figure out what.
>
> I use the Apple & Option/Control keys to move around a lot, but
> somehow they've become switched around, and only in Textmate. All
> other apps work right - Option+Arrow moves one word, Control+Arrow
> moves to the beginning or end of the line - but in Textmate the Apple
> key moves to the beginning or end of the line and the Option+Control
> keys both move a single word at a time.
>
> Any idea why?
command + left-right arrow: beginning-end of line
option + left-right arrow: moving by word
ctrl + left-right arrow: Subword movement
Subword movement works by stopping at every capital letter within the
word, as well as at underscores. Try it with:
thisIsCool
and with
this_is_cool
Haris
Kevin, I am sorry but I do not understand the two replies. Please
explain. I am not a programmer. I am a writer who likes the power of
TextMate. Thank you. Lloyd
Hi everyone -
As of late, anytime I use most any of the bundles items in TextMate I
get the following as output: "env: ruby: Permission denied".
I'm running the latest version of TextMate(r1324) on 10.3.9 and
haven't done anything wild and crazy to my ruby installation except
update it to 1.8.5 from the install that comes with 10.3.
I've tried setting a shell variable in TextMate for the proper path to
ruby and mucking around with the permissions and ownership of ruby to
no avail.
Does anyone have any idea what I've managed to break?
Thank you very much-
Jordan von Kluck
Hi, I have tried to write at my blog with textMate but appears an
error message:
2006-12-02 21:50:53.716 CocoaDialog[1711] Can't open input server
/Library/InputManagers/Smart Crash Reports.bundle
Any suggestion?
Thank you.
Hi,
I did an error!!! I posted something ridiculous to http://
pastie.textmate.org.
",NFD("たaaäÄüß $s\n"));
Äá
How can I delete this? Or who can delete this?
Sorry for that but pressed the wrong button!!!!!
Thanks,
Hans
I currently have two similar bundles in the repository, GTD and
GTD2. I would like to replace GTD with GTD2 (users could still get
GTD by manually checking it out of the repository). The purpose
being to simplify some of the confusion over which GTD bundle is
which. The question is, "is anyone still using the original GTD and
does not want to switch to GTD2? Thanks.
Mike
I would like to propose following change to the "comment line/
selection" command in the source bundle.
If the cursor is placed on an empty line, I get the nice "# " at the
beginning, but the cursor is placed in front of this.
Can someone change it, so the cursor is placed after the space after
the "#" if the line was empty before?
I couln'd figure out quickly how it can be done in the bundle editor,
but I guss its quite simple
Thanks
Thomas
Hey fellow Texmaters,
I've run into a strange glitch - I must have done something to cause
it, but I can't for the life of me figure out what.
I use the Apple & Option/Control keys to move around a lot, but
somehow they've become switched around, and only in Textmate. All
other apps work right - Option+Arrow moves one word, Control+Arrow
moves to the beginning or end of the line - but in Textmate the Apple
key moves to the beginning or end of the line and the Option+Control
keys both move a single word at a time.
Any idea why?
--
Chris Sternal-Johnson
cj(a)ceejayoz.com
Hello,
I am trying my TextMate with a new test blog at http://
fnino.wordpress.com
All my posts (many times the same one...) are made with TextMate, so
configuration seems ok.
The "preview" of the post is ok as well.
However, all my posts are sent exactly as they appear in textmate;
that is, with the original markup *without*
conversion to HTML (I tested both markdown and textile, same
behaviour). I even posted an image showing this in a post, but the
image is not shown as it is not
interpreted as HTML. I am not sure if this is a bundle (Blogging)
problem or a TextMate problems. It is probably
a stupid thing I forgot to do (but what ??).
Any ideas someone ? Thanks,
Fernando
I'm trying to learn about writing useful snippets for things I do often. It
looks like I need some conceptual help. For example, I use this snippet:
<tr>
<td><cite>${1:title}</cite></td>
<td>${2:composer}<br />
arr:${3:arranger}</td>
</tr>
</table>$0
with a tab trigger of </table>
already helps a lot when building tables of works performed. It nicely gets
rid of the ending </table> and inserts another set when I press tab at the
end of the snippet.
That worked so well I got greedy. I'd like to cause the snippet to force the
title be Title Case.
A second interest is an easy way to get rid of the break and the arranger
when the piece doesn't have one without killing the ability to use a tab
trigger at the end. I can use lots of deletes. Is there a better way.
Fascinating tool, TextMate.
Lewy
PS: I'm having trouble getting posts into the list. If this is a duplicate,
please forgive me.
I just picked up Yummy FTP from Macappaday for free
(www.macappaday.com), 5000 copies available.
It interfaces perfectly with TextMate and you can replace most of the
Transmit commands just by changing Transmit to Yummy FTP. It uses a
lot less CPU on my machine and I seem to get faster transfer rates.
It supports remote editing and file syncing and just about everything
I've ever used Transmit for. If you can score a free copy, I would
do it.
Just thought I'd share.
Brett
Hi,
here is a **suggestion** to format Perl's error messages a bit better:
-some highlighting stuff
-hyperlinks for errors given as 'at FILE line X' (works with current
script and also for errors coming from other scripts)
PLEASE forgive my Ruby syntax! I'm just learning ;)
BTW Would it be worth to think about a general css for outputting
errors as HTML coming from scriptmate?
Cheers,
Hans
how can I change, where TM places the log file? It currently creates
textmate_bundle.log in my home directory, which is kind of annoying
to me. (I could maybe make it invisible?)
can I change the place this log is saved to?
Thomas Krajacic
If anyone's interested, I hacked together support for BibDesk
bibliography completion using tm_dialog, without using osascript.
I've posted it at <http://homepage.mac.com/amaxwell> as Completion.zip.
We'll have support for this in the next nightly build of BibDesk
(BibDesk-20061123.dmg). If anyone's interested in trying it before
then, and possibly giving feedback, I posted a build of BibDesk from
current sources at the same location. I don't know Ruby, and
suggestions on improving the command are welcome.
Source for the program is available on request; I'll likely upload it
to BibDesk's svn repository as an example at some point.
regards,
Adam Maxwell
Hi
I have been blogging at wordpress without problem. Suddenly today,
I started getting the following error with fetch post (& almost
similar error with post). I am running the most recent cutting edge
build of TM (1349).
Any help would be most appreciated..
/usr/lib/ruby/1.8/xmlrpc/client.rb:551:in `do_rpc': Wrong size. Was
11418, should be <unknown> (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/metaweblog.rb:31:in `getRecentPosts'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:547:in `fetch'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:546:in `popen'
from /Library/Application Support/TextMate/Support/lib/progress.rb:
11:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.bAle6r:3
Thanks
danstan
I'm trying to learn about writing useful snippets for things I do often. It
looks like I need some conceptual help. For example, I use this snippet:
<tr>
<td><cite>${1:title}</cite></td>
<td>${2:composer}<br />
arr:${3:arranger}</td>
</tr>
</table>$0
with a tab trigger of </table>
already helps a lot when building tables of works performed. It nicely gets
rid of the ending </table> and inserts another set when I press tab at the
end of the snippet.
That worked so well I got greedy. I'd like to cause the snippet to force the
title be Title Case.
A second interest is an easy way to get rid of the break and the arranger
when the piece doesn't have one without killing the ability to use a tab
trigger at the end. I can use lots of deletes. Is there a better way.
Fascinating tool, TextMate.
Lewy
I'm trying to learn about writing useful snippets for things I do often. It
looks like I need some conceptual help. For example, I use this snippet:
<tr>
> <td><cite>${1:title}</cite></td>
> <td>${2:composer}<br />
> arr:${3:arranger}</td>
> </tr>
> </table>$0
>
with a tab trigger of </table>
already helps a lot when building tables of works performed. It nicely gets
rid of the ending </table> and inserts another set when I press tab at the
end of the snippet.
That worked so well I got greedy. I'd like to cause the snippet to force the
title be Title Case.
A second interest is an easy way to get rid of the break and the arranger
when the piece doesn't have one without killing the ability to use a tab
trigger at the end. I can use lots of deletes. Is there a better way.
Fascinating tool, TextMate.
Lewy
Hi there,
when I run the command test movie in the actionscript bundle
Flash displays this:
In file /private/tmp/test.jsfl:
TypeError: flash.getDocumentDOM() has no properties
what I'm missing??
it does that with the current bundle and also with the new updated
bundle by Ale Muñoz (BTW thanks Ale great work!)
Hi there,
I've just commited an updated ActionScript bundle to the SVN repository.
It now includes the ability to compile single .as files using MTASC.
Also, I included XTrace for debugging (I'm loving it :)
Both tools are compiled for PPC & Intel Macs, so you should see a
speed increase if you are using Intel Macs.
More info here:
http://bomberstudios.com/2006/12/02/textmate-and-the-build-with-mtasc-comma…
You are encouraged to play with it and report bugs and/or annoyances.
Post your comments on the blog.
Thanks in advance!
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
Hello All,
I am writing a document un LaTeX and I would like to make a word count. I search online manuals but did not find any word count function... does-it exist ?
Thanks
Francois
I've been using Haml (substitute for RHTML in Rails), and it requires
use of spaces instead of tabs. Is there a way to make .haml files 1)
switch to spaces instead of tabs; and 2) set tab spacing to 2?
Or better ... has anyone worked on a language bundle for Haml?
Thanks
So I am discovering that there are a number of things in a GTD file that can
halt in mid-stream the ical sync.
1) If there is an item listed in the file with the completed tag around it.
This is the biggest problem because when you cross out a to do in ical, then
sync with GTDalt, the syncing process shuts down as soon as the first
completed tag appears in the GTD file.
Here is the error output:
/Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/gtdalt_ical_synchronization.scpt:
execution error: iCal got an error: NSReceiverEvaluationScriptError: 4 (1)
2) If there are two many blank lines between the last to do item in the GTD
file and the tag "end."
3) If the GTD file is not saved prior to ical syncing, I get an error.
Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm using "Documentation for Word / Selection" of the Ruby-bundle
very extensive and so I spotted some problems.
When I load the "Documentation for a Word" with ^H (for example
"include"), then click on a Link (in my example "Module") and then
click on _any_ link, I get a white error page reading "Error: Not
Found"; but for a small moment I can see the new page was loaded. I
tried some things and after removing the following line in the
javascript function "ri" it works for me.
window.location.hash = "actual_output";
But I'm not really sure why, so please could you look into it.
There is also another problem, which annoys me. Sometimes when I
click on a link, then the new content is not displayed. Only after I
use Apple+A to select the hole text, the new page appears.
It appears to happen when the new content is smaller then the old
one, but I'm not really sure. Could you please check this too.
Thanks in advance,
Simon
- ----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFbKhwYRX4BO+zMikRCqdnAJ9GeunV5vm0S467pZLtdTm60zGgogCdHL9D
7FmARF9yVRxo7zQeiHsRrs8=
=daNX
-----END PGP SIGNATURE-----
I've read the documentation and done some searching and haven't found
the answer to this.
For shell init scripts and various other purposes, I'd like to be
able to "type" characters like ⌃[ or ⌃G. You know, the kind of
thing you would precede with ⌃V in the Terminal. It seems that Cocoa
has a key binding for this (NSQuotedKeystrokeBinding, which is ⌃Q by
default), but it is used for another purpose in Textmate. Has the
functionality been remapped or do I need to try to define it for
Textmate myself? It doesn't seem to be set…
rob@kendra ~> defaults read com.macromates.Textmate
NSQuotedKeystrokeBinding
2006-11-29 14:47:10.910 defaults[6713]
The domain/default pair of (com.macromates.Textmate,
NSQuotedKeystrokeBinding) does not exist
On a related note, I'd like to be able to "see" these characters as
well, or perhaps toggle them of and on (with ⌥⌘I ideally). Texmate
is better than most Cocoa apps, as it seems to display a space in
place of such characters instead of nothing at all, but I'd like to
know what that space represents. Has anyone tried enabling
[NSTextShowsControlCharacters][] in Textmate? I'm guessing there
would be undesired side-effects.
Should I have asked these questions before Allan took off? :)
[NSTextShowsControlCharacters]: http://developer.apple.com/
documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/
chapter_9_section_4.html#//apple_ref/doc/uid/20000468-610689
---
Rob
Dear all,
everyone knows that the number of available bundles for TM increases
steadily ;)
In the blog 'Getting More Bundles'
http://macromates.com/blog/archives/2006/08/21/getting-more-bundles/
you can read about the marvelous 'GetBundle' bundle written by
Sebastian Gräßl
and Brian mentioned:
"... What would make this even sweeter is a small summary of what
that bundle does before we download it!"
I believe the easiest way to add such a small summary would be to
include in each bundle root path a structured plain text or html
file, maybe called 'summary' or whatever.
Then it would be possible to read this file (or only a part of it if
it also includes information about author/date/...) and add this to
the GetBundle bundle dialog by using tm_dialog and a nib.
On the other hand this summary file could also be used for searching
a bundle if it contains significant keywords. It is often the case
that I need a function and I cannot find any for my purpose, so I
start to write my own code. And then after spending much time on it,
it turns out that there is already such a similar function. And I
dislike to invent the wheel twice ;)
Furthermore if I go to .../trunk/Bundles it would be possible to add
a link to a 'summary' page which is generated automatically by taking
and formatting all available summary files of each listed bundles to
get an overview of these.
Or similar e.g. to the R-project sites à la http://cran.xedio.de/src/
contrib/PACKAGES.html
Are there any comments on it?
BTW It would also be nice to have meaningful screenshot(s) for each
TM theme available at ../trunk/Themes ;)
Cheers,
Hans
I get this error:
"bash: line 1: selected_theme: command not found cat:
/Users/{myname}/Library/Application
Support/TextMate/Support/css/
webpreview.css: No such file or directory"
when running a Ruby script from Textmate (build 1324, and today's (Nov 17) SVN
checkout for the bundles).
Does anyone have a hint?
Best regards,
Erik van Eykelen
http://railsgigs.com - where start-ups meet developers
Thanks again for this fabulous bundle. A few small issues:
1) I was wondering if you could post the script you wrote in an earlier
version of the bundle for moving the date ahead a day with a keystroke. It
would be very handy for me.
2) When I go into Review--> Current Actions mode, there are check boxes
("Mark") next to each item. If I check one of these, how go I get it to sync
back to my gtd file and make the item as completed.
Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
I posted the following to my blog.
Thanks in advance to all who helps out while I am gone, and thanks to
everyone who has helped in the past!
----------8<----------
Wednesday the 29th of November I am leaving for New Zealand. I will
be gone for no less than 10 weeks, so the return date is the 9th of
February 2007.
While I am gone, I recommend that you send usage questions and
similar to the [mailing list][] or use the [IRC channel][]. And for
problems, be sure to check the [self-help section at the wiki]
[troubleshooting] and skim the [table of contents of the manual][TOC]
for a potential feature you seek.
Should you have a problem with the purchase interface or similar, you
can of course still use the appropriate email addresses at the
[contact page][], as there will be someone handling this while I am
gone.
<!-- ============================================================= -->
[mailing list]: http://lists.macromates.com/mailman/listinfo/textmate
[IRC channel]: irc://irc.freenode.net/##textmate
[contact page]: http://macromates.com/contact
[troubleshooting]: http://macromates.com/wiki/Troubleshooting/HomePage
[TOC]: http://macromates.com/textmate/manual/
Hi,
I know that these items are not so simple to do but would it be
possible to
1) add line numbers to this editor?
Because it would simplify the search for errors for instance.
2) to apply syntax highlighting to this editor?
This would mean to change NSTextField to TM's window object.
Thanks,
Hans
Hi,
I'm using nightly Webkit builds, and now just noticed that "Edit in
TextMate" hack doesn't work with the builds. Does anybody have any
solution? The phrase "Edit in TextMate" is not dimmed, but if tried
to activate, it gives me an alert sound.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
AIM: samuraicoder(a)mac.com
Hi,
this thread follows the discussion in
http://thread.gmane.org/gmane.editors.textmate.general/13806/focus=13806
'run script with args'
In order to be able to control the arguments and STDIN here my
suggestion:
Example for Perl:
#!/usr/bin/env perl -w
#!TMC: STDIN=cat ~/Desktop/test.txt
#!TMC: ARG=1 "2 and 3" /etc/file
#!TMC:end
print join ('-',@ARGV);
print "\n";
@a = <STDIN>;
chomp(@a);
$j=1;
foreach $line (@a) {
print $j++.$line."\n";
}
The actual command line would be: 'cat ~/Desktop/test.txt | /usr/bin/
perl -w 1 "2 and 3" /etc/file
The idea is to specify the values for ARG and STDIN hidden as
comments within the script.
If you want to test several ARGs and STDINs you can write
#!/usr/bin/env perl -w
# !TMC: STDIN=cat ~/Desktop/test.txt
# !TMC: ARG=1 "2 and 3" /etc/file
#!TMC: STDIN = echo -e "A\nB"
#!TMC: ARG = DATA
#!TMC:end
...
By doing so line 5 and 6 are active. You see to change ARG and STDIN
is easy.
Of course, you can think about to use tm_dialog with an history list
or whatever but I believe this is fast and very simple. If you forget
to delete the TMC tags while running this script from Terminal it
doesn't matter. These tags are comments.
For that purpose I add some stuff to scriptmate.rb.
Here some hints:
#parse script for arguments and STDIN pipe data given as comment(s)
#!TMC: ARG= //everything after = is interpreted as
arguments like ARG= one two "three and four" five
#!TMC: STDIN= //everything after = will be executed on
the system and piped to the script like STDIN=cat /PATH/TO/FILE
#!TMC:end //marker to cancel the parsing; the
parsing also ends if ARG _and_ STDIN are set
#
#!TMC: ... //active
# !TMC: ... //not active to have the chance to chooce
#
#known problems:
# for Perl
# piping STDIN: e.g. @a = <>; doesn't work, use instead @a =
<STDIN>;
#
Any comments?
Bye,
Hans
PLEASE forgive my Ruby syntax ;)
Begin forwarded message:
> From: Scott Lahteine <slahteine(a)mac.com>
> Date: 27. Nov 2006 22:55:49 GMT+01:00
> To: textmate-dev(a)lists.macromates.com
> Subject: [SVN] Bundle for Torquescript (2D)
> Reply-To: Bundle developers <textmate-dev(a)lists.macromates.com>
>
> Hi,
>
> I've created a Bundle to support Torquescript, the scripting
> language used by GragageGames' Torque Engine ( http://
> garagegames.com ). The Torque Engine was used to create such games
> as Tribes II and Marble Blast.
>
> Last year GarageGames released Torque Game Builder, a system for
> making 2D games, which also uses the Torquescript language. They
> sell the Indie license for only US$100 and it has been a staggering
> success for them. At GDC 2006 we learned that they're selling about
> 3000 licenses per week.
>
> So far this bundle only supports Torque 2D (Torque Game Builder)
> but I hope to extend it for Torque 3D eventually.
>
> The bundle and documentation are posted here:
> http://thinkyhead.com/pub/Torque2DForTextMate.zip
>
> --
> Scott Lahteine Thinkyhead Software
> scott(a)thinkyhead.com http://www.thinkyhead.com/
>
>
>
>
> _______________________________________________
> textmate-dev mailing list
> textmate-dev(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate-dev
Attached is a little patch to add embedded XML to Perl.
For example:
my $foo = <<XML;
<?xml version="1.0" encoding="UTF-8"?>
<example>foo</example>
XML
Perhaps this option already exists or perhaps it can be a feature request.
When editing files the filename appears in the title bar of the
application. Is it possible to get the full path name displayed at the
top? Many times I'll be working on files of the same name in different
directories and it's a pain to figure out which one is which.
thanks
I gave a talk using TM last Friday and have written a bit about the
way I prepared it
http://advogato.org/person/fxn/diary.html?start=452
I send it to the list in case it is helpful to someone else.
-- fxn
Hello
I have annoying problem while using Textmate to edit and view LaTex
files.
Very frequently, and I have not been able to determine a pattern to
this behavior, I save the current document I'm working on, (apple -
s), then I try to view it, (apple - R), the document is processed by
pdftex fine with no errors, but Textmate complains that "Error: PDF
file not written to disk", even though there are no problems with the
texing.
Here is the exact error message displayed in the "Typeset & View"
window:
<start error message>
Compiling LaTeX…
This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
Typesetting: ./mathmethods.tex
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
Output written on mathmethods.pdf (1 page, 21844 bytes).
mathmethods.log
Error: PDF file not written to disk
<end error message>
I think there might be some issue with the LaTex bundle not parsing
the output of pdftex correctly.
FYI, I have a MacPro, OS 10.4.8
Any ideas???
thanks
Hi all-
Here is a first attempt to make a slightly RefTeX-esque citation
command. I worked it up to fit my writing style a little more: It's
not bound to the cite context, so you invoke it after typing, say, a
last name or a word from a title. It will prompt for any of a set of
citation formats (many of which will require natbib to typeset), and
then complete the cite with the existing cite completion command.
Output is as a snippet so you can tab through to add page numbers or
additional citekeys (invoke it again while within a cite command, and
it will skip the format selection and prompt for another citekey
match -- though that breaks the ability to tab out of the cite
command). I like it.
It's a quick hackup, and improvements/suggestions are welcome --- but
it scratches an itch, for now. I'd like to have a default of \cite,
for example, so you can invoke it and just hit enter to move right
past the format selection and on to citekey completion.
Cheers-
-Alan
I have discovered a couple of oddities in the Python language grammar:
Function names containing digits are not handled the same as functions names that do not contain digits. You can see this by looking at how the following code is highlighted:
def foo(self):
pass
def foo2(self):
pass
I have not spent much time studying TextMate language grammars yet, but it appears that the "begin" regular expression for meta.function.python should be modified to allow digits in the function name.
Type names are highlighted as type names even in contexts where they couldn't possibly be type names. For example, in:
foo.set(x)
the member function "set" is highlighted as if it were a type.
A negative look-behind RE could distinguish this specific case. I don't know how many other such cases are lurking in Python.
One could argue that it's bad practice to use type names as method names. Probably so, but it's not always avoidable. In particular, "set" wasn't even a type name until recently, and it's used as a method name in the standard library (e.g., in Tkinter). It's also a very nice verb to use as a method name.
Both of these came up while typing in a single recipe from _Python Cookbook_ (Recipe 11.11 from the 2nd Edition). I hope that's not typical. Syntax coloring needs to be *more* reliable than eyeballing the code.
-Paul
paul(a)mustbeart.com
Could someone tell me how to show the groups and files as shown in
the following
http://media.nextangle.com/textmate/tabs_and_running.mov
Thanks in advance
Michael
Also
On Nov 25, 2006, at 8:28 AM, textmate-request(a)lists.macromates.com
wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/mailman/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
> Today's Topics:
>
> 1. Re : [TxMt] Word Count ? (Francois)
> 2. Re: tiny feature request: selection scheme (Allan Odgaard)
> 3. Re: center document? (Allan Odgaard)
> 4. Re: Paren matching (Allan Odgaard)
> 5. Re: Fix for Wordpress/Blogging bundle (Date Created) (Martin
> Winter) (Michael Barnum)
>
> From: Francois <francois_75015(a)yahoo.fr>
> Date: November 25, 2006 7:13:55 AM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re : [TxMt] Word Count ?
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Hi Mark,
>
> It Works perfectly. That's excellent. It fits exactly what I needed
>
> Thanks !
>
> F
>
>
> ----- Message d'origine ----
> De : Mark Eli Kalderon <eli(a)markelikalderon.com>
> À : TextMate users <textmate(a)lists.macromates.com>
> Envoyé le : Samedi, 25 Novembre 2006, 12h32mn 35s
> Objet : Re: [TxMt] Word Count ?
>
> You need to generate a pdf to use the enclosed command. Hope this
> helps, Mark
>
>
>
> On 25 Nov 2006, at 11:10, Francois wrote:
>
>> Hello All,
>>
>> I am writing a document un LaTeX and I would like to make a word
>> count. I search online manuals but did not find any word count
>> function... does-it exist ?
>>
>> Thanks
>>
>> Francois
>>
>>
>>
>> _____________________________________________________________________
>> _
>> For new threads USE THIS: textmate(a)lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
>
>
>
>
>
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: November 25, 2006 7:16:42 AM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] tiny feature request: selection scheme
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 24. Nov 2006, at 17:03, Piero D'Ancona wrote:
>
>> When several commands have the same shortcut a tooltip list
>> appears and one has to scroll down and then hit enter to choose one.
>
> It’s a standard menu -- not much I can do with it (without
> venturing into under documented, crash-prone, and OS version-
> specific Carbon code).
>
>> Wouldn't it be convenient if by default the topmost element in the
>> list would be selected?
>> This way, it would be sufficient to hit enter in order to choose
>> the first element (one keypress
>> less in many cases).
>
> As someone else mentioned, it is possible to press 1 to select
> first item w/o using return.
>
>
>
>
>
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: November 25, 2006 7:20:53 AM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] center document?
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 23. Nov 2006, at 23:49, Xavier Noria wrote:
>
>> I would like to write a command to center the document content in
>> the editor window. Think a boxed title in Keynote. Is there a way
>> to know the window height in lines? I dumped the environment and
>> saw no relevant variable.
>
> There’s currently no such variable. TM_COLUMNS is btw the wrap
> margin, or in case of a column selection, the number of columns
> selected. So the width of the window is technically also missing.
>
> I won’t add this right away, but it might not be bad to have them.
>
>
>
>
>
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: November 25, 2006 7:21:40 AM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Paren matching
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 24. Nov 2006, at 16:48, Emmanuel Turquin wrote:
>
>> Is their a way to change the (too short for me) time during which
>> the matching paren. is highlighted?
>
> There is not, sorry.
>
> Currently the editor is blocked while it does the highlight, so a
> longer ‘flash’ becomes irritating -- long-term the behavior will
> change.
>
>
>
>
>
> From: Michael Barnum <mbarnum(a)gmail.com>
> Date: November 25, 2006 8:27:19 AM EST
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Re: Fix for Wordpress/Blogging bundle (Date
> Created) (Martin Winter)
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Hello ALL
>
> Does anyone know if the fix for wordpress actually work?
>
>
> Thanks
> On Nov 24, 2006, at 5:27 PM, textmate-request(a)lists.macromates.com
> wrote:
>
>> Send textmate mailing list submissions to
>> textmate(a)lists.macromates.com
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.macromates.com/mailman/listinfo/textmate
>> or, via email, send a message with subject or body 'help' to
>> textmate-request(a)lists.macromates.com
>>
>> You can reach the person managing the list at
>> textmate-owner(a)lists.macromates.com
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of textmate digest..."
>> Today's Topics:
>>
>> 1. Paren matching (Emmanuel Turquin)
>> 2. tiny feature request: selection scheme (Piero D'Ancona)
>> 3. Re: tiny feature request: selection scheme (Jenny Harrison)
>> 4. Fix for Wordpress/Blogging bundle (Date Created) (Martin
>> Winter)
>> 5. Re: tiny feature request: selection scheme (Charilaos Skiadas)
>> 6. Re: [OT] quicksilver omniweb plug-in (Rob McBroom)
>> 7. Re: tiny feature request: selection scheme (Piero D'Ancona)
>> 8. Re: Re: My stab at a reftex-ish style citation command
>> (Alan Schussman)
>> 9. Re: center document? (Jacob Rus)
>> 10. Re: Bibliography Completion Broken? (Charilaos Skiadas)
>>
>> From: Emmanuel Turquin <emmanuel(a)turquin.org>
>> Date: November 24, 2006 10:48:55 AM EST
>> To: TextMate users <textmate(a)lists.macromates.com>
>> Subject: [TxMt] Paren matching
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> Hi all,
>>
>> Is their a way to change the (too short for me) time during which
>> the matching paren. is highlighted? Tks in advance,
>>
>> Emmanuel
>>
>>
>>
>>
>>
>> From: Piero D'Ancona <pierodancona(a)gmail.com>
>> Date: November 24, 2006 11:03:05 AM EST
>> To: textmate(a)lists.macromates.com
>> Subject: [TxMt] tiny feature request: selection scheme
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> Hi Allan,
>> this got buried in another thread so I'm reposting.
>>
>> When several commands have the same shortcut
>> a tooltip list appears and one has to scroll down
>> and then hit enter to choose one.
>>
>> Wouldn't it be convenient if by default
>> the topmost element in the list would be selected?
>> This way, it would be sufficient to hit enter
>> in order to choose the first element (one keypress
>> less in many cases).
>> But maybe you have reasons not to like this idea.
>>
>> Thanks,
>> Piero
>>
>>
>>
>>
>>
>>
>>
>> From: Jenny Harrison <harrison(a)Math.Berkeley.EDU>
>> Date: November 24, 2006 11:43:14 AM EST
>> To: TextMate users <textmate(a)lists.macromates.com>
>> Subject: Re: [TxMt] tiny feature request: selection scheme
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>>
>>
>> On Nov 24, 2006, at 8:03 AM, Piero D'Ancona wrote:
>>
>>> Hi Allan,
>>> this got buried in another thread so I'm reposting.
>>>
>>> When several commands have the same shortcut
>>> a tooltip list appears and one has to scroll down
>>> and then hit enter to choose one.
>>>
>>> Wouldn't it be convenient if by default
>>> the topmost element in the list would be selected?
>>> This way, it would be sufficient to hit enter
>>> in order to choose the first element (one keypress
>>> less in many cases).
>>> But maybe you have reasons not to like this idea.
>>>
>>> Thanks,
>>> Piero
>>>
>>
>> While we are asking for stocking stuffers, it would be even nicer
>> if this topmost element were dynamic -- the previous choice one made!
>>
>> Jenny
>>
>>>
>>>
>>> ____________________________________________________________________
>>> __
>>> 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
>>
>>
>> From: Martin Winter <mw.01(a)web.de>
>> Date: November 24, 2006 12:57:06 PM EST
>> To: textmate(a)lists.macromates.com
>> Subject: [TxMt] Fix for Wordpress/Blogging bundle (Date Created)
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> Hello all,
>>
>> I'm a new TextMate user and just joined this list. I use Wordpress
>> and am located in timezone +0100, so I found it very annoying not
>> to be able to specify my post dates right from TextMate. After
>> some digging around in the Wordpress code, I think I found a quick
>> fix to this problem (which has to do with the way Wordpress
>> converts dates in regard to timezones).
>>
>> Application of the fix is described here:
>>
>> http://macromates.com/wiki/Blogging/WordPress
>>
>> I would appreciate feedback (on this list or privately) if you
>> should encounter errors.
>>
>> Enjoy,
>> Martin
>>
>>
>>
>> From: Charilaos Skiadas <skiadas(a)hanover.edu>
>> Date: November 24, 2006 1:02:45 PM EST
>> To: TextMate users <textmate(a)lists.macromates.com>
>> Subject: Re: [TxMt] tiny feature request: selection scheme
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> On Nov 24, 2006, at 11:03 AM, Piero D'Ancona wrote:
>>
>>> Hi Allan,
>>> this got buried in another thread so I'm reposting.
>>>
>>> When several commands have the same shortcut
>>> a tooltip list appears and one has to scroll down
>>> and then hit enter to choose one.
>>
>> The first 10 options are associated to numbers, so you can press a
>> number to pick an option immediately. Also, you can type the first
>> couple of letters of your desired choice, and will be taken then.
>>
>> Unless I misunderstood what menu we are talking about.
>>
>> Haris
>>
>>
>>
>>
>>
>>
>> From: Rob McBroom <textmate(a)skurfer.com>
>> Date: November 24, 2006 1:25:15 PM EST
>> To: TextMate users <textmate(a)lists.macromates.com>
>> Subject: Re: [TxMt] [OT] quicksilver omniweb plug-in
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> On Nov 23, 2006, at 5:59 PM, Grant Hollingworth wrote:
>>
>>> Allan, is there any chance of recompiling the plug-in as a
>>> universal binary? Is the source available anywhere?
>>>
>>> The bookmarks catalogue works, but the history doesn't.
>>
>> FYI, the search shortcuts aren't being picked up either, but I
>> imagine recompiling will take care of that as well.
>>
>> And this post may be off topic, but I appreciate it. I was
>> planning to figure out the problem with the OmniWeb plugin today
>> and now I don't have to.
>>
>> ---
>> Rob
>> <http://www.skurfer.com/>
>>
>>
>>
>>
>>
>>
>> From: Piero D'Ancona <pierodancona(a)gmail.com>
>> Date: November 24, 2006 4:32:01 PM EST
>> To: textmate(a)lists.macromates.com
>> Subject: [TxMt] Re: tiny feature request: selection scheme
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> Charilaos Skiadas <skiadas@...> writes:
>>>
>>> The first 10 options are associated to numbers, so you can press a
>>> number to pick an option immediately. Also, you can type the first
>>> couple of letters of your desired choice, and will be taken then.
>>>
>>> Unless I misunderstood what menu we are talking about.
>>
>> Right, that's pretty close :)
>> Pressing enter is faster but we are talking
>> fractions of a second here
>>
>>
>>
>>
>>
>> From: Alan Schussman <alan(a)schussman.com>
>> Date: November 24, 2006 4:39:24 PM EST
>> To: TextMate users <textmate(a)lists.macromates.com>
>> Subject: Re: [TxMt] Re: My stab at a reftex-ish style citation
>> command
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> On Nov 23, 2006, at 12:05 PM, Piero D'Ancona wrote:
>>
>>> Simply outstanding! This is the best citation chooser
>>> ever (better than RefTeX, don't be modest).
>>
>> It's really just an add-on to the already-good citekey completion
>> -- shoulders of giants and all. And I'm pretty sure RefTeX is
>> still a whole lot smarter than I am, but I'm glad you like it.
>>
>> -Alan
>>
>>
>>
>>
>>
>> From: Jacob Rus <jrus(a)hcs.harvard.edu>
>> Date: November 24, 2006 5:21:50 PM EST
>> To: textmate(a)lists.macromates.com
>> Subject: [TxMt] Re: center document?
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> Xavier Noria wrote:
>>> I would like to write a command to center the document content in
>>> the editor window. Think a boxed title in Keynote. Is there a way
>>> to know the window height in lines? I dumped the environment and
>>> saw no relevant variable.
>>
>> Did you try pressing ⌃L? It should work in any Cocoa Text widget,
>> including TextMate's. ;)
>>
>>
>>
>>
>>
>> From: Charilaos Skiadas <skiadas(a)hanover.edu>
>> Date: November 24, 2006 5:27:03 PM EST
>> To: TextMate users <textmate(a)lists.macromates.com>
>> Subject: Re: [TxMt] Bibliography Completion Broken?
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> On Nov 22, 2006, at 1:54 PM, Charilaos Skiadas wrote:
>>
>>> This will unfortunately be affecting many users, in fact every
>>> LaTeX user wanting to use the completion commands, that's why I
>>> wanted to write a longer description ;).
>>> Glad to hear it's working!
>>>
>>> Chances are that now your path in the shell looks a bit longer
>>> than it used to ;)
>>>
>> As per my suggestion of creating/editing ~/.MacOSX/
>> environment.plist, please do not do so if your path looks
>> significantly different than mine. To minimize the dangers of this
>> change, ideally the path you set in environment.plist should
>> consist of "/bin:/sbin:/usr/bin:/usr/sbin:" followed by the path
>> to the tex executables. Don't leave any things like /sw/bin or /
>> opt/local/bin in there. Hopefully in the future you would not need
>> to create/edit this file by setting its PATH at all.
>>
>> The problem is that this file is read by ALL GUI apps, including
>> things like installers, which might not expect that PATH to be set
>> there, and some technical issues might result from that. As long
>> as the path you put there is a typical path, with the four
>> directories described above plus the one for TeX, you should be
>> OK. In any case the other parts of your path will still be there
>> when you run things from the command line.
>>
>> Also, make sure there are no tabs at the beginning of the path,
>> and no returns at the end. The line should really just have
>> <string> followed immediately by the /bin... stuff, and then that
>> stuff should be followed immediately by </string>.
>>
>>> Haris
>>
>> Haris
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/mailman/listinfo/textmate
>
> Once you go MAC, you'll never look back
> mbarnum(a)gmail.com
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
Once you go MAC, you'll never look back
mbarnum(a)gmail.com
For those trying out the Backpack bundle, I've discovered several
undocumented features in the Backpack API, including some functions
that allow for list manipulation. I've added a command to the bundle
that allows for viewing of lists in a tree format like the View\Edit
Notes command. Select a page->list->see the list items. No editing
of list items or checking off yet, but this has opened some great
possibilities for GTD integration. I can now take a GTD file and
create a page, sectioning the projects into lists and allowing you to
check off your GTD items remotely and sync when you're back at your
main computer. That's the next step, anyway. I'm getting some great
feedback from Haris regarding how it should function, so I'm
structuring things around my own needs and the requirements of GTDAlt
integration.
I've set up a Subversion account with the help of Ale Muňoz so you
can update to the latest version by:
cd ~/Library/Application Support/TextMate/Bundles/
svn co http://svn.sofanaranja.com/projects/brettbundles/trunk/Bundles/
Backpack.tmbundle
That will get you to the latest version, which is 8 right now.
Direct Download available at:
http://blog.circlesixdesign.com/2006/11/25/backpack-bundle-adds-list-
support/
Brett
Hello ALL
Does anyone know if the fix for wordpress actually work?
Thanks
On Nov 24, 2006, at 5:27 PM, textmate-request(a)lists.macromates.com
wrote:
> Send textmate mailing list submissions to
> textmate(a)lists.macromates.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.macromates.com/mailman/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> textmate-request(a)lists.macromates.com
>
> You can reach the person managing the list at
> textmate-owner(a)lists.macromates.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
> Today's Topics:
>
> 1. Paren matching (Emmanuel Turquin)
> 2. tiny feature request: selection scheme (Piero D'Ancona)
> 3. Re: tiny feature request: selection scheme (Jenny Harrison)
> 4. Fix for Wordpress/Blogging bundle (Date Created) (Martin Winter)
> 5. Re: tiny feature request: selection scheme (Charilaos Skiadas)
> 6. Re: [OT] quicksilver omniweb plug-in (Rob McBroom)
> 7. Re: tiny feature request: selection scheme (Piero D'Ancona)
> 8. Re: Re: My stab at a reftex-ish style citation command
> (Alan Schussman)
> 9. Re: center document? (Jacob Rus)
> 10. Re: Bibliography Completion Broken? (Charilaos Skiadas)
>
> From: Emmanuel Turquin <emmanuel(a)turquin.org>
> Date: November 24, 2006 10:48:55 AM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Paren matching
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Hi all,
>
> Is their a way to change the (too short for me) time during which
> the matching paren. is highlighted? Tks in advance,
>
> Emmanuel
>
>
>
>
>
> From: Piero D'Ancona <pierodancona(a)gmail.com>
> Date: November 24, 2006 11:03:05 AM EST
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] tiny feature request: selection scheme
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Hi Allan,
> this got buried in another thread so I'm reposting.
>
> When several commands have the same shortcut
> a tooltip list appears and one has to scroll down
> and then hit enter to choose one.
>
> Wouldn't it be convenient if by default
> the topmost element in the list would be selected?
> This way, it would be sufficient to hit enter
> in order to choose the first element (one keypress
> less in many cases).
> But maybe you have reasons not to like this idea.
>
> Thanks,
> Piero
>
>
>
>
>
>
>
> From: Jenny Harrison <harrison(a)Math.Berkeley.EDU>
> Date: November 24, 2006 11:43:14 AM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] tiny feature request: selection scheme
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
>
>
> On Nov 24, 2006, at 8:03 AM, Piero D'Ancona wrote:
>
>> Hi Allan,
>> this got buried in another thread so I'm reposting.
>>
>> When several commands have the same shortcut
>> a tooltip list appears and one has to scroll down
>> and then hit enter to choose one.
>>
>> Wouldn't it be convenient if by default
>> the topmost element in the list would be selected?
>> This way, it would be sufficient to hit enter
>> in order to choose the first element (one keypress
>> less in many cases).
>> But maybe you have reasons not to like this idea.
>>
>> Thanks,
>> Piero
>>
>
> While we are asking for stocking stuffers, it would be even nicer
> if this topmost element were dynamic -- the previous choice one made!
>
> Jenny
>
>>
>>
>> _____________________________________________________________________
>> _
>> 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
>
>
> From: Martin Winter <mw.01(a)web.de>
> Date: November 24, 2006 12:57:06 PM EST
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Fix for Wordpress/Blogging bundle (Date Created)
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Hello all,
>
> I'm a new TextMate user and just joined this list. I use Wordpress
> and am located in timezone +0100, so I found it very annoying not
> to be able to specify my post dates right from TextMate. After some
> digging around in the Wordpress code, I think I found a quick fix
> to this problem (which has to do with the way Wordpress converts
> dates in regard to timezones).
>
> Application of the fix is described here:
>
> http://macromates.com/wiki/Blogging/WordPress
>
> I would appreciate feedback (on this list or privately) if you
> should encounter errors.
>
> Enjoy,
> Martin
>
>
>
> From: Charilaos Skiadas <skiadas(a)hanover.edu>
> Date: November 24, 2006 1:02:45 PM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] tiny feature request: selection scheme
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On Nov 24, 2006, at 11:03 AM, Piero D'Ancona wrote:
>
>> Hi Allan,
>> this got buried in another thread so I'm reposting.
>>
>> When several commands have the same shortcut
>> a tooltip list appears and one has to scroll down
>> and then hit enter to choose one.
>
> The first 10 options are associated to numbers, so you can press a
> number to pick an option immediately. Also, you can type the first
> couple of letters of your desired choice, and will be taken then.
>
> Unless I misunderstood what menu we are talking about.
>
> Haris
>
>
>
>
>
>
> From: Rob McBroom <textmate(a)skurfer.com>
> Date: November 24, 2006 1:25:15 PM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] [OT] quicksilver omniweb plug-in
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On Nov 23, 2006, at 5:59 PM, Grant Hollingworth wrote:
>
>> Allan, is there any chance of recompiling the plug-in as a
>> universal binary? Is the source available anywhere?
>>
>> The bookmarks catalogue works, but the history doesn't.
>
> FYI, the search shortcuts aren't being picked up either, but I
> imagine recompiling will take care of that as well.
>
> And this post may be off topic, but I appreciate it. I was planning
> to figure out the problem with the OmniWeb plugin today and now I
> don't have to.
>
> ---
> Rob
> <http://www.skurfer.com/>
>
>
>
>
>
>
> From: Piero D'Ancona <pierodancona(a)gmail.com>
> Date: November 24, 2006 4:32:01 PM EST
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Re: tiny feature request: selection scheme
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Charilaos Skiadas <skiadas@...> writes:
>>
>> The first 10 options are associated to numbers, so you can press a
>> number to pick an option immediately. Also, you can type the first
>> couple of letters of your desired choice, and will be taken then.
>>
>> Unless I misunderstood what menu we are talking about.
>
> Right, that's pretty close :)
> Pressing enter is faster but we are talking
> fractions of a second here
>
>
>
>
>
> From: Alan Schussman <alan(a)schussman.com>
> Date: November 24, 2006 4:39:24 PM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Re: My stab at a reftex-ish style citation command
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On Nov 23, 2006, at 12:05 PM, Piero D'Ancona wrote:
>
>> Simply outstanding! This is the best citation chooser
>> ever (better than RefTeX, don't be modest).
>
> It's really just an add-on to the already-good citekey completion
> -- shoulders of giants and all. And I'm pretty sure RefTeX is still
> a whole lot smarter than I am, but I'm glad you like it.
>
> -Alan
>
>
>
>
>
> From: Jacob Rus <jrus(a)hcs.harvard.edu>
> Date: November 24, 2006 5:21:50 PM EST
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Re: center document?
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Xavier Noria wrote:
>> I would like to write a command to center the document content in
>> the editor window. Think a boxed title in Keynote. Is there a way
>> to know the window height in lines? I dumped the environment and
>> saw no relevant variable.
>
> Did you try pressing ⌃L? It should work in any Cocoa Text widget,
> including TextMate's. ;)
>
>
>
>
>
> From: Charilaos Skiadas <skiadas(a)hanover.edu>
> Date: November 24, 2006 5:27:03 PM EST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Bibliography Completion Broken?
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On Nov 22, 2006, at 1:54 PM, Charilaos Skiadas wrote:
>
>> This will unfortunately be affecting many users, in fact every
>> LaTeX user wanting to use the completion commands, that's why I
>> wanted to write a longer description ;).
>> Glad to hear it's working!
>>
>> Chances are that now your path in the shell looks a bit longer
>> than it used to ;)
>>
> As per my suggestion of creating/editing ~/.MacOSX/
> environment.plist, please do not do so if your path looks
> significantly different than mine. To minimize the dangers of this
> change, ideally the path you set in environment.plist should
> consist of "/bin:/sbin:/usr/bin:/usr/sbin:" followed by the path to
> the tex executables. Don't leave any things like /sw/bin or /opt/
> local/bin in there. Hopefully in the future you would not need to
> create/edit this file by setting its PATH at all.
>
> The problem is that this file is read by ALL GUI apps, including
> things like installers, which might not expect that PATH to be set
> there, and some technical issues might result from that. As long as
> the path you put there is a typical path, with the four directories
> described above plus the one for TeX, you should be OK. In any case
> the other parts of your path will still be there when you run
> things from the command line.
>
> Also, make sure there are no tabs at the beginning of the path, and
> no returns at the end. The line should really just have <string>
> followed immediately by the /bin... stuff, and then that stuff
> should be followed immediately by </string>.
>
>> Haris
>
> Haris
>
>
>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate
Once you go MAC, you'll never look back
mbarnum(a)gmail.com
I am accustomed to using my text editor to peek at arbitrary files.
TextMate is great for that, except when the file in question is a
special TextMate file such as foo.tmLanguage or foo.tmCommand. I'd
like to see a way to open these files as plain text. Or is there one
I've missed?
Of course the command-line "mate" needs to support this too.
-Paul
I seem to have a similar problem to Jaakko (comment number 20 here
[1]) in using the Blogging bundle with ExpressionEngine. I'm pretty
sure that I've got the endpoint URL (MetaWeblogAPI) and the
credentials right, because the same ones work fine from MarsEdit. I
get the following error when I try to fetch posts:
"Error retrieving posts. Check your configuration and try again."
Curiously, if I try to load the endpoint URL in a browser, I get the
following error:
"faultCode 105 faultString XML error: Invalid document end at line 1"
but as I said, I can post from MarsEdit without any problem. Has
anyone had any success using the Blogging bundle with
ExpressionEngine?
cheers,
Jackie
[1] http://macromates.com/blog/archives/2006/06/19/blogging-from-textmate/
I would like to write a command to center the document content in the
editor window. Think a boxed title in Keynote. Is there a way to know
the window height in lines? I dumped the environment and saw no
relevant variable.
Hi Allan,
this got buried in another thread so I'm reposting.
When several commands have the same shortcut
a tooltip list appears and one has to scroll down
and then hit enter to choose one.
Wouldn't it be convenient if by default
the topmost element in the list would be selected?
This way, it would be sufficient to hit enter
in order to choose the first element (one keypress
less in many cases).
But maybe you have reasons not to like this idea.
Thanks,
Piero
Hi Mark,
It Works perfectly. That's excellent. It fits exactly what I needed
Thanks !
F
----- Message d'origine ----
De : Mark Eli Kalderon <eli(a)markelikalderon.com>
À : TextMate users <textmate(a)lists.macromates.com>
Envoyé le : Samedi, 25 Novembre 2006, 12h32mn 35s
Objet : Re: [TxMt] Word Count ?
You need to generate a pdf to use the enclosed command. Hope this
helps, Mark
On 25 Nov 2006, at 11:10, Francois wrote:
> Hello All,
>
> I am writing a document un LaTeX and I would like to make a word
> count. I search online manuals but did not find any word count
> function... does-it exist ?
>
> Thanks
>
> Francois
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
Not sure if this has anything to do with the recent update, but the
bibliography completion command seems to be broken. Neither the key
command nor calling it from the LaTeX bundle menu seems to work.
Pretty sure that I haven't done anything to break it since I have
been too busy to play with TM lately ;). Best, Mark
Allan, is there any chance of recompiling the plug-in as a universal binary? Is the source available anywhere?
The bookmarks catalogue works, but the history doesn't.
2006-11-23 15:35:40.018 Quicksilver[1198] *** -[NSBundle load]: Error loading code /Users/grant/Library/Application Support/Quicksilver/PlugIns/OmniWeb Module.qsplugin/Contents/MacOS/OmniWeb Module for bundle /Users/grant/Library/Application Support/Quicksilver/PlugIns/OmniWeb Module.qsplugin, error code 2 (link edit error code 0, error number 0 ())
Sorry to post this here, but there's no obvious email address for your non-TextMate stuff.
Hello all,
I'm a new TextMate user and just joined this list. I use Wordpress
and am located in timezone +0100, so I found it very annoying not to
be able to specify my post dates right from TextMate. After some
digging around in the Wordpress code, I think I found a quick fix to
this problem (which has to do with the way Wordpress converts dates
in regard to timezones).
Application of the fix is described here:
http://macromates.com/wiki/Blogging/WordPress
I would appreciate feedback (on this list or privately) if you should
encounter errors.
Enjoy,
Martin
Sorry to post this, but I've tried google and macosxhints and
couldn't find it.
I recently reinstalled my mac and on the old one, folders appeared
first in the finder when sorting on name. I remember I went into some
system file and changed the name string of "Folder" into "
Folder" (with a space) so that they would get sorted first above all
others. Anyone know anything about this, or have a better solution?
(I promise I will save the hint this time)
Andreas
I figured out how to all-purpose-ify the image drag command. Now
with one command, it can handle multiple situations. If you drag it:
Outside a selector/property (source.css): nothing happens
After a property (meta.property-value.css): inserts url('path/
image.jpg')
Inside of empty parentheses in a property value: inserts 'path/
image.jpg'
Inside of single quotes in a property value: inserts path/image.jpg
Inside a property list, outside a value: inserts a full background:
shortcut tag.
Suggestions welcome.
Brett

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
perlop(3):
The "=>" operator is a synonym for the comma, but forces any word (con-
sisting entirely of word characters) to its left to be interpreted as a
string (as of 5.001). This includes words that might otherwise be con-
sidered a constant or function call.
For example:
{
format => 'html',
server => 'localhost',
}
Currently, 'format' has a scope of support.function.perl, while 'server' is source.perl.
\b\w+\s*=> would match, but would should the scope be? string.quoted.other? And how to give it higher precedence than support.function.perl?
I have the TextMate blog on an RSS subscription but there's a lot
more going on out there. Any chance someone could set up an aggregate
feed?
Cheers,
JC.
BBEdit has a nice feature called Hard Wrap that prompts for a column
width, then hard wraps the selected text to that width. I would like
to do the same thing in TextMate, but it doesn't seem possible. The
Text > Reformat Paragraph command wraps to the window, not a
specified length. Is there another way? Thanks,
Trevor
Hi,
I just tried out the new version of markdown_to_help.rb. It works
perfectly. Many thanks! (Also with images via
echo "<base href='tm-file://${TM_BUNDLE_SUPPORT// /%20}/
help.markdown'>")
Now I have a tiny suggestion for an improvement:
I added a href back to TOC to each jump address. That means if you
click lets say at the TOC entry 3.1.7, it jumps to 3.1.7 BlaBla and
if you click at 3.1.7 it will jump back to TOC. That would increase a
bit the navigation behaviour for large help files for instance. I've
chosen the id=sect_0 as address for TOC.
I attach the modified markdown_to_help.rb to this mail as an example.
Maybe the only thing which should be written better is the style
attribute 'text-decoration:none' (I added it because it looks
better ?). Maybe place this style to the css?
Best,
Hans
Hi all,
Every now and then a new bundle or item comes along that messes up
one of the triggers perfectly committed to muscle memory...
It would be great if there were an easy way to select an item in the
bundle editor based on trigger. For example when the 'shared trigger'
menu shows up, if an entry is selected and alt+Enter is pressed, it
would show in the bundle editor. Or similar when using the new 'key
equivalent' search in the Select Bundle Item window.
Gerd
I have expanded on Jonathan LaCour's TurboGears bundle, mainly adding
in lots of snippets that have (for me) vastly speeded up creating
models and forms in TurboGears. There's not much in there of interest
to anyone not using TG, except for a couple of generic Python snippets
I put in cause I got bored of typing *args, **kwargs.
For TGers, an example of using the form snippets is to type form→ to
create a new form, then field→ to choose and insert a field into it,
then once you get to the validator tab stop type valid→ to choose and
insert a validator. After that you have to manually move to the end
of the field snippet to insert another field, but then you can just
rinse and repeat as necessary.
If, like me, you are often sent a list of fields to be put on a form,
if you copy them one by one in reverse order you will have them in
your paste history and can paste them into the filed names as you go
through using cmd+v for the first and command+shift+v for the others
(does anyone know a command to copy a list into your paste history?).
Anyway, it allows me to knock out a thousand lines of forms in a
couple of hours (admittedly the layout is very javascript-y, so it
could be fitted into a lot less lines). Similar things can be
achieved with models.
Any comments, corrections and additions will be very gratefully received.
Ed
Hello all,
What is the best way to suppress decorators from the Symbol list when
doing Python development?
I'm doing some TurboGears development, which uses Python's decorator
syntax heavily in spots.
In essence, the code looks like this:
@expose()
def foo(self):
pass
@expose()
def bar(self):
pass
@expose()
def baz(self):
pass
The problem is that when I either "Go to Symbol", or click the Symbol
menu, the symbol list is littered with the @expose decorators.
Currently, the Symbol menu looks like this:
@expose
foo(self)
@expose
bar(self)
@expose
baz(self)
I'd prefer for it to look like this instead:
foo(self)
bar(self)
baz(self)
I thought that it would be a matter of subtracting
"meta.function.decorator.python" from the Symbol List scope selector,
but I tried that to no avail. Any advice you can provide is
appreciated
Thanks,
Mike
Hi there.
I've checked in some changes to the ActionScript bundle:
* All "build" commands have been assigned "TextMate Standard"
keystrokes (⌘+R, ⌘+B)
* A "New Function" command with the standard keystroke (⇧+↩) creates a
function with the current word (selected or previous)
Expect a lot of activity in the bundle in the coming days.
Thanks to Allan for the svn account :)
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
Thanks for all the recent improvements!
Some remarks on Build & Run:
- log output from the running program is still messed up (spaces and
tabs are not displayed as intended)
- the progress indicator is somewhat annoying during run
Thanks
Gerd
>What do you get if you open a new document, type "puts `echo $PATH`"
>in the first line and press ctrl-shift-E?
Nothing.
>Also, can you paste your environment.plist file contents?
<?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>PATH</key>
<string>/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/
TeXLive/bin/powerpc-apple-darwin-current</string>
</dict>
</plist>
>Haris
Özgür
--
Özgür Gökmen | og(a)pyromedia.org
Haris: You might like to know that environment.plist doesn't work
with me. Option-esc prints the
following:
\footcite{/Applications/TextMate.app/Contents/SharedSupport/Support/
bin/LatexCitekeys.rb:157:
command not found: kpsewhich -show-path=tex
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
LatexCitekeys.rb:157: command not
found: kpsewhich -show-path=bib
cite-key}
Rebooting does not help either. I will stick with the shell variable
solution.
Özgür
On Nov 22, 2006, at 9:05 PM, Charilaos Skiadas wrote:
> You need to log out and then back in for the change to show up.
--
Özgür Gökmen | og(a)pyromedia.org
Hi All,
Is it possible to call a "Bundle command" from a tm_dialog dialogue ?
--
Best regards,
David Jack Olrik <david(a)olrik.dk> http://david.olrik.dk
GnuPG fingerprint C290 0A4A 0CCC CBA8 2B37 E18D 01D2 F6EF 2E61 9894
["The first rule of Perl club is You do not talk about Perl club"]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've been poking again around in the bundle editor.(Yes the Bundle
editor is very addictive)
The default command : TextMate > create HTML from selection is very
convenient.
However, I had the Idea, to have the same thing as a drag command
(without the styles), so one could just write a post and drag the code
snippets in from The drawer ( file extension code of something)
I tried to replace the variable content of TM_SELECTED_TEXT with
something like :
`cat "TM_DROPPED_FILE"`, but it doesn't output anything just the HTML
tags until the pre tags.
Could it be done easily, using the same requires in RUBY.
That way, one could just write along, while dragging the code in,
without loosing focus of the document window.
Wouldn't that be nice ?
Any Ideas ?
regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFXZ3t8tSzPOYuZvQRAqBxAKCUyKqXu/u/1+fRGh3PV9sDmegZHgCeKOeX
vpft0q1X5hNM2NPdWaBEUNs=
=UmSW
-----END PGP SIGNATURE-----
Hi,
I'm trying to figure out why, when I type something like this:
void foo(int bar,
int baz)
it does not get indented like the manual says it should according to
indentNextLinePattern?
I've also found that this:
if (foo)
printf("blah");
also doesn't get automatically indented.
I'm using Version 1.5.4 (1349) and have done an 'Update All Bundles'
from the 'GetBundle' bundle.
The Indentation Rules preference directly from the C bundle look like
this:
{ decreaseIndentPattern = '(?x)
^ (.*\*/)? \s* \} ( [^}{"'']* \{ | \s* while \s* \( .* )? [;\s]*
(//.*|/\*.*\*/\s*)? $
| ^ \s* (public|private|protected): \s* $
';
increaseIndentPattern = '^.*\{[^}"'']*$|^\s*(public|private|
protected):\s*$';
indentNextLinePattern = '^(?!.*[};:]\s*(//|/\*.*\*/\s*$)).*[^\s;:{}]
\s*$';
unIndentedLinePattern = '^\s*((/\*|\*/|//|#|template\b.*?>(?!\(.*\))|
@protocol|@interface|@implementation|@end).*)?$';
}
I guess this is a two-part question:
1. Why weren't `<` and `>` included as a smartTypingPair for
Markdown? Since
those are the characters used to surround in-line URLs that should
become
clickable links, it seems like it should be there so you could
just highlight
a URL and type `<`. This seems pretty obvious though, so maybe
this pair was
omitted intentionally for some reason I haven't caught onto?
2. Since the scope in Markdown includes `text.html`, why doesn't
that pair
get pulled from the HTML bundle's preferences? Is it because there
are
explicitly defined pairs for a more specific scope in this case
(`text.html.markdown`)?
Just curious. Thanks.
Rob
Hello (sorry for my bad english)
1) Insert a macro applied at a selection :
selection --> \<caret and choice>{selection} --> \macro{selection}
If i want to apply a macro like \fbox or colorbox, i would like to
make this :
i've an expression $\gamma\leq3$ and i want \fbox{$\gamma\leq3$}
i would like to select $\gamma\leq3$ and with a shortcut get this:
\<caret>{$\gamma\leq3$} and now i can write fbox or colorbox ?
I miss the feature ?
2) Is it a possible in a special environment to use a special langage
grammar,
and/or a special coloring syntax and/or a special completion ??
for exemple
\begin{pspicture} .... \end{pdpicture}
or
\begin{tikzpicture} .... \end{tikzpicture}
I give these environments because there are rich with a lot of macros
like beamer, listings
Greetings Alain Matthes
Thanks for the feedback,
Danstan,
The only way I've been able to figure out to run selections is to save
the selection to a temporary file and run the temporary file. Alan
suggested saving the file in /temp/somthing.do, rather than in the
current working directory. I think that makes sense and will give it
a bid. I looked at the R bundle's implementation of running a
selection, and as best I could tell (not very well, granted) it relies
on some AppleScript that Stata doesn't recognize. Simply stealing the
R implementation was my first instinct, but I couldn't get it to work
(which doesn't mean, it can't work, just that I couldn't get it to
work).
Alan,
Thanks for the suggestions, I think I'll probably use both of them,
Tim
I added support for some more valid (if unusual) Perl quoting.
* added <> delimiters for q, qq, qw, qx, m
* allow whitespace before delimiters (broken for s///)
* fixed s[][]
* fixed s()()
I'm a little confused by string.regexp.replaceXXX. Was it intended to replace string.regexp.replace.perl?
Hello there :]
I was always annoyed by this black line in the "Go To Symbol" toolbox :
Damit, it should be gray like in the "Select Bundle Item" toolbox !

In order to fix this, just put the "SymbolChooser.nib" file there :
/Applications/TextMate.app/Contents/Resources/English.lproj/
Confirm the replacement, restart TextMate and enjoy.
Urbanose
Hi,
I've thrown together a language grammar for spotting clichés in text
(attached). I've based the regexp pattern on the list[1] at the Plain
English campaign website. Incidentally, I was prompted to browse the
Plain English website when I read this in the latest release notes:
> When setting shellVariables as a scope dependent preference, it will eclipse
> only those settings (with less specific scope selector) that sets a variable
> also being set by the one with the more specific scope selector.
:-)
I need some advice though, because I've never tried writing a language
grammar before:
1) is the scope text.plain the best one to extend? The intention is
that this grammar is applied to all English text
2) Can I extend text.plain so my grammar gets used when "Plain Text"
is selected in the language selector? At the moment I have to select
"Check for Clichés"
3) Is the name of the selector OK? I chose "meta.cliche"
4) I originally tried the selector name "meta.cliché" but the fonts &
colours highlighting didn't work with that name. I had to drop the
accent. Bug?
Thanks
Jon
[1]: http://www.plainenglish.co.uk/cliches.htm
Hello all,
I've tried creating my own template which consists of two files (a
header & an implementation). It all works fine but when I execute the
template one the implementation file opens up & shows up in the
browser although the header physically exists in the folder -> so I
have to reopen the project to make it show up. I've duplicated my
template from the Singleton Obj-C template and I can't figure it out
why it is misbehaving. Any hints are greatly appreciated.
Kind regards,
M
Hi All,
I'm getting the following error when I use the subversion bundle.
I've not used it for a while but it used to be working fine. Any clues?
/Library/Application Support/TextMate/Bundles/Subversion.tmbundle/
Support/format_status.rb:22:in `require': no such file to load -- /
Users/jebw/Library/Application Support/TextMate/Support/bin/
Builder.rb (LoadError) from /Library/Application Support/TextMate/
Bundles/Subversion.tmbundle/Support/format_status.rb:22
Thanks
---
Jeremy Wilkins
Ibex Internet Ltd
Parkside Business Park
Parkside Rd.
Kendal
Cumbria
LA9 7EN
Tel: 0845 226 8342
Fax: 08718 729374
http://www.ibexinternet.co.uk/
Hi all,
I was wondering about this:
http://e-texteditor.com/blog/2006/textmate_on_windows
Is the account given on the site fully correct? Does anyone see any issues?
Just thought I would ask before I jumped to any conclusions.
-Eric
Hi all,
I'm having a problem with my HTML bundles behavior concerning single
tags and HTML completion. When I use the snippet for inserting a tag,
it inserts the tags properly, but does not automatically include the
trailing slash for single tags like <br> and <meta>. It also doesn't
work when I specify the doctype as XHTML. Has anyone else had this
trouble or has it been previously addressed? I was wondering if, since
the snippet in the bundle is written in Ruby, if the problem could be
with the version of Ruby I have installed on my system.
Thanks
-Ron
For those who care to check it out: http://blog.circlesixdesign.com/
2006/11/22/backpack-bundle-updated/
If you previously used the bundle, please note that you'll need to
run the "Change Backpack Account" command and re-enter your username
and API Key, as the storage mechanism for the key has changed for the
time being. Also note that the "Token" refers to the API Key (found
at the bottom of your "Account" page) and not your user password.
The changelog is included in the post, but I'll give the list of
features here so you can decide if you're interested ;-).
Features
* Stores your username and API key once and allows you to switch
accounts when necessary
Pages:
* Add and remove pages
Reminders:
* Create reminders from selected text or from scratch, using
“Minutes from now” or date picker
* Destroy a single reminder from a popup list
* Destroy multiple reminders from a multi-select dialog
* Select a reminder from a popup list and edit it
* See a list of upcoming reminders sorted by “Today”, “This
week” and “Future” (color coded)
Notes:
* Add selected text or document as a note, or edit a blank note.
Notes are added to a selected page (a page must be selected)
* View/Edit a note from a tree dialog, select a page->note->edit
note and save. Titles can be edited by double clicking. Only last
selected note is updated.
* Destroy note from similar dialog. Allows previewing of notes
so you don’t have to decide by title alone.
Account:
* Change your username and token at any time from a dialog.
I'm looking for ideas and suggestions (and take criticism well, when
it's politely offered).
Hi all -
I hadn't upgraded Textmate in quite a while and just recently did so
(I think I had 1.2, and I'm at 1.5 now - needed to do this to get the
GetBundle Bundle to work) and I noticed that the HTML (PHP) language
selection is gone - now either HTML or PHP is all red, rather than
both languages being colored correctly at the same time. I was
reading a little in the lists and see that PHP is more of a 'top
level' language now, but for those of us who have pages filled with
HTML and PHP I'd love to see these files colored that way they were
before.
For comparison, I have a HTML (ASP) bundle that seems to work like my
old HTML(PHP) bundle. I tried recreating my old bundle using the ASP
one as a guide, but no luck. Can this be remedied? Thanks.
ryan
Hi,
after my successful attempt to output a "designated" test url in
Safari, I'd now like to make a command which shows the rendered html
in a TextMate browser window. That is show _the actual html itself_,
not the browser-interpretation of that html.
My system of scripts and templates generate html. Now I like to see
that output html with nice code coloring in my favorite theme.
I see roughly two solutions: output the result of 'curl "$MY_URL"' in
a TextMate HTML browser window or create a new (html) document from
that output.
I would like the HTML Browser window variant much better.
For (1) because it keeps only one window –i.e. it refreshes itself
when it's already open, instead of opening a 2nd window–, (2) because
I won't be tempted to edit the output HTML, and (3) because when I
might become really smart –for which the changes are extremely slim,
based on previous records ;)– I might be able to give blocks of html
code a href to jump back to the specific code in the specific
template file (I just *love* the TODO bundle. It saved me so much
time. Life has become much more convenient :-))
My first problem is the with output of Apache restarting: it's not
quiet.
I need Apache to restart for all the last versions of my templates to
become effective, but the following code
echo "$PWD" | sudo -S apachectl $APACHE_CMD
(line 43 from apachectlUsingKeychain.sh in Apache Bundle Support
Folder) outputs "Password:", since sudo is asking for that. Is there
a way to make this statement quiet?
2nd, about the Create New Document variant. How to set the scope of
such a newly created document? Right now there is nothing indicating
to TextMate that is might be html, so the output stays unstyled.
Finally on to the core of this email: How to get HTML pretty printed
in a (HTML parsing) browser window?
I am looking at examples like pastie [1] or TextMate Theme Sourcerer
[2]. Are the solutions used in these web 2.0 projects also available
for my TextMate commands?
Best
dirk
[1]: http://pastie.caboo.se/
[2]: http://projects.serenity.de/textmate/codestyler/source.php
Dear all,
here comes my first approach for a BASH function to export
<key>=<value> out from a property list.
#
# exportpl set BASH variables according to the property list <key>=<value>
#
# if <value> is an array tag a BASH array will be returned
# if <value> is a date tag output format YYYY-MM-DDTHH:MM:SSZGMTshift
#
# all variable values are UTF-8 encoded
#
# if a given key is not specified in plist an empty string will be returned
#
# each variable is named TMD_<key> (with prefix TMD_)
#
# Usage:
#
# exportpl <data|file> {key1 key2 key3 ... keyn}
#
# data := string containing valid plist data
# file := plist file [.plist extension is not necessary]
# key1...keyn :=?valid key(s) for plist
#
#
# Examples: ('output' is an array with 8 items)
#
# a)
# KEY=("returnCode" "output")
# . "$TM_BUNDLE_SUPPORT"/bin/exportpl.sh
"$TM_BUNDLE_SUPPORT"/bin/test.plist ${KEY[@]}
# echo $TMD_returnCode
# echo ${TMD_output[0]}
#
#
#
# b)
# . "$TM_BUNDLE_SUPPORT"/bin/exportpl.sh
"$TM_BUNDLE_SUPPORT"/bin/test returnCode output
# echo $TMD_returnCode
# echo ${TMD_output[5]}
#
# c)
# DIA=$( cat "$TM_BUNDLE_SUPPORT"/bin/test.plist | tm_dialog -m test )
# . "$TM_BUNDLE_SUPPORT"/bin/exportpl.sh "$DIA"
# #all key(s) for $DIA are exported
#
What should I add/change/etc. ?
I used the objectC2Perl bridge to parse the plist data. The only thing
I don't know yet whether the perl library 'Foundation' is installed as
default. Tomorrow I will check this at a fresh Mac installation
without 'Developer Toolkit'.
Cheers,
Hans-Jörg
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
when i try to use "Log" I get following error:
(a project is open, and i am in a file, that i just successfully
committed to a svn repository)
anyone knows what could be wrong?
I never installed any bundles. just the default TM install.
NoMethodError
reason: undefined method `text' for nil:NilClass
trace:
/Applications/-moreApplication/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/format_log_xml.rb:22:in `author'
(erb):32
/usr/local/lib/ruby/1.8/rexml/element.rb:939:in `each'
/usr/local/lib/ruby/1.8/rexml/xpath.rb:53:in `each'
/usr/local/lib/ruby/1.8/rexml/element.rb:939:in `each'
/usr/local/lib/ruby/1.8/rexml/element.rb:398:in `each_element'
/Applications/-moreApplication/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/format_log_xml.rb:18:in `each_entry'
(erb):28
/Applications/-moreApplication/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/format_log_xml.rb:165
Hi Michael:
I've put the stuff here: http://xanana.ucsc.edu/xtal/
textmate_extra_bundles.tgz
Please remember this is still rather rough, and I'm not sure I'm
doing things right.
Almost everything I have in this either would work with bash or will
work with trivial modifications (I could change "print" to "echo" and
figure out a workaround to the different array indexing conventions
(zsh defines the first element of an array as having index 1, bash
and every other computer language seem to agree on 0).
So if some of these things were to be incorporated, I suggest that a
separate zsh bundle not be made. bash has become more and more zsh-
like in syntax, and the stuff like [[ condition ]] used in zsh is
already in the Scripting Bundle.
If there is to be a new shell script bundle, I would suggest having
two scripting bundles: One that is Bourne/Korn-like, and one that is
tcsh-like, in its syntax. This is a more natural divide. The current
Scripting Bundle isn't really useful for tcsh scripts apart from the
syntax highlighting and commands. It probably isn't worth the
trouble to have a separate zsh bundle. Most people script in bash.
I like zsh because I learned ksh and it is quite elegant, but isn't
as portable (yet) as bash. I've been happily using (and adding to)
the bash-centric scripting bundle for a couple of months now.
In my zsh bundle, I've got a bunch of shell/osascript snippets. I
think changing print to echo is all that would be needed to make them
bash-compatible (at least the ones I just tested). I don't know if
they would be of general interest, but they permit the scripter to
use some simple OS X gui elements in their shell scripts, which is
kind of entertaining.
I modified the "Run Script" command to permit the user to enter
arguments to the shell script before running it. Although I wrote
the command in zsh, there is no reason why bash or tcsh users can't
use it. Maybe it should be shift-command-R (if that is not taken) to
allow the user the choice.
I also put in some conditional test snippets and a few other generic
things that may or may not be of interest.
HTH,
Bill
William G. Scott
contact info: http://chemistry.ucsc.edu/~wgscott
The problem was that I had a category called out-of-office and evidently it
couldn't handle the hyphens. Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi citizens:
I found myself extensively modifying the Shell Script bundle for zsh-
specific things. I eventually experienced what drunks refer to as a
moment of clarity: Maybe having a separate ZSH bundle would be a
good thing. So I renamed the bundle to zsh, then edited the Shell
Script (bash) Language file, changed scopeName to 'source.zsh', and
then changed all other instances of source.shell to source.zsh in
the Scope Selector window in the other files.
It seems to work, but then when I went to put the default Shell
Script bundle back in, it instead reversed changes I had made in
stuff in the new zsh bundle.
So I deduced I am doing something wrong, that TextMate still
identifies this with the previously named bundle, and the two won't
co-exist until I fix the problem.
However, since I took a rather backward approach, I am not clear on
what else I need to change in order for TextMate to recognize my
attempt at a zsh bundle as something separate from the old Shell
Script bundle. I've made some new bundles de novo, but I an not
clear on how to fix the mess I made here.
Thanks.
Bill
PS: Once I have something nonpathological, I am happy to share it.
I got rid of the menuenabler bundle that was causing one of the error
messages. Now what I get is:
/Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/gtdalt_ical_synchronization.scpt:
execution error: The variable the_cal is not defined. (-2753)
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I tried to convert a Markdown file to RTF, but all german Umlauts
were broken.
To fix this I added "-inputencoding UTF-8" to the textutil command in
the Bundle Editor. This is not a clean fix because the input file
could have any encoding but I don't have a better idea how to fix this.
I also tried the other commands, but they have some problems too:
The "Convert to LaTeX" commands are not working. They fail with the
following message:
- -:3: parser error : Extra content at the end of the document
<ul>
^
unable to parse -
And "Convert to PDF" fails because it can't find htmldoc, don't know
if it should be installed on my computer.
Could anybody please look into these problems.
Thanks in advance,
Simon
- ----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFWPNiYRX4BO+zMikRCm5MAJ47incaZnE1sB60t6zlDWSaPIyyTgCgvd57
JVz7yakx3ptHvmCk3gvCpEQ=
=oxjq
-----END PGP SIGNATURE-----
Hi -
Textmate's (or the Latex bundle's) ability to tell when to use
xelatex instead of pdflatex has stopped working for me. Documents
that compiled quite happily yesterday won't do so today. I checked in
the Latex bundle's "Typeset and View" command to see whether anything
had changed, but the relevant lines are still there:
> # Set up TeX compiler, fallback to xelatex if document indicates it,
> if grep -Esq '\\usepackage{.*(xunicode|fontspec)|program=xelatex' "$M"
> then DEF_TEX=xelatex
My xelatex documents all have \usepackage{xunicode} and \usepackage
{fontspec} in them, so this should work just fine, and has been
working fine. But it doesn't now. Instead Textmate tries to run
pdflatex on the document, resulting in a failure.
The only thing that's changed is that this morning I updated the
Latex bundle and the Support folder from the subversion repository.
Has something changed in there that would cause this problem?
Best,
Kieran
Hi Haris,
let's compromise :)
It's again my request that arbitrary text lines (for notes)
can be included in gtd files (and simply ignored
by the parser). Are you really against it? This would
give much greater flexibility to the format, with
only some minor risk, but that's my opinion.
But if you are really against, what about the following format:
1) gtd files can be divided into two sections, separated
by some delimiter (e.g., a line like
#### PROJECTS AND ACTIONS ####
or something similar)
2) above the delimiter line I can write anything, it's ignored
by the parser
3) below the line I write projects and actions and here the
syntax is strict: only projects and actions are allowed.
With this kind of format, the flexibility would be enhanced
as I need. At the same time, any mistake in writing
tasks or projects would be spotted by the parser.
What do you think? (Please?)
Ciao,
Piero
So yes, updating the Support files worked! Now I am getting error reports
when I sync to ical. Not all of my to do's are being synced, just some of
them. (Happy to send you the file).
Here's the output:
2006-11-20 15:22:30.155 CocoaDialog[5467] *** -[NSBundle load]: Error
loading code /Library/InputManagers/Menu Extra Enabler/Menu Extra
Enabler.bundle/Contents/MacOS/Menu Extra Enabler for bundle
/Library/InputManagers/Menu Extra Enabler/Menu Extra Enabler.bundle, error
code 2 (link edit error code 0, error number 0 ())
/Users/BAMWriter/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/gtdalt_ical_synchronization.scpt:
execution error: The variable the_cal is not defined. (-2753)
Thanks again for your patience and help.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi,
I'm using Ruby scripts with RubyMate (r6075). But even the simplest
scripts cause many errors.
This is showed on top of the content in the output (before <html>):
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
escape.rb:2: warning: method redefined; discarding old e_sh
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
escape.rb:7: warning: method redefined; discarding old e_sn
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
escape.rb:12: warning: method redefined; discarding old e_as
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
escape.rb:17: warning: method redefined; discarding old e_url
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
escape.rb:24: warning: method redefined; discarding old htmlize
/Users/simonruderich/Library/Application Support/TextMate/Bundles/
Ruby.tmbundle/Support/RubyMate/run_script.rb:10: warning: already
initialized class variable @@execmatch
/Users/simonruderich/Library/Application Support/TextMate/Bundles/
Ruby.tmbundle/Support/RubyMate/run_script.rb:11: warning: already
initialized class variable @@execargs
/Users/simonruderich/Library/Application Support/TextMate/Bundles/
Ruby.tmbundle/Support/RubyMate/run_script.rb:45: warning: already
initialized class variable @@matename
/Users/simonruderich/Library/Application Support/TextMate/Bundles/
Ruby.tmbundle/Support/RubyMate/run_script.rb:46: warning: already
initialized class variable @@langname
And this error in the "normal" output:
/Users/simonruderich/Library/Application Support/TextMate/Support/lib/
scriptmate.rb:49: warning: instance variable @args not initialized
Even with these errors the script works.
I'm using the newest svn checkout of all data.
I also noticed that the Ruby method e_sh is available in a Bundle
script even if lib/escape.rp is not loaded. Maybe there could be a
relation.
Thanks for all information and ideas,
Simon
----
> privacy is necessary
> using http://gnupg.org
> public key id: 0x6115F804EFB33229 http://ruderich.com/
simonruderich.asc
I just downloaded and reinstalled the latest version of Textmate. It says I
have version 5861 of Support which is the same on the server.
Could there be a problem with my Dialog plugin?
I have revision 6187 in the PlugIns folder.
Alternatively, could my TM_SUPPORT_PATH variable be set wrong? It seems like
I shouldn't have to set it.
This is so strange because I had it working before I updated the dialog
plugin.
Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
hi list!
I may have found a workaround to solve this old problem:
http://one.textdrive.com/pipermail/textmate/2004-December/002039.html
PROBLEM
Sometimes, coders choose to use an indentation width different from the
(hard) tab width. An example C file may look like this:
static VALUE
rb_str_insert(VALUE str, VALUE idx, VALUE str2)
{
[4 SPACES] if (pos == -1) {
[TAB] pos = RSTRING_LEN(str);
[4 SPACES] }
[4 SPACES] else if (pos < 0) {
[TAB] for(i=pos;i--;) {
[TAB][4 SPACES] ...
Emacs and Vim allow this (eg. :set sw=4 ts=8). Of course, nobody should
use this, but there *are* some codes in that style (notably the Ruby
source code), and I want to use TextMate to edit them.
Changing tab width doesn't work here:
- setting it to 4 spaces makes the code unreadable;
- setting it to 8 spaces makes automatic indentation indent everything
twice as deep as the original code, thus breaking the style.
Converting all the tabs would break the version history and make diffs
harder.
SOLUTION
So I wrote two little Ruby one-liner commands to convert back and
forth between
both styles.
Convert TAB -> 8 SPACE:
"${TM_RUBY:=ruby}" -pne 'gsub(/^\t+/) { " " * 8 * $&.size }'
Convert 8 SPACE -> TAB:
"${TM_RUBY:=ruby}" -pne 'gsub(/^ {8}+/) { "\t" * ($&.size/8) }'
Both:
Input: Selected Text or Document
Output: Replace Selected Text
Activation: Option-Command-X
When I have a code like the one above, I just:
- set the tabs size to Soft-Tabs: 4,
- use "Convert TAB -> 8 SPACE",
- edit, compile, and test with spaces only
- convert it back with "Convert 8 SPACE -> TAB" before a diff or commit.
I think this covers most cases; you can easily modify the commands to
your needs.
LIMITATIONS
Of course, the scripts don't handle cases where you explicitely want
tab or spaces,
like in heredocs or something. Your version system should save you.
Or you can
select only the part you want to convert and run the commands on it.
Oh, and I didn't test it much yet. But it seems to work ;)
I hope this makes Patching Ruby easier for TextMate users!
Enjoy :)
[murphy]
Just a couple quick commands for the blogging bundle that use an
applescript to insert the current iTunes track or album into your
post. I figured if Ecto could do it... TM better be able to.
If you're not sure where to stick the script (/Library... ~/
Library... Pristine Copy, etc.) just drag the "Determine Script
Location" command to the bundle that you want the commands in (i.e.
the Blogging Bundle) and run it.
Brett
Well, I thought I had it all set up right. I came in this morning and when I
hit shift+2, I get this error:
tm_dialog: server version at v5, this tool at v4 (they need to match)
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/dialog.rb:19:in
`load': Cannot parse a NULL or zero-length data (PropertyListError)
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/dialog.rb:19:in
`menu'
from /tmp/temp_textmate.V1zbOv:5
My dialog plugin and gtdalt bundle are all up to date. The dialog bundle
lives in Application Support--->Textmate-->PlugIns.
Anyone know what is going on? Thanks.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Hi there,
I had this hideous bug in on of my rjs templates. The bug was in this
line:
page[:login].visual_effect
:blind_down
now, most of you (who know rjs) will think that's a perfectly good
line. However, there is a bug in it. That line gets converted to this
javascript:
$("login").visualEffect
("blind_down");
It turns out that the character between the .visual_effect and
the :blind_down is *not* a standard space. It's some sort of carriage
return/line feed which is displayed as a space in TextMate (and Mail
it seems too).
Now, not wanting to spark up any editor wars or anything, but BBEdit
displays the lines like this:
page[:login].visual_effect
:blind_down
$("login").visualEffect
("blind_down");
so it's now obvious where the bug is... and why my div wasn't
blinding down ;-)
Is there any way I can get TextMate to alert me to the fact that this
character *isn't* a space? And therefore stop this hair-pulling bug
from happening again :-)
SAm
Hi,
Editing a LaTeX file seems particularly slow on my powerbook, even for
a relatively small file (a mere 200 lines). Every time I enter a new
character, the editor freezes for like 1/10 of a second... Has anybody
experienced the same kind of pb?
Regards,
Emmanuel
Hi all,
When I run this in TextMate with the Execute and Update command I get this:
RUBY_VERSION # => "1.8.2"
But, when I use irb in a terminal window I get this:
irb(main):001:0> RUBY_VERSION
=> "1.8.4"
Why aren't they the same? I am reading the Pragmatic TextMate book and it
shows 1.8.4 inside of TextMate.
Thanks,
-Eric
i am seeing some strange rubymate output when working with threads -
at times text is not printed on separate lines (when using puts rather
than print) and at others, the text is not printed at all. any
suggestions to resolve the rubymate behavior or pointers to where i
could?
regards,
jean-pierre
sample 1:
mate = Thread.new do
puts "Ahoy! Can I be dropping the anchor sir?"
Thread.stop
puts "Aye sir, dropping anchor!"
end
Thread.pass
puts "CAPTAIN: Aye, laddy!"
mate.run
mate.join
output from rubymate:
Ahoy! Can I be dropping the anchor sir?CAPTAIN: Aye, laddy!
Aye sir, dropping anchor!
expected output:
Ahoy! Can I be dropping the anchor sir?
CAPTAIN: Aye, laddy!
Aye sir, dropping anchor!
sample 2:
homicide = Thread.new do
while true
puts "Don't kill me!"
Thread.pass
end
end
suicide = Thread.new do
puts "This is all meaningless!"
Thread.exit
end
Thread.kill(homicide)
output from rubymate:
<nothing>
expected output:
Don't kill me!
This is all meaningless!
Don't kill me!
I'm using the current (as of a few minutes ago) Subversion repository
for TextMate bundles, and I'm having a problem with the LaTeX mode's
highlighting. The problem is with the "lstlisting" environment (and
possibly others).
With the default Mac Classic theme, this environment is supposed to
have a light blue background. However, while writing a recent paper,
the highlighting often did not work the way it's supposed to. To
demonstrate the problem, I've attached three LaTeX files. The
rightway.tex file shows how the highlighting is supposed to be; the
wrongway1.tex and wrongway2.tex files show incorrect highlighting. Is
there a simple fix for these problems?
Thanks,
Trevor
P.S. Although the rightway.tex file highlights the environment in
blue as it should, it also changes the word "is" to bold. Why does it
do this?
I have Preview as my LaTeX viewer, and in the Typeset and View command,
is there a way to first close the Preview window with the current
document open (if there is such a window).
http://blog.circlesixdesign.com/2006/11/19/textmate-backpack-
interface-pre-release/
I've posted the initial version of the Backpack (http://
www.backpackit.com) bundle on my blog. It's got the following
commands with dialogs:
Create Reminder
Quick Destroy Reminder
Quick Edit Reminder
Destroy Multiple Reminders
List Reminders by Date
Add as Note
View/Edit Notes
Change Backpack Account
It has rough Keychain access support that works pretty well. It is,
at this point, a demonstration of what we could do. It could be
integrated in a lot of ways with a few other bundles. Right now I'm
using it to quickly post reminders that will be sent to my cell
phone, and client notes from documents that I'm working on. I can
log in and work through a tree view of all my notes on all my pages
and even edit them from the same interface. This bundle works great
with the free version of Backpack.
There are a couple of commands I left out. Some of the text based
commands have the possibility of sending malformed dates which will
break your Backpack page. 3 Backpack accounts later, I think I've
got the bugs worked out, but I'm not ready to risk anyone else's
pages yet. Also, a couple of gem-dependent commands... like one that
uses Chronic (human readable dates - i.e. Next Tuesday at 5pm) for
reminder entry.
If you try this out, please let me know if you run into bugs and
problems. I have not had a chance to test this on anything other
than my G5 and my PPC laptop.
Thanks,
Brett
recently I installed the svn client from source and wanted to try out
the subversion bundle in Textmate.
I figured out that I need to set the path variable in TM prefs, since
i use tcsh as my shell, and textmate obviously not (bash?).
I already have a working copy of my project checked out, and when i
change a file in TM, I tried to commit, but it always gives me an
authentication error. Now my test server grants me anonymous access,
so i don't have to specify any credentials, and i think Textmate is
giving some username here.
I couldn't find out where to change this. In CVS I had shell
variables to set this, but I couldn't find any info on this on the
subversion site quickly and in the help file that comes with the
bundle. (maybe a TM variable in advanced prefs?)
Can anyone lead me in the right direction please.
Thomas Krajacic
Haris,
Thank you for the quick response. I was looking for the "Run Command"
menu that was listed, in the screencast, under the Automation menu; I
seem to have found it under the Bundles -> HTML -> Insert Open Close
Tag.
Thanks for your help,
Farhan
Hi,
sorry if my question is a bit off topic but I couldn't find any
information.
I'm just writing a tiny perl script which converts non-ASCII
characters coming from 'defaults read ...' to utf-8 because I want to
simplify the interaction between BASH and tm_dialog. This works
perfectly even with utf-16 surrogates.
But then I was a bit naïve! I thought that 'pl' outputs non-ASCII
characters in the same way, but it didn't.
E.g. an German umlaut 'ö' stored in a xml plist format is outputted
as '\U221a\U2202'!!
Has someone an idea what kind of 'format' it is? I found no
documentation.
Or could it mean that 'pl' do not support utf-8 string at all?
Thanks for any hint
Hans
Hi all,
I'm new to TextMate. I was watching the screencast by Allan on HTML. I
noticed his copy of TextMate has the "Automation" menu. This menu is
not in my version of TextMate (v1.5.4 - 1324) and I'm running 10.4.8.
I would greatly appreciate the help.
Thanks,
Farhan
I fixed up the scoping and interpolation of some of Perl's quote-like operators: q//, qq//, qw//, qx//, and m//. s///, tr///, and heredocs still need some work.
Attached is the diff and test script.
I'm using movabletype 3.33 when I post an entry I get an error
posting it
/usr/lib/ruby/1.8/xmlrpc/parser,rb:154:in 'fault':wrong fault-
structure: {"faultCode"=>"server","faultString"=>"Can't call method
\"param\" on an undefined value at /web/script/onegoodmove/
onegoodmove.org/mavabletype/plugins/commchallenge/lib/
commchallenge.pm line 48. \n} (RuntimeError)
I get a similar error when posting from del.ic.ious Can't call method
"param" on an undefined value at /web/script/onegoodmove/
onegoodmove.org/movabletype/plugins/commchallenge/lib/
commchallenge.pm line 48.
Any help is appreciated.
Hi All,
Got inspired of the "Sync with Transmit" bundle, and created this
little bundle:

All you need is that your public SSH key is added to authorized_keys
on the remote server =)
Warning: The directory you specify in REMOTE_PATH will be nuked on
first full project sync.
--
Best regards,
David Jack Olrik <david(a)olrik.dk> http://david.olrik.dk
GnuPG fingerprint C290 0A4A 0CCC CBA8 2B37 E18D 01D2 F6EF 2E61 9894
["The first rule of Perl club is You do not talk about Perl club"]
Hi all,
Most of the commands with output "Show as HTML' are broken for me. By most,
I mean all except for RakeMate and Ruby's Documentation look up (Previews,
Run commands, all Subversion commands, Textile/Markdown's documentation).
I tried creating a new command - echo "hello world" - with Output: "Show as
HTML" and it didn't work.
What ends up happening is a blank, white window is open. I clicked on view
source, and there's nothing there.
I noticed this about two weeks ago, and I couldn't fix it. I've updated all
my bundles and the support folder. I gave up, and deleted everything under
'/Library/Application Support/TextMate', '~/Library/Application
Support/TextMate' and anything related to textmate under
'~/Library/Preferences'. And I did a clean re-install. But I still can't
execute those commands.
Has anyone ever had the same problem? I know for sure, I've got my
.bash_profile set up correctly, but I'm using zsh (could that be it?).
Thanks in advance, and thanks to everyone who tried to help me on IRC.
- Hugh
I just installed the svn update to GTDAlt (r6072) that reportedly has
the fix for date handling.
I opened a new GTDAlt document, made a new project, added a new
context item and tried to insert a due date (either using # or via
menu) and received an error about a non-existent nib file on the
desktop. Looking at the code for "set date", I found this line that I
think needs to be fixed:
str = `#{e_sh dialog} ~/Desktop/testing.nib -mp #{e_sh plist}`
I'm not sure which nib the command be looking in but hope that either
Allan or Charilaos might be able to help fix this.
Thanks,
Norm
---
Norman A. Cohen
nacohen(a)mac.com
"Whatever you may be sure of, be sure of this, that you are
dreadfully like other people."
James Russell Lowell
Great! That fixed solved the problem. I now have ical sync!
Couple of small things, nothing big to worry about:
1) When I've checked off a to do item in ical and then sync, it succeeds in
syncing back with the textmate file, but I also get this error:
/Users/lawrencegoodman/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/gtdalt_ical_synchronization.scpt:
execution error: iCal got an error: NSReceiverEvaluationScriptError: 4 (1)
It doesn't seem to affect functionality, but I thought you might want to
know about it.
2) In the instructions, it says:
- shift-, (<) reduces the date by one day.
- shift-. (>) increases the date by one day.
- ctrl-, reduces the date by one week.
- ctrl-. increases the date by one week.
- ctrl-shift-, (ctrl-<) reduces the date by one month.
- ctrl-shift-. (ctrl->) increases the date by one month.
These commands don't seem to be working. Have they been eliminated?
Thanks again for all the help.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
one more question arose:
when i just use the SVN_EDITOR shell variable in tcsh and then do a
commit from the commandline, TM opens and I can enter the commit
message. However, when I save the file, the terminal tells me that
the message has not been changed and gives me the option to abort,
continue and edit again. Isn't TM supposed to deliver the message to
the svn client correctly after saving the opened message log file?
thanks again for helping
Thomas Krajacic
Okay, let's say I've got an NSScrollView tied to an arrayController.
Heck, let's say I've got a few tied into eachother to create a tree.
The plist passes nested arrays to allow a user to, say, pick a
Backpack page->note->edit the note and return to TM where the script
takes the updated note and returns it to Backpack.
I've got the first half all finished, but the plist that comes back
to TM just contains the whole array including the edited note and
there's no easy way to tell what's changed. How do I pass back the
id's of the selected page/note and the note body separately or marked
as modified?
Any help would be greatly appreciated.
Thanks,
Brett
One of the nice features of iTerm and Aqua-Emacs is that selecting
text copies into the paste-buffer, and clicking the middle mouse
button pastes in text from the buffer, as with X11 programs. (That,
and focus-follows-mouse are the two features I miss most from other
unix operating systems).
Is there a way to do this in TextMate, and if not, is there any
chance it might one day be implemented as an optional feature?
Bill
So I figured out what was wrong with my GTDalt installation:
1) I had the GTD file with a suffix of .txt instead of .gtd. I suppose I
should have figured this out, but I don't remember reading it in any of the
instructions.
2) I had to upgrade the dialog plugin. As a newbie, I typically rely on Get
Bundle to fetch my packets, but with a plug-in you need to do it through
Subversion and the command line. I also needed to create a folder in
Application Support/Textmate called "PlugIns."
Now everything words as it should except:
Ical sync continues to create calendars, but not add to do items. I get this
error msg:
/Users/lawrencegoodman/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/gtdalt_ical_synchronization.scpt:
execution error: /Users/lawrencegoodman/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/get_lists.rb:5:in
`require': No such file to load -- ../lib/GTD.rb (LoadError)
from /Users/lawrencegoodman/Library/Application
Support/TextMate/Bundles/GTDAlt.tmbundle/Support/bin/get_lists.rb:5
(1)
Anyone know what this means?
Thanks for the help.
--
Lawrence Goodman
lawrencegoodman(a)gmail.com
Check out my blog: http://goodmanorama.blogspot.com
Strange behaviour of Bibliography Completion and Label From Document
commands accessed through option-esc. Description of the problem, and
workaround based on my correspondence with Charilaos (Harris) Skiadas
are below for archival purpose. Thanks Harris!
-- Working system
PowerPC G4, Mac OS X Version 10.4.8, TexMate Version 1.5.4 (1324),
TexLive Full Installation (2006/11/07) [Tex (based upon TeX Live)] /
MacTeX (10 November 2006)
-- Description of the problem
option-esc results in:
\footcite{sh: line 1: /usr/local/TeXLive/bin/i386-apple-darwin8.6.1/
kpsewhich: cannot execute binary file sh: line 1: /usr/local/teTeX/
bin/i386-apple-darwin8.6.1/kpsewhich: cannot execute binary file
cite_key}
\ref{sh: line 1: /usr/local/TeXLive/bin/i386-apple-darwin8.8.1/
kpsewhich: cannot execute binary file sec:section_name}
\ref{sh: line 1: /usr/local/TeXLive/bin/i386-apple-darwin8.8.1/
kpsewhich: cannot execute binary file fig:label_name}
TeXLive and MacTeX installations modify /etc/profile, and set the
path as:
PATH="$PATH:/usr/local/TeXLive/bin/powerpc-apple-darwin-current",
which is actually an alias for /usr/local/TeXLive/bin/powerpc-apple-
darwin7.9.0/.
The scripts of both commands use first `which kpsewhich`, and only if
that fails, `locate kpsewhich` to find out where kpsewhich lives.
Running the which kpsewhich command in the terminal returns:
/usr/local/TeXLive/bin/powerpc-apple-darwin-current/kpsewhich
Running the locate kpsewhich command in the terminal returns:
/usr/local/TeXLive/bin/i386-apple-darwin8.8.1/kpsewhich
/usr/local/TeXLive/bin/powerpc-apple-darwin7.9.0/kpsewhich
/usr/local/TeXLive/man/man1/kpsewhich.1
/usr/local/TeXLive/texmf.texlive/doc/man/man1/kpsewhich.1
The `which kpsewhich' command in both scripts fails -- according to
my humble opinion, due to the fact that what is finds is not the
actual file but an alias. Then `locate kpsewhich` points to the first
kpsewhich it finds on the system, which is an intel binary. Thus it
declares "[...] cannot execute binary file". (If you have the Basic
Installation of TeXLive, which does not come with intel binaries, it
will declare "[...] cannot find binary file".)
-- Workaround
Bibliograpyh Completion, and Label From Document commands are based
on the following scripts: LatexCitekeys.rb, and
LatexLabelCompletions.rb. Both of them live in /Applications/
TextMate.app/Contents/SharedSupport/Support/bin. Edit both scripts,
replacing the following loop -- lines 51-55, and 11-15, respectively:
if `which kpsewhich`.match(/^no kpsewhich/) then
kpsewhich = `locate kpsewhich`.split("\n").grep(/kpsewhich$/)[0]
else
kpsewhich = "kpsewhich"
end
with a statement indicating the correct path to the powerpc kpsewhich
binary.
kpsewhich = "/usr/local/TeXLive/bin/powerpc-apple-darwin-current/
kpsewhich"
or
kpsewhich = "/usr/local/TeXLive/bin/powerpc-apple-darwin7.9.0/kpsewhich"
should both work.
Check your /etc/profile or better run "echo $PATH" in the terminal to
confirm your path.
--
Özgür Gökmen | og(a)pyromedia.org
TextMate's zoom button (the green jewel in the title bar) maximizes
windows to the full screen. Great on my 12" PowerBook. Highly
annoying on my 24" iMac. I'd rather it maximize vertically only. This
behavior seems to vary across OS X applications (Safari only
maximizes vertically e.g.). Any chance there is a hidden preference?
Thanks,
j.