I started a project I call "ropen", which is like OS X's "open" or
TextMate's "mate" commands, but works remotely by automatically
mounting the remote filesystem locally using MacFuse's sshfs:
http://github.com/tlrobinson/ropen/tree/master
It works quite well, except when you try to open a large directory
tree in TextMate. It seems like TextMate is trying to walk the entire
tree immediately when it's opened. Doing this over the network is very
slow and ends up hanging TextMate for moderately sized directory trees.
Is there any possibility of changing the behavior to lazily do
whatever initialization TextMate needs to do when opening directories?
Thanks,
Tom
I have seen others do this, I can not find any docs on it.
In php, I have seen someone type in array_keys() and somehow, they are
able, in that completion, or at a later time, get it to insert the
template arguments: array_keys ( array $input [, mixed $search_value
[, bool $strict= false]] )
--
Scott * If you contact me off list replace talklists@ with scott@ *
Howdy!
I would like to use TextMate for C/C++, but I have no idea how to set up. So what do I have to do to get this simple code working?
#include <stdio.h>
int main()
{
prinft("hello world");
return 0;
}
Thanks a lot!
This qualifies as "Well, if you don't like kicking yourself in the nose,
why don't you stop doing it?" kind of suggestion.
When I open a network drive location and double click on the folder, it
opens.
Yes, if I just click on it and then click on the sub folder I really want it
works exactly as it is supposed to.
This isn't a bug. This is just me telling the world that I am incapable of
instantly changing the way I use my flippin mouse. The real answer lies in
doing a bunch of other things correctly, I just haven't started doing them
that way yet.
The only bug here is that because i double clicked on a large directory,
textMate basically locks up (because it is processing a lot of files over a
network connection and even though all CS guys are constantly trying to
avoid N^2, it keeps coming back to bite us!).
Anyone ever try to open a large spreadsheet (say anything over 6,000 rows)
in Numbers. NOT A FUN thing.
--
Brad Tittle
Tech Support
Hello All,
I believe I have found a bug in the syntax highlighting for shell
scripts. When I have a comment in a case statement and the comment
does not get highlighted correctly. Here is the text for my case
statement:
#first figure out what platform you are in, based on the uname -rs
KERNELVERSION=`uname -rs`
case $KERNELVERSION in
#linux returns "Linux kernelversionnumber"
Linux* )
OSTYPE="linux";;
#freeBSD returns "freeBSD releaseversion"
*BSD* )
OSTYPE="bsd";;
#osX returns "Darwin kernelversionnumber"
Darwin* )
OSTYPE="macos";;
#everything else
* )
OSTYPE="unknown";;
esac
also here is a link to a picture of what I am seeing on my screen: http://farm4.static.flickr.com/3575/3410707546_d7a2a67e49_o.png
Im not sure if this is even helpful but pastebins highlighting seems
to do the same as textmate but quickhighlighter.com seems to get it
correctly(what I assume is correct).
Thanks for your help.
--Colin
When I edit a Template it stops working even when I edit just one tiny letter
in an out-commented text.
I do the following:
in the 'bundle editor' I expand the 'Project' Template and then I select the
'Project.as'. Here I placed the opening curly braces to be at the same line
as the function (and not at the next line).
public function ${TM_NEW_FILE_BASENAME}() {
When I close the window and try to make a new project from template nothing
happens.
Even when I revert my changes it won't work anymore, I have to reinstall the
whole bundle!
As said I also tried just to change a tiny letter in outcommented section of
_create_as3_project.sh with the same result.
What is the proper way of editing a Template?
--
View this message in context: http://www.nabble.com/How-to-edit-Actionscript3-Templates--tp22677253p22677…
Sent from the textmate users mailing list archive at Nabble.com.
I use the Makefile bundle on my desktop and never had any issues so I when I
put it on my laptop I was a little puzzled when running Build produced this
output:
env: ruby\r\rrequire: No such file or directory
Ruby is most definitely in TM's path, and checking the path from within TM
on both machines shows that they are exactly the same. Both machines are
running Leopard with the same version of ruby, same gems, and same version
of TM installed.
Any assistance is greatly appreciated.
Thanks,
Brian
Hello, I just started using command-R to refresh in running browsers.
I find it only refreshes the front most browser window. Is this normal?
I seem to be fighting this behavior, though command-R is so handy I
want to use it. Perhaps it could be modified to work better.
If I have a few windows, and a few tabs, move to TM, command-R, it
will switch to Safari in this case, and refresh whatever is the front
most window and tab within that window. I now have to remember to
bring the window forward that has the result of the code I am working
on to the foreground.
I think for me, a better behavior would be for command-R to spawn a
new browser window, with the code ran in that window. I can then
close the window, and be back in TM. This way, my window is always
going to be the one used.
Has anyone else found this mildly annoying and looked for a solution?
I can always go back to the command-tab to the window I want method,
and press reload in the browser.
I have tried the command-shift-R method, but I have a feeling that
since I am working on remote files through a ftp/ssh app, it is not
going to work. It also does not interpret html, and shows me the raw
html code, so that method seems more designed for cli type scripts, or
code that does not end up outputting to a browser.
Thanks for any workflow suggestions
--
Scott * If you contact me off list replace talklists@ with scott@ *
Hello, I found a .tmMacro file someone put up, it will allow me to
remove trailing spaces and tabs on save. Works nice, for one flaw.
If I have any text selected, that selected text is replaces with what
seems to be the contents of the entire file.
I can not figure out how to even edit the .tmMacto once installed. I
can put the cursor in the bundle editor area, but it will not allow
any chances.
I can not open the .tmMacro file in TM, so I could use the shell, but
that seems strange, and it is a plist, and not entirely sure what to
edit.
The Macro has two commands
executeCommandWithOptions
{
beforeRunningCommand = nop;
command = "perl -pe 's/[\\t ]+$//g'";
input = document;
output = replaceSelectedText;
}
executeCommandWithOptions
{
beforeRunningCommand = saveActiveFile;
input = none;
output = discard;
}
* I can sort of hack this out on my own by making a empty command,
then recording a macro to and hooking those two together. The above
seems cleaner though.
Any ideas what I should edit? The perl seems fine, a direct copy from
the TM built in to remove spaces and tabs, maybe the output =
replaceSelectedText; needs changing?
--
Scott * If you contact me off list replace talklists@ with scott@ *
Hi all,
I am new to textmate and Java/Python programming. When I run my code
with the textmate run command, there seems to be a problem with the
order of output in html. This problem seems not to be bundle specific
(both Java and Python bundle show the same problem) so I guess it is
in the underlying executor script.
The bundles and support dir are fresh SVN checkouts.
Example code: guess.py
import random
secret = random.randint(1, 99)
guess = 0
i = 0
while guess != secret:
guess = input("Make a guess (0 to quit): ")
if guess == 0:
print "Program quit"
break
elif guess > secret:
print "to big"
elif guess < secret:
print "to small"
i = i + 1
else:
print "Congratulations, you guessed right after",i ,"tries."
Example output: order is: prompt -> program output -> input
Make a guess (0 to quit): to small
1
Make a guess (0 to quit): to small
2
Make a guess (0 to quit): to small
3
Make a guess (0 to quit): to small
4
Make a guess (0 to quit):
Output order should be: prompt -> input -> program output
I'd like to use textmate in my cs cources starting soon and it would
be great if the html output had the right order, so I can hand it out
to the teacher as a proof for my working code. At the moment this
would be rather confusing and lead to some discussions I guess.