Hello,
probably this not even is a TextMate problem, but I want to make sure
that it's not before I spend hours of research what I'm doing wrong...
I know that some of you, just like me, use ProFont as editing font in
TextMate (and I'm talking about the original pre-OSX version, not
ProFontX). ProFont includes the font outlines as well as bitmap
versions for some sizes; as far as I can see TextMate uses this
bitmap versions for screen display.
In the days of the classic MacOS, those bitmap versions were stored
in the resource fork of the file; but nowadays it's possible to
create a TrueType font with embedded bitmap fonts which are stored in
the data fork. I've been using FontForge [1] to create such a font,
but when using this font in TextMate, it clearly does NOT use the
bitmapped version but rather the outlines which are somewhat fuzzy at
small sizes.
So I guess that I'm doing something wrong when I create the ttf file
from FontForge, but this is what I want to make sure: Does TextMate
support such "TrueType with embedded bitmap" fonts or will it always
use the outline no matter what I do?
Kind regards,
Tobias
[1] http://fontforge.sourceforge.net/
Something for the todo list...
If anyone s doing any work on the CVS bundle... is there any chance
you could add a 'Remove file' option?
I've had a look at it... but my Ruby is just not up to it.
R
--
Richard Dyce MA (Cantab.) MBCS MIET
http://dyce.com
Hi,
I have two questions regarding to the internal language grammar.
1) Is it possible to look for the internal markups which TM is using
like
"<support.function.perl>(.*?)</support.function.perl>"
directly?
I only know the way to use the 'magic keyword' in a tmCommand
"<key>inputFormat</key><string>xml</string>" and parse the output.
2) Is there a way to modify the current language grammar dynamically?
Example:
{ scopeName = 'text.plain';
fileTypes = ( '' );
patterns = (
{ name = 'my.tag';
match = '(a)';
}
);
}
Then I write a command or what ever to change
match = '(a)';
in
match = '(b)';
If I do so I have to quit TM and restart it. A 'Reload Bundles'
doesn't work.
[I don't know whether it is possible to write an Applescript to
control TM in that respect.]
2a)
Or to use an external file which holds the actual 'match' expression
for a given pattern.
2b)
Or to change the current used language grammar by using a tmCommand.
Many thanks in advance,
Hans
Hi,
I wonder where the project file (.tmproj file) should be located. Do
you save in the root folder of your project? Or do you save the file
outside of the project?
The project file remembers other files relatively, so after making
the file, I'd rather not to move it.
A problem I oftern encounter is svn bundle tries to add the project
file, though I can exclude the file from the commit.
I wonder how people work with others using TextMate. I'm very
interested in your workflow with project files.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Cliff Pruitt wrote:
> I'm honestly not putting down the desire for the feature, it's just
> not an "expected" feature in an editor. Am I making sense?
Not really ... I think a read-only mode should be a standard feature
of any serious editor. Just consider past examples e.g. vi, Emacs,
Edt, possibly even TECO (but my memory fails me here; digression:
TECO is probably the most powerful/dangerous/sparse/delightfully
cryptic text (character) editor that's ever existed; Emacs used to be
written in it).
On Jul 19, 2007, at 11:30 AM, Andy Armstrong wrote:
> I think you've missed the point Cliff. There are all sorts of reasons
> why you'd want to open a document read-only. Other editors have great
> r/o support (vim/gvim springs to mind). In general just because you
> don't want to change the document doesn't mean you don't want to work
> with it in a familiar user interface will all the syntax highlighting,
> clever selection modes, folding etc that TextMate brings.
I would agree with Andy here ... I often work with multiple (source)
files open and it would highly inefficient/clumsy to use a different
application for reading as well as deal with the unexpected
consequences of entering stray characters into a source file ...
(leading to new but likely less useful permutations of code ...).
Harry.
Not a biggie, but thought someone might want to know... for next time
they're tinkering (Ciarán? ;-) ) with the PHP bundle.
Thought I'd try fiddling with my copy of SimpleTest to put txmt style
links on the test reports, just to make things a bit easier...
Thought I'd just grab what i needed from the $message variable which
shows up something like this:
[/Library/WebServer/Documents/pcs/tests/panel_test.php line 56]
Tried putting
$linkRef = preg_replace( array('/^.*\[/','/\].*$/','/ line /'),
array('txmt://open?url=file://','', '&line='), $message);
which works as far as the links go, but throws a distinct wobbly in
terms of scope within TM after that delimited open square bracket \[.
If I didn't happen to be searching for the end square bracket as
well, then the rest of the code would be highlighted as a pattern...
Hope that's as clear as mud.
R
--
Richard Dyce MA (Cantab.) MBCS MIET
http://dyce.com
A couple of recent posts asking perfectly reasonable questions about
TextMate (can you open documents R/O, can you split the screen) have
attracted answers in the spirit of "why would you want to do that?"
or "here's a command that will erase your hard drive luser". The
latter a particularly stupid and frankly unexpected contribution from
Thomas.
I know TM has a lot of fans in the Ruby community. I wonder if we're
seeing the same attitude that hangs around Ruby like a bad smell
("you can't write a DSL in any language apart from Ruby", "wow!
That's just not possible in other languages") applied to TextMate.
Assuming there's at least some overlap between the two groups of
fanatics I'll attempt to address both at the same time: please wait
until you've had experience of other languages / editors before you
start condemning everthing not-Ruby or not-Textmate.
Ruby and TextMate are both excellent tools; both have limitations and
misfeatures as all non trivial software does. Neither will continue
to improve if their fans believe them already perfect.
"And what should they know of England who only England know?"
Rudyard Kipling, The
English Flag
--
Andy Armstrong, hexten.net
Hi,
I'm trying to use iconv to convert a Shift-JIS document to UTF-8.
It's successful in Terminal, but not so in TextMate.
The command I use in Terminal is:
iconv -f shift-jis -t utf-8 text1.txt>text2.txt
This converts the file successfully.
In TextMate, I set up a command, using:
iconv -f shift-jis -t utf-8 "$TM_FILEPATH"
in Command(s) field.
I set Save: Nothing
Input: None
Output: Replace Document
Activation and Scope Selector are unset.
After using this command, I see a diamond-like character at the end
of each line.
Any help would be appreciated.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hello friends,
TextMate desperately needs some updated T-shirts, but behind every great
T shirt is a great T shirt idea. So, even if you have no artistic
talent whatsoever, you can think up ideas for slogans and designs. And
even slogans that don't make it onto shirts could probably be useful for
something.
Anyway, once some good ideas have been offered up, it will be possible
to make some design mockups based on those. I'm happy to spend a bit of
time sometime doing some very basic designery stuff, though I'm hardly
an expert, and other more qualified designers would of course be welcome
to draw up shirts too.
But first let's see if as a group we can't come up with some killer slogans.
Anyone who contributes an idea/slogan, or a design, which ends up being
printed on the shirts gets one free (says Allan; I'm a poor student and
can't afford such things ;)
To start off, I was thinking it could be something along the lines of
"check and mate".
-Jacob Rus
Hi,
As I've watched some of Allan's screencasts, I noticed he often
switches between the bundle editor and a document window in order to
try out changes to snippets, commands, etc. It looks like he's using
the keyboard to switch back and forth. I know I can switch between
windows using Command-` , but any changes I've made in the bundle
editor's text field don't seem to take effect when I switch windows.
For example, I start editing a snippet. I add or remove some text in
the snippet. Then press Command-` to switch to my document window. I
trigger the snippet (using tab triggers in my recent experiments), but
I get the old contents of the snippet, without the changes I just typed.
If I click elsewhere in the bundle editor (in the list on the left, in
the scope selector text field, etc.) before switching windows, then
the changes I've made to the snippet take effect when I switch to my
document window.
I've been skimming some of the archives of this list, and I've seen it
mentioned that switching windows is supposed to commit changes to the
text field in the bundle editor. Which means just pressing Command-`
to switch windows should be enough. Am I doing something wrong?
I'm running TextMate build 1405 on Mac OS X 10.4.10 on both Intel and
PowerPC machines.
Thanks,
-Mark