Congrats on 1.5...TextMate is 100% my editing environment (bb what?).
I just wanted to ask what the status is of implementing chunk-undo. I
was really hoping to see it sooner than later, it's still the one
major issue that frustrates me about TextMate.
Hi,
I've been trying unsuccessfully this afternoon to create something
that would perform 'save' and 'close' on a file with a single
keyboard shortcut (which would be apple-shift-d, same and 'send ' in
Mail) for the Subversion bundle. After all, that's what my fingers
seem bound to pressing when I've finished writing a svn commit
message (they must know better and feel it's like I've been writing
an email)... :-)
But recording a macros doesn't appear to work -- save doesn't appear
to be recorded as a macro action, and close appears to cause the
current macro recording to be cancelled.
I also had a look at using a command, which would allow me to save
the file first, but I can't figure out how to tell TextMate to close
the current file from there.
Can it be done?
Cheers,
Graeme
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
hi, some comments on the new version
Comment 1
the button in textmate's terminal usage dialog tries to make an alias
to the mate command in usr/bin
For me this operation failed (not permitted).
Question: I have an existing copy of the link in "~/local" ... Didn't
textmate used to expect ~/local rather than ~/bin ? What are we going
to settle on?
PS: could you make this command also add whatever folder it looks for
to the .bash_profile and also create ~/bin if it doesn't exist? (is
it xmas or what :-) )
Comment 2:
"templates" offers only strict version 4 html as a template for html?
Lots of us probably don't write code which is strict v4, so that
might be asking for trouble? maybe transitional as an option?
Comment 3
There is no comment 3
take care,
t
Hi,
Is there a shortcut to "Jump to the symbol under the cursor"?
I tried to write a macro with ^W, Cmd-E, Cmd-G but it searches the
string an not the symbol.
Also ^W, Cmd-E, Cmd-Shift-T... I would suggest a Cmd-Shift-T + Alt to
jump to the symbol selected and then people could write that macro...
Thanks,
--
Pedro Melo
JID: melo(a)simplicidade.org
Hi all!
I've been using doxygen to write documentation for a wavelet image
compression codec of mine, which is written in C. There I noticed two
things on folding, which are the following:
/** This is the basic "pixel" type.
* \Warning This should not be less than 15 bits + sign!
**/
typedef short int wv_pel;
Here, the end-comment marker has to have two *s, it doesn't fold with
one, but if I add a third * to the open comment bit, then it still
works?
Another thing which I couldn't figure out is the following:
if (foo > (bar >> 3))
{ /* this does something nice */
foo++;
}
else
{ /* not nice */
bar++;
}
Here, the folding does not activate with the comment on the same
line, which I actually use quite often.
I am really bad with regular expressions, so I couldn't figure out
what they're trying to (referring to the folding patterns). I am
aware though, that I can change them myself if I were so inclined,
but I just wanted to ask whether TM expects me to do the above things
in different way which may be equally nice.
Oh, and Allan, nice website overhaul. :)
Thanks,
Daniel.
Hey all,
Not sure how many people out there work with both MTASC and TextMate
(more than just me I hope), but I just put this up and thought it might
be of interest:
http://tinyurl.com/d8syh
There's a video of it in action here:
http://www.unfitforprint.com/articles/2005/12/19/developing-flash-on-a-
mac
Let me know if you find it useful.
- Ben
P.S. Apologies for the cross-post :P
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
One option is to use a menu button, though I'd make it slightly more
awkward to perform a Replace in Selection but OTOH it would allow to
(also) show the Replace All in Selection key equivalent right there
in the find dialog.
Just a little yay! for the work on the manual. I was looking for
indentation rules and found it in justa few clicks in the manual. At
least this time; it just worked :D
Andreas
I like the TextMate auto-update feature except for one thing: After it
updates, I have to re-install my custom icons [1].
Is there any way I could protect them from auto-update? Does it use rsync?
If yes, maybe add an --exclude flag to it?
[1] http://one.textdrive.com/pipermail/textmate/2004-November/001211.html
For some time now i've noticed that, *occasionally*, when I do:
expr.each doo|<TAB>
I end up with
expr.each doo
|
instead of
expr.each do |_|
|
end
as I would expect. I had assumed that I was somehow pressing <CR>
instead of <TAB> but I just caught myself and I am 99% certain I
pressed <TAB>.
So it seems to me like, sometimes, the trigger doesn't fire to do the
snippet. I think I've noticed it for the last few versions.
Does anyone else see this?
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
I've created the beginnings of a bundle for use in screenwriting and
I'm looking for help to develop it further. As it stands now,
TextMate is used solely for it's behavior (snippets, macros, etc.)
but I hope that it's abilities can expand with your help.
Specifically, I'm looking for:
* Code clean-up. I've hacked together a working prototype, but I'm
sure there is much redundancy and inefficiency in what I've done.
* Exporting options. The ability to export to HTML and PDF (perhaps
via LaTex?), so proper formatting can take place.
If you are interested in helping, download the bundle at the url
listed below and contact me. The objective here is to create an end-
to-end solution for screenwriting that rivals FinalDraft and
MMScreenwriter, and I believe we can do it.
link: http://www.ollieman.net/files/bundles/screenplay.zip
email: oliver at ollieman dot net
There is no documentation, but to get started:
"ext" and "int" are tab-triggers for slug-lines
"option+tab" creates transitions
"shift+tab" creates characters
poke around the bundle for more behavioral abilities.
P.S. Should I post this in the bundle dev list?
I may be mistaken, but is there a bug with the move line up/down feature?
Whenever I do this the line that is selected after the move is not the line
that I moved, in other words if I move a line down then the line that gets
selected is the line after the one that moved, so if I want to move a line
up 2 lines I have to move it then move the caret up a line then move it
again, is this how it it supposed to work? Or am I missing the point
somehow?
Many Thanks
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hi,
I'm new here. Just started using TextMate, and I have a problem where it
is freezing for up to minutes at a time.
I’ve been using it to work from home. Whereas in the office we use
Microsoft Developer Studio (on Windows), that happens to be a bastard of
a slug of a text editor over a Remote Desktop connection, so I have
connected to my Windows file share over SMB over my VPN, and set up a
TextMate ‘project’ with all my files. (I compile remotely, over the
remote desktop connection, or via Ssh.)
Now TextMate is a lovely editor, and it didn’t take much effort to have
it syntax-highlighting C# code. Only one problem with the otherwise
(almost) perfect setup: when I have the project loaded into TextMate
(600-odd files), when I change focus to another application, then focus
again on TextMate, TextMate hangs for at least 20 seconds. I presume
that this is something to do with it checking the files, because a local
project doesn't seem to have this problem.
Potentially it’s some kind of network timeout (though I checked my
various firewalls to see if some bits of the windows file sharing were
being blocked, and that doesn’t seem to be the case).
I know that SMB is a dog over a remote connection (I'm on 2Mbps ADSL,
and my office is 512kbps, I think), but this is almost unworkable,
especially when it decides to go slow and takes 90 seconds rather than
20 (it's somewhat unpredictable. I assume it’s dependant on network
conditions).
Does anybody have any ideas? Or should I report it as a bug? (Even if it
is a network problem, TextMate could presumably check the files in the
background, or at least provide progress feedback.) Has anyone else had
this problem?
Thanks,
–Andrewf
I often need to compare two documents side by side so I wrote a little
applescript that repositions the two front windows. I've attached the
script in plain text format.
Just posted the following to my blog (you can post feedback here or
on the blog post, if you have any):
I am planning to release 1.1 final next week. While I do get many
repeated requests, one of the issues that has been hard to overlook
lately is the lack of thorough coherent updated documentation.
<!--more-->
This has now changed after spending a few weeks writing more or less
full-time (so that's why there has been no nightly builds, although I
will likely put out one later today with a dozen minor items in the
change log).
Here is the first public draft of the [TextMate manual](http://
macromates.com/textmate/manual/).
Don't hesitate to post feedback as comments to this entry.
Currently the documentation is low on use-cases. I hope to
iteratively improve this over time, as I think that when people ask
for documentation they are in fact much more interested in how to
combine the features of TextMate to solve the task at hand, than the
core facts about how to move the caret and such.
This of course is quite a challenge, as the tasks and possibilities
are infinite. I myself regularly find new ways to use TextMate to
improve my workflow in ways I would not have thought of just a few
weeks earlier. Writing the documentation was no exception. One of the
cooler things I discovered was that I could add the command below as
a preferences item to the `entity.name.reference.markdown` scope to
have escape suggest completion candidates from my aggregated
reference list, when inside a Markdown reference (given as `[link
text][REFERENCE]`).
{ completionCommand = 'sed -n \
"s/^\[\($TM_CURRENT_WORD[^]]*\).*/\1/p" \
"$TM_DIRECTORY/markdown.references"';
disableDefaultCompletion = 1;
}
Should you somehow have missed my countless references to [Markdown]
(http://daringfireball.net/projects/markdown/) then for the records
let me just state that the documentation was written in Markdown and
I absolutely love it!
Hello everyone,
I posted an applescript to make it easy to open the current finder window in
TextMate. Check it out here:
http://www.bigbold.com/snippets/posts/show/1037
I attached a screenshot of my finder window so you can see how nicely it can
be integrated into the finder.
Thought this might be useful to fellow TextMate users.
Cheerio,
Simon
hi,
i made a fairly complex match in a language (mx - a structural
equation modeling package)
The language formatter mis-sorts the capture list (sorts on the basis
of first digit, not on the numeric value of the match number).
Doesn't affect function, but it is a bit messy to read.
Here it is after autosorting:
{ name = 'meta.Start.values.matrices.mx';
match = '(?i)^\s*(Start|Value)\s+(\d*\.?\d*)\s+([A-Z])\s+(\d*)?\s*
((\d+)|([^, ]+))\s+((\d+)|([^, ]+))(\s(to|-)\s+([A-Z])\s+(\d*)?\s*((\d
+)|([^, ]+))\s+((\d+)|([^, \n]+)))?';
captures =
{ 1 = { name = 'keyword.control.start.mx'; };
10 = { name = 'constant.mx'; };
12 = { name = 'keyword.control.to.mx'; };
13 = { name = 'support.other.variable.matrix.mx'; };
14 = { name = 'constant.numeric.mx'; };
16 = { name = 'constant.numeric.mx'; };
17 = { name = 'constant.mx'; };
19 = { name = 'constant.numeric.mx'; };
2 = { name = 'constant.numeric.mx'; };
20 = { name = 'constant.mx'; };
3 = { name = 'support.other.variable.matrix.mx'; };
4 = { name = 'constant.numeric.mx'; };
6 = { name = 'constant.numeric.mx'; };
7 = { name = 'constant.mx'; };
9 = { name = 'constant.numeric.mx'; };
};
},
Is this possible? If not, could you put it on the roadmap, Allan? :)
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
hi, just made a new bundle and dragged an existing item into it.
All went well (like how the item shows where it will go), but the UI
did not update well: the list was displaced left during the drag, and
then it didn't redraw (all the disclosure triangles hidden).
Goes away after a forced redraw by altering the pane width.
Is there a way to change the language for the spell corrector ? Wether I
write a mail in french or in english I can get a whole red underlined text.
-- Erwan
When I am using the Ruby on Rails programming language, my cursor
positioning always seems to be off by one or two characters. Its very
strange, very frustrating!
When I am editing a plain text piece, its fine, but when I am doing
ROR it appears to be off ever so slightly, enough so that it doesn't
quite register properly.
has anyone else noticed that?
--Alan
I'm trying to match a curly bracket in a foldingStopMarker but I
can't for my life get it to work. The startmarker works but not the
stopmarker. Eg.
works {
hello
}
doesntwork {
hello
}
My language is defined as:
foldingStartMarker = '\{\s*$';
foldingStopMarker = '^\s*\}';
/Tomas
Hi,
just a little questions about the invisible helpers to see tabs and
line endings.
Why does TextMate uses other marks for line endings as for example
SubEthaEdit, you get use to the marks of TextMate but would really
like know why at all?
Second more interesting for me, where are the signs for spaces? There
are absolutely no signs for spaces. Which makes it quite annoying, you
have to guess how many spaces or just to try with the cursor.
I hope someone can help me. To find answers for my little questions.
Thomas
> > This would be an awesome feature. Has it been requested yet? Thanks,
>
> What does it actually mean?
Like, for example, I want to pipe my current file through some command
that would add some code at a specific point (say extract some lines to
a new function), and outputs a snippet. It would be as if I ran the
command with all the text selected and set the output to "replace with
snippet", except this way I can still get the current word or selected
text to pass as input to my command.
Is that clearer?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi. I've been trying to modify the HTML language so that it understands
embedded Python code, as you find in a Kid template. For example:
<?python
def shoe(potato):
pass
?>
By default TextMate thinks it's PHP code (source.php.embedded.html).
I thought it would be pretty straightforward, and copied the chunk
of config that appears to setup embedded ruby. I ended up with this,
defined just beneath php-source:
python =
{ name = 'source.python.embedded.html';
begin = '(?:^\s*)<\?python(?!.*\?>)';
end = '\?>(?:\s*$\n)?';
patterns = (
{ name = 'comment.line.number-sign.ruby';
match = '#.*?(?=-?%>)';
},
{ include = 'source.python'; },
);
};
However, when I click "Format" and "Test" in the Bundle Editor the text
in my editor is still marked up as PHP. I removed all the PHP stuff to
see if it was overriding the Python settings, but it didn't help.
What should I be doing for this?
Cheers...
--
Graham
This email is a bit off topic, but I thought it might be useful to any
developers who are making screencasts. I've written a little ruby
script called ghostwriter which uses apple gui event scripting to
produce applescript that makes it looks like you're typing. I've found
it very useful when for making demo code, because unlike me, the
computer never makes a typo!
It's available at http://www.had.co.nz/ghostwriter/
Hadley
On some occasions I use to code html pages with Romanian special
characters. Unlike with the German special characters (ä etc.) I
feel better to use the standardized entities for Romanian characters
in the form ă etc.
In TextMate I could not find out yet how to convert a text selection
with Romanian special characters typed so that only the special
characters are converted to entities. In my page *every* single
character is replaced by its entity and makes the text illegible.
Where is the solution I missed in the manual?
Hello,
the Move Selection Line Up / Down feature does not seem to work correctly.
I have
A
B <caret
C
then press cmd-ctrl-up and get
B
A <caret
C
The caret should also move up one line, so I can further move the line, no?
Moving down from
A <caret
B
C
gets me
B
A
C <caret
As you can see, the caret is misplaced again.
Can someone confirm this, or is it some local problem of mine? I use
Textmate r847.
Bye,
Martin
(Sorry, if this message goes through twice. I originally tried the
gmane NNTP access but don't see my posting in the archive)
Hi,
sorry if this is a common question, but I searched the wiki and the
ml archives a couple of months back and I could not find an answer.
The TextMate service does not appear on my services menu. TextMate
was installed a couple of weeks ago, and I've logged out and logged
in a couple of times since then and still nothing.
I'm using version Version 1.1b17 (847), and TextMate is installed
inside the /Applications folder.
Thanks in advance,
--
Pedro Melo
JID: melo(a)simplicidade.org
Greetings,
I've been searching for the official line on variable width fonts in
TextMate but cannot find it anywhere---though I seem to remember
reading it before. Is it on the to-do list at all? I understand that
for most(?) TM users it is a non-issue, being programmers, but as I
use TM 95% for ConTeXt/TeX paper writing, it sure would be nice.
Anyway, I bring it up again because it occasionally starts to bug me,
and I can't leave the editing capabilities of TM behind ;).
Kind regards,
David
This would be an awesome feature. Has it been requested yet? Thanks,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
I searched through the archives to see if there was some sort of
functionality that would list all your TM Projects in a concise list
(in either a sticky or popup window) to ease switching to different
projects.. Didn't find anything (did I miss something?) and ended up
putting something together with Butler that is really slick and
thought I'd share.
* I moved all my .tmproj files to a single folder in my Websites
directory
* added a container in Butler with the folder containing all
my .tmproj files inside it
* assigned the container a hotkey ctrl-opt-w and set it to: "Opens a
menu near the mouse"
I previously had all the .tmproj files inside each site's homedir,
and set Butler to only show files with a .tmproj extension with 2
levels of recursion, but it was too slow. Making a dedicated tmproj
folder makes this an instantaneous popup with ctrl-opt-w that shows
all my TM projects, which can be opened by keyboard or mouse. (I
guess this could be done with within TM with shell commands, too, in
a very similar manner, but using Butler allows you to open a project
from anywhere.)
Also, this is buried in the wiki, but what put me over the fence on
agreeing S/FTP integration in TM was unnecessary, allowed me to drop
Dreamweaver from my workflow completely, and caused me to buy
Transmit & TM instantly was this simple command:
osascript -e 'tell app "Transmit" to open POSIX file "'"$TM_FILEPATH"'"'
Set this to a command triggered with cmd-shift-u, and TM first saves
the local file, then sends the file to Transmit, which will then auto-
upload to the appropriate server if the file belongs to a DockSend-
enabled favorite in Transmit. (Allan has this listed for Interarchy
in the wiki: I just changed "Interarchy" to "Transmit".)
Nate.
---------------------
CLIXEL Design & Coding
http://clixel.com/
So, I know that this is already on the todo list, but I'm curious
what the status of nested snippets is. I'm talking about initiating
another snippet while still in the placeholder of another snippet.
Then when you tab out it would return to the previous snippet(s).
I'm sure a few thorny issues might come up in implementation, but the
general idea is just a stack of active snippets instead of a single one.
The reason I ask is because often when I create snippets I am forced
to choose between something like:
<p>$0</p>
and
<p>$1</p>$0
The first one is sometimes preferable because I can then put another
snippet right in. However in general I would prefer to use the
second form. With nested snippets we get the best of both worlds.
TextMate already had an easy time replacing BBEdit for me, but this
feature alone would probably double my HTML creation speed.
> I'm intrigued.
>
> are the movies teensy, or are my eyes failing? I wanna see what
> youre *doing* ..
Yeah, the movies are teensy... 30% I think. I'll up some larger
versions when I get around to re-recording them ;)
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi.
I have created a two reference cards for the TextMates default
keymap, and most of the RoR related snippets. Not much, but they have
helped me...
André M. Bonkowski
Hi,
If I set the scope of a doc to SQL and enter a select statement, I see this:
In pepper (TextMate¹s spiritual parent as far as I am concerned: soooo far
ahead of its time on everything except folding!), I get what I expect:
Am I doing something wrong?
tim
Hi,
Since I updated from the previous to the latest TM version, any time
I switch from another application to a TM window TM is unresponsive
(pizza wheel) for approximately 3 seconds (time appears to depend on
how many projects are open).
Even if I have TM front, click any other App's window and immediately
back to TM that delay is observed.
Gerd
(I read the manual, did a search of the archives for "diff FileMerge" and
read all hits before writing this email, and I have also tried a couple of
the Diff commands in the Subversion bundle.)
I am wondering if, either as part of Allan's documentation effort, or as
some bundle maintainer's efforts, a simple "How to Find Differences Using
TextMate" document could be written. Because I confess, I am at sea as to
how to get a useful, usable diff of two similar documents.
My gold standard for usable differences is (as many of the list postings
discussed) BBEdit. In particular, it has a menu command, "Compare Two Front
Documents", which provides a highly usable interface to locate, review, and
merge/modify the differences between two open documents. FileMerge, while
flawed in some important ways, also provides a reasonably useful way of
interacting with two files. (The diff output of the Subversion bundle is
not suitable to my group's needs.)
For me, it's *critical* that a usable diff command *not* require either
document to be under revision control. I am the first person in my group to
be using any form of revision control more sophisticated than DreamWeaver's
simple file locking. Subversion is being used only on new projects which I
am in charge of, which is a very small percentage of the stuff I'm working
on, so it'll be a good while before I can count on having stuff in
Subversion.
Perhaps this suggestion will be taken as rude (and it won't be useful for
non-BBEdit converts who don't have a BBEdit license), but it would be
perfectly acceptable for a TextMate differences command to simply pass
along the two file references to BBEdit's command line differences program,
bbdiff, if the process would allow me to resolve my differences there and
have the results saved back into my open documents in TextMate. A more
universal version might use FileMerge instead of bbdiff.
Last, an offer: If there is an acceptable differences command already, and
someone will write up a quick list of the steps to use it ala the "Compare
Two Front Documents" command, I will write up a complete tutorial, complete
with screenshots, etc., suitable for the complete newbie (such as myself,
and my co-workers).
I'm a good technical writer, by way of credentials, here are some URLs to
Mac OS X documentation I've written:
* PGP Desktop Manual Proxy Settings: <http://aldoblog.com/blog/493>
* Getting Started with m0n0wall:
<http://www.aldosoft.com/docs/m0n0wall-getting-started.html>
* A whole series of articles covering audiobooks on iTunes and the iPod:
<http://aldoblog.com/audiobooks/>
So, I'll commit to writing some quality docs for the wiki covering a
differences command, if someone will point me in the direction of a
differences command that is useful for my (and my co-workers') needs.
Thanks!
--
_____________________________________________________________
Michael A. Alderete <mailto:lists-2003@alderete.com>
<http://www.alderete.com>
> On 18/12/2005, at 2:10, Michael Sheets wrote:
>
> > Actually... allan will have to back me up on this but I think it's
> > impossible. An empty line has nothing on it but the ending return,
> > and then only if it's not the last line. Therefore there is nothing
> > to actually be matched [...]
>
> Indeed, yes.
I believe you, but it's confusing because I can match all the empty
lines in a given document with "^$". Oh well. No dice.
Hey all,
Thanks to Allan & co (is there really an '& co'?) for all the hard
work--been using TM for about a year and still loving it :) I'm
having an odd issue which I fear is actually a feature and not a bug
(and I'm not even positive it's TM's fault), so to speak, but am
asking anyway.
Most monospaced fonts such as Monaco, Bitstream Vera Sans Mono,
Andale Mono, &c, show up as vaguely bold when antialiasing is turned
on; however I only realized this recently when messing around with
Markdown and its syntax highlighting.
When surrounding text with double asterisks, which as I'm sure
everyone knows is Markdown for bold, the text actually gets *less
bold* compared to the rest of the text! With antialiasing off, the
amount of bolding is normal, e.g. stuff in double-asterisks is
noticeably stronger than everything else.
When using Courier or Courier New, things also look more normal (with
antialiasing on *or* off). However, I hate coding with serif fonts,
so just switching to Courier isn't really an option. I've looked
around a bit for other fonts but so far they all display the same
behavior as the bunch mentioned earlier.
So. Is this something TextMate is doing, or is it at the system
level? In the various terminal apps I've never had issues like this.
And regardless, does anyone have any suggestions? I realize that at
the end of the day it's a silly thing to complain about, but I tend
to be a stickler about stuff like this; if, when writing in Markdown,
my italics are italic, I'd like my bolds to be bold too =)
Thanks for your time,
Jeff
--
Jeffrey E. Forcier
Junior Developer, Research and Development
Stroz Friedberg, LLC
15 Maiden Lane, 12th Floor
New York, NY 10038
[main]212-981-6540 [direct]212-981-6546
http://www.strozllc.com
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No right to
confidential or privileged treatment of this message is waived or lost
by any error in transmission. If you have received this message in
error, please immediately notify the sender by e-mail or by telephone at
212.981.6540, delete the message and all copies from your system and
destroy any hard copies. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this message if you are
not the intended recipient.
Hi,
the Apache commands are fantastic! Using them highlighted a little
bug for me:
1. close all documents
2. go to Automation:Run Command:Apache:
expect: see "Open httpd.conf" usable
obtained: All commands grayed out
I think the best answer is to make them all available, even if this
is inappropriate, and let the command have some error checking to
feedback to the user that it needs a document, if necessary.
tim
我爱言论自由人权和民主
“I love freedom of speech, human rights, and democracy"
I also don't like the patriot act, or DCMA
I would assume that the following would assign a scope to an empty
line, but it's not working. Any ideas? Is this possible?
{ name = 'splay.empty';
match = '^$';
},
>> So, this was working perfectly, and then all of a sudden the
>> command started crashing TxMt. AFAIK I did nothing to make it start
>> crashing. Allan, any idea what might be up?
>
> No idea what would do that, other than a bug in WebKit :)
>
> Could you quote the first few lines of the stack dump?
dyld: /Applications/TextMate.app/Contents/MacOS/TextMate Undefined
symbols:
OpenGL undefined reference to _gll_noop expected to be defined in
/usr/X11R6/lib/libGL.dylib
OpenGL undefined reference to _gll_pkey expected to be defined in
/usr/X11R6/lib/libGL.dylib
Looks like an X11 conflict. Found a fix in the following thread:
http://forums.macosxhints.com/showthread.php?p=115505
Thanks :D
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Il giorno 17/dic/05, alle ore 22:22, Oliver Taylor ha scritto:
>> I would assume that the following would assign a scope to an empty
>> line, but it's not working. Any ideas? Is this possible?
>>
>> { name = 'splay.empty';
>> match = '^$';
>> },
>
> IIRC you have to match the \n as well in order to match the whole line
Yeah, I've tried every iteration, \n^$, ^\n$, ^$\n ... as you might
be able to tell I'm really bad with regexp.
any help is appreciated.
> Oh, and change .* to .+ to exclude the current word, i.e.:
>
> completionCommand = 'perl -pe "s/^\t{4}($TM_CURRENT_WORD.+)\$|.*
> \n?/\$1/" <"$TM_FILEPATH"|sort|uniq';
That works great. Don't know what changed. thanks.
I'm creating a custom bundle for screenwriting and I've got most of
it down, but I want to leverage textmate's completion abilities. For
example, I've got this is the language:
{ name = 'splay.character';
match = '\t\t\t\t+(.*)';
},
...to define anything that starts with 4 tabs as "splay.character"
Now, I want to collect all the words in the current document (but
only within the "splay.character" scope, and use them as a list for
auto-completion. So that when I tab 4 times and type "Ki" then
escape, "King John" will pop up.
I know this is done with a shell command (right?) but I have no idea
how to do this.
>> [...] Now, I want to collect all the words in the current document
>> (but only within the "splay.character" scope, and use them as a
>> list for auto-completion. So that when I tab 4 times and type "Ki"
>> then escape, "King John" will pop up.
>>
>> I know this is done with a shell command (right?) but I have no
>> idea how to do this.
> (I assumed the four tabs needs to be at the begin of the line):
yes, correct.
> { completionCommand = 'perl -pe "s/^\t{4}($TM_CURRENT_WORD.*)\$|.*
> \n?/\$1/" <"$TM_FILEPATH"';
> disableDefaultCompletion = 1;
> }
this is exactly what I'm looking for. but... it doesn't seem to be
working, in fact, it seems to be *excluding* everything in the
splay.character scope. Any ideas?
> (the completion command ought to get the entire document as stdin,
> but it currently doesn't).
bummer.
> Try: echo '<meta http-equiv="refresh" content="0;
> tm-file:///path/to/file.html">'
That worked perfectly! My compilation time has now been cut down by at
least another second and I can preview my Flash movie in the browser
where it will actually be used.
+1 for Allan.
:D
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Arrr mateys!
I'm a recent TextMate convert, and I absolutely love it ;). Still, I
have a couple of requests... I searched the archives and couldn't find
much about the first two:
1) On my (Belgian) keyboard, typing a [ or ] requires option+shift+( or
). This makes the block indent shortcuts very cumbersome to use because
the command key is also required, meaning it's a 4-key chord each. One
solution would be to add e.g. command+( and command+) as extra shortcuts
for this (which are 2-key chords for anyone else on a Belgian and French
keyboard).
But in many other editors, there is a much easier and intuitive way to
block-indent: just select multiple lines of text, and press Tab or
Shift-Tab. In TextMate, the first just replaces the selection with a tab
(not so useful IMO), and the second does nothing. So, please consider
adding this feature.
2) The bracket matching seems clumsy. The highlighting is only a short
flash, so you need to move the cursor back and forth to see it again.
And because it only highlights the opening bracket, it is often hard to
see which is the matching closing bracket. Especially when you are
around multiple nested parentheses, and you are doing the 'back and
forth' thing to see it flash again. Finally, it does not work in reverse
(highlight the closing bracket when you are at the opening bracket).
I think it would be a much more usable feature if it highlighted both
brackets in a pair, when you are at either of them and did so
permanently (i.e. based on cursor position) rather than just when moving
over a bracket from left to right (i.e. based on cursor movement). It
would also get rid of the artificial pause it has now.
3) I'd like to voice my support for smarter insertion of bracket pairs
in the middle of text (as has been requested before). All too often, I
get 'foo()bar(...)' when I want to wrap 'bar(...)'. Selecting the text
to wrap first (what was suggested before on the list) just doesn't feel
right to me. My instinct groups the bracket with the keyword in front of
it, so doing keyword -> highlight -> bracket is icky. I'd much rather
have no closing bracket inserted when the next character is not an
operator/whitespace/end-of-line.
I hope having a license gives me at least some nag credits ;).
Steven Wittens
When I try to run HTML Tidy I get following error instead of document:
../../src/config.c:331: failed assertion `option_defs[ optId ].type ==
TidyInteger'
It happens for any content.
I'm running latest build on iMac G5, with TM's plist files copied from my
older mac (if that matters...).
--
regards, porneL
Hi there,
This is some Unicode which looks all overlapped (should be characters
delimited by commas on the data lines) and doesn¹t select properly (half
characters not whole characters) or edit properly (several things rather
than one disappear when you press backspace)
Here¹s how it should look
Can give you the file if you need it.
Tim
the "mate" command-line tool is great, but i find myself also wishing
that i had some way to pipe input into a textmate html window, e.g.
rather than
long_running_command | mate
which waits until the command is completed, and then throws the
output in an editable text window, i'd like to be able to say
long_running_command | pre | mate -html
and get a continuously-updated, non-editable window (with the option
of adding javascript and formatting).
i could see how to hack this up myself if there were a way to
initiate a textmate command from outside textmate (i.e. provide
stdin, a command line, and one of the standard output choices
(arguably only "show as html", "show as tool tip", and "create new
document" would really make sense)) -- but i couldn't see how to do
this (i'm no applescript wizard, but i poked through the scripting
dictionary).
is there some trick here i'm missing? if not, consider this a
feature request...
I'm trying to update the svn-commit.tmp language definition to work with
SVK, but am having some difficulty. In SVN, the temporary commit file is
always named 'svn-commit.tmp' or 'svn-commit.2.tmp'. So the following works:
fileTypes = ( 'svn-commit.tmp', 'svn-commit.2.tmp' );
In SVK, the temporary commit file is named 'svk-commitXXXXX.tmp' where
XXXXX appear to be five random alpha-numerics. I haven't been able to
figure out how to match this. Am I missing something?
Thanks,
Sean
Hi,
sometimes I test quicly my html files on the Desktop and I use this
in bundle:
open "http://localhost/desktop${TM_FILEPATH#$HOME/Desktop}"
(after to set for this one the httpd.conf file)
ok, but if an html page has spaces in the filename (I know this is
not correct) the above command doesn't work.
Is it normal?
How to correct it, please?
thanks and regards
Salvo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
sorry to post this on the list rather than to the actual author of
the bundle, but i'm busy in the middle of a project and just wanted
to get the request off my chest and get right back to work.
whoever did that - you just scared the living s**t out of me, when I
hit ^d in the middle of coding (forward delete normally) and my whole
source code went wonky... argll...
thx,
tom
- --
Tom Lazar
http://tomster.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iQIVAwUBQ53ujdeSJSslDUEWAQIGnhAAiS4/JZDfkfeYegoEuZ6sIcOLVWizJo8z
4EqfD+RYgrP+F1Wn0Joa2VVR4NvyLUMCbW6+wZSKVEBf/ZirVCe7swbN8R5/11E3
meVV3yjIT26ixVNR9zcfVBEB8E2c+F/KSDeWWfS/UFTlf+9pvCUdLK8o9wCRJBFm
ShG9No+u251PuJ1QOZn1Qgw8TdlCykD1AwN3ABbIm0tUZFmZaE/wLAEFZxc7LwNu
JCQ1ImnLOBorzUr//81mw4wxgF1gWHxX1U3/5W5UjguDRWV2D8x/VwsxZSBmZTG6
07Yog9KI1TRt5iBQdRXyZ5CiLoXbp9evG7pyONYF9eMhnzg59ZvZP9s0hs85sJnq
yCwRjLmKHLc/z50OISd1g18CmlyvvuQvwI9WSpJgNpwFu5ECCYHTV6kj+Bo8R5xX
ANWx8c8D3X0/TSTtax9ifqkix86xZ9xxoNiMVOlvHlugD3sOUAaEH/2KVXTkKvzP
M1g/3p1iBucLcC5vSnDgyjDBUC5N6flWC05ujHYkofcboZ2oDYP3td56dLxv+AeM
awF/T2LvPvPPSsI4CWp7YdCgH/BtDwORMle13AziA2Dqr8NgC0YW+MeZ5tNsULBD
6wVbMBOspK0KRCxh8SMo+3YSk8JgBQpBZGpl2JKinDgK/mTgwrcdPeWhog7NFqOO
Rw8kP/XqVHo=
=Phat
-----END PGP SIGNATURE-----
Hi,
I got a couple of suggestions.
First of all, open URL:
I'm used to clicking on a URL in a text and go to that URL in a
webbrowser. In Mac OS 9, there was an extension that allowed to do that
by command-clicking on any URL. In Mac OS X virtually all text editors
or text viewers, if you right-click on a URL, you get a menu which
(among others) says "Open URL". Try BBEdit, SubEthaEdit, Stickies, or
TextEdit. They all have this feature. Except for TextMate. Perhaps I can
create it using "Filter Through Command...", but that's clumsy. I
suggest to add this feature like in all other editors.
Second, Diff's:
Well, this has been discussed on the list before. The diff function in
TextMate is not really useful. Actually, Compare Texts is still the only
thing I use BBEdit for. Even though Apple's FileMerge does a better job
of showing the diff's (much better then either BBEdit or TextMate),
BBEdit most definately has the best integration of viewing AND editing
diffs, as well as ignoring line endings and white space (TextMate diff
can't handle anything but unix line endings). This is very high on my
wish-list for TextMate.
Last, draffing URL's:
Dragging. I struggled long to understand "DragCommands" (there is not
useful mention of them in the help or on the wiki). I would love to be
able to make a DragCommand that allows me to drag a URL to a HTML text
file, and that the drag then automatically inserted a <a
href="$URL">$name</a>, preferable with the previous selection as the
$name. However, it seems that now, DragCommands only work on files, not
on other drags like URL's and images.
Oh, sorry if I sound critical. I love TextMate. I really adore the UTF-8
support (actually that was the single most important reason for me to
make the switch to TextMate as my default editor). Keep up the good work!
Regards,
Freek Dijkstra
Hi everyone,
Is there a way to display the files label colors in the project
drawer? I'm talking about the color labels that you set with a right
click on a file icon in the Finder. Somehow, every year or so, often
when merging several file hierarchies, that feature is invaluable.
Any ideas ?
Cheers,
- n.
Thank you for the quick responses.
I fixed the problem in the following way: opened "misc" in textmate
via "mate misc", saved it as UTF-8. Apparently the odd character
mentioned by Allan was fixed by this operation.
I had earlier tried a conversion via "reopen with encoding" UTF8 but
that did not make a difference. However, using "save as" w/ UTF8 on
top of the older version did fix the problem.
In terms of why not use a .sh extension, I have to confess to being
an old unix guy and never got in the habit of typing foo.sh when I
can type foo instead!
Anyway, we're go, thanks for the help.
-- Owen
Owen Densmore
http://backspaces.net - http://redfish.com - http://friam.org
Hey!
I just watched the 10 minute Ruby on Rails intro video
(http://rubyonrails.ams.cachefly.net/rails_setup.mov) where TextMate
used a pane for project files instead of the shelf. The pane looks
good, any chance it will return?
I realize this will make TextMate look a lot more like Xcode, but that
wouldn't bother me..
Perhaps something similar to the one in Mail2 (Tiger) .
hans petter.
Hi folks. I've tried TextMate a while back and in *instantly*
replaced my use of jEdit. Wow, hard to believe you can get a unix
class text editor with Mac grace all in one package. Congrats!
I've the following problem:
- I've created a project called Daily that I have the files I edit
often: Notes, Log, Bashrc, ToDo, etc. I add files to the project by
simply using Add Exiting Files ...
- This generally works but I've got one shell script file "misc"
that is used for quick shell hacks. When I include this in my
project, it does not show in the tabs or in the edit pane.
- The file is a bit odd: it looks like this:
#!/bin/sh
<current hack>
# ----------------------------------------------------------
exit
# ----------------------------------------------------------
<past hacks>
# ----------------------------------------------------------
...etc to EOF.
Note the "exit" used to let prior hacks be available for reference,
yet not be executed when misc is called. The file is here if that
would help: http://backspaces.net/files/misc
So basically I'm trying to add an existing file to the project and
although the name shows in the drawer just fine, double clicking on
it does not put it in the tabs or edit pane.
Note that the file works fine outside of the project .. i.e. if I
execute "mate misc" from the terminal, I get a new window with the
file showing correctly.
I suspect I'm doing something dumb but..any help appreciated!
-- Owen
Owen Densmore
http://backspaces.net - http://redfish.com - http://friam.org
Alan - thanks very much!
I love getting these autoupgrades when I launch TextMate - it's like a
little Christmas every time. I'll really be looking for the next one.
David - if you haven't found this yet, Xyle Scope already has TextMate
listed under Known Editors in the Preferences.
When you have something selected in Xyle Scope, you can choose File >
Open file_name With > TextMate, then edit with TextMate.
Thanks for chiming in, Ben!
Howdy,
a) I can't refresh Firefox 1.5 , I obtain a new empty window :(
The script is :
# Check if Firefox is running, if so refresh
[[ $(ps -xc|grep -i firefox) ]] && osascript -e 'tell app "FireFox"' -
e 'activate' -e 'Get URL "JavaScript:window.location.reload();"
inside window 1' -e 'end tell'
b) Is it possible to refresh Xyle ?
Thanks and Greetings
Alain Matthes
Hi,
I use my ftp client Cyberduck with Textmate, every time I edit a file
(double click on a file in cyberduck), it will open a new window in
Textmate, for every file I click on. Is there anyway to config
Textmate so that Textmate can open files in tab by default?
Thanks
Kelvin
Hi,
I'm new on the list, so sorry for stating the obvious.
The documentation of TextMate is terrible.
<rant>
After using TextMate for some time, and struggling with many features, a
collegue pointed that there is some documentation at
http://macromates.com/doc/
However, there is no link to this URL. Please make a link to this page
from the home page. Now, please.
Thanks. What? You haven't done so? Stop reading then! Please do it
*NOW*, before other people waste their precious time.
I had to find the function of multiple functions (e.g. how DragCommands
work, that they only work with file, not URL's, how tab triggers work,
etc. etc.) by Googling and reading earlier posts on the mailing list. I
really could have saved a lot of time if I knew earlier that there was
some documentation out there. In fact I strongly recommend to add a menu
item in the Help menu which directly links to this documentation, and
release a minor update :-)
</rant>
I just started reading the docs, and here is some first comments:
Please change the order of the paragraphs "Selecting Text" and "Editing
modes" on the "Working with Text" page. "Editing Modes" discusses the
column mode, which was introduced in "selecting text", so the later
paragraph must come first. In the current order, the "Editing Modes" was
hard to comprehend.
Regards,
Freek Dijkstra
PS: This is a re-sent; my original posting seems to be rejected because
the list software was a bit slow, and thought I wasn't on the list yet.
Sorry if you get this twice.
Hi,
I'm new on the list, so sorry for stating the obvious.
The documentation of TextMate is terrible.
<rant>
After using TextMate for some time, and struggling with many features, a
collegue pointed that there is some documentation at
http://macromates.com/doc/
However, there is no link to this URL. Please make a link to this page
from the home page. Now, please.
Thanks. What? You haven't done so? Stop reading then! Please do it
*NOW*, before other people waste their precious time.
I had to find the function of multiple functions (e.g. how DragCommands
work, that they only work with file, not URL's, how tab triggers work,
etc. etc.) by Googling and reading earlier posts on the mailing list. I
really could have saved a lot of time if I knew earlier that there was
some documentation out there. In fact I strongly recommend to add a menu
item in the Help menu which directly links to this documentation, and
release a minor update :-)
</rant>
I just started reading the docs, and here is some first comments:
Please change the order of the paragraphs "Selecting Text" and "Editing
modes" on the "Working with Text" page. "Editing Modes" discusses the
column mode, which was introduced in "selecting text", so the later
paragraph must come first. In the current order, the "Editing Modes" was
hard to comprehend.
Regards,
Freek Dijkstra
> Is there a way to add Xyle Scope to the list of browsers that will do a
> preview under the HTML Command?
That would be awesome!
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Are there any plans for, or any interest in, making it easier to see
and set the newline style of open files? Right now it seems you can
control this only through the Preferences dialog, and there's no
at-a-glance way to tell (or change) what newline style an open file is
actually using.
The absence of this bit me last night, when I made changes to
someone's PHP file that had been saved with Mac newlines. I had added
some HEREDOC-quoted text, and the script started throwing parsing
errors which completely stumped me until I opened the file in Some
Other Text Editor and saw that it was using Mac newlines.
A newline type selector/indicator in the bottom bar is the most
obvious thing to do (it might even be combined with the spaces/tabs
popup), but I'm sure there are other ways to do it as well.
Possible?
thanks
pb
--
Paul Bissex
http://e-scribe.com/news/
Northampton MA USA 01061-0847
First wanted to say I love textmate. It and amazing piece of work
and I just recently discovered it. (I just switched to a mac a few
months ago).
i'd like to see an option to sort folders first in the files panel.
I am not sure how possible this is with the cocoa controls
Another suggestion (and I think it was already purposed) is to be
able to double click on folder names.
I just wanted to see if this was a possibility before I purchased :)
-- Eric
--
Eric Coleman
http://aplosmedia.com
home: 412 399 1024
cell: 412 779 5176
i'm sure there's been discussion of this before, but was wondering if there
was anyway to add a preference to have the tabs for the open files of a
project wrap to multiple lines instead of limiting them to one line and
having that dropdown menu on the right show up. i like to see ALL the files
i have open at once and can't stand that dropdown. is this possible? it
seems the 'tab component' should be able to handle this. i can look into it
if you'd like...
thanx!
- jamal
I've been using the macro below on my laptop with TextMate for quite a
while, and just realized I didn't have it on my G5. I went to record
it and ended up having a terrible time. It seems that with newer
versions of textmate (I couldn't tell you which version I was on when
I recorded it on my laptop) when you record the macro below, it adds
an "insert text" command with whatever tag has been inserted.
The macro:
In an HTML document, type < (it inserts <>, but ignore
that), now do:
1) Automation / Start Macro Recording
2) Backwards delete (to delete <, which also removes >)
3) Automation / Insert Closing Tag
4) Automation / Stop Macro Recording
Now save this macro, give it key equivalent /, and here's the sneaky
part: set the scope to: text.html invalid.illegal.incomplete
The scope controls when the macro should "fire", and if you press
ctrl-shift P inside <>, you'll see the scope of that position, which
is what's quoted above. So only inside <> will / fire this macro,
which first removes the <> and then inserts the closing tag.
In newer versions, instead of just coming out with
deleteBackward:
insertClosingTag:
it also adds
insertText: </html> (or whichever tag you happened to be closing)
I was able to open up the recorded macro in the Property List Editor
and remove the third command, but that is not a very elegant solution.
This was working properly in the past!
-Kevin
Hi,
I suspect you're going to say 'no, it's a limitation of the way the
parsing is done', but would it be possible to collapse white space in
the display of symbols? See the attached example. The file itself
has these items being split by a newline and indentation...
Actually, on a related note, it would be really nice if the auto-
indentation would behave in the way I want it to for indented
function arguments. That is, if I hit enter inside an open bracket,
the next line should be indented to one beyond the open bracket on
the previous line. And when the corresponding closed bracket
happens, the indentation should revert to what it was before. As an
example:
tickets = self.sql.listTickets(ticket_id = id,
/* Caret should be placed at the
'/' of this comment. */
support_of = 123,
account = 'foo(a)acmewidgets.example')
/* Caret should be placed at the '/' of this comment. */
Is it possible to do this?
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
I do a lot of coursework for University in Textmate - which means I'm
always printing out my code for marking. Thing is, currently, I'm
having to switch over to Xcode to print each time so I can do so in
Colour. It makes it a ton easier for the marker.
Is there any chance Textmate could support colour printing and also
being able to set the text size and font?
Dave Winter
http://commanderbond.net
On 06/12/2005, at 15.45, Jamal Johnson wrote:
> i'm sure there's been discussion of this before, but was wondering
> if there was anyway to add a preference to have the tabs for the
> open files of a project wrap to multiple lines instead of limiting
> them to one line
I'm pretty sure the conclusion was that it's a bad design element to
have multi-line tab bars. I at least dislike it in Windows, and it
could also be hard to make it look 'right', but... :-p.
-- Sune.
yeah, from the quick research i did that's what most people were saying.
however, having it as a 'checkbox option' in the prefs would give those who
believe it's bad design the ability not to use it, and those who like it
that way the ability TO use it. but from what i also read, it might be a
little hairy to implement...
On 12/6/05, Sune Foldager <cryo(a)cyanite.org> wrote:
>
> On 06/12/2005, at 15.45, Jamal Johnson wrote:
>
> > i'm sure there's been discussion of this before, but was wondering
> > if there was anyway to add a preference to have the tabs for the
> > open files of a project wrap to multiple lines instead of limiting
> > them to one line
>
> I'm pretty sure the conclusion was that it's a bad design element to
> have multi-line tab bars. I at least dislike it in Windows, and it
> could also be hard to make it look 'right', but... :-p.
>
> -- Sune.
>
>
Hi,
Outliners are a good tool for organising many things.
I strive to keep everything in plain text.
The best outliner to my tastes that I've found so far is Vim's
excellent outliner mode.
http://vimoutliner.org/
It does that vim 2-keystrokes-and-you've-rearranged-the-furniture
thing to a tee (tea? T?). There's also a unix tool called hnb (not
sure if it's on OS X):
http://hnb.sourceforge.net/Links/
My question is, does anyone here on this list use, or hope / intend
to use, TextMate as an outliner? I mean, you could almost use the
drawer alone, but that kind of inverts the plain text thing (plain
file nodes, anyone?)
has anyone got any ideas on how TM could be scripted / used as-is /
etc to facilitate use as an outliner? I only get to use TM / OS X at
home (working on it though ..), so any advice from more practiced TM
users appreciated.
cheers,
David
Hi all!
Is it possible that whenever TM is invoked from a Spotlight query, it
automatically jumps (when present) to the first occurrence of the
search term(s)?
I've had a look at Apple's documentation on the developer site, but
not found any information on whether it's possible, although
Preview.app certainly does it for PDF documents.
Thanks,
Daniel.
Hi,
I don't suppose it would be possible for Textmate to make an attempt
to 'guess' the tab size (and whether the file is using hard/soft
tabs) when a file is opened? I often wind up editing other people's
code and, usually, they wind up using something other than 'soft
tabs: 2'. So I regularly have to fiddle with the tab size to make
things match up nicely.
ISTR a previous editor I've used, WingIDE[1], having this feature,
and it was really handy... And no, that's not an 'every other editor
does it' -- it's the only time I've seen that feature, but it was
really useful!
Oh, even better! I'm looking at the code for Typo just now, and it's
not even consistent throughout the code! In fact most of it is 'soft
tabs: 2', just views/articles/taglist.rhtml (the first one I happened
to want to edit) that's using hard tabs...
[1] http://www.wingware.com/
--
Mail: mathie(a)woss.name | Web: http://woss.name/
AIM: Math1e | PGP: 1024D/D72F2737
There is no bundle for Verilog HDL, but it has a lot in common with C
and Pascal, so I duplicated the C language and have been hacking on
that to get the syntax coloration mostly working. I've run into a bit
of trouble with the constant expression syntax though. In Verilog
constants have this form:
8'b00100011 (8 bit binary)
6'o35 (6 bit octal)
12'h3A2 (12 bit hex)
The initial number is optional, so 'b10110 would be a 5 bit binary
constant. In addition to numbers, z and ? can also appear sometimes to
indicate high impedance or indeterminate values. I've tried the
following syntax for the binary constants:
...|([0-9]*)\'b[0-1zZ\?]*)|...
When I hit the test button it highlights everything from the b on. I'm
guessing it is not able to escape the single quote. I've also tried
escaping the b as well and it didn't make any difference. Is there a
way around this? Is there somewhere I can find the detailed syntax
rules for the matching expressions and bundles in general? I did a
quick look through the WIKI and didn't see anything obvious.
Hi All,
Just wondering if anyone else is having issues with importing newer
Xcode projects with external project references into TextMate? Mine
throws the following error:
2005-12-04 22:15:20.646 xcode_to_tmproj[7025] Tried to set undefined
key 'projectReferences' of class 'PBXProject' to '(
{
ProductGroup = EAB7BCD90924DDB40067CDFD;
ProjectRef = EAB7BCD80924DDB40067CDFD;
},
{
ProductGroup = EAB7BCD00924DDAB0067CDFD;
ProjectRef = EAB7BCCF0924DDAB0067CDFD;
},
{
ProductGroup = EAB7C03C0924F7DD0067CDFD;
ProjectRef = EAB7C03B0924F7DD0067CDFD;
},
{
ProductGroup = EAF8C92B09076E8C003D54B1;
ProjectRef = EAF8C92A09076E8C003D54B1;
},
{
ProductGroup = EAF8C94E09076F38003D54B1;
ProjectRef = EAF8C94D09076F38003D54B1;
}
)'
2005-12-04 22:15:20.665 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'General User Interface
strings '
2005-12-04 22:15:20.665 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Action and Action Group
names and descriptions '
2005-12-04 22:15:20.666 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Built-in Primitive Names'
2005-12-04 22:15:20.666 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Virtue Bundle
Information Strings '
2005-12-04 22:15:20.666 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Desktop Color Label'
2005-12-04 22:15:20.667 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Desktop Name '
2005-12-04 22:15:20.667 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Desktop Template
Preferences'
2005-12-04 22:15:20.667 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Desktop Layout and
Pager Preferences '
2005-12-04 22:15:20.668 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Trigger Preferences'
2005-12-04 22:15:20.668 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Appearance Preferences'
2005-12-04 22:15:20.668 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Application Preferences'
2005-12-04 22:15:20.669 xcode_to_tmproj[7025] Tried to set undefined
key 'comments' of class 'PBXVariantGroup' to 'Extension Preferences'
2005-12-04 22:15:20.675 xcode_to_tmproj[7025] unknown
class:PBXReferenceProxy
2005-12-04 22:15:20.675 xcode_to_tmproj[7025] *** Assertion failure
in -[XCProject unarchiveObjectForKey:], XCProject.m:143
2005-12-04 22:15:20.676 xcode_to_tmproj[7025] *** Uncaught exception:
<NSInternalInconsistencyException> Invalid parameter not satisfying:
theClass
Is this something I can fix myself? I'd rather be using TextMate for
my coding purely for speed and convenience, but this error is
stopping me dead in my tracks!
Tony Arnold
http://tonyarnold.com/
“The university was great. They gave us money and facilities,
but we didn’t have to produce anything. I’ve worked in the
private sector. You don’t know what it’s like out there. They
expect results.” -- Dr Ray Stanz, Ghostbusters
Hi,
I am a big fan of the Sunburst theme (thanks Soryu). I like it
because it has a black background with lots of contrast and a crisp
feel to it. I really hate white backgrounds for editing.
So it spoils the editing experience a little then the way the drawer
stands so starkly "black on white" right next to my editing surface.
Would it be possible to include styling of the drawer (and maybe other
TxMt elements such as the tab bar) in a Theme?
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
I just had a little idea for a symbol list in markdown, and thought
other people might be interested in it. I wanted to get the symbol
list to show the first 8 or so words of each paragraph, kind of like
a mini summary. You can accomplish this by creating a new preferences
file, pasting the following code in it and setting its scope to:
"text.html.markdown markup.paragraph"
/* preferences */
{ showInSymbolList = '1';
symbolTransformation = 's/^([A-Z](([^ \t]*[ \t]*){1,8})).*$/$1/g;';
}
This is supposed to only pick lines that start with a capital letter.
For some reason though, it doesn't. Any ideas?
Haris
I generally like smart typing feature, but it gets in the way sometimes.
For example if I want to add parens around expression, I often just get ()
before it (if expression starts with ! or $).
It's horror when I need to change double quotes to single quotes. I end up
having something like: "'""'"
Is it possible to configure it to work only when there is whitespace/EOL
ahead of cursor? Or to disable it for cases I mentioned above?
I don't want to disable it completly and I don't want to add symbols to
word characters list.
--
regards, porneL
Hi,
Will there be more text encoding support? Like for Japanese(Shift-
JIS), Chinese(GB-2312) or Korean? I think this issue has been bought
up before, but it didn't get my attention until lately.
I have been working on websites in different language: Chinese,
Japanese and Korean, and it was a horrible experience. I had to add
some pages to the existing websites, so i can't really changed all
the text encoding to unicode. Also, I have been told that there are
some missing characters in unicode for Japanese, so even the
government won't use that.
My nightmare stopped when bbedit came to rescue, it supposed all of
the text encoding I need. But then I want to stick to Textmate, and,
well, bbedit is simply far too expensive!
My guess is that I will need to maintain those websites in the
future, so it will be great to see textmate supporting more text
encoding!
Thanks
Kelvin
Hi folks,
I quite often seem to find stray whitepsace at the end of my lines
when I'm editing Ruby code. I'm reasonably certain that I'm not going
around adding a tab here or there to the end of lines (it's not every
line).
It doesn't seem to be harmful but, as a neat freak, I find it
distressing. I assume that it's TxMt that's adding it because I can't
think where else it can be coming from. Does anyone else see this?
Does anyone know how to stop it?
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
I work in either 9 points monaco or 12 points anti-aliased monaco, is
it possible to switch between these two with a simple hotkey?
(also, to be really perfect, I'd like it to switch themes because I
disable all bold and italics in my favourite themes because of 9
points monaco, but they look good with 12 points and so ideally I
should switch between two themes as well, I think this can be done
but I'm not entirely sure how)
Andreas
Hi :)
Sorry, if this has already been this discussed, but I couldn't find
anything related. I'm looking for a way to alter the appearance of let's
say subsection headers in the Symbol Popup. Normally these would appear
the same way as would sections. So I want to have subsections be
slightly intended as for example class methods are in Python language
bundle. My problem now is, I couldn't yet find out how this is achieved
there :) I'd really appreciate any help on this matter :)
Best wishes,
Horst "zeroK" Gutmann
http://weblog.zerokspot.com