Allan Odgaard wrote:
> On 30. Jul 2007, at 22:26, Dushan Mitrovich wrote:
>
>>> Where do you see the `-`? The `-` in the lower right side is a symbol
>>> list. The column is just next to the `Line: xx` on the lower left. If
>>> you open a new document, you should see "Line: 1 Column: 1"
>>> (assuming you open a new document wihtout any templates.
>> What I see is this: "Line: 1 Column: _", followed by a pale
>> vertical bar, followed by a pale colored disk with the white letter "L".
>
> And this is even when you place the caret in the upper left corner, i.e.
> at column one?
Yes, even then.
<snip>
> I’ll update the manual. This command is gone. But there is a “Create
> HTML From Document” which you can run, Show Web Preview (Window menu)
> and then print from there.
>
> If you do this a lot, you can go to the bundle editor and change the
> output for the command to Show as HTML and give it a key equivalent.
> Then printing (colored) is just two keys instead of one.
Okay, I'll try that.
BTW, I'd like to thank you and compliment you for the clarity of your
instructions (to someone else, earlier) on how to get the 'End' and
'Home' keys to work as in the non-OSX world. Since I much prefer the
keyboard to the mouse, these instructions were a treat. I notice, tho,
that there are still some apps that disregard that, such as in Firefox
and Thunderbird. I suppose their structure is too different to notice
the key mapping.
- Dushan
Paul McCann <paul.mccann(a)adelaide.edu.au> wrote:
> Gack: I don't think you want to be grabbing latex just to get some
> printing functionality in place! If you're interested in producing
> beautiful technical documents on the other hand...
For beautiful technical documents, including equations, plots, etc., I
do use a full latex program - it would never occur to me to use a text
editor for that. What I do expect from a text editor is to be able to
write and print out a letter, for example, containing pure ASCII, that I
can mail off. Yes, occasionally snail-mail is still appropriate :).
> The link mentioned earlier in this thread *is* out of date: the
> "Typeset and View (PDF)" command in the latex bundle almost certainly
> isn't what was being referred to: it is --unsurprisingly-- only useful
> on a latex source file. I do have a recollection of some printing
> scripts being developed using "enscript", a formatting utility that
> comes with OS X. Here's one that lingers in my bundle, and
> occasionally proves useful. Make a new command with...
> =======================================================================
> Save: Current File
> Command(s):
> #!/bin/bash
> # close stderr
> exec 2<&-
> # set options here
> enscript_opt="-2Gr --line-numbers -o -"
> tempfile="/tmp/texmate-print.$$.pdf" # note: "$$" is the current pid
> pstopdf_opt="-i -o $tempfile"
> # create the pdf and open it
> enscript $enscript_opt | pstopdf $pstopdf_opt
> open $tempfile
> rm $tempfile
>
> Input: Entire Document
> Output: Discard
> =======================================================================
>
> You'll probably want to play with the enscript options to get the
> output to your liking, but it's very malleable.
Thanks for this command script, Paul. I've not tried making any
commands yet, but this is a chance to learn how.
- Dushan
Hello everyone,
I'm new to the group...I ABSOLUTELY LOVE TM. But I have one recurring
problem that is starting to irritate me.
9 out of 10 times when I start Textmate, I get some (unknown) font that I
don't want. Changing the font setting in preferences has NO effect.
Anti-aliasing on/off seems to work, but changing the font does nothing.
But then 1 out of 10 times when I start it, TM uses my font setting and I'm
a happy camper and afraid to ever close TM.
I've not spent a lot of time messing around trying to figure out the
problem...I'm also new to Mac and feel like a fish out of water doing
anything.
So I thought I'd ask if anyone knows what is going on...and how I can get TM
to use my font choice all the time.
Thanks,
John
Well, there are a few obvious points that (most) everyone wants, better
performance on networked files for example. There are (approximately)
five such Really Obvious(tm) requests (hey, I won't say what they
are--after all, they're Really Obvious(tm), right?), and even for those
that don't affect me personally, it's pretty obvious they need to be
taken care of.
Past that, what _I'd_ like (yes, I'm unique, and possibly completely out
of touch with the rest of the universe :-) ) is--simplicity. I'd like
Alan to concentrate a significant part of his design and programming
prowess on making TM not more powerful, but more obvious.
My canonical example of this is the whole keybindings issue. Currently,
dealing with keybindings in TM involves searching through bundles, using
the Keyboard and Mouse Preferences Panel, and using a keybinding utility
such as KBE. This is just too much info for my little head. I'd like it
all in one place, and if not in one place, at least simpler.
My belief is that TM is currently at a level where (for me)
concentrating on increasing uniformity and simplicity would in real
terms _add_ features to the application, because I suspect that there is
a lot of power I'm not using because I don't have the time to consider
the special cases or esoteric knowledge needed to use already existing
features.
So my real request for TM2 is--don't worry too much about new stuff.
Concentrate on making TM easier to use (keybindings as described above;
optional help strings for bundle items and a streamlined bundle editor;
UI improvements; etc.), and I'll still feel my money is well spent.
(This may have something to do with age. At 43, the days when I both had
the time and the desire to learn about cool "new" features, keybindings,
etc, are long gone. In the last five years, the only truly worthwhile UI
innovation I've come across are: The technique that Quicksilver and
Launchbar use for identifying commands/files, and that TM uses when
moving between files, i.e. type in a not-necessarily-contiguous
substring of a name to identify a command/file/whatever; And
tab-completion in TM. And the second could easily be subsumed in the first.)
Just my $0.02,
Ken
On Aug 2, 2007, at 6:45 PM, John Yates wrote:
> Curious...what is the font of choice for TM users?
My font of choice is Anonymous; very clear and readable on my aging
eyes.
I may just be being a berk here, but I don't seem to be able to get
the URL associations to play ball. I'm editing text in three different
wikis, each with a different format. My config looks like this:
{
URLAssociations = {
'mail.google.com/' = 'mail';
'macromates.com/blog/' = 'markdown';
'blacktree.cocoaforge.com/forums/' = 'bbcode';
'trac.' = 'trac';
'wiki.' = 'twiki';
'doe.caribou.lan' = 'markdown';
};
}
Whenever I edit the contents of a textarea in TM it's opened into a
file named title-of-page.safari. I consequently need to manually
switch the syntax highlighting. Is there something wrong with my
config?
I've restarted TM and Safari, to no effect. Do I need to prod
something else to get the input manager to take notice of changes to
the plist file? I'm using the Safari beta (3.0.2).
On a related note, can you use regular expressions in the
URLAssociations setup, or do you have to specify an exact match?
Cheers,
Graham
Howdy.
Since TextMate seems to be like 80% LaTeX users. I feel a burning need
to use latex.
Can one of you LaTeX gurus condescend to learn me what's up?
Maybe a few links to how to get started with latex and latex in
textmate specifically.
Do you have to be a nerd to be able to use it?
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
I don't know how many people use the Smarty bundle, but I've made some
major improvements. Highlighting now includes support for all
assignment, arithmetic, and logical operators. It also properly colors
all PHP variables, functions and constants.
I also updated the snippets to take advantage of tab stops, and
selected text, and includes almost all the options for each
function/modifier.
Finally, I updated the menu structure.
Also, I patched the HTML and PHP syntax so a block like:
{php}
$var
{/php}
will get properly highlighted as PHP and not as HTML. (Don't apply
these patches unless you really use Smarty, since Smarty is by default
disabled in the HTML syntax and this will undo that)
Any, comments, suggestions, etc. are welcome.
- Brian
I've played some with the SQL bundle but i wonder how to auto-select a
db/config per project.
I've got multiple configurations in my config for the MySQL bundle
But i need to click the config-item that i want to use and if i switch
project i need to click the other configuration first before i can
select a query and run it.
I've tried MYSQL_DB in my project property but that didn't work out...
Regards J.
Hi All,
I'm working on an all new version of the Latex and View command. See my
earlier message for you you can switch to this branch of the svn repository
if you'd like to beta test. I'm hoping to commit a major new version
today. I've attached a screenshot of the configuration window.
Whats missing?
Is the wording on the options for opening the viewer clear?
Here is another big question I've been thinking about. Since all of these
new configuration settings will be stored along with the standard TextMate
prefereces in a preferences file, how much backward compatibility should
this new version try to maintain?
The current Latex and View command has grown organically over the life of
TextMate and there are lots of environment variables that have been added
over time, some that are semi-redundant even.
TM_LATEX_PROGRAM
TM_LATEX_COMPILER
TM_LATEX_VIEWER
TM_LATEX_ERRLVL
TM_LATEX_OPTIONS
All of the above can/will be replaced with the new interface, and I think we
should make a break and do away with these.
TM_LATEX_MASTER
This one is more interesting. We currently have two ways to specify a
master/root file. Using this variable, or using the TexShop %!TEX directive
embedded directly in the file. The TexShop way seems clearly superior to me
since it allows for more flexibility than a single environment variable per
directory or project. So my proposal is that the environment variable goes
away.
TEX_PSTRICKS
Since we can automatically detect when we should use latex instead of
pdflatex this is redundant and should go away.
As I mentioned above, TexShop allows authors to embed directives right in
their source file that specify a master file, there are others as well. I
propose that we use that same set of directives and allow the following
in-file settings to take precedence over the preferences set in the
preference dialog box:
TS-options -- command line options passed to the latex engine
TS-program -- the typesetting engine to use just for this file
encoding -- how the file is encoded, I don't really know what to do with
this one. Anybody?
I've looked at the TexShop documentation and I think this is it, are there
other %!TEX directives I'm missing?
Thanks,
Brad
--
Brad Miller
Assistant Professor, Computer Science
Luther College
Takaaki Kato <devlist(a)samuraicoder.net> wrote:
> On Jul 30, 2007, at 5:28 AM, Dushan Mitrovich wrote:
>
>> - On opening ordinary text documents the Line counter at lower left
>> shows the line number, but the column counter just shows '-'. How
>> do I get this to work correctly?
>
> Where do you see the `-`? The `-` in the lower right side is a symbol
> list. The column is just next to the `Line: xx` on the lower left. If
> you open a new document, you should see "Line: 1 Column: 1"
> (assuming you open a new document wihtout any templates.
What I see is this: "Line: 1 Column: _", followed by a pale vertical
bar, followed by a pale colored disk with the white letter "L".
>>
>> - How do I adjust the left margin for printing?... in fact, all the
>> essential printing parameters?
>
> TextMate doesn't have many features for printing. See the link below:
>
> http://macromates.com/textmate/manual/printing#printing
Oh, thanks for the info. Amazing that an otherwise competent text
editor should lack such essentials. BTW, the information in the URL
above differs a bit from what my copy of TextMate (1.5.6) shows: the
"View Source as PDF" is in the Latex bundle rather than the Source
bundle. Where's the best place to get pdfsync and pdflatex?
- Dushan
Hi all!
Sorry for asking this - I assume this is a stupid question, but I am
new to Textmate and not very familiar with the terminal.
So thanks in advance for being patient and helping me:
I have installed Latex via fink. The LaTeX-binaries are stored in /sw/
bin/ and I have the latest Version of Textmate and the latest Version
of MacOSX Tiger.
Compiling latex-documents from Textmate worked out of the box without
any configuration.
But there are two things, that don't work:
1.) Bibdesk (also latest Version) auto-Completion doesn't work: when
pressing alt-esc within \cite{u} for example I get the following
error message:
"The tex binaries cannot be located!" (I don't understand this,
because latex-compiling works!!) The bibdesk auto-completion works
fine with Textedit for example.
2.) Same Problem when using the "Citation based on Current Word"-
command from the LaTeX-Bundle. It doesn't work and I get the same
error message: "The tex binaries cannot be located!"
According to the manual it looks like, that I must add the /sw/bin to
the path, but I am not really sure about this, since compiling tex
files works. Also as mentioned above I am not familiar with the
terminal and don't know how to do this. (Sorry)
So whats wrong?
Can anybody help me, please?
Thanks a lot in advance.
Best wishes
Markus
Hi,
I just thought about a color picker in tm_dialog.
But do we need it?
Background:
I simply added to TextMate's MainMenu.nib Menu the following:
Format
Font
Show Fonts
Show Colors
Text
Align Left
Center
Justify
Align Right
without key bindings.
If I invoke 'Show Colors' in TM a color palette will be displayed, I
can choose a color, and finally I can drag&drop the color which is
shown in the rectangle to a document in TM, and I get e.g. #FF33DC.
This should work for HTML, CSS, etc. stuff properly.
The same for Show Fonts. I can drag&drop the name for instance.
All items under Format>Text also work but with the limitation that
all commands interact only with the current size of the document's
window.
[This, of course, is ONLY a side note ;)]
OK.
If someone needs a tm_dialog nib which asks the user, among others,
to choose some colors, one could such a nib by using NSColorWell easily.
I wrote a routine for tm_dialog to parse the result dictionary for
NSColor objects. If there are some the routine will replace the
content of these dictionary's keys with an array containing the
following strings:
{example for red; 'color' is the selection value in the nib}
<key>color</key>
<array>
<string>#FF0000</string>
<string>255 0 0</string>
</array>
Each programming language I know can use at least one of the color's
representation for further calculations. It would be easy to add also
the values for the HSB and CMYK models.
So my question is:
Is there something which I didn't consider?
Regards,
Hans
Hi,
I wonder if it possible 'easily' to enhance tm_dialog in a way that
one can also use it as FileSelect dialog, like CocoaDialog it does,
in conjunction with an user-defined nib-file to append a CustomView
to the predefined NSOpenPanel.
For details have a look at:
http://developer.apple.com/documentation/Cocoa/Conceptual/AppFileMgmt/
Articles/ManagingAccessoryViews.html
E.g.:
tm_dialog -f
invokes a normal cocoa-based file select dialog.
tm_dialog -f myextension.nib
invokes a normal cocoa-based file select dialog and appends
myextension.nib as an Accessory View.
tm_dialog -f -p THEPLIST
to set the current dir, which files are allowed to select, multiple
file select yes/no, dialog title, etc.
The result is a plist containing the filename and, if an Accessory
View is specified, the selections of it.
Hans
Hi!
Since yesterday, TextMate has some strange behaviour on deletes and
on scrolling thru documents using the arrow keys.
When I type a tab and hit backward delete, only one character is
deleted, as if the soft tabs would be enabled, but I don't use soft
tabs.
The other issue is somehow more difficult to describe, but propably
related:
When I scroll thru my document using the arrow keys, my cursor does
not go to the end of the line, but remains where it has been before.
This has been different before.
Just to give you an idea of hat I mean:
if($this->db->dbh->isError($q)) {
$error = new error;
$error->raiseError($q,"DB_ERROR");
}
Before, when my cursor was placed at the end of the 'if($this->db-
>dbh->isError($q)) {'-line (in column 34) and I used arrow-down, the
cursor was placed right after the semi-colon behind 'new
error' (column 24). Now, it remains in column 34.
I have no clue what I might have changed recently, but hopefully
somebody can help, as I couldn't find anything regarding this issues
in the help documents.
I'm currently running TextMate 1.5.6 (1405).
Matt
Hello,
this is my first post on the list so hello to all. I've been using textmate
as a demo for the past couple of days now and I'm very impressed by the
application a massive improvement on bbedit in many ways.
but one small thing I would like to be able to change is the default
document type that appears on startup, just to clarify my issues isn't how
to change it but how do I change it permanently so it appears as say a php
or Java file?
many thanks
Stefan
Hi all,
I am a CSS, HTML, occasional PHP/Javascript developer new to Textmate
and have been hunting around for a good HTML bundle. I may be looking
in the wrong places, but basically, I would love to find something
that gives a few of the old features from Homesite, if that is
actually possible. I would love to find some kind of bundle with the
following:
- Code colouring similar to that of Homesite and Dreamweaver.
- Auto tag completion similar to Homesite and Dreamweaver, so when
you type the ending ">" of a div tag for example, it writes out the
closing tag. This would be instead, or in addition to, the feature of
hitting CTRL + < to close the tag.
- Some kind of HTML, CSS validation, similar to the way Homesite used
to do it. Can you include validation in a bundle?
Tell me if I'm dreaming! Either way, it would be great if someone
could point me in the right direction for finding good HTML bundles.
Googling doesn't seem to get the results I want.
Cheers for any help.
Recently, I needed to unbind a TextMate menu command (Text:Reformat and
Justify) so that I could use ^J for my own uses. Ale Munoz (the n is
suppose to have a tilde above it but I don't know how to type that on a
US keyboard, sorry) was kind enough to show me how to use the Mouse and
Keyboard preferences panel to rebind that menu item to something else,
which solves the immediate problem. However, this still begs the
question; is there a way to _unbind_ that menu item, so that it has _no_
associated key binding? This can't be done using Ale's method.
Thanks,
Ken
I think the title explains it all. Instead of having to do APPLE + TAB, I
would just like to be able to highlight text and use the TAB key on it's own
to indent my text.
I guess this shortcut must be listed somewhere (APPLE + TAB). In future, how
can I find it so I can change it?
Thanks for any help offered.
--
View this message in context: http://www.nabble.com/How-to-make-TAB-and-SHIFT-%2B-TAB-indent%2C-un-indent…
Sent from the textmate users mailing list archive at Nabble.com.
I'd like to use this key binding for something else, but I can't find
the TextMate default binding for ^J anywhere to unbind it; not in a
bundle, and not in the System's Keyboard Preferences binding list.
In general, is there an easy way to find out where a particular
keybinding is set?
Thanks,
Ken
Sorry for double-posting too, still trying to figure this mail-list/forum
thing out...
desmond wrote:
>
> Hi all,
>
> I am a CSS, HTML, occasional PHP/Javascript developer new to Textmate
> and have been hunting around for a good HTML bundle. I may be looking
> in the wrong places, but basically, I would love to find something
> that gives a few of the old features from Homesite, if that is
> actually possible. I would love to find some kind of bundle with the
> following:
>
> - Code colouring similar to that of Homesite and Dreamweaver.
>
> - Auto tag completion similar to Homesite and Dreamweaver, so when
> you type the ending ">" of a div tag for example, it writes out the
> closing tag. This would be instead, or in addition to, the feature of
> hitting CTRL + < to close the tag.
>
> - Some kind of HTML, CSS validation, similar to the way Homesite used
> to do it. Can you include validation in a bundle?
>
> - Tab to indent selected text. This is a feature in all other HTML editors
> I've used, how can I turn it on so highlighting text and hitting the TAB
> key will indent it, instead of APPLE + TAB? (Shift tab to un-indent).
>
> Tell me if I'm dreaming! Either way, it would be great if someone
> could point me in the right direction for finding good HTML bundles.
> Googling doesn't seem to get the results I want.
>
> Cheers for any help.
>
--
View this message in context: http://www.nabble.com/HTML-Bundles-%28newbie-question%29-tf4193346.html#a11…
Sent from the textmate users mailing list archive at Nabble.com.
svnmerge.py is working fine on the command line, I can issue the
command svnmerge.py avail, no problem, but I am getting the following
error with Show Available Revisions for Merging in the subversion
bundle:
/Library/Application Support/TextMate/Bundles/Subversion.tmbundle/
Support/format_log.rb:262: undefined method `make_foot' for
main:Object (NoMethodError)
NoMethodError
reason: undefined method `make_head' for main:Object
trace:
/Library/Application Support/TextMate/Bundles/Subversion.tmbundle/
Support/format_log.rb:72
Any ideas?
Thanks, Mark
Quite possibly something I've messed up myself. When I'm editing a Ruby
file and I hit command-R to run the file, I get a pop up window called
'Run' indicating problems. I can't even copy the text from that window
(it doesn't seem to make it to the clipboard) though the ultimate
problem appears to be that something is trying to invoke '+' on nil.
I've a attached a screenshot of the full error report.
Is this a simple, obvious problems? (Well, I mean to people other than
me :-) ).
Thanks,
Ken
Hello all,
It seems that the XCode bundle's Run and Build & Run commands assume that the build folder is in the same location as the (TextMate project file? XCode project file? [1]).
At least in my case, the build folder is somewhere else. The attached patch lets you override the default build folder location with an optional TM_XCODE_BUILD_FOLDER environmental variable. It also explicitly prints out where the XCode bundle is trying to launch the app from, to (hopefully) point people in the direction of TM_XCODE_BUILD_FOLDER.
On the topic of Xcode bundle patches, I also have one to provide a TM_XCODE_PRODUCT_NAME, for when you can't find the product name to run. I thought this just had something to do with my project's complex setup, but looking through the log of run_xcode_target.rb it seems the XCode bundle makes a few guesses which may not turn out (see log for r7057), and there's no way for the user to _force_ the issue. If TM_XCODE_PRODUCT_NAME would be useful, I'll send that in a separate email.
_______________________________
[1] Or maybe the XCode bundle is reading the information from the project file? If this is the case, my project uses a series of .xcconfig files to specify settings (including TARGET_BUILD_DIR / CONFIGURATION_BUILD_DIR), so that's why the default doesn't work for me....
_______________________________
Let me know if you have any questions or concerns and I'll try to resolve them.
Later,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
I am trying TextMate on two machines, both PPC. One machine displays
subversion diffs with colours (the default behaviour, I believe), but
the other has plain old black text with white background. I am not
aware of having made any selections that should have caused the
difference in behaviour between the two machines. I looked in the
Preferences -> Fonts and Colors on the machine with no colours in the
diffs, and I see nothing that appears to be related to diffs. I
moved ~/Library/Preferences/com.macromates.textmate.plist aside and
started TextMate again, but the diffs are still monochrome. Where
else should I look?
TIA,
Kevin Horton
Ottawa, Canada
Hi,
I've recently switsched to TextMate and ... yes, it looks great.
A few questions remain, so:
- Why doesn't "Edit in Writeroom" work? It works in every other
application - and I tried re-installing it.
Any ideas? Thanks a lot so far...
Couple quick questions:
I would like to have the items listed in the Select Bundle Item...
(Ctrl-Apple-T) sorted, but I haven't found an option for that anywhere.
Same thing is automated backups -- is there an option to have your
previous version saved as Filename~ or Filename.bak, etc.
Thanks,
-Darren
I'm a recently registered user of TextMate, and have two questions:
- On opening ordinary text documents the Line counter at lower left
shows the line number, but the column counter just shows '-'. How
do I get this to work correctly?
- How do I adjust the left margin for printing?... in fact, all the
essential printing parameters?
- Dushan Mitrovich
I'd like to be able to set an explicit "selection mark", as can be done
in EMACS, and then to cut or replace text in the selection range. (For
non-EMACSers; the selection mark is similar to a bookmark, but indicates
the 'other end' of the selection range, 'this end' being the location of
the cursor. Under most GUI editors, moving the cursor deselects
currently selected text, while under the mark selection style, the mark
stays in place even when the cursor moves, which is great the text you
need to select spans more than one page.) Looking at the relevant
section of the TextMate manual didn't indicate anything obvious, does TM
have any sort of support for this style of copying/cutting/pasting?
Thanks,
Ken
Now let's see if anyone else agrees with this... :-)
Currently in the bundle editor, there's an "Activation" popup menu that
has just two items, "Tab Trigger" and "Key Equivalent". Depending on
which is selected, a tab trigger or shortcut key is displayed and can be
edited in the adjacent text field.
I think it would be clearer, faster, and probably take less space in the
UI, to simply show two text fields, one with the tab trigger, and the
other with the shortcut key. And I think a significant benefit to
someone using a bundle is that it then becomes possible to just move
through the bundle items and see the shortcuts in the process. Makes
learning a bundle much faster.
Many thanks,
Ken
Hi
May be this has being asked before!
Here goes nothing.
I will like to be able to split the screen like in emacs. or at least
left/right - up/down.
is that possible in textmate?
Thanks
Luis
--
View this message in context: http://www.nabble.com/Split-screen-tf4127380.html#a11737503
Sent from the textmate users mailing list archive at Nabble.com.
hi there,
i started using the todo bundle more extensive recently and
eventually took a look at the configuration possibilities.
i looked around the settings.rb and found
the announced preference dialog and
started using it.
first i ignored the RADAR tag,
but later on i found myself thinking about
"having something on the radar" as a future-task
or something similar. so i edited the RADAR
tag to match like FIXME or CHANGED.
after that nothing worked, because the
todo.rb expects the RADAR tag to be associated
with some spooky html-stuff which is not the
case for me.
error as follows:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/TODO.tmbundle/Support/todo.rb:76:in
`+': cannot convert nil into String
maybe one should fix that for future use.
the most sophisticated way would be to provide a
"MatchedTagFormatter" callback where one could provide
a snippet to format matched content.
in either way, thanks for a great bundle and keep up the
good work.
~fw
--
\|/ ____ \|/
@~/ ,. \~@ "When you are going to die,
/_( \__/ )_\ a wombat is better than no company at all."
\____/ [waste of money, brains and time - wombat(A2DA482A)]
I am trying to experiment with grammars (they have many dark points
for me), and I have make this simple grammar that does perfectly well
all but the "foldingStopMarker"
{ scopeName = 'source.vaughan';
firstLineMatch = '^Vaughan)';
foldingStartMarker = '^\s*Libro';
foldingStopMarker = '^#$';
patterns = (
{ name = 'keyword.other.english';
match = '^.+#';
},
{ name = 'keyword.other.spanish';
match = '[^#]*$';
},
);
}
I have tried many forms of closing the folding, yet the C {} pairs
but it never works for closing in my grammar. Observe that the # is
not considered any other pattern, but it does not work as stop marker
in any way.
-- Thanks for your help
- Juan F.
Thanks, that worked a charm
I've modified it to /\\ref\{\s*\}+(\s.*)$/i in order to get a comment as well, although it gives me the whole paragraph. Is there any way to limit the number of following words to, say, 10?
Thanks,
baptiste
Something like
/\\ref\{\s*\}/
in the Pattern section of the preferences ought to be enough. The
double backslash gives a "real" backslash (it's usually used to
escape other characters, such as the "\s*" to denote any amount of
space between the braces above, or conversely, again as above, to
indicate a *literal* brace). Having the "\s*" inside the braces means
that if you accidentally leave blank space inside it'll still be
flagged.
Cheers,
Paul
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Hi,
Working on a big latex project, I find the TODO bundle very useful for custom notes. Now I would like to add a TODO item which scans the project for the regular expression /\ref{}/ , that is an empty reference, and list them together with a few words of the paragraph they belong to. I just don't understand regular expressions well enough to do that!
best regards,
baptiste
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Hi!
I wrote this little Applescript to use the "mateup"-shellscript w/out
opening the terminal each time.
Save the script as an application bundle and just call it from QS or
whatever you're using for the most easiest way to open it.
It will show you what it updated as soon as it is finished and can
then be "entered away"
do shell script "mateup 2>&1" user name "your_user_name" password
"password_of_your_user" with administrator privileges
set the_output to the result
get paragraphs of result
choose from list (result) with empty selection allowed
Niels
Hi,
I'm using tm_dialog r7586.
I tried to invoke a warning alert but the following error message
appeared:
tm_dialog: [NOTE: this exception originated in the server.]
Invalid parameter not satisfying: aString != nil
Can someone verify this or is it my fault ( "$DIALOG" -e -p
'{message="HALLO";}' )?
Thanks,
Hans
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