It seems to me that a common problem with paste type services such as
pastie.textmate.org is that it's a one-way street, which is strange
considering a lot of people who use the pastie service are after
solutions to problems in the text they have pasted.
I came up with the idea of running a service which would allow people
to connect to a server, submit the text and then give them a unique
ID. This ID could then be quoted to other users and used to connect
to the server remotely, grab the text, and view the paste using a
TextMate command. Any changes made to the original could then be
saved and re-submitted to the server. The original paster can then
query the server at any time to review any changes made to the
original along with the names of the users who have made the amendments.
I considered starting on a project which does all this using a fancy
tm_dialog UI, but besides being a cute idea I wondered if this is a
solution seeking a problem rather than something people would
actually use?
Hi,
I'm just playing aroung with TextMate's Subversion bundle. I'm
totally new to this, so please forgive me if I'm missing something
obvious or leaving out important information.
Martin Ott's svn client is installed. svnX is installed, too, and I
can browse the repository there.
In Textmate, I selected "Check Out...", entered the URL to the
subversion server (after starting a VPN connection) and all the files
were downloaded to my hard disk. Fine. :-)
But then I changed a file, selected "Commit" and TextMate said:
svn: Commit failed (details follow):
svn: Can't get password
So what am I doing wrong?
Kind regards,
Tobias
Hello to everyone and to our Lord Allan Odgaard (and welcome back from the
vacation).
I have a question. Can we get a very easy feature in TextMate that allows,
when that feature is checked (with checkbox), that when we quit TextMate,
the documents that were open when we last quit TextMate will *not* open the
next time we load TextMate? I find this to be unintuitive behaviour because
I often quit textmate and do different things. One day HTML. The next day on
some C code, so the next day I don't want those HTML docs to open up in
front of me.
Regards,
Ulai
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hello,
In JavaScript, I'd like to be able to fold not only functions (that
works great) but also "variables" as declared in json for example.
function Bookmark(p_idx, p_type, p_text) {
this.index = p_idx;
this.bookmarkType = p_type;
this.text = p_text;
}
folds great, but:
var UNITS_METRIC = {
name: "metric",
distance: " m.",
speed: " m/min.",
weight: " kg.",
pressure: " bar"
}
does not fold when JavaScript language is selected but folds when
HTML language is selected!
Wouldn't it be possible to add a "rule" to be able to fold such
variables in JavaScript language as it works in the HTML language? How?
Many thanks for your help.
/p
it seems like the "edit in textmate" does not support page names with
(e.g. german) umlauts. when saving and doing an apple+w the contents
do not get pasted back to safari. i think the problem must be related
to the umlauts, since it works with non-umlaut html form documents.
will this be fixed in the future?
> Harold,
>
> Are there any files in the directories ~/Library/Application
> Support/TextMate/ or /Library/Application Support/TextMate/? It's
> possible that you have an older version of the Support directory in
> one of those folders. If you do see a Support folder in one of
> those directories, it is OK to delete it. Restart TextMate and see
> if you still get a hung PyMate when running the test script.
1. I have a directory: /Users/harry/Library/Application Support/
TextMate which contained 3 subdirectories:
Bundles Pristine Copy Support
a. Bundles directory merely contains an extra command added to
Python.tmbundle (Run Script (PyMate) version 2.tmCommand based on
using the pymate.py script)
b. Pristine Copy directory contains bundles that have been downloaded
via svn and installed ... to be safe (from conflict) I moved/deleted
all these bundles.
c. Support directory seemed to be empty; only contained a hidden .svn
subdirectory
2. After deleting the Support directory (/Users/harry/Library/
Application Support/TextMate/Support) as you suggested ...
I ran the test python script using PyMate ...
but the latest (bleeding edge) version TextMate Version 1.5.4 (1360)
still gets hung ...
PyMate r6190 running Python 2.3.5 (/usr/bin/python)
>>> test_input.py
3. whereas a previous version, TextMate Version 1.5.4 (1324) works OK
(cut and paste from PyMate screen; excess blank lines deleted):
HIDE STDERR SHOW STDERR
Python 2.5.0 - PyMate r5848
For comments contact the author.
The regular Python interpreter can be invoked using ⌘⇧R.
>>> test_input.py
1
forcing redraw!!! don't remove
Script terminated with success.
4. as does TextMate Version 1.5.2 (1103)
Python 2.5.0 - PyMate r3226
For comments contact the author.
The regular Python interpreter can be invoked using ⌘⇧R.
>>> test_input.py
1
forcing redraw!!! don't remove
Script terminated with success.
5. These older versions use $TM_BUNDLE_SUPPORT/pymate.py rather than
$TM_BUNDLE_SUPPORT/PyMate/pymate.rb
I can more or less make sense of the pymate.py code but the Ruby code
pymate.rb appears enigmatic.
so far it is a mystery which may have to go on the backburner ...
Adios
Harry.
------------------------------------------------------------------------
----
Dr. Harold W. Schranz, Research Fellow, Computational Genomics Group
Division of Molecular Bioscience, John Curtin School of Medical Research
Australian National University, Canberra ACT 0200, Australia
------------------------------------------------------------------------
----
Hello,
I'm a new textmate user.
And starting to try to use textmate for this simple website I have to edit.
I'm trying to use the tidy bundle function and it's not working as I
think it should have.
I an html page on the screen (actually it's file.php) and when I press
Ctrl+Shift+H I get a new blank screen ;)
No errors, nothing.
Am I missing something?
For what it's worth it has one single <?php include(); ?> in it and
about 500+ lines of html.
Is that the problem?
Thanks in advance.
I cannot commit a file to my repository using the subversion bundle.
When I try I get this error message:
Couldn't find /usr/bin/ruby
We need Ruby to proceed.
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS
/opt/local/bin
/opt/local/sbin
/Users/phurley/bin
/usr/local/bin
/sw/bin
/sw/sbin
/bin
/sbin
/usr/bin
/usr/sbin
/usr/X11R6/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
>From the bash prompt:
which ruby
> /opt/local/bin/ruby
ruby -v
> ruby 1.8.5 (2006-12-25 patchlevel 12) [i686-darwin8.8.2]
which svn
> /opt/local/bin/svn
svn --version
> svn, version 1.4.2 (r22196)
> compiled Jan 9 2007, 01:05:16
(snip)
FYI I can add files to repository without a problem. Any suggestions
would be welcome,
Thanks
pth
> Harold,
>
> Can you post the specific error you are encountering? Do you scripts
> not run at all? Can you post a minimal example script that isn't
> working?
>
> I am able to execute the following script without any problems using
> the latest PyMate:
>
> #!/usr/bin/python
> x = input("Foo:")
> print x
For example, if I put your script above in a file called test_input.py
1. It will run successfully over the terminal (directly and via the
Run Script (Terminal) command).
2. However, if I use the Run Script (PyMate) command (based on
pymate.rb) I get the following lines printed:
PyMate r6190 running Python 2.3.5 (/usr/bin/python)
>>> test_input.py
and no dialog window for input, the task keeps running ... a ruby and
python process hang around ... until I interrupt it.
3. If I use the previous version of PyMate based on pymate.py I get
an input dialog and successful completion of the script.
I'm running Mac OS X 10.4.8 on a MacBookPro (Intel Core 2 Duo) 2.33
GHz with 2GB RAM and 4MB L2 Cache (per processor).
Assuming ruby from /usr/bin/ruby is being used that is ruby 1.8.2
(2004-12-25) [universal-darwin8.0] as indicated by the ps line:
/usr/bin/ruby -- /Users/harry/Library/Application Support/TextMate/
Pristine Copy/Bundles/Python.tmbundle/Support/PyMate/pymate.rb
If I use python 2.5 (installed in /usr/local/bin/python), same deal ...
Any suggestions?
Harry.
Hi.
http://pastie.textmate.org/40039 is parsed wrong by my textmate
installation. I'm running the latest version from svn. Seems to have a
problem with $<delim> under qr. works fine with m//.
--
With regards
Marcus Ramberg
It appears a bug has crept in the Python bundle for the Run Script
(PyMate) command in TextMate ...
All appears well with the following version which correctly runs
interactive Python scripts (requiring a dialog):
Version 1.5.4 (1324) [2006-11-02: REVISION 1324] Python 2.5.0 -
PyMate r5848
uses the code:
# Save file, use tmp-file if there's no filepath.
[[ -z "$TM_FILEPATH" ]] && TM_TMPFILE=$(mktemp -t pythonmate)
: "${TM_FILEPATH:=$TM_TMPFILE}"; cat >"$TM_FILEPATH"
TPY=${TM_PYTHON:-pythonw}
"$TPY" "$TM_BUNDLE_SUPPORT/pymate.py" "$TM_FILEPATH"
rm -f "$TM_TMPFILE"
However the following (bleeding edge) version
Version 1.5.4 (1360) [2007-02-13: REVISION 1360] PyMate r6190 running
Python 2.5 (python)
uses the code (Ruby in a Python bundle???):
export TM_RUBY=$(which "${TM_RUBY:-ruby}")
"$TM_RUBY" -- "$TM_BUNDLE_SUPPORT/PyMate/pymate.rb"
and only works for non-interactive Python scripts (I'm partly
suprised it works at all).
Should this code change have happened between versions or is there a
glitch.
Adios
Harry.
------------------------------------------------------------------------
----
Dr. Harold W. Schranz, Research Fellow, Computational Genomics Group
Division of Molecular Bioscience, John Curtin School of Medical Research
Australian National University, Canberra ACT 0200, Australia
------------------------------------------------------------------------
----
I think the reason you used hg status $WorkPath is because it limits
the status to the current sub directory of a hg repository.
i.e.
Let's say project/ is a hg repo
cd project/
hg status # This shows status for everything under project/
cd project/subdir
hg status project/subdir # This shows status for everything in subdir
Now...if this is GOOD or BAD behavior is up for discussion.
Personally I like the former better, I usually want to see the status
of all files in my repo.
What do you think?
Yi
Hi,
Using the LaTeX mode, I had &'s appear at the beginning of rows in
tabular environments, which abviously breaks the table. I don't really
know how what triggers this, but I think it happened after upgrading
textmate's bundles from svn...
any idea ?
--
Damien Pollet
type less, do more [ | ] http://typo.cdlm.fasmz.org
Hello folks,
I'm using Mac OS X 10.4.8 OS, I installed Subversion using 4 different
methods with no success (Using Fink, OpenDarwin, directly compiled it,
and using Matthew E. Porter's Package)
With all of them, when I try to checkout source code from anywhere
(RoR, TextMate, ...) with following command:
svn co --username anon http://macromates.com/svn/Bundles/trunk Bundles
It give me an error like:
subversion/libsvn_ra_dav/util.c:826: (apr_err=175002)
svn: REPORT request failed on '/svn/Bundles/!svn/vcc/default'
subversion/libsvn_ra_dav/util.c:296: (apr_err=175002)
svn: REPORT of '/svn/Bundles/!svn/vcc/default': 400 Bad Request
(http://macromates.com)
May someone please help me to find the problem?
Did I forgot anything? Or is there a bug with SVN?
Thanks in advance,
Hello all,
I'm writing a command to mimic eclipse's semicolon insertion. In
Eclipse, when you press ';' it looks for a semicolon at the end of the
line; if there is one already there, you get a ';' at your cursor (as
if you had typed it normally); if not, it puts it in the proper
position at the end of the line, and your cursor is at the end of the
line.
With the following command, TextMate will put the semicolons in the
desired place, but the cursor doesn't move, which is annoying.
input: selected text or line
output: replace selected text
activation: key equivalent ';'
scope: "source"
#!/usr/bin/env ruby
$t = STDIN.read
if $t =~ /\A(.*)\;\Z/
$c = ENV['TM_LINE_INDEX'].to_i
print $t.insert($c, ';')
else
print $t+';'
end
Any idea how to move the cursor? Snippets handle cursor motion, but
I'm not sure I can get the semicolon to go to the right spot. Ideas?
Tricks?
Best,
Kevin
Sorry, if this topic has been brought up before, but I was absent
from the list for a while.
The LaTeX templates extract the name and address from the file ~/
Library/Preferences/AddressBookMe.plist.
Now, I have recently moved and thus changed my address (also in
Address Book.app) but the AddressBookMe.plist is not updated. Indeed,
if I delete the file it is not re-created at all. Any ideas? Is this
due to an update of Apple's Address Book application. Can the content
of my own Address Book entry be retrieved in some other way?
Thanks,
Berndt
Hello,
First time poster to the list, please be gentle!
I installed the mercurial bundle from svn and it is a wonderful tool,
however some parts do not work correctly. For example, viewing the
status of a repo does not work, I get the following error message:
Traceback (most recent call last):
Revert
Diff
File "/opt/local/bin/hg", line 12, in ?
Revert
Diff
commands.run()
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 3000, in run
Revert
Diff
sys.exit(dispatch(sys.argv[1:]))
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 3223, in dispatch
Revert
Diff
return d()
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 3182, in <lambda>
Revert
Diff
d = lambda: func(u, repo, *args, **cmdoptions)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/commands.py",
line 2371, in status
Revert
Diff
files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/cmdutil.py",
line 139, in matchpats
Revert
Diff
opts.get('exclude'), head)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/util.py", line
367, in cmdmatcher
Revert
Diff
return _matcher(canonroot, cwd, names, inc, exc, head, dflt_pat, src)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/util.py", line
454, in _matcher
Revert
Diff
name = canonpath(canonroot, cwd, name)
Revert
Diff
File "/opt/local/lib/python2.4/site-packages/mercurial/util.py", line
348, in canonpath
Revert
Diff
name = os.path.join(*rel)
TypeError: join() takes at least 1 argument (0 given)
Any clues?
Thanks,
Yi
what do I have to do to correct this error (when listing installed
bundles in bundle GetBundle:
Couldn't find svnversion
Locations searched:
/Users/boldfish/Library/Application Support/TextMate/Pristine
Copy/Bundles/GetBundle.tmbundle/Support/bin
/Users/boldfish/Library/Application
Support/TextMate/Support/bin/CocoaDialog.app/Contents/MacOS
/sw/bin
/sw/sbin
/Library/Frameworks/Python.framework/Versions/Current/bin
/bin
/sbin
/usr/bin
/usr/sbin
/usr/X11R6/bin
/Users/boldfish/Library/Application Support/TextMate/Support/bin
TIA
Hello All,
I have been using the sshfs to connect to one of my servers and while
Finder seems to do a particularly bad job when the server goes down
and I don't eject properly, TextMate seems to do an even worse. Is
this just me or is anyone else seeing this.
As soon as the server goes down TextMate seems to start going into
wait mode for long periods of time. Eventually I just get frustrated
and do a Force Quit.
Thanks!
--
~Tyler
Hi,
As it's my first post, let me thank all the macromates guys and the textMate
community for the great work done already. So, Thank you all!
My work led me to edit my own (LaTeX) templates, and for the first of them,
I pressed an uncountable number of times that precious "Test" Button, to see
if everything was OK. I noticed a few things:
1) In my opinion, there should be a kb shortcut for that button.
2) Bug: It happened sometimes that the modifications made to the script
and/or to the template itself were not taken into account. It generally does
not happen at the beginning of the template building session, but once that
famous "Test" Button had been pressed a number of times.
Notice that closing/reopening the bundle editor window solves the problem.
It's up to you, now!
Thx,
Xavier C.
Hi,
is there a possibility to change or turn of the smart quote function
of textmate?
Since I need to write some german TeXt i would like to have the
„German Anführungszeichen“ instead of “English quotes”.
Having a mac gives me the great advantage of typing those quotes but
TextMate does to much here and generates „“” which
is a bit annoying.
Any suggestions?
Thanks
Christoph
~~~~~
Christoph Biela
cbiela(a)gmail.com
Does anyone out there have easy access to a PPC machine where they
could compile app-cmigrep from godi (it's an OCaml thing)? I'd like
to include it in Support/bin as a universal app to support the new
swank code completion for OCaml.
-David