Hi folks,
Tcl's comment syntax is such that it allows comments to extend to
multiple lines by escaping the new-line. E.g.
# this is a \
two line comment
The current Tcl grammar does not catch this and does not apply the
comment tag to the second line.
The following Patch fixes that, and it also fixes something having to
do with single quotes... I can't remember. Now that differences in
preferences are stored as tmDeltas, what's a good way to see diffs
between what I have and what is in the grammar?
I assume that if I attach my tmDelta for Tcl that's enough, right?
Thanks,
-Oscar
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
How can I get a real automatic line break in with textmate ?
ie. a mode where at end of line a line break is REALLY inserted in the
text, not just a presentation trick.
--
Erwan David
You might need to logout/restart/fast-user-switch after ARD sharing
turning it off before you regain control of crtl-esc
NOTE, I've also found out that the ARD administrator application ALSO
grabs/blocks this keystroke. So if you're ARD sharing is off, but
you're running the ARD administrator application, crtl-esc will not
work in TextMate.
I'm not an Apple Developer, nor am I sure this is a bug with ARD (it
may be intentional), so I'm not comfortable submitting a bug report.
If you would like to submit it if you have the same results, be my
guest.
- Ira
On Oct 16, 2006, at 5:48 AM, textmate-request(a)lists.macromates.com
wrote:
> From: Caius Durling <nemo8686(a)mac.com>
> Date: October 16, 2006 2:25:59 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] crtl-esc not activating - my solution
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
>> The short story is that running ARD (Apple Remote Desktop) Client
>> is the culprit that is stealing the key sequence.
>>
>> I don't know why ARD steals the key sequence, but turning it off
>> (System Preference - under Sharing) eliminates this problem for me.
>
> I open System Preferences, untick ARD sharing in the sharing
> prefpane, quit System Preferences, Relaunch TextMate, and it still
> doesn't work when I hit ⌃⎋.
>
> Have you rebooted/logged out after turning it off or anything?
>
>> I'd like to run the ARD client, so if anyone knows how to have the
>> ARD client run without it stealing the crtl-esc key sequence, I'd
>> like to hear about it.
>
> Possibly submit this as a bug to apple: http://developer.apple.com/
> bugreporter/
>
> Caius
Hi,
I just started to try out the blogging bundle. My blog runs under
wordpress 2.0
I watched the screencast.
Fetching blog entries works.
Editing and posting them works.
However, two things (so far) don't work"
1) When I drag a picture into the message in TextMate, this error
message occurs:
Error uploading image. Check your configuration and try again.
2) When I use cut and the tab trigger, this line gets inserted, but
it doesn't fold in the posted blog entry like it should. The result
is like the cut line wasn't there...
Any ideas why those two issues arise?
I'm not exactly sure what an API endpoint is... (this is where some
comments in
http://macromates.com/blog/archives/2006/06/19/blogging-from-textmate/
lead to)
right now I set my blog adress in
com.macromates.textmate.blogging.txt to
http://<USERNAME>/<abc.net>/xmlrpc.php
where
<USERNAME> is the username I use in wordpress
<abc.net> is the domain name, where the blog is.
using http://<USERNAME>/www.<abc.net>/xmlrpc.php
or
http://<USERNAME>/<abc.net>/wordpress/xmlrpc.php
make things worse
Thanks,
Claus
I would definately need write and create ability, that stinks.
Is there a program that can be purchased that would allow me to mount an FTP with read, write and create?
Thanks!
----- Original Message ----
From: Helge Hartmann <helge.hartmann(a)gmx.de>
To: TextMate users <textmate(a)lists.macromates.com>
Sent: Tuesday, October 10, 2006 4:03:13 AM
Subject: Re: [TxMt] remote editing with textmate
The problem is, that the finder only mounts ftp server read-only.
Helge
Am 10.10.2006 um 06:11 schrieb Dave Grijalva:
the mac can do this natively. in finder, choose Go > Connect to Server... (cmd+K). You can mount NFS, SMB, and FTP. Sadly, there is no SFTP or FTPS support.
-dave
On 10/9/06, Bill Duenskie <bduenskie(a)yahoo.com> wrote: I know Textmate doesn't have remote editing built in, but is there a program that is similar to www.webdrive.com on a mac? Basically webdrive allowed you to connect to a FTP server and map the connection to a drive. Can anyone recommend a similar program on a mac?
______________________________________________________________________
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
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
Hello Brett, hello list,
sorry, the @ symbol was actually there. I accidentally must have
deleted it while writing the message.
The cut tab trigger still does not work.
Where am I supposed to put it (I am resorting to really weired
questions... but I really have no idea why it doesn't work...
something must be right, because it fetches the posts ok)?
So far I do this:
blah blah <retun>
cut <tab> [inserts curser into a new line] <return>
blah blah
After I tell textmate to post to the blog,
the post shows up.
Both in the blog itself and in the individual post it shows up as if
I had written
blah blah <return>
blah blah
In textmate after posting, the scissors symbols are gone, and there
are 4 empty lines instead.
Thanks for your help,
Claus
On 16-Oct-06, at 8:00 AM, textmate-request(a)lists.macromates.com wrote:
> From: Brett Terpstra <brett(a)circlesixdesign.com>
> Date: October 16, 2006 5:53:47 AM EDT (CA)
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] blogging bundle problems
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
>
> On Oct 15, 2006, at 9:00 PM, Claus Haslauer wrote:
>
> [...]
>> right now I set my blog adress in
>> com.macromates.textmate.blogging.txt to
>> http://<USERNAME>/<abc.net>/xmlrpc.php
>> where
>> <USERNAME>is the username I use in wordpress
>> <abc.net>is the domain name, where the blog is.
> [...]
>
> You want to replace the slash with an @ symbol after the USERNAME.
>
> That should work for you.
>
> Brett
>
Claus Haslauer: Groundwater Resources Management, University of Waterloo
chaslaue(a)scimail.uwaterloo.ca | +1 (519) 888 4567 x.37232 | icq -
126499030
OK thanks a lot
F
----- Message d'origine ----
De : Michael Reece <mreece(a)vinq.com>
À : TextMate users <textmate(a)lists.macromates.com>
Envoyé le : Lundi, 16 Octobre 2006, 21h21mn 14s
Objet : Re: [TxMt] how to disable spell checking
Edit -> Spelling -> Check Spelling -> Never
On Oct 16, 2006, at 12:03 PM, Francois wrote:
Hello all,
I am just installing TextMate on my new iMac and I face la little problem : by default, spell checking is activated. My question : how can I disable spell checking ?
Thanks
G
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Demandez à ceux qui savent sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
---
michael reece :: software engineer :: mreece(a)vinq.com
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Demandez à ceux qui savent sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
Hi,
many times I have the following task.
list all lines for a specific search pattern within my document and
navigate to some/all lines in order to do something
OK. I do this with 'Filter Through Command' : grep -ni PATTERN ;
Input: Document; Output New Document
I get a list of lines containing my PATTERN with the line number as
prefix.
My question is now:
Is there an elegant way to click on one line, get the leading line
number, and go to that line in my main document?
If clicking would be a problem drag'n'drop would also work. I looked
for a command like 'go to line' but I didn't find it.
Even with a macro I didn't come to grips it.
Many thanks in advance
Hans
PS Maybe it would be worth to implement this search option in TM(?)
The attached patch adds support for the ?= operator in
the Makefile bundle. I'm not sure about the procedure of
submitting patches and getting them committed to svn,
so I hope somebody can pick it up from here or point me
to the proper place.
Thanks,
Jan
--
Some instinct tells me that the email address Allan exposes to this
list is a throwaway. It's therefore possible he doesn't read mail sent
to that address.
How might I report bugs that are not for publication, because they
involve proprietary or nondisclosed software? Neither this list nor
the public bug-tracking DB are appropriate.
Maybe in my usual fatheadedness (and I take it as an insult that the
Mac spelling checker includes "fatheadedness") I've missed a way to
submit a bug to the DB without publishing it?
— F
When I create a blog markdown document and then type `blog⇥' it pops
up the dialog to allow me to choose my blog. (If I have more than
one blog defined.)
If I hit cancel in the dialog it pops up a tooltip about how I need
to setup my blogs as none are defined. This should probably be
corrected.
Expected behaviour: Dialog cancels and leaves me with the text `blog'
after typing `blog⇥'
Actual behaviour: When you hit cancel it pops up a tooltip saying
that no blogs are setup and that I need to set them up.
Fix: catch a cancel and return nothing?
Caius
____________________________________
Caius Durling
UK Student
tel: +44 (0) 7746 746039
email: inemo(a)mac.com
nemo8686(a)mac.com
web: http://caius.name/http://qwert.us/
____________________________________
Hi!
I tried to Drag'n'Drop an image from the Finder (or the Project
Drawer) to the Textmate.
On my iBook its working w/out any problem, on my new iMac I get the
folllowing error (and nothing else):
/usr/lib/ruby/1.8/pathname.rb:529:in
I tried to shorten the filename, I tried to remove the space from the
folder-name where the project is in and nothing helped (and I don't
know ruby that well for having an idea what's up with the file from
above)
Both TextMates are at Version 1.5.3(1269) and I checked out the
actual svn-version.
Any help appreciated :)
Niels
Sorry for the newbie question, but how do I run the script I'm looking
at, with arguments? For example I'm editing a Ruby script and I want to
run it, supplying a filename that the script is to pick up as ARGV[0]
and read. I can't believe that the answer is "use the Terminal"; surely
I can stay in TextMate and do this, in some way that I'm just failing to
see. Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide - Second Edition!
Is there a way to open all the files in a given group/folder, or all
selected files perhaps?
-- fxn
PS: The motivation is I am using TM to give a talk (inspired by DHH's
keynote at RailsConf Europe). All the files/slides live in a group
and to start the presentation it would be handy to have them opened
in one shot, and in their relative order.
PS2: I just discovered you can use a remote to do a presentation with
TM since Mira and friends let you map buttons in Apple Remote to
⌥⌘←/→. There's order in the Universe.
I have the following drag command for zip files to be inserted as snippet:
echo -n "<a href=\"http://$TM_REMOTE_URL/file_download/\${1:file_id}\"
title=\"\${2:"$TM_DROPPED_FILE"}\">\${3:"$TM_DROPPED_FILE"}</a>"
This will insert a download snippet for a default URL on a live server.
However, I would like to strip the path somehow from the variable.
Does anyone know how to do this,through a substitution reg ex maybe ?
Additionally a variable named $TM_FILE_NAME (That would just insert the
name of the file instead of $TM_DROPPED_FILE would make much sense here
for such a drag command, where you don't care
so much about the path.
regards, marios
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, again
Can any Ruby Guru tell me, what is wrong with this code.
http://pastie.caboo.se/17615
It gives me a syntax error.
The Ruby version is 1.8.2
It has been working before, and ceased to do so , after removing one
tag item from the txp_single array.
It is a slight modification of the html version.
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
iD8DBQFFMIYv8tSzPOYuZvQRAgdYAJ47wnqk9T8O++jYPDuqp0Ls7PyWJACgu8AE
Ks+KAlpVY4bwEYdC58NAgfY=
=6SzG
-----END PGP SIGNATURE-----
Search within project is great, but as projects grow, it becomes slower to
perform a search within the project. I would be fantastic to be able to
search within a selected Folder or Group. Is this in there somewhere an I'm
missing it?
-dave
Is it possible to create a bundle that exists only within a project? I
often have instances of commands, snippets, or scripts that I only need/want
within the context of a certain project. It would be fantastic if I could
have a bundle that only existed for a certain project.
-dave
Hello,
seems that Smoot Scrolling doesn't work in TM like in any other cocoa
app (e.g. colloquy).
Someone experienced this?
(I have asked for this in irc today, without answer)
How to type Chinese or Japanese with TextMate?
Sometimes I have to write scripts, html pages, etc. with Chinese,
Japanese, Korean, etc. strings.
The problem is that within TextMate I cannot use e.g. Kotoeri (the
Japanese Input Editor) because I don't see what I'm typing. In order
to avoid to change to an other program I wrote a very easy code
snippet with CocoaDialog's textbox feature.
Here is one way to use my suggestion:
- open the Bundle Editor
- Show all
- go to the folder 'TextMate' (or whatever)
- add a new command 'inputCJK' (or whatever)
Command data
- Save: nothing
- Command(s):
# open CocoaDialog's textbox
res=$(CocoaDialog textbox \
--title "Input CJK" \
--informative-text "Write up here..." \
--selected \
--scroll-top top \
--editable \
--no-newline \
--button1 "Insert" \
--button2 "Cancel")
# If user canceled exit.
[[ $( (tail -r <<<"$res") | tail -n1) == "2" ]] && \
exit_discard
# delete first line
res=$(sed '1,1d' <<<"$res")
# print the content of the textbox
echo -n "$res"
Input: None
Output: Insert as Snippet
Activation: Key Equivalent shift+option+i (or whatever)
Scope: leave it empty
With the help of this script you are able to use Kotoeri or other IME
within TM indirectly.
I know that isn't the most elegant way but for writing small scripts
using some Japanese, Chinese strings is quite good.
Of course, TM has some problems to display Chinese characaters but, as
I mentioned before, for smaller things it is sufficient. ;)
Hopefully the very tiny script is useful for others as well. Feedback
is highly welcomed.
Many greetings,
Hans-Jörg Bibiko
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Many users mentioned that there is sometimes the need to open a file
which is encoded in e.g. Chinese Big5 or in Japanese Shift-JIS.
The TextMate manual recommends in respect to that topic to use the
UNIX command 'iconv'. It works perfectly, but if you have to open many
files of different encodings the typing of such commands will become a
bit uncomfortable.
To make it a bit easier I wrote with the Bundle Editor a new template
called openEncodedFile based on CocoaDialog's features.
Here is one way to use my suggestion:
- open the Bundle Editor
- Show all
- go to the folder 'TextMate' (or whatever)
- add a new template 'openEncodedFile' (or whatever)
Template data
- Extension: leave it empty
- Command(s):
# open CocoaDialog's file select menu
file=$(CocoaDialog fileselect \
--title "Open an encoded file" \
--with-directory $HOME/ \
)
# check for valid file
if [ -n "$file" ]; then
# open CocoaDialog's dropdown menu
# for more encodings add them to '--items'
# to list all possibile encodings use the Terminal with 'iconv -l'
res=$(CocoaDialog dropdown \
--title "Open an encoded file" \
--text "Choose the encoding:" \
??exit?onchange \
--button1 "Open" \
--button2 "Cancel" \
--items "BIG5" "EUC-TW" "GB2312" "SJIS" "EUC-JP" "KOI8-R" \
)
# if user canceled exit
[[ $( (tail -r <<<"$res") | tail -n1) == "2" ]] && \
exit_discard
res=$(tail -n1 <<<"$res")
# add more 'elif' according to '--items' if needed
if [ "$res" == 0 ]; then
ENC="BIG5"
elif [ "$res" == 1 ]; then
ENC="EUC-TW"
elif [ "$res" == 2 ]; then
ENC="GB2312"
elif [ "$res" == 3 ]; then
ENC="SJIS"
elif [ "$res" == 4 ]; then
ENC="EUC-JP"
elif [ "$res" == 5 ]; then
ENC="KOI8-R"
fi
# start conversion to UTF-8 and send the result as a new file back to TM
iconv -f "$ENC" -t utf-8 "$file" > "$TM_NEW_FILE"
fi
- Output: Insert as Text
- Activation: Key Equivalent shift+option+o (my suggestion)
- Scope: leave it empty
I've chosen a new template because the used keyboard short-cut is also
available if no document is open.
As you can see in the script you can add/edit encodings very easily.
(More details within the code)
If you start that bundle (shift+option+o) you will see a file choose
menu. Select your file and press ENTER or 'Open'. Then you will be
asked to input the right encoding. The available encodings are listed
in a drop-down menu. Select one encoding and press ENTER or 'Open'.
The script will convert your file according to the selected encoding
to utf-8. The result will be shown in a new document.
Hopefully the very tiny script is useful for others as well. Feedback
is highly welcomed.
Many greetings,
Hans-Jörg Bibiko
PS TODO: Include an automatical encoding detection. Hopefully coming soon ;)
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Well, I've been having quite a time of it with tab-triggered
commands. From looking through the many existing bundles, I'm not
surprised it took me this long to notice this bug(?), there are very
very few commands that use tab triggers.
The problem is that a tab-triggered command will empty the line that
I use the tab-trigger within when in fact the command is supposed to
replace or alter the line in some way, not delete it.
I first noticed the behavior when using Mike Mellor's GTD2 bundle and
at first thought that it was his scripts that weren't working on my
system. After some back and forth communication between Mike and I, I
was able to see that this problem happens with MOST commands that are
tab-triggered.... MOST but not ALL. I could understand all of them
not working, but most of the few that exist in the bundles I have
active don't work while one does.
Here's a list of the commands and their bundles:
GTD2:
delegate (python script)
wait (python script)
undo state change (python script)
done (python script)
Objective-C:
alloc (ruby script)
super (doesn't seem to, but haven't the time to layout test code)
(python script)
The one example that does work is...
Ruby:
word_wrap() (ruby script)
The only common thread I can see is the path to the executable at the
top of the shell script.
The ones that fail all are shell scripts in which they define the
path to the exec file at the top:
#!/usr/bin/env python
#!/usr/bin/env ruby
But then, there are other scripts that AREN'T tab-triggered and also
use shell scripts with the defined path that work.
I'm using TextMate Version 1.5.3 (1269) on OSX 10.4.8 on a 1GHz
PowerPC G4 powerbook.
Any help narrowing this problem down would be greatly appreciated.
Thanks
Mike
I know it's probably something obvious I'm not doing, but I'd really
like to be able to preview an HTML document in a project while
editing a linked CSS file. Every time I open a preview on the HTML
document and switch to the CSS file in my project, the web preview
closes. Is this normal?
I've been doing fine with using the "Refresh open browsers" command
and split off commands to shift-refresh firefox and exclusively
refresh Xylescope, but having the instant feedback in the web preview
would be great, especially when combined with the current ability to
pipe through your PHP installation.
Thanks,
Brett