With a selection of "x.jpg", I'd like a snippet for the html context that
can insert
<img src="x.jpg" alt=" x.jpg" width="164" height="234" border="0"
class="box1">
I have a snippet that works:
<img src="${1:${TM_SELECTED_TEXT:TM_CURRENT_WORD}}" width="$2" height="$3"
border="${4:0}" class="$5">
but it only uses default values for width and height. Are there shell
options to get these?
Thanks for the help,
tim
PS: if you find yourself making lists out of lines of text, this helps me
<${1:ol}>
${TM_SELECTED_TEXT/(^.+$)/\t<li>$1<\/li>/g}
</$1>
The secret of success is constancy to purpose.
Benjamin Disraeli
Hi,
I'm trying to write a simple ssh script to scp a file onto my mac,
open it in textmate, block till textmate closes, then scp the file back.
I can't seem to open files with 'mate -w' via ssh though. It does
work with 'open -a TextMate <myfile>' but then it doesn't block? Is
there anyway to open files using 'open -a' and make it block?
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/
One thing I really miss from vim is the "Copy character above cursor"
function. I've looked in the TM docs, but I can't see anything
similar, or am I missing it?
Best wishes,
N
In emacs there is an option to highlight parentheses pairs when your
caret is on a parenthesis -- show-paren. Can a similar effect be
achieved in TextMate? Right now when you move over a parenthesis the
matching one is highlighted very quickly and then goes back to
normal, I usually miss it.
-- Daniel
Hello,
Up until now I've never made any use of the "Go To File" command, the
amount of files I've been working with in the past hasn't warranted
it, but for my current project (400+ files) it would seem to be a
better way of navigating through the source tree.
Unfortunately it doesn't seem to be working. When I bring up the
window with Cmd-T and start to type the name of a file I know exists
within the project I'm not getting anything returned at all, the
window is empty.
The draw at the bottom of the window has "*" in the Show field and
"dict, plist, strings" in the Hide field, which should be the default
values as far as I remember. No errors are being logged by the
console and I'm not finding any pointers for a Google search on
'textmate "go to file" problem'.
Can anyone give me some pointers on how to diagnose or fix this?
TIA
G.
--
------------------------------------------------------------------------
Home: http://polytechnic.co.uk
Flickr: http://flickr.com/photos/garrettc
Work: http://www.gencon.co.uk
> Just one of several **basic editor functions** Allan can't seem to be
> bothered to implement. Others that come to mind are double-click on a
> bracket to select a block and the pathetic double-click-extend-
> selection behavior.
Ah yes! The master list of required **basic editor functions** common
to all editors. I've got my copy right here. I hate it when editors
try to fit the needs of users and try to be distinctive.
Damn innovation!
Hail conformity!
Seriously, it's not like there aren't other editors out there for you
to use if you're this frustrated.
Dear folks,
I have just found the following commands in the "Text" menu:
"shift left" apple-[
"indent line" apple-opt-[
I am wondering how I can get to these commands on my german keyboard
i.e. I already need to press alt-5 to get [ -- hence no chance to
additionally modify any of those commands with alt. Is there any way
to change the shortcuts?
Also for some reason I cannot use apple-{ (nothing happens, even
though I should at least get a service to enter the current date).
Apple-} works as intended (i.e. as a shortcut for a LaTeX command and
when I am not in a LaTeX-file it just enters the current date [from
WordService.service]).
Is there a way to enable/disable certain Services in special apps
only? (What is the keyboard shortcut preference / domination order?)
Daniel
Dear fellow LaTextmaters,
I am (again) fiddling with the LaTeX bundle (seem to do that too much
and write my thesis too little --- ah well). and am trying to find
some way to add better folding recognition.
However, I would like things to be a bit easier, maybe I am just a
bit slow-minded today:
Right now I am trying something similar to the HTML.bundle:
foldingStartMarker = '(?x)
(\\chapter\{.*\}
|\\begin\{.*\}
)';
foldingStopMarker = '(?x)
(\%endchapter\{.*\}
|\\end\{.*\}
)';
Which will add folding marks to chapter headlines and custom comments
that show the end of a chapter (or section, subsection etc.). Which
works fine, but instead of having to type out every possibility I was
hoping to do this:
foldingStartMarker = '(?x)
(\\(chapter|section)\{.*\}
|\\begin\{.*\}
)';
foldingStopMarker = '(?x)
(\%end(chapter|section)\{.*\}
|\\end\{.*\}
)';
Works only if the indentation is correct. (Which might get annoyingly
deep if this is done in depth).
\chapter{chapter}
\section{section}
%endsection{}
%endchapter{}
Is there a way to get folding to recognize the foldingStopMarker as
"the line before it hits a certain pattern"? So I can fold (marked
with *)
* \section
…
*
\section
thx,
Daniel
PS: btw, when editing this email in Txtmate and returning to Mail.app
the indentations were all gone.
Hello. I'm relatively new to TextMate and new to this list. So, sorry if
what I'm asking is dumb and has been covered before.
I've checked the manaul macromates site, but couldn't find the answer.
Hopefully this is something easy to remedy.
I recently discovered the commands feature, and was playing with the
ActionScript commands that ship with TextMate. I got Find in ActionScript
Dictionary set up just fine; that was as easy and determing the path to the
help_toc.xml and plugging it in to my shell variables (I have a vague
understanding of what I did, but I'm no shell variable expert).
But I can't get Show AS Function Signtare to work properly. When I try it,
my cursor is in between the parentheses of the function, and I hit the key
command, and tool tip appears, but the contents of the tool tip is an HTML
file. It looks like it's the HTML file that would be returned from the Find
in ActionScript Dictionary command, just displayed in a tool tip. In fact,
if i change output to Show as HTML, I get a search results page just like
Find in ActionScript Dictionary.
the command is:
"$TM_BUNDLE_SUPPORT/Tools/asd.pl"
It saves nothing, has no input, and outputs as show as tool tip. Scope is
source.actionscript
Thanks,
Dru
Hi,
Recently I learned about QS being able to access Application Menus. This
rocks when combined with the huge bundle menu that TextMate has, making
it a breeze to find things you use sometimes, but keep forgetting the
shortcut of.
Here's how to set it up:
- Launch Quicksilver, edit preferences
- In the Application tab, tick "Enable advanced features" and select "Beta".
- In the Catalog tab, open the Quicksilver entry and tick "Proxy Objects".
- In the Triggers menu, create a new hotkey trigger for the QS command
"Current Application" with the action "Show Menu Items". I use
ctrl-space as hotkey for it.
Now open up TextMate, open a new document, press ctrl-space and type
"lor" for example, this will give you the "lorem ipsum" command.
Have fun,
Jeroen.
I like how TextMate seamlessly merges user bundles with the default
bundles. I can add new snippets, for example, and they'll be stored
(transparently) in my ~/Library folder, so that when I upgrade to a
new version of TextMate, my custom snippets won't get blown away.
This works great for adding things to the default bundles, but what
about changing them? I know any changes I make to a default bundle
will override the original, but that works well only until the next
TextMate release comes out. Consider the release notes from the
recent update:
"Lots and lots of changes, fixes, and additions to the bundles."
That means wherever I've made a change to a bundle, even small
tweaks, I'll be losing all these bug fixes and enhancements that have
been made in the new version. For this reason, I've been avoiding
making any changes to the default bundles, but of course this
prevents me from tweaking the bundles to suit my particular needs and
workflow.
I'm wondering how other TextMate users handle this problem. Do people
track the bundle repository, merging upstream changes (and fixing
conflicts) as they occur? Or is it more common simply to avoid making
any changes at all, as I've been doing (reluctantly)?
Trevor
Hi,
Don't know what I've done or how it happenend, but I have inexplicably
lost the ability to save a file using Command-S on the keyboard. Saving
a file from the menu works fine.
I've tested the Command-S in other applications, and it works as
expected so I'm reasonably sure it's not a dead or malfunctioning key on
my keyboard.
I had hoped the recent update might restore the Command-S function, but
no joy.
Suggestions for how to get the Command-S function back?
Thanks
Joe
Is it possible to have "Soft Wrap" enabled for only a specific
bundle? I want to wrap text documents at 78/80 chars, and I know
TxtMate doesn't have "Hard Wrap" yet (hope it gets it some day ;))...
however, when I turn softwrap on, it seems to be on again until I
turn it off.
Anyway to avoid this?
Eric Coleman
I was wondering how to handle snippets for various XML types. For
example, I'm developing some snippets for the Quotation Exchange
Language [1]. Although QEL is just XML with a specific schema, its
snippets are totally unique and would be useless in any other XML
file. That makes me inclined to give the QEL snippets their own scope
(to avoid potential naming conflicts between tag triggers). But how
can this be done? It seems like I'd have to create a new language
type for QEL, but I'd simply be duplicating the XML bundle -- not
just for QEL but for all the XML file types I'm writing snippets for.
The thought of all that redundancy bothers me; perhaps there's some
way of "subclassing" the XML language type? Or is there an entirely
different way to handle this kind of thing?
Trevor
[1] http://www.amk.ca/qel/
How could I go use keystrokes to select text from the cursor to the
next (or previous) occurrence of a searched term? This would be
really helpful for automating tasks, for example, in quickly hacking
out macros that can operate on variable-length text fields (where a
"select until next tab" would be useful -- using ^W doesn't help with
URLs). I'm aware that I can get around this using find-and-replace of
an entire block of text via regular expressions, but was wondering if
there's something more procedural.
Thanks,
Shiran
Hi,
I would like to disable the automatic file backup in TM. I didn't find an
option in the preferences menu - could someone please tell me how to do
this?
THX,
Andreas
Hola,
As long as we don't have that snippet repository yet: here are two
small snippets I have been using a lot lately:
Variations on the "link" snippets:
[${1:mail}](mailto:${2:HREF})
[${1:file}](file:///${2:HREF})
Dan
Hi all,
unfortunately I modified "Slush & Poppies" theme and ruined the
colors. Is there a way to get back the original "Slush & Poppies"
theme with its standard colors?
THX,
Andreas
Hello,
i want to use textmate for my diploma. i am trying to use latex for this.
so, suddenly this massages appear. textmate ask me after i tried to
save a document for my root passwort. the templates of textmate do not
running if i want to build them.
i reinstalled latex and textmate. what i did wrong?
error Massage
Compiling LaTeX...
This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
Document Class: exam 2004/08/14 Version 2.2 by Philip Hirschhorn
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
! LaTeX Error: File `pdfsync.sty' not found.
./untitled
See the log file for details
untitled.log
Found 2 errors, and 0 warnings in 0 runs
I see where the subversion menua has the option of updateing the
entire project, but I do not see one for commiting the entire
project. Am I not seeing it, or does it not exist?
Thanks.
Hi All,
I'm sure the printing will get improved in the future but for the
minute I find it a bit limited (font size too big etc).
I've setup a command in the text bundle using a2ps (you can get this
from darwin ports, probably fink and other places as well).
Save: Nothing
Command(s): a2ps --center-title=`basename "$TM_FILEPATH"` --font-size
8 --pretty-print --columns 1 -M A4 -R --line-numbers 5 -o - - |
ps2pdf14 -sPAPERSIZE=a4 - /tmp/textmate_print.pdf && open /tmp/
textmate_print.pdf
Input: "Selected Text" or "Document"
Output: Discard
Activation: Key Equivalent - "Command P"
This will create a pdf called /tmp/textmate_print.pdf, and opens it
in Preview (or acroread, or whatever your default pdf viewer is). If
your happy with it you can just hit Command P to print it.
At the minute this prints in font size 8, but thats easy to change,
it also prints in A4, if you change this you'll need to change both -
M option to a2ps and the -sPAPERSIZE option to ps2pdf
jebw
I'm trying to add a Delete command to the Subversion bundle. I've got
the basics working, but now I'm trying to make it look nice.
Here's the command as it is now:
require_cmd "${TM_SVN:=svn}" "If you have installed svn, then you
need to either update your <tt>PATH</tt> or set the <tt>TM_SVN</tt>
shell variable (e.g. in Preferences / Advanced)"
rv=`CocoaDialog textbox --title "Delete from Repository" --string-
output --no-newline \
--informative-text "These files will be scheduled for deletion
during the next commit." \
--text "${TM_SELECTED_FILES:-$TM_FILEPATH}" --button1 "Delete" --
button2 "Cancel"`
if [ "$rv" == "Delete" ]; then
eval "$TM_SVN" del "${TM_SELECTED_FILES:-$TM_FILEPATH}"
elif [ "$rv" == "No" ]; then
exit
elif [ "$rv" == "Cancel" ]; then
exit
fi
What I want is the list of files in the CocoaDialog textbox to be
newline-separated, and have the enclosing quotes removed (ideally,
the project base path as well). I don't have any bash-fu to figure
this out.
Help please?
Thanks,
Ken Scott
Hi,
I like using key commands for scrolling / reading. That is, not just
moving one line up/down, more like continuous movement vertically.
Navigation -> Scroll -> Line Up/Down
Question,
Using this command (while holding down / key repeat), firing a
shortcut makes the top-menu blink. So, when using it for continuos
scrolling it feels a bit sluggish due to this.
Also, when I've scrolled say 1 1/2 page, how do I center the cursor
on the visible area!?
Why,
I'm used to this from bbedit where you have ctrl alt and command +
arrows for scrolling in different speeds. Say ctrl-down = one line,
ctrl-alt-down = three lines, etc. Then when you see that line you
wanna edit, I use command-shift-J for moving the cursor -> "Go to
center line".
In bb I don't think the shortcuts for this is available in the main
menu, which makes them run without the menu-blink for each key repeat.
best
/David
Mark,
just open the LaTeX Bundle and edit the "Typeset & View" command,
everything needed is there. e.g. you could include a new variable for
your projects that gets used in this case and allows for more
flexibility than "hard-coding" it in the bundle itself.
If you think these may be useful additions to us Latextmaters, send
'em to this list as well!
Dan
Nice work on this feature Allan! I put together a (quick and dirty)
command for the AS bundle to extract the selected text to a new
function and re-indent it. Would this be useful to anyone else? I'll
commit it to the repo if there's any interest.
Ben
I'd personally be very interested. I just started doing a few simple
but much needed additions to the bundle as well (like folding blocks
for conditionals, do's etc.), but i'd rather save the time if
somebody already added the things that are needed. I think the
current bundle is great in terms of lowest-common denominator, and as
such it may be that people are opposed to expanding it to the point
where it becomes a matter of taste and style. But i guess you could
talk to the maintainer (who?) and see if he might be open to any of
your additions. In any case, I (and surely others) would love to take
a look at your enhanced bundle. @everybody, Is there a place where to
upload alternative bundles?
Sebastian
James Edward Gray II wrote:
> Hi all.
>
> I use TextMate for Ruby programming all day everyday
> (professionally). I just recently bought a new computer and am
> slowly migrating everything over. I wanted to rebuild my TextMate
> snippets and commands in the process, so I could reevaluate what
> I've created, fix minor annoyances I have found in usage, and
> improve on what I have created.
>
> I have a pretty large set of additions in my old Ruby bundle. I
> have tons of snippets for iterators, testing and common language
> constructs, a few handy commands (like switching { ... } to do ...
> end), and even snippets for many standard libraries (like
> YAML::dump/load and an OptionParser skeleton).
>
> My questions are:
>
> 1. Is there any interest in me providing these additions publicly?
> 2. Would if be allowed for me to add some or all of this to the
> default Ruby bundle?
>
> I figure I'm going to be entering all this again anyway. It
> doesn't matter to me if it's just for me or for all of us. I
> didn't know if there is some desire to keep the default bundles
> pretty small or anything though. Let me know if there's interest
> and, if so, how best to provide it.
>
> Thanks.
>
> James Edward Gray II
Hi all.
I use TextMate for Ruby programming all day everyday
(professionally). I just recently bought a new computer and am
slowly migrating everything over. I wanted to rebuild my TextMate
snippets and commands in the process, so I could reevaluate what I've
created, fix minor annoyances I have found in usage, and improve on
what I have created.
I have a pretty large set of additions in my old Ruby bundle. I have
tons of snippets for iterators, testing and common language
constructs, a few handy commands (like switching { ... } to do ...
end), and even snippets for many standard libraries (like YAML::dump/
load and an OptionParser skeleton).
My questions are:
1. Is there any interest in me providing these additions publicly?
2. Would if be allowed for me to add some or all of this to the
default Ruby bundle?
I figure I'm going to be entering all this again anyway. It doesn't
matter to me if it's just for me or for all of us. I didn't know if
there is some desire to keep the default bundles pretty small or
anything though. Let me know if there's interest and, if so, how
best to provide it.
Thanks.
James Edward Gray II
On Apr 2, 2006, at 18:42, Allan Odgaard wrote:
> On 2/4/2006, at 20:27, Michael Sheets wrote:
>
> > What you could do is move them to a custom bundle "Ruby James" or
> > similar then post the link on this list. Let people take a look. :)
>
> That sounds like a good idea. The Ruby bundle does IMHO need some
> clean-up before more stuff is added.
Fair enough, I will place my additions in a new bundle as I create
them and put it online for others to examine...
James Edward Gray II
All,
Sorry to bother the list with this stupid question, I know nothing
of RegEx and have been trying to grasp it, and the way it works in
TextMate. Basically for my needs all I need to figure out is how to do
if statements. Here is what I am trying to do:
Snippet:
function():$1 {
}
if $1 != Void, then put in a return statement like this:
function():Array {
return
}
Which I can add the variable name to return later.
Any help and I will be extremely grateful. Thanks for your time.
best,
Aaron Clinger
http://aaronclinger.com
There's a great site for a new web framework called SQL on Rails.
http://www2.sqlonrails.org
They even have an 8 minute screencast where they develop a full internet search
engine. The magic and power of the system is thanks to textmate snippets. Just
thought you all would enjoy spotting textmate in something this brilliant.
--clm100
It looks like TextMate only recognizes Perl-style backreferences when
doing a regular expression search/replace. (e.g. $1, $2, etc.) I'm
used to the style typically found in text editors: \1, \2, etc. Is
there any way TextMate can be made to recognize the latter style?
Trevor
Is there a way to use latexmk in the typeset and preview command in
the LaTeX bundle with any of its options---like -pvc say?
Thanks. All the best,
Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy
Personal wepage: http://www.kalderon.demon.co.uk
feature request:
redo last action
redoes the last snippet, macro or command that you just did.
I have a lot of commands and snippets and things that i only use once
every so often. So I don't give them a tab completion or shortcut.
Many of them I would like to use multiple times in a row.
Currently, i could record a temporary macro, run the command and then
rerun the temp macro.
But I never remember to do that.
It would be way handier to have this extra function, too.
Thankyou, and goodnight everybody!
I'm trying to disable auto-indentation for the lines below starting
with 'case'. This is how I'd like the code to appear:
switch ($where) {
case 'start' :
# code...
break;
default :
case 'middle' :
# code...
break;
case 'end' :
# code...
break;
}
However, by default, the php bundle wants to format it like this:
switch ($where) {
case 'start' :
# code...
break;
default :
case 'middle' :
# code...
break;
case 'end' :
# code...
break;
}
I've added this preference item to the php bundle for source.php, but
it's not working:
/* preferences */
{
unIndentedLinePattern = '^\s*case\s+.*$';
}
Am I doing this right?
Thanks,
Q
Hi everybody,
I am a 25 year old bioinformatics student and passionate rails developer
from germany. However, for my upcoming diploma thesis OCaml will be my
programming language of choice. Of course I would like to be able to stick
with Textmate and code OCaml in Textmate but unfortunately there is no
integrated default syntax highlighting for OCaml and I could find only one
bundle for OCaml. The bundle is listed on the old wiki page
http://wiki.macromates.com/textmate/show/Bundles102.html ,but unfortunately
its link http://ianp.org/articles/textmate/OCaml.tmbundle.zip is broken.
Does anybody know where I can download this package or maybe point me to
another OCaml bundle with syntax highlighting?
THX and sorry for my bad english,
Andreas
After running Tidy on documents with a doctype of
XHTML 1.0 Transitional
The doctype definition is replace with the "Strict" version.
I did a little digging and there is a -doctype switch in Tidy, but
setting it to
--doctype -transitional
in the Tidy bundle has no effect... Transitional is still changed to
Strict.
Any ideas how to fix this?
eo
Hello all,
As you may have noticed, the cycle of TextMate betas has slowed down
recently. When talking to Allan yesterday, I asked him about the
progress of reworking TextMate's innards. He confided me that during the
recent months MacroMates has been cooperating with TheCodingMonkeys
working hard to exchange experiences and to merge their editors.
Later today a new beta of SubEthaMate will be released, as a combined
effort between TheCodingMonkeys and MacroMates. This new beta will
feature preliminary support for both of SubEthaEdit and TextMate
strongpoints, collaboration features, access to the Unix shell, and
remote editing over (S)FTP.
The beta will of course be very rough around the edges, and it will
require extensive testing and feedback to get all this right. Allan told
me that the new beta will be released only to the TextMate community
later today. The public announcement will follow when SubEthaMate is
more stable.
To be certain, I contacted one of TheCodingMonkeys, Martin Pittenauer.
He confirmed that they are working with Allan to create a stronger
editor. "TextMate and SubEthaEdit both have the same philosophy, selling
their editor at a low price and placing high value on usability. It is
time we combined our effort and knock BareBones off their throne.", he
commented.
He also told me that they are waiting for SubEthaMate to become
reasonably stable, before releasing it to their community.
I can't wait to get my hands on the new beta!
Jeroen.
Hey folks,
To the maintainer of the Java language bundle, I just pulled the
latest from svn. I didn't realize if the Java.tmbundle was update,
but there are (IMHO) some bugs in the language grammar that I'm
running accross that I don't think I've seen before but it's possible
I just wasn't looking:
FIRST:
When the cursor is immediately outside of a block comment, the scope
still shows "comment.documentation.java" or "comment.block.java" when
I don't think it should be (imagine the ^ character to be the cursor):
Example:
/* some comment here */^
-- or --
/**
* My method does this
*/^
the scope on the outside of the closed comment is being recognized as
comment.block.java and comment.documentation.java respectively when
really I'm out of the comment blocks.
SECOND:
All the code after an abstract method is scoped to
meta.definition.method.java, like for Example:
public abstract void doSomething();
// all code in the file below this is scoped to the
meta.definition.method.java
if I add a {} at the end of the abstract method signature the scope
gets fixed -- but, y'know ... then the compiler complains :-)
Thanks,
-steve
I'm trying out TextMate for the first time and I love what I see, but
I'm unable to run commands of any kind. They all fail with:
interpreter failed: Malformed Mach-o file
I've double checked my download and all the relevant parts of my
system. It's hard to imagine that this is very common, but has anyone
seen it before?
Thanks,
Patrick
A month or two ago I started making a Coldfusion bundle and haven't
look at it since... and now I'm back doing some CF work again the
highlighting is starting to piss me off, so I thought I'd ask you
guys: how do I do a bundle pattern that matches nested comments?
In CFML you can have
<!---
<cfif something eq true>
<!--- A nested comment --->
</cfif>
--->
and the whole thing should be syntax coloured as a comment.
The basic pattern at the moment is:
{
name = 'comment.block.html';
begin = '<!---';
end = '--->';
}
any ideas how to get nesting working?
-- Tim
Dear Allan,
I compiled the InputManager from svn and installed it similar to what
I found here on this list's archive (i.e. put both the .bundle and
Info into ~/Library/InputManagers/Edit in TextMate --- this works!
Great, now I can write my emails in TextMate (which is sooooo much
better than Mail.app) using Markdown etc.
Also the problem with the PropertyList bundle was odd. I deleted the
bundle from Disk and re-imported it from the svsn and now it is
available (again?).
And as a side note and feature request: Would it not be really great
if TextMate would take over in ALL Cocoa Apps? ;) Not just as an
InputManager, but as default editing view ;) Ahh, just dreaming again.
Daniel
Dear folks,
Is it just me, or does the CodeBrowser not work when TextMate is run
in Intel-Mode? When I start it in Rosetta everything is fine, in
intel-mode I have no CodeBrwoser, but instead a:
2006-03-22 01:00:00.774 TextMate[5326] *** -[NSBundle load]: Error
loading code /Users/dekay/Library/Application Support/TextMate/
PlugIns/TmCodeBrowser.tmplugin/Contents/MacOS/TmCodeBrowser for
bundle /Users/dekay/Library/Application Support/TextMate/PlugIns/
TmCodeBrowser.tmplugin, error code 2 (link edit error code 0, error
number 0 ())
2006-03-22 01:00:00.775 TextMate[5326] instance TmCodeBrowser plugin
doesn't have proper initializer
on my console…
too bad,
Daniel
I've written a little command to help me grep the current file and copy
matching lines to a new document. I've copied the example of "Search the
TextMate Mailing List" for the CocaoDialog. However my implementation is
stalling and I need to killall CocaoDialog to free it up.
Save: Nothing
Input: Selection
Output: Create new document
---
res=$(CocoaDialog inputbox \
--title "Find matching lines" \
--informative-text "Regular expression to match lines:" \
--button1 "Find" --button2 "Cancel")
[[ $(head -n1 <<<"$res") == "2" ]] && exit_discard
pattern=$(tail -n1 <<<"$res")
perl -ne "print if /$pattern/";
The only thing much different here from the "Search mailing list" code
is the use of stdin.
Hmmmm?
Q
Hi everyone,
Not sure if this is possible. Anyone ever use Zend Studio? The auto
competition and function prototypes are simply amazing.
Basically, completion happens automatically, and gives a nice drop
down with prototype information in it. Also, if you are inside a
functions brackets, it will show a prototype of the function, based
on the PHPDoc comments (if it's available).
Is this possible in the current version of textmate? I imagine it
would have to index the project to get this going. If it's not
possible, is it every planned? I immagine it would be useful for
ruby, javascript, and anything else really provided it had a method
to parse the source code in the project.
Regards,
Eric
Since TextMate already has such great support for Markdown I'm
wondering why Smartypants has been left in the dark.
I was reading this: http://rentzsch.com/notes/contemporaryQuill
...and wondering why a solution like this has not already been
implemented. The only reason I don't want to use this is because it
will break when TextMate has been updated.
Is there an implementation like this already out there?
So, in the process of writing the screenwriting bundle I'm working
(and using every day) I've come to the conclusion that it might be
cool to look into subversion for working with screenwriting projects.
Obviously I know nothing about subversion, so my question is:
Is this stupid?
Do you guys have any good resources for getting started with subversion?
Is there a better solution (since I'm just using text-documents)?
I can't seem to find a really good intro on how to use TextMate with
Subversion, did I miss it somewhere?
Thanks in advance.
>> [...] TextMate seems to show tabs and line endings but not any more of
>> the non-printing characters that BBEdit shows
>
> It does show unprintable characters, but not spaces.
It's good to know I wasn't doing something wrong. However, if the
functionality exists [and has already been written/tested] why keep it out
of a release?
Trust me, I want to fall in love with TextMate, but there's some things that
can't yet be done in TextMate -- I find myself jumping back to BBEdit in
order to accomplish these tasks.
> I found that to look too busy and the spaces should be indicated by where
> there are no other ,,invisibles% shown
I respect the consideration to keep the application lean and fast, but when
should a developer's personal preference get in the way of what his/her end
user's want out of a product?
> (I know there are requests for configuration here).
A simple option or preference would be a welcome addition and wouldn't
require people to use it. BBEdit conditionally allows one to show invisibles
and then selectively choose whether or not spaces are shown.
>> I was able to find the ShowInvisibles Bundle for TextMate that aims
>> to highlight tabs and spaces in different colors but it doesn't
>> appear to work with my setup and/or preferences.
>
> It was created prior to the theme system. What it does is give a
> certain scope to spaces (and other characters), but for that to show,
> you would need to add a theme rule for it.
This information is encouraging, but the bundle doesn't come with any
documentation or configuration instructions, only to edit the
Invisibles.plist to suit ones' needs.
Could you put together an example of a theme rule that would highlight the
spaces in a document using this bundle?
Allan,
I am curious: the PropertyList bundle keeps getting lost on my
system. No apparent reason why. A svn update does not tell me about
any changes; it is still installed - yet the bundle editor does not
list it in its filters list. I have to install it into ~/Library/
Application Support/TextMate/Bundles/ else it will not be listed at
all?! odd.
Daniel
Hi all,
I'm currently working on a website where I'm going to add text
through html forms. I have tried the Edit in Textmate option, but it
seems to be an issue with the encoding.
The site I'm working on uses iso-8859-1 as encoding, and when I get
the text in Textmate all Norwegian characters are not represented
correct. I guess this is because Textmate uses unicode in its
internal representation of the text. Are there any workarounds for this?
--
Mvh/Regards
Geir-Tore Lindsve
lindsve(a)bluezone.no
http://www.lindsve.net
I have a project with about 500 files that split neatly into a few
categories. Is there some way to split the project drawer or otherwise
get two separate scrolling views of different subsections of the project?
And/or can one get a multi-pane hierarchical view (like one of the
Finder views)?
It looks like Go to File... will often be the quickest way to open a
file, but sometimes I'll have to manually hunt through the hierarchy and
some hints on how best to wade through it would be much appreciated.
-- Russell