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?
Hi,
I'm playing with the theme editor and sometimes I'm not sure what the
scope for a certain item is. I'd like to know if there's an easy way to
get the full scope selector for the text under the cursor.
Also, knowing the scope, I wonder how to get the rules that apply to it.
Lastly, is there an straightforward way to revert a color after
changing it? Or at least to leave the editor without saving?
Overall, I'm really liking this theme editor and the scoping thing as a
whole is really promissing.
Hi,
Insert Closing Tag command works when selected from the menu, but not
via keyboard shortcut.
Tested this in a Ruby on Rails-mode document, inside a double-quoted
string.
My bundles are pretty much the default, should this be due to a
conflict.
When soft wrap is enabled, the line indentation is maintained for its
wrapped lines. I think jedit has a decent implementation of this.
Any plans for this feature?
I generally don't use wrapping, but when I do, this is of immeasurable
aid. When writing markdown it's great too.
I thought that this was working in b17 from looking at the video, but
at least in the AS Bundle snippets within snippets are not expanding,
instead the tab goes to the next tab stop within the parent snippet.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
I think this has been an issue since b15 or b16:
function() {
}
Does not indent the caret within the block. Same for if, switch, etc.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi,
Just had a nice juicy kernel panic while editing with TextMate.
Haven't seen one of these in years!
FWIW the report below.
Gerd
panic(cpu 0 caller 0x000E4488): vnode_rele_ext: vp 3bd0bdc usecount -
ve : -1
Latest stack backtrace for cpu 0:
Backtrace:
0x00095544 0x00095A5C 0x0002683C 0x000E4488 0x000F67B0
0x000F588C 0x000F4BB0 0x000F188C
0x002A7A94 0x000ABCB0 0x0329200B
Proceeding back via exception chain:
Exception state (sv=0x38402A00)
PC=0x90088DAC; MSR=0x0000D030; DAR=0x06DAF000;
DSISR=0x42000000; LR=0x00024074; R1=0xBFFFECE0; XCP=0x00000030 (0xC00
- System call)
Kernel version:
Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 2005;
root:xnu-792.2.4.obj~3/RELEASE_PPCModel: PowerMac3,5, BootROM
4.2.5f1, 2 processors, PowerPC G4 (2.1), 800 MHz, 1.5 GB
Graphics: NVIDIA GeForce2 MX with TwinView, GeForce2 TwinView, AGP,
64 MB
Graphics: ATY,Rage6, ATY,Rage6, PCI, 32 MB
Memory Module: DIMM0/J21, 512 MB, SDRAM, PC133-333
Memory Module: DIMM1/J22, 512 MB, SDRAM, PC133-333
Memory Module: DIMM2/J23, 512 MB, SDRAM, PC133-333
Network Service: Built-in Ethernet, Ethernet, en0
PCI Card: ATY,Rage6, Display, SLOT-2
Parallel ATA Device: ST330013A, 27.96 GB
Parallel ATA Device: PIONEER DVD-RW DVR-103,
USB Device: Hub, , Up to 12 Mb/sec, 500 mA
USB Device: SoundSticks, harman/kardon, Up to 12 Mb/sec, 500 mA
USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/
sec, 500 mA
USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec,
250 mA
USB Device: Studio Display, , Up to 1.5 Mb/sec, 500 mA
USB Device: Hub, , Up to 12 Mb/sec, 500 mA
USB Device: Studio Display, , Up to 1.5 Mb/sec, 500 mA
USB Device: Hub, , Up to 12 Mb/sec, 500 mA
USB Device: USB Receiver, Logitech, Up to 1.5 Mb/sec, 100 mA
USB Device: USB2.0 MFP, EPSON, Up to 12 Mb/sec, 100 mA
FireWire Device: iSight, Apple Computer, Inc., Up to 400 Mb/sec
Hi,
The project drawer usually responds to horiontal scroll wheel moves,
which is of great aid when you're working on a sub-sub-sub-sub dir and
still trying to fit the editor in an ibook screen.
When a vertical scrollbar appears, though, the horizontal scroll whell
stops working.
I suggest that you either a horizontal scrollbar is added when needed,
or that the drawer always responds to the horizontal scroll wheel, even
when the vertical scrollbar appears.
Hi all,
I was experimenting wit the subversion bundle, and decided to change
the activation key for "Diff with Working Copy (BASE)" command. As soon
as I did that, it stopped working and I begun getting the following
output from it:
-:4:in `require': No such file to load -- svn_diff (LoadError)
from -:4
Reverting the activation key didn't do any help, and all other svn
commands, including the other diffs, still working.
Well, I just tried changing the activation key for another diff command
and got the same error for it. Looks like a bug.
hiya'
PROBLEM:
I want all my variables to be colored. I'm coding in ASP & there is
no $ @ or any easy way to define what variables look like.
I can the first word after the work DIM (or comma delimitated list or
words) (DIM being the create_a_variable deal in asp) but it only
colors that instance of the word.
SOLUTION:
I would like textMate to search my page for all words after the word
DIM & add them to the bundle as variables, but only for this file.
Therefor creating on-the-fly bundles.
This could extend out to listing all the varables or functions or
whatever with a command or some such thing.
Maybe a way to manually select something & define that selection as a
scope for this document only, therefore applying that scope to all
instances of that text.
That would allow for something like a hilight-all-instances-of-the-
current-selection command with shortcut. AWESOME!
You could define them either on a page basis or a project basis, or
even add it as a permanent change to an existing or new bundle.
oh yeah!
Hi all,
TextMate is everyday more complete and perhaps the best editor!
Only a little request for me (Allan has already added some nice
features, like command to convert accented chars to entities, and so
on): to enhance the live preview a bit.
It already shows javascript, but it would be nice it show also php
output (like TacoHTMLEdit do) and - why not? - also perl (and cgi)
output, without install pages on /localhost.
With Taco we can edit a little page with javascript and php
everywhere (on desktop, hi), control it with preview and then install
in /Sites.
TextMate could show in its preview not only javascript and css, but
also php (perl?), so we can also simulate Dreamweaver :-)
Thanks Allan and the whole team!
Regards
Salvo M.
Hi,
I'm on Panther 10.3.9, I was using TextMate v1.1b5 until very recently.
I decided it was time to upgrade, and deleted every TextMate related
folder that I knew of. (basically what I saw in `locate | grep
TextMate`)
I then installed 1.1b16, and copied tm and tm_wait to ~/bin.
This is what I get:
$ tm
RegisterProcess failed (error = -50)
Abort trap
Any pointers at how to solve this?
Hi,
Half window view is like adding "virtual space" in text windows to
push the last line to the middle of the windows. It behaviors as if
you have added a couple of returns at the end of the document. I hate
to see all the lines in the viewing area pushed up everytime I hit
return or softwrap to the next line. With half window views, the lines
only get pushed up every half window instead of every line.
I use this feature a lot in vim and TextWrangler. In vim, it can have
any number of virtual space (denoted by tildes), which I think it's
better implentation than TextWrangler, which allow you to choose
"none", "half", or "full" only. However, I will be happy with just one
option, half window view.
Anyway, I just want to bounce the idea to other users.
Ivan
Hi All,
is anyone working on a Textpattern language bundle? If so would you
mind sharing, regardless of how incomplete it is?
Also has anyone got Textile working for Web Preview pipe-through?
I've tried playing with Textile.pm and redcloth, but there's some
wrapper script voodoo I'm missing or something. I also can't seem to
find a Textile.rb that the Textile bundle refers to
thanks in advance!
peace - oli
PS thanks whoever did Textile!
> Can you drag from e.g. Mail's compose window w/o problems, or do you
> experience the same deselecting problem there?
No - After a little comparison, I'd say Mail is more tolerant about
the ever so slight moves of the cursor coming from the use of the
Intuos tablet. If I'm careful not to move at all in TextMate, it
works fine, but if I just work as usual, 1 out of 3 times, it will
deselect... In Mail, it just works perfectly...
I pulled out my old mouse from the box to compare and, as I
suspected, I don't have the same problem. I guess that's enough to
confirm my suppositions.
I suggested the idea of a pref for the app so that people who like
the default behavior won't see any modification as a regression.
Although the problem might not effect a majority of the TextMate
users (how many people use tablets for everything on their
computer?), it is still a very fundamental part of the feature set.
That's why I believe it deserves a little attention (read: "slider" :)
|[...]
> On 31/08/2005, at 8.53, Stuart Hungerford wrote:
>
>
>> I'd like to bind a (different) key to the "next file tab"
>> function. Can someone tell me what the appropriate string
>> to use in the defaultKeyBinding.dict file is?
>>
>
> Instead og editing the dict file, just go to System Preferences ->
> Keyboard & Mouse -> Keyboard Shortcuts and add your new bindings
> there.
That's a useful suggestion--thanks. In the meantime can someone
satisfy my curiosity as to what the bindable name of "next file tab"
is? Or does the Keyboard shortcuts system dialog write the names
somewhere I can view?
Stu
What does this do? I'd think it would go to the next/prev line in the
current column, but the behavior seems inconsistent.
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
I'm currently using Textmate for a work-related
project. I collaborate with my boss, usually working
on the same files during the day. All files are
located on a server at work, so usually I edit them in
vim over ssh. Well the project has gotten too big and
I've been using textmate and mounting the remote drive
in the terminal using:
'su mount -o -P remote.server:/remote_dir
~/local_dir/drive_name'
Now that mounts the files just fine and I can edit
them using textmate. BTW, the shell 'tm' is infintely
useful to me.
Now I keep having to type in my admin password
everytime I've been editing a file for a good amount
of time. This is getting kind've annoying and can't
seem to solve the problem with keychain. Is there any
ideas you guys might have so I don't have to keep
typing in my admin password to write to remote files?
Here's a snapshot of the problem:
http://img357.imageshack.us/my.php?image=textmatewrite7ly.png
Any help would be greatly appreciated.
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
Hi all,
How feasible would it be to set hooks like "on save", or "on close
project" etc. to TM? I.E. I'd like to run a command to sort all of my
import statements in files of type source.java, something like that.
Allan?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com