I uploaded a Perl module yesterday to CPAN and testers report
failures on several platforms when building the module.
The error logs mention unknown files whose name is the same one that
the actual included files, but with "._" prepended. For instance, if
the tarball contains "Makefile.PL" it turns out that it also contains
a mysterious "._Makefile.PL".
Even "ls -a" does not show those "._" files, and opening one of them
in a Windows machine showed something that seemed binary, and with
"www.macromates.com" somewhere with something that looks like
metadata like caret position (I think). That makes me wonder whether
TM could have anything to do with them. I am not familiar enough with
resource forks to be able to guess what's happening on my own.
Does this ring any bell?
-- fxn
I use the presumably obscure Dvorak/Command-Querty keyboard layout. It
uses Dvorak for standard typing, but when you hold down the command
key, it switches to Querty, so I can use the key that's actually
printed on the page, and preserve that precious command key muscle
memory. I've had mixed success using the command keys with TextMate,
though. For instance, I frequently change the indentation of blocks of
code, using command-[ and ]. When I use DQ, I tend to get some sort of
commenting. If I switch back to regular querty, I get the results I
expect. Is there any way this can be improved?
Hello, my name is Thomas.
And I am addicted to making textMate themes.
Please feed my addiction by suggesting theme ideas.
I have been told that my themes make peoples eyes bleed. They are
obviously of limited use, therefore.
If people seriously want a certain theme, I WILL make it (eventually).
I've got a process down now that's really quick.
-----
I WANT TO KNOW:
Who uses what theme in textMate?
What themes have you used from previous systems or applications?
visual studio? dreamweaver? bbedit? foo.app?
Do you like them?
Do you want an 'expert designer' to tell you what you should like?
<insert canned laughter here>
Do you have bad taste and should be ignored? <again.. haha>
Do you like black backgrounds? Do you like colored backgrounds?
Do you hate excessive use of background colors? ...for the
page? ...for individual elements?
Do you like high contrast? Do you prefer lower contrast?
Do you like having a bunch of different colors or would you prefer
one with shades of only a few colors?
What colors do you like? Please give examples.
Do you have synisthesia? Are certain elements 'supposed' to be a
certain color?
What languages do you want to have colored?
Do you want different languages to have different colors?
-----
Please provide example screen shots (or links to them to keep from
clogging the list) if at all possible.
Thank you for 'enabling' my habit ;D
After pressing Esc for word completion TxMt stops tab-completion on the
snippet. Is this a feature or a bug? Cheers,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
I got impatient waiting for my Amiga theme, so I created one myself.
It's high-contrast and uses only a handful of colors (those from
MagicWB, which was an 8 color icon set which radically improved the
look of the Amiga workbench back then) -- I cheated and actually used
a light grey for comments, since pure white was too bright, and MWB
half-shine was too dark.
I haven't added this to the repository, since I don't expect that
anyone actually wants to use it :)
I miss a new-from-template-function in TextMate. I know I could realize
them as snippets but nevertheless it would be comfortable.
Otherwise a new-as-copy-function which creates a new file with the
beginning content of another file.
I'm new on TextMate and really love this editor!! :-)
Regards,
Ruben
1. Open a project
2. Activate the Find in Project window
3. Search for a string that will match something
4. Open another project
5. Activate the Find in Project window
6. Click one of the matches
Observed:
A new tab appears on the second project, with no content window.
Expected:
The correct (first) project is brought to front (but behind the find
window) and a tab is opened in it.
Hello.
TextMate is the best text editor I have ever used.
But I have one problem that I can't input Japanese.
(I can't live without Japanese...)
In Japanese, many characters are used. So we have to use
input-method to convert ascii characters into Japanese
characters.
For more information, visit the following.
http://lists.freedesktop.org/pipermail/uim/2005-July/001195.htmlhttp://lists.freedesktop.org/pipermail/uim/2005-July/001215.html
Mac OS X bundles the input-method named Kotoeri.
When I use Kotoeri in TextMate, typed characters does not appear.
And when I try to convert words, the candidate window is not
displayed.
To use input-method, the text editor must be implemented as
TSM(Text Service Manager) client.
http://developer.apple.com/documentation/Carbon/Reference/
Text_Services_Manager/
I guess TextMate is not completely implemented as TSM client.
(Sorry if I was wrong.)
Is it possible to resolve this problem?
And the character overlapping problem posted before happens
also in my environment.
http://lists.macromates.com/pipermail/textmate/2004-October/000322.html
Regards.
---
Masaki Yatsu
yatsu(a)yatsu.info
Thank you for your reply.
On 2005/09/12 Robert Deaton wrote:
> This has been brought up multiple times in the past, and I still think
> the only response you'll get it is to switch to UTF-8 or UTF-16. It
> makes life easier for everyone.
Sorry, I can't find postings of the same topic.
I am using UTF-8 encoding and I have never used any other
encoding in TextMate.
I can see Japanese characters even though it is overlapped.
If I am using other encoding than UTF-8, I can't even see
Japanese characters.
I'm not talking about text encoding.
My problem is that I can't INPUT Japanese by input-method.
Sorry for my bad English.
---
Masaki Yatsu
yatsu(a)yatsu.info
Hi,
Word completion seems to look for matching words on the document from
the cursor point and up, and then, from the cursor down. It's often the
case, however, that the matching word you need is right on the next
line, or even later in the same line, and it takes a lot of
ESC-pressing to get to it.
My suggestion is that you sort them by proximity (as it is now), but
look for words in both directions, so the words right in the next line
stand a better chance.
(I had the impression that back in 1.0 it worked that way. Did it?)
Hi,
With most tree view like controls on OS X, alt-click will recursively
unfold all levels enclosed.
Is something like that possible or planned with fold markers in TM?
Alt-clicking does not seem to to anything different than normal
click, folds inside the clicked fold stay folded.
Gerd
Hi,
Very new to TextMate, so please forgive if this is a dumb question or
already well-known. I saw there was a similar discussion back in
March, but not quite the same issue as this:
I have the following four source files at the same level in my codebase:
FUFlickrExport.h
FUFlickrExport.m
FUFlickrExportCover.h
FUFlickrExportCover.m
If I open FUFlickrExport.m from, say Xcode, and hit Cmd-Opt-Up Arrow
to go to the header, TextMate opens FUFlickrExportCover.h.
TextMate correctly opens the counterpart of FUFlickrExportCover.
{h,m}. It also correctly goes to FUFlickrExport.m from its header,
it's just going to the header of FUFlickrExport.m that's not right.
Is there a better place to report bugs than on this list?
Best,
Fraser
--
www.speirs.orgwww.connectedflow.com
Hi,
Two things that I find consistently not to my liking in how TextMate
handles Ruby code:
1) When you fold a (ruby) function it places a "---" marker at the end
of the non-folded first line to represent (presumably) the folded
section.
However, although the "---" isn't part of the logical line, if you
place the caret before the marker and hit Enter the marker is moved
down a line and inherits a folding arrow. This leaves the first line
of the folded function disjointed with a non-functioning fold arrow.
=> I'd like hitting Enter at the "---" to move the caret to a new line
below the folded function without affecting the folded section.
2) When you fold a function and use Ctrl+/ on the visible line with
the "---" marker to comment it out what actually happens is that t
comments out only the visible line. The rest of the function is not
commented if you expand it.
=> I'd like to it comment/uncomment the folded section as well.
I am using v1.1b17
Regards,
Matt
--
Matt Mower :: http://matt.blogs.it/
Are language definitions merged?
There are a few languages where I have some 'private' rules. Is it
possible to write them in such a way that these are merged with
whatever language definition is found 'higher up', so that I can
easily enjoy updates from the svn repository without having to modify
that definition each time?
Gerd
Has anyone experienced an increase in TextMate's performance after
upgrading to Tiger?
On Panther, for me, simple things like switching tabs take half a sec.
My specs:
Panther 10.3.9 on Powerbook 15"
1.5 GHz PowerPC G4
1GB DDR SD RAM
I don't know how to fix this but maybe someone else does: When I use
the "Show TODO list" command (ctrl+shift+T), german umlauts like ä,ö
or ü are getting displayed wrongly.
Cheers. Oliver
Hello.
I'm experimenting with crazy nested syntax coloring.
I can't seem to figure out how to make all the transparent background
colors interact properly.
Ideally I'd like to define a scope:
scope test = everything within "(...)"
Then set a syntax color of transparent background color.
scope: test = White 10% opaque
Then nest a bunch of them inside each other.
zero (one (two (three (four (five (six (seven (eight ))))))))
result: The transparent background color would compound and gradually
get stronger:
n/a (10% (20% (30% (40% (50% (60% (70% (80% ))))))))
If I could get this to work, I could color different block types with
a massive background color & the content colors would be based on the
block color.
EG: HTML tags = blue BG, embedded ASP = red BG, strings = yellow
BG ... string in html tags = green, string in asp = orange.
With what I know now I could simulate this by explicitly setting the
background colors for every possible combination of elements, but
that's a lot of work. And if I decide to change the hue of something
I have to manually recalculate all of those static simulations of
color interactions.
---
I can get things to interact with the background color.
If I change the BG color for the scope "source" all the transparent
things define their transparency based on that color.
Also the line highlight & selection colors.
---
Am I asking for too much?
Will this make performance suffer?
Is this already possible, but I just can't figure it out?
I was trying to figure out how I could write a snippet that would
wrap a bunch of lines into a HTML list... lets say you got this text:
item 01
item 02
item 03
then the snippet would output:
<ul>
<li>item 01</li>
<li>item 02</li>
<li>item 03</li>
</ul>
I'm kinda stuck on how to get the recursive thing to adapt to the
number of list items... Any thoughts? Thanks! :)
.........................................
m i n i m a l d e s i g n
244 Fifth Avenue - Suite P233
New York, NY 10001-7604
USA
tel / fax: 212.931.8525
email: work(a)minimaldesign.net
site: http://minimaldesign.net/
In order to streamline snippet input from selection, it would be
pretty cool to have the option to access the snippets from a
contextual menu. A pretty flexible way to implement that could be a
check box or equivalent in the bundle editor that says something like
"include in contextual menu" on a per language and/or snippets basis.
.........................................
m i n i m a l d e s i g n
244 Fifth Avenue - Suite P233
New York, NY 10001-7604
USA
tel / fax: 212.931.8525
email: work(a)minimaldesign.net
site: http://minimaldesign.net/
Question from a Terminal newbie ... is there a way to automatically
execute the three commands I use for the subversion checkout?
(Namely these three:
cd /Library/Application\ Support/TextMate
export LC_CTYPE=en_US.UTF-8
svn --username anon --password anon co
http://macromates.com/svn/Bundles/trunk ./
)
Does the application Pipe help you do something like automating this
into a little macro? Or is there a more direct way?
Thanks very much for the help -
Jim
Expected behaviour: Cmd+W closes the file as fast as clicking the "x"
icon on the tab
Actual behaviour: Cmd+W takes a bit longer to close a file than
clicking the "x" icon on each tab\
Version: 1.1b17 (v1.1b17)
Hello!
Does the subversion bundle work with remote repositories? If yes, how do
I go about making the subversion bundle work with a remote subversion
repository?
thanks in advance!
rene
Here's a patch that fixes a problem with syntax highlighting in Tcl.
Basically if you have
set foo "some \[ escaped \] brackets"
all the code after the string is taken as a string.
The other problem this fixes (although I'm not sure this is the right
fix) is with curly brackets in interpolated variables. E.g.
puts "${variable} ${weird variable with spaces}"
the first ${variable} works, but the second ${weird variable with
spaces} doesn't.
Although, admittedly you have to question the sanity of whomever puts
spaces in his variables...
Index: Bundles/Tcl.tmbundle/Syntaxes/Tcl.plist
===================================================================
--- Bundles/Tcl.tmbundle/Syntaxes/Tcl.plist (revision 1719)
+++ Bundles/Tcl.tmbundle/Syntaxes/Tcl.plist (working copy)
@@ -100,7 +100,7 @@
<key>comment</key>
<string>FIXME not sure this
is the proper way to do Tcl escape sequences --Allan</string>
<key>match</key>
- <string>\\([abfnrtv"\\]|0\d
{2}|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4})</string>
+ <string>\\([\[\]abfnrtv"\\]|0
\d{2}|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4})</string>
<key>name</key>
<string>constant.character.escape.tcl</string>
</dict>
@@ -108,7 +108,7 @@
<key>comment</key>
<string>FIXME what are legal
variable characters? --Allan</string>
<key>match</key>
- <string>\$[a-zA-Z]+</string>
+ <string>\${?[a-zA-Z]+}?</string>
<key>name</key>
<string>variable.other.tcl</
string>
</dict>
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
I would like some snippets to only be in scope for a specific project.
For instance, some tab-expansions I'd like to choose for a snippet
only make sense for C++ files part of project Foo, but not all C++
files. So I'd like to be able to specify the scope to be something
like:
project:Foo.source.cpp
Instead of just
source.cpp
Thus narrowing the snippet to only the source.cpp scope for files in
project Foo.
Perhaps allowing a user to add a project scope identifier and use this
in scope specifications would be the way to implement this. Heck, that
would allow anything that depends on a specific scope to be
project-specific if the user wants. Templates, commands, macros..
Sounds like fun to me ;-)
--
-Corey O'Connor
I can't figure out how to make Zero-width positive lookbehind regex
patterns work right.
The basic example i'm trying to do is a pattern that will match
everything within quotes, but not the quote marks themselves.
the closest I've been able to get to kindof work is:
\b([^"\n]*)(?=")
This is obviously sub-optimal.
The pattern that i'd use if ZWPL worked would be:
(?<=")([^"]*)(?=")
Does your regex parser support ZWPL?
Is there something else I can use that will imitate this function
using Zero-width positive lookAHEAD?
Are you planning on adding support for ZWPL?
There are a number of things that I'd like to use ZWPL for.
I could match all words following the word DIM without
matching the DIM, for example.
http://www.regular-expressions.info/refadv.html
APPENDIX: Zero-width positive lookbehind. Matches at a position to
the left of which text appears. Since regular expressions cannot be
applied backwards, the test inside the lookbehind can only be plain
text. Some regex flavors allow alternation of plain text options in
the lookbehind.
"Find in Project" is a form of "find all", but I would like to see a
better implemenation of this.
Basically, "Find All" would work on single and multiple files (as
with BBedit's "Multi file search"), not just a project, and the
results would be either the whole block as currently, or only the
exact search term. Finally, I should be able to have the results
appear in a new document, or at least be copy/pastable.
I never, ever use column selection or typing, so perhaps the
following behavior is useful there.
Frequently I have a block of code I need to indent. Say my Ruby code
looks like this:
class Foo
def bar
puts "yay"
end
end
I lazily select parts of the lines I want, (because it's faster than
being sure to select the entire line) represented by the | in the
following showing the start and end of the selection:
class Foo
de|f bar
puts "yay"
en|d
end
When I press cmd-], I expect:
class Foo
def bar
puts "yay"
end
end
(which is what BBEdit gives me), but what I get is:
class Foo
de f bar
puts "yay"
end
end
...where's the logic in that? If I have no text selected, but the
carat is in the middle of the line, cmd-] shifts the whole line (as
desired). I suggest that the 'break-the-line' method only occur if
the selection is columnar - i.e. if the start column of later lines
is the same as the start column of the first line.
Stakeout looks fantastic! Here's what I'm envisioning for my AS
development:
I have a command set up right now to cd to my project directory and run
rake if it finds a Rakefile, otherwise running MTASC into a temp file
to check the syntax, formatting the output and giving me a clickable
error list. What I'd like to do is be able to run this command any time
a class file is changed. Problem is I don't think there's any way to
tell TxMt to run a command from outside the GUI. Is there any way we
could get some kind of access to Commands through the tm utility?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
On 06/09/2005, at 19.29, Jeff Powell wrote:
[ I've cc'ed the ML, since this is a popular request, yet you're the
first to suggest solving the problem with a command :) ]
> It's pretty basic really --- I've got a project setup in TM and
> quite frequently, I will need to make a copy of a file inside of
> the project [...] Can I make a command that might do the duplication?
Yes, make a command that saves current file (since it duplicates
what's on disk). The actual command should be:
--------8<--------
# so we can work with relative paths
cd "$TM_DIRECTORY"
# construct a default name for the duplicate
def_name=`perl -pe <<<"$TM_FILENAME" 's/^(.*?)(\.[^.]*)?$/$1 copy$2/'`
# prompt user for a name
CocoaDialog inputbox --text "$def_name" --button1 "Duplicate" --
button2 "Cancel"|{
# if user selected 'Duplicate' and file doesn't exist
read res; read new_name;
if [[ "$res" == "1" && ! -e "$new_name" ]]; then
# do the actual duplication
cp -p "$TM_FILENAME" "$new_name"
# force TM to refresh project drawer and open duplicate
{ osascript -e 'tell application "SystemEvents" to activate' \
-e 'tell application "TextMate" to activate'
open -a TextMate "$new_name"; } &>/dev/null &
fi
}
While waiting for proper chunk undo, is it possible for a macro or
command that can do something similar? I'm thinking it would
recognize text between spaces for each chunks; that way, whole words
undo at a time. It's not perfect, but would certainly be easier than
cmnd-zzzzz...
I just realised you can use the same tab trigger for different
snippets. When you use the trigger, you get a menu to choose between
the snippets assigned to it.
awesome.
Just a warning based on fresh experience :-), "r" is next to "t" in a
QWERTY keyboard, so there is a chance you type "rm file" instead of
"tm file". I just did!
-- fxn
this new snippit in the 'Source' group is cool. It would be even cooler
if it did the right thing when user hits the enter key within the banner
text. The right thing would be insert a new banner line below current
line and put cursor in its usual starting position on the new line.
Entering a new line character currently breaks the banner in an ugly way.
I've started to port the Desert theme from gvim to TextMate. You can preview
it here: http://kevinmarsh.com/upload/tm-desert/Desert.plist It is by no
means complete, so if anyone wants to make any changes/improvements feel
free to do so. I just made a quick port 'cause it's so purdy.
-Kevin
--
Kevin Marsh <kevin.marsh(a)gmail.com>
Hi,
To make it easier to visually parse blocks, I am trying to write a
pattern that matches on 'even tabs' and give them a light gray
background.
I tried something like
match= "^(?=\\t)\\t";
but that doesn't seem to work. Is look ahead not possible in pattern
matches?
Gerd
Hi,
I have just signed up with this list.
Up until recently I have been using emacs with PHP-model.el for all
my PHP coding.
So far I have been impressed with Textmate however there is one
feature I can't find.
In emacs w/ PHP-mode I can tidy a php script very easily by just
pressing TAB on each of the lines. Even if I am in the middle of a
word, pressing TAB just positions it correctly in relation to the
line above. Tab does not break up a word, and pressing tab repeatedly
does not move it further. Just enough to give nice consistent
indentation.
I have been trying to do this in other editors but so far been unable.
Can Textmate do this ?
I can record a screen capture to illustrate if this doesn't make sense.
William
Hi,
If I save a project then move it around the disk and open it again,
it's unable to find its folders. My impression is that it's because the
references are being saved as relative paths.
Is this somehow intentional or a bug?
Is it just me or tab switching is really slow on b17? Switching either
by clicking or using keyboard shortcuts is taking up to 2s here.
If it's of any help: I'm working on a rails project (so, mainly small
ruby files), less than 6 tabs open generally, and using the pastels on
dark theme. There's plenty of free RAM, and I'm on Panther.
I've been putting together some macros for common refactoring tasks in
Actionscript, like extracting statements to a new function, importing a
new class, adding class variables etc. While this is helpful, I'd like
to write something more robust. I'm considering writing a set of
refactoring scripts in Ruby. Does anyone have any good resources for
where I can start researching this? I'm thinking about looking into
Smalltalk. Thanks,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Yo,
I was hacking my DarwinPorts installation earlier today and
experienced something interesting. This is obviously not a
DarwinPorts specific problem but here is how to reproduce it: open
the '/opt/local/bin/port' file (this is a Tcl script) and then simply
try to scroll down and notice how it brings TextMate to its knees.
Allan, if you don't have DarwinPorts installed, here are some more
details. The 'port' command file starts with this:
#!/bin/sh
#\
exec /usr/bin/tclsh "$0" "$@"
TextMate obviously picks the 'Unix shell' language module to perform
the syntax coloring, based on the shebang line, and I guess that this
is probably what causes the problem. I'm really not exactly sure
*why* this happens with the Unix Shell bundle, I have also tried to
display this Tcl script using other syntaxes, Ruby, Perl, etc, and
none of them causes any problem.
So the problem is twofold:
- this happens because TextMate thinks it's a shell script, which the
shebang obviously points at. I wonder if TextMate could be expanded
so it could "see" the exec trick to make a correct decision.
- this happens because something in the Unix Shell bundle REALLY does
not like what it sees in the Tcl script :)
In short, I'm not really sure where the bug is, if there is one ;)
--
Luc Heinrich - lucsky(a)mac.com - http://www.honk-honk.com
I'm new to Textmate, and like what I see so far. Three things off the
bat are frustrating that are really keeping me from using it full
time. If I'm missing some simple fixes to any of these, please forgive:
1) The undo behavior. I read an earlier digest that standard OS
"chunk" undos were planned, but I don't see this pref anywhere. Is
there a plist command that will turn on chunk undos, and if not, will
this feature be coming soon? Having to hit cmnd-z 34 times in a row
is tiresome...
2) While I can pick the language of a file independent of the
filename, some command behaviors appears to be tied to the filename.
For example, I have foo.php which is mostly straight html code, but
since the filename is .php, unComment give me php comments, not html.
Shouldn't it be possible to have the commands tied to the language
choice?
3) Slowness. I've read a variety of posts on the subject, and it
seems TextMate is buggy (or coded in a non-efficient manner) when
dealing with multiple open files and across a network. The slowdowns
I experiencing when switching tabs or switching to/from the
application itself grow slower the longer I have a set of files
open-- this problem really needs to be addressed.
Thanks,
Steve
Hi Folks,
coming from jEdit I really miss CodeBrowser. So this afternoon I
cobbled together a quick hack to recreate some of it's functionality
for TextMate.
The result is TmCodeBrowser:
http://www.cocoabits.com/TmCodeBrowser/
Sorry, Tiger only (saved hours on programming).
Feedback welcome!
Gerd
Hi,
I've been trying to bind a different key to the
"Next File Tab" command. As a complete Mac newbie,
I suspect I'm missing some important principle or
technique for identifying bindable commands.
I've tried "nextFileTab:", "NextFileTab:",
"nextFileTab", "NextFileTab", "Next File Tab"
etc in the keybindings file without success.
Can someone enlighten me on the right way to
map a command menu name to a bindable name?
Thanks in advance,
Stu
Since I installed the latest beta, my ruby output is showing up in a
new window titled "Ruby TextMate Runtime". By and large, it's better
than the command output, except that it appears to be using HTML to
render it, so when I'm writing debugging output of XML processing I
can't see most of what's been processed.
For example, the Ruby command:
puts "<foobar>Hey!</foobar>"
is showing up in the window as:
TM-Ruby v0.2 running Ruby v1.8.2.
>>> /Users/gkistner/Desktop/tmp.rb
Hey!
How can I get TextMate not to use the HTML window, or escape my
output to that window?