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
OK -- I'm diving into the GTD2 bundle's way of doing GTD. Cool enough.
The URLs for the GTD Active View List seem broken. At least,
clicking 'em does not bring up the file/line as I would expect.
The URLs produced are of the form:
txmt://open/?url=file://personal&line=7
Clearly, the file path is incorrect.
b.bum
When editing a mail, double quoted blocks have this scope:
text.mail.markdown
text.html.markdown
meta.block-level.markdown
markup.quote.markdown
markup.quote.markdown
Shouldn't it be "markup.quote.double.markdown" or something?
Or is it possible to apply different colors to different quotation
levels like that?
Thanks
--
FredB
Hi all,
[apologies if this appears more than once; been having posting trouble]
guerom00 wrote:
> Hi there,
>
> This a feature request : I would like to be able
> to cancel a “Find in Project”.
> Because while TM searches, it basically freezes
> for any other actions...
>
> TIA :)
More generally, this brings up the question of why the system (not just
TM!) becomes unresponsive, and why the search is so slow (at least for
projects that include whole directory trees).
Yours,
Andrew
Version 1.5.3 (1215).
I have an Xcode project directory, which a TextMate project file
encompasses. The directory contains a "build" subdirectory. It would
be very undesirable to include that directory (and a couple of others,
such as .xclassmodels, also some binaries like a Stuffit archive) in
the TextMate project, as project-wide searches take much, much longer
when (I assume) the search interrogates all the files in the build tree.
So I select the build folder in the project list and press backspace.
TextMate asks if I want a remove-from-project or a delete-file.
Remove, please.
Shortly thereafter (it may be related to deactivating and reselecting
TextMate), the build folder appears in the list again. Grz.
I have double-checked that I am dealing with a TextMate project file,
and not a directory window.
Some of the re-added files and folders have been modified while
TextMate is running; most have not.
I had used a directory window before switching to a project.
I originally populated the project by dragging the Xcode project
directory into the file list.
What am I missing? Or what is TextMate missing? It may be my problem,
as searching for "project file reincludes folders" turns up nothing in
a list-archive search.
— F
Thanks Allan.
The code works perfectly! I've tried to insert a variable inside...
<${1:ul}>
${TM_SELECTED_TEXT/(.+)(?:\n(.+))?/ <li class="${3:odd}">$1<\/li>(?2:
\n <li>$2<\/li>)/g}
</$1>
...and this is the result...
<ul>
<li class="${3:odd}">dfadfadfadfadfad</li>
<li>fadfadfadfdaf</li>
<li class="${3:odd}">afdfadfdafd</li>
</ul>
How can we adjust the class to be the next tab stop with a default? I
also adjusted your code to allow for a clean indentation of the li
elsments.
Thanks for the help. :)
Hello,
Forgive me if this question has been asked, I searched but found
no answer. I am working on a bundle that is a subset of the ruby
bundle and I would like to have some macros similar to the ones in
the ruby bundle, namely the macros that automatically insert the
requires. Looking at the macros in the ruby bundle, they are very
clean:
- moveToBeginningOfDocumentAndModifySelection:
- executeCommandWithOptions:
{
command = "insert_requires.rb yaml";
input = selection;
output = insertAsSnippet;
}
- insertSnippetWithOptions
etc.
Since, there is no real bundle editor, I am trying to replicate this
process for macros under my bundle. If I were to get to the step of
executing the command, I hit the key equivalent for this
insert_requires.rb command, but instead of getting a clean looking
macro recording like the one above, I get one who's command is filled
with the exact ruby source code being executed:
{
beforeRunningCommand = nop;
command = "#!/usr/bin/env ruby\n$: << \"#{ENV
['TM_SUPPORT_PATH']}/lib\"\n\nrequire \"escape\"\nrequire \"open3\"\n
\nCURSOR = [0xFFFC].pack(\"U\").freeze\nline, col = ENV
[\"TM_LINE_NUMBER\"].to_i - 1, ENV[\"TM_LINE_INDEX\"].to_i\n\nstdin,
stdout, stderr = Open3.popen3(\"/usr/bin/env\", \"ruby\", \"#{ENV
['TM_BUNDLE_SUPPORT']}/bin/insert_requires.rb\")\nThread.new do\n
code = STDIN.read.to_a\n code[line][col...col] = CURSOR unless
ENV.has_key?('TM_SELECTED_TEXT')\n stdin.write code.join\n
stdin.close\nend\n\nprint stdout.read.split(CURSOR).join('${0}')\n";
fallbackInput = document;
input = selection;
keyEquivalent = "^#";
name = "Insert Missing Requires";
output = insertAsSnippet;
scope = "source.ruby";
uuid = "9FB64639-F776-499B-BA6F-BB45F86F80FD";
}
Can someone please let me know what I am doing wrong here? Do I have
to hand hack the plist file or what?
Thanks in Advance,
Marshall
Did a reasonable amount of searching, but can't find it (this product
doesn't have the world's greatest documentation).
So: how do I get the equivalent of emacs-style meta-slash
autocompletion?
Guyren G Howe
Relevant Logic LLC
guyren-at-relevantlogic.com ~ http://relevantlogic.com
REALbasic, PHP, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training
I was distressed by the fact that my Ruby appeared broken when the
Open Projects commands were distributed and they wouldn't work for
me. I tried a plethora of solutions, including removing my svn
installations and reverting Ruby installations. Ultimately, the
solution ended up being copying the text out of the bundle editor,
pasting it into a text window, and copying it back into the command
window. Then it worked. No changes to the code... weird, right? Is
there an explanation for this? Did all of my other fiddling around
do something?
I toggle off and back on a command every time I make an edit, so it's
not a question of whether I was activating any changes or not.
I just thought I'd throw it out there and see if it had an
explanation, or perhaps solved anyone else's problems (none of which
I've heard about ;-)).
Thanks,
Brett
I'm experiencing an issue where, if my cursor is in the middle of a line,
and i use cmd+] to indent the line, my cursor position is shifted one
character to the left. not a huge deal, but a bit annoying. anybody else
experience this?
-dave
TM is very sensitive about order in which Alt and mouse button are
released. I often end up with regular selection when I try to select
columns.
I've checked XCode and Word - both requre Alt to be pressed only when
clicking mouse button, not when relasing. I find that much easier to work
with - it's fail-safe and I don't have to hold Alt when selecting.
Is there a reason why TM has selection implemented like this? Can this be
changed or made configurable?
--
regards, porneL
Hello everybody,
First, the caveats and the waffling: I'm new to TextMate, I'm not a
programmer, I hope I'm not missing something obvious, I've never posted to a
mailing list before.
There, now that's out of the way, here's my problem:
I process a lot of texts for Project Gutenberg. PG has a homemade C program
(GutCheck -- http://gutcheck.sourceforge.net) which checks for various
features in the text to make sure it's in good shape for posting to PG. I
normally run it from Terminal and thought I could easily make a Command to
do it from TextMate.
I made my command, and as long as I don't add any arguments, I get back the
"usage" information for GutCheck. So far, so good.
However, when I put in my file name (e.g. gutcheck "$TM_FILEPATH"), I don't
get anything other than a new empty untitled document and short-lived
beach-ball. If I make the command pipe into another (specific) document (e.g.
gutcheck "$TM_FILEPATH" > mynewfile.out), I get one line of response from
gutcheck, and then the rest of the information is stored in the other
document. I then have to open it separately; so it's not much different from
running the command in Terminal which is what I'm trying to avoid.
I thought it had something to do with GutCheck reporting to stderr instead
of stdout, but there's a switch available to turn that off. It didn't make
any difference.
The _weird_ thing though, is that when I have in my command "Output: Show as
HTML" (instead of Create New Document), everything is there in the HTML
window (but unreadable because there are no line breaks).
What am I missing or doing incorrectly?
Ah, another clue, perhaps: when I run the command on a short file (like this
message), it works as I expect (Command: gutcheck "$TM_FILEPATH" Output:
Create New Document). But few ebooks are 17 lines long. How do I make it
work for real texts (600 to 6000 or more lines)?
Thanks in advance for any advice,
Barbara
How could we alter this.
<${1:ul}>
${TM_SELECTED_TEXT/.+/ <li>$0<\/li>/g}
</$1>
...to add a class option to the li tag, but only every other instance
of the li tag? Thanks Sune for setting up this snippet, it saves me a
ton of time when creating ul/ol lists!!!!
Adam Stacoviak
Image202 Entertainment
www.image202.com
--
houston. 713.4291456
toronto. 416.9075496
fax. 713.4562013
I use TextMate all day for Ruby on Rails apps. Today, my command-R and
command-shift-R commands have suddenly started taking a very long time
to execute and return. Using them for unit tests and the tests
indicate they've run in under a second. It's taking minutes for the
window to finish.
When I run this on the comman line the tests run instantly.
I've noticed the same problem with Ctrl-Shft-A as well.
(I updgraded to ruby 1.8.5 via MacPorts today.)
Thanks,
Jamie
Hi again,
I am trying to figure out, how I can update a Language Grammar of a
Pristine Copy, by double clicking a Previous pristine Copy, that is
derived from the same UUID, by Dragging it out from the Bundle Editor.
I tried both double clicking The Language Grammar in the Syntaxes Folder,
or the Bundle altogether from a Finder Window.
What is the expected Behavior in those cases? The CoCoa Dialog tells me
to confirm the Update of the previous Bundle, with the message that
customizations will be retained, however, a Grammar for instance
reflows, but the changes do not seem to be applied.
I can't remember, if that was the case for previous TM revisions, but I
was just wondering what was the Expected behavior in those cases.
(cutting Edge r1269)
regards, marios
Hi to all,
Suppose, I have a document with HTML like tags, where each unique tag
attribute of a specific tag corresponds to a file not in the same
Folder, but a sibling folder of the documents window parents folder.
I'm trying to make a command, that when triggered via key equivalent
will open that correspondent file, if the caret is on that scope.
I've managed just to filter the filename. eg.:
if I do:
find "$TM_DIRECTORY/.." -name "$TM_CURRENT_WORD*article.txfml" -exec
basename "{}" \;|sort
then this will give me the desired filename which is
mrs_promo.article.txfml.
My question is, how can I make this command, so that it will open this
file inside my project, even if it is not open as a project tab.
Or, alternatively to open an Html window, with a link, when clicked on,
will take me to the file.
I've looked around a bit, if I can find an example in other Bundles, but
only saw Ruby examples.
(Sorry, for bothering again, I promise, this will be the last question
for the next 2 weeks)
regards, marios
I have added a new version of the GTD bundle to the repository,
called (for now) GTD2. It is based on a syntax described at <http://
patrickrhone.com/journal/archives/2006/05/175.html>. Also, I have
done a quick write-up of the new system at <http://panalaska.org/geek/
>. It uses a new contexts.gtd file, which I have added to the
Support folder in the bundle. Based on user feedback, I will merge
the GTD and GTD2 bundles in a week or so. Please let me know if
there is any interest in this bundle. Thanks!
Mike
When I try and use the 'Documentation for word' command (control h) I
now get the error message:
.../lib/web_preview.rb:6 in 'html_header' : undefined method
url_encode for ERB::Util:Module (No Method Error) from tmp/
temp_textmate_Qp8b1:19
This has worked in the past and the only thing that I believe has
changed since it was working is the version of Textmate (now at 1.5.3
(1258)).
Nothing in the svn bundle logs on the RSS feed looked like it related
to this.
I have removed all my customization by getting rid of the Bundles
folder in ~/Library/Application Support/TextMate
with no effect and there is no TextMate folder in /Library/
Application Support.
Dave.
That'd be great Daniel, I'd use the heck out of it. I know a bunch of other people who'd probably use it as well.
Bill
----- Original Message ----
From: Daniel Stockman <daniel(a)evocateur.org>
To: TextMate users <textmate(a)lists.macromates.com>
Sent: Tuesday, October 10, 2006 4:48:43 PM
Subject: Re: [TxMt] coldfusion bundle
Bill Duenskie wrote:
> Is there an Adobe ColdFusion for Textmate? I can't seem to find one.
Indeed, I use Textmate for CF all the time. I basically hacked up a
copy of the HTML Bundle, adding in a new grammar with various bits
and bobs lifted from the Javascript bundle (for the CFscript parts).
I'll look at cleaning it up and packaging it for distribution, it's a
bit rickety at the moment.
~ Daniel
______________________________________________________________________
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
Charley,
Thanks for the info. Unfortunately I'm on a shared hosting environment and my host doesn't support WebDav.
It's FTP or nothing for me.
Bill
----- Original Message ----
From: Charley Tiggs <lists(a)tiggs.net>
To: TextMate users <textmate(a)lists.macromates.com>
Sent: Tuesday, October 10, 2006 3:16:05 PM
Subject: Re: [TxMt] remote editing with textmate
Actually, why don't you look in to WebDAV? Is WebDAV not available to
you? If so, you can mount the WebDAV point and it'll behave like a
drive. Depending on configured permissions, you'll have the ability to
read and write.
Charley
Bill Duenskie wrote:
> 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
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
>
> ______________________________________________________________________
> 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
I'd like Open Recent... list to keep something like minimum 3 last tmproj
files, no matter how many other files were open.
The point is that if I open lots of non-project files my projects get
kicked out of the list, but it's more likely that I'll need to re-open my
projects than any other files.
--
regards, porneL
Jen,
TextMate does not do the conversion of MarkDown "marked up" text:
WordPress does that. You will need to install the MarkDown plug-in,
which can be found on the WordPress site. I'm not sure if Smarty
Pants is rolled into it or not, but if you like the look of print
typography, then you might consider that plug-in as well.
(SmartyPants does things like "smart quotes" and em dashes.)
john
On Oct 10, 2006, at 10:01 AM, textmate-request(a)lists.macromates.com
wrote:
>> However, the markdown problem persists! Is there something I need
>> to install on the server so markdown is translated? I thought
>> TextMate was supposed to translate it to HTML before sending it to
>> the blog...
On Oct 10, 2006, at 4:36 PM, Bill Duenskie wrote:
> 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?
Maybe this one - but I didn't tried it yet:
http://jm.marino.free.fr/Software/Mac/AutomountMaker/introduction.html
Niels
--
Linux is only free if your time has no value -- Jamie Zawinski
Hello there,
I tried using the Blogging bundle (according to the instructions of
the screencast) with my WordPress Blog (version 2.0.4).
Preview works, but when trying to send a post to the blog I
eventually get a tooltip with some ruby code and the message "time
out". Now the weird thing is that the blog actually shows the new
blog post, but markdown isn't converted to html. Posting directly in
html works, but also with the time out error and textmate doesn't
update the document with post id, category, ... and the rest of the
headers that should normally appear according to the screencast.
Any idea what I did wrong?
Thanks in advance
Jens