Hey everyone,
I'm experiencing very annoying trouble out here. My font rendering is kind
of blurry when it comes to dark backgrounds. Here's a screenshot using
Swyphs II color theme. My rendering is on the top of the screenshot,
author's is at the bottom, after the red line.
http://berkana18.com/screen.jpg
Font smoothing in system perferences is set to 'Automatic', and i'm on
Leopard, 23" ACD.
Any ideas, anyone?
Thanks in Advance.
Aleksandr.
--
View this message in context: http://www.nabble.com/Font-is-blurry-on-dark-background.-tp22957411p2295741…
Sent from the textmate users mailing list archive at Nabble.com.
Dear all,
I'm doing a very simple test every morning and sometimes more often:
run SVN update on my work dir (let's call that command A) and then
update the tag index of this source code (let's call that command B).
And I wanted to create a macro to do that.
The problem is that the macro launches the command A and launches
command B without waiting the end of command A. Do you have an idea on
how to automatize this (long to run) task with a macro. I could
probably do that with a command, but it would be cheating.
Thanks.
Best regards,
Mathieu
___________________________________________
Mathieu Godart
Skype: mathieu_godart
MSN: mathieu_godart(a)hotmail.com
ASIC Integration Manager
Coolsand Technologies
___________________________________________
Hi folks,
In case anyone else is interested, I've just put together a command
that aligns comments in a block - a trivially modified version of
Chris Poirer's 'align assignments' script.
It fixes this:
imagecopy($image, $frame,
($x=max($width-$this->topRightCap[kCapWidth], $this-
>topLeftCap[kCapWidth])), // Destination x
0, // Destination y
$x, // Source x
0, // Source y
min($this->topRightCap[kCapWidth], $width-$this-
>topLeftCap[kCapWidth]), // Source width
$this->topRightCap[kCapHeight]); // Source height
Ctrl-Option-Command-/, then:
imagecopy($image, $frame,
($x=max($width-$this->topRightCap[kCapWidth], $this-
>topLeftCap[kCapWidth])), // Destination x
0
, // Destination
y
$
x
, // Source
x
0
, // Source
y
min($this->topRightCap[kCapWidth], $width-$this-
>topLeftCap[kCapWidth]), // Source width
$this-
>
topRightCap
[kCapHeight]); // Source
height
More info & download at http://michael.tyson.id.au/2009/03/27/align-comments-in-textmate/
Cheers,
Michael
--
Michael Tyson | michael.tyson.id.au
m: (+61) 0407 754 124
e: michael(a)tyson.id.au
aim: mikerusselltyson
twitter: MichaelTyson
Hello,
Is it possible do always highlight brackets/parentheses of the code block,
where my caret currently is?
I'd like to have the ability to always see what block I'm at, not only when
moving caret near the closing bracket. And is it possible to change the
color of the highlight? I may not be a square around that bracket, the
bracket itself can go bold and different color.
Does anybody know, how to do that, if possible?
Thanks.
--
View this message in context: http://www.nabble.com/Always-highlight-brackets-parentheses-of-the-code-blo…
Sent from the textmate users mailing list archive at Nabble.com.
Hi TextMate users!
I'm using LaTeX with TextMate. Is it possible to get the Acrobat Reader in the "View in:"-selection in LaTeX Preferences? Where can I set this?
Thanks and regards!
I'm experiencing slowness when I use the number keys 1-9 (not 0). There's a
full second's delay from pressing a number to having it appear in the file
that I'm editing. Interestingly the problem also exists when changing using
Apple+Number keyboard shortcut to change between open file tabs. The problem
only occurs in projects.
Is anyone else having this problem? Any suggestions on a solution would be
greatly appreciated.
I'm using OS X 10.4.11 and I have the ProjectPlus plug-in installed.
--
View this message in context: http://www.nabble.com/Number-keys-slow-tp22668585p22668585.html
Sent from the textmate users mailing list archive at Nabble.com.
I had earlier asked a question about how to have the textmate editor
highlight the footnotes in my latex document. Link:
http://www.nabble.com/Highlighting-in-Textmate---Latex-to20379168.html#a203…
I had two very good responses to that question about how to find the scope
and how to modify the preferences. For footnotes, the scope was
meta.footnote.latex
Now I am using a package called "changes" in latex, which defines commands
like \added, \deleted and so on for tracking changes. I want to highlight
anything that appears in the braces in \added{}. Using the method suggested
in the above post I found the scope as meta.group.braces.tex. But this scope
is common to many other pair of braces (for example, subscripts,
superscripts, \vspace{} etc.) and it highlights all those too. How can I
have the editor just highlight something that appears between \added{}.
Thanks very much.
--
View this message in context: http://www.nabble.com/Custom-highlighting-in-latex-tp22727134p22727134.html
Sent from the textmate users mailing list archive at Nabble.com.
How can I escape certain chars in a selection in TM? If this is not
built in, can someone help me make a macro or equivalent to do so?
Example:
echo "<a href="untitled.html" id="name" class="name"
target="_self">test</a>";
I would select the entire line, it would be smart enough to know the
language from the string.
echo "<a href=\"untitled.html\" id=\"name\" class=\"name\" target=
\"_self\">test</a>";
I have a feeling there is probably something built in that can help
me, but I am just not finding it.
--
Scott * If you contact me off list replace talklists@ with scott@ *
It would be useful with a command "Diff selected directory with
Version ...",
that would generate a diff for ALL versioned files in selected
directory.
-----------------------------------
See the amazing new SF reel: Invasion of the man eating cucumbers from
outer space.
On congratulations for a fantastic parody, the producer replies :
"What parody?"
Tommy Nordgren
tommy.nordgren(a)comhem.se
I'm newly coming back to the Mac after a long hiatus (late 1980's as a
developer); been Windows in the interim.
I still have to work periodically in Windows boxes and am somewhat forlorn
at the layout of the navigation keys on the Mac (as in most laptops). This
is where VI shines; the navigation can be accomplished in the "center" of
the keyboard where key layouts are consistent. David Wooten maps a single
key (http://lists.macromates.com/textmate/2006-January/007683.html) and Kirk
Fitzpatrick was attempting a plugin (
http://lists.macromates.com/textmate-plugins/2007-January/000022.html).
Anyone figure out anything like what VI has or have any ideas? I'm
considering building something that intercepts keystrokes right out of the
operating system so that TextMate has to know very little.
Thanks in advance,
--
Scott Smith - Old Fart Developer
With privilege comes responsibility,
with responsibility comes accountability,
with accountability comes honesty,
with honesty comes faithfulness.
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.
This really just happened to me. Really. I know I produced some April Fools
jokes yesterday, but that was yesterday. This is real.
I created this Ruby script in TextMate:
s = "wackamole"
puts s
I ran it, and the RubyMate output window displayed:
woe
Weird, eh? And it is part of a longer story; the string "wag wag" was being
displayed as "w w", and the string "ruff ruff" was being displayed as empty.
(Never mind why I was testing those strings.)
I quit TextMate, restarted my computer, and everything is back to normal.
But would anyone like to suggest a cause for what happened? Cosmic rays?
Belated April Fools day easter-egg-type joke?? The conficker virus??? Has
anyone else ever seen anything like this? m.
PS The problem was presumably with TextMate, not with ruby, because using
the Terminal to run the same script (as a saved text file) using the "ruby"
command worked just fine.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
Hello, I find that TM has too many keyboard shortcuts for my brain to
be able to retain and be useful to me. I have developed a habit that
I use in all apps, which is to use apple help, command-Shift-? will
bring up the help menu in the app. I can type a few words, and it
will show me the menu item I need. Return and it is executed. Or I
can traverse the real menu structure.
I use this in all apps, it is handy to me.
TM apparently crashes a lot when I do this.
I am now looking to use the "Select Bundle Item", but it is too
aggressive about what it finds. Enter in the single letter "E" and it
finds all bundle items that contain a singe E. I am looking to limit
it to contains characters of at least three characters for a match.
In the help search method, if I type "br" it brings up 6 items to pick
from. In the "Select Bundle Item" it beings up about 25 or so.
Any suggestions? Over time, I am sure this is going to force me to
learn more of these, but the apple help method was gread for those one
time uses where you will not use the command again for a long time.
It also goes beyond the bundle items, and I could toggle freehand edit
mode, for example, something I rarely do, and just do not want to
bother committing to memory.
--
Scott * If you contact me off list replace talklists@ with scott@ *
Hello,
I'm working on a "matlab console" bundle, à la "R console bundle". The
goal is to emulate a matlab console in a textmate window, which is
much more practical than the terminal to edit long commands. This is
so far working quite well, running matlab in the background and
sending/receiving messages via text files.
However, when I have a matlab script opened in a textmate window, I
want to be able to execute it in the textmate window where the matlab
console lies. I thought of doing that with applescript, but the
dictionary of textmate seems pretty poor, there is no way of handling
tabs for example.
So what I want to be able to do is a run a command from a window that
write its results in a different textmate window or tab (which has a
specific name, something like "Console.Mcon"). Is this possible ? and
how ?
Thanks
Pierre