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?