Allan,
would it be possible to have
A) project / language / bundle dependent theme settings? Not all
themes work as beautifully with all languages (and I know you are
advising that themes only implement the most rudimentary things ;))
B) themes that only complement a basic theme (just like with css,
where you can override the standard behaviour with extra css
definitions inside the html). So, e.g. I want to use one of Thomas's
universal themes, but would like to add some snippets, some coloring
to my custom language grammars.
i.e. just some simple way to combine themes without going the plist-
editor route. Just add a preference of some sort of theme layering.
(similar to the system's language settings. chose the preferred
theme, but take items from a second or third theme if they have
scopes defined.)
C) and as a sidenote to B) an option for bundle developers to inject
certain stylings into a theme.
D) Maybe the ability to add emty lines before or after a scope? (I
know, I am getting way beyond simple here, and no rich text editing
is necessary). I am just thinking of certain block level elements
that would be nice to separate not only in col,or/background, but
also distance.
Dan
Is it me or this used to work :
I believe that I used to be able to use copy (with command-C) several
times in order to make a stack, then record a macro that used Paste
Previous (Command Shift V) in order to repeat a pattern using the
stack of copied items.
Well, ...this no longer works: the stack is not used when the macro
is played over and over.
I am wondering if it is possible to prevent TextMate from opening
documents from the previous session when the program is started. It
seems to do this by default, with no obvious setting to change to
prevent this.
Thanks for any hints,
--
Christopher Fonnesbeck
+ Atlanta, GA
+ fonnesbeck at mac.com
+ Contact me on AOL IM using email address
Hi everyone,
I find the ability to augment the standard set of word characters for
completion etc. in the TM prefs handy, but it would be even better if
this could be done specifically for certain languages/scopes. For
example, R commonly uses periods in variable/function names, so I want
them to be treated as one name, but when I switch to Rails I don't
want TM to complete a variable with a method name attached. Is there a
mechanism for this kind of specificity?
Thanks,
Jon
I'm not sure if the description describes this problem properly, I'm not
quite sure what's going on. This is not a priority issue for me, just
thought I'd bring it up...
I created a new text document.
I typed 'man sed'
I hit control r.
And the output was something like this:
man sedSED(1) BSD General Commands
Manual SED(1)
NNAAMMEE
sseedd -- stream editor
SSYYNNOOPPSSIISS
sseedd [--EEaann] _c_o_m_m_a_n_d [_f_i_l_e _._._.]
sseedd [--EEaann] [--ee _c_o_m_m_a_n_d] [--ff
_c_o_m_m_a_n_d___f_i_l_e] [--ii
_e_x_t_e_n_s_i_o_n] [_f_i_l_e _._._.]
DDEESSCCRRIIPPTTIIOONN
The sseedd utility reads the specified files, or the standard
input if no
files are specified, modifying the input as specified by a list of com-
mands. The input is then written to the standard output.
[...]
I'm not sure if the characters came across in this email the same as
they looked in TM. I'm guessing the control sequences that make bold
text in man pages are coming across as gibberish.
If I do `man sed | mate` in the terminal the outcome is the same.
Any ideas how to deal with this?
Q
I was wondering if there was a project scope that I could apply to
the Show TODO List command. I'd like to be able to only see the
FIXME, CHANGED and TODO tags from an open project.
Thanks,
Koray
The latest version of my bundle was created in one of the recent
higher-level builds, and I'm getting reports from users that when
opening the bundle in an older version of TextMate (948) the bundle
shows up completely empty.
This sounds like the result of the recent back-end changes. But I
know that many of the bundles have been updated to include groups.
Assuming this is not all just some crazy bug... I guess the real
question is:
Is it necessary for me to say that a particular version of a bundle
*requires* a particular version of TextMate?
If so, which build of TextMate is required to run which bundle versions?
~oliver
Hi all-
I've been using BSAG's Journal bundle (itself a markdown extension)
for a little while now, to keep a sort of snippet log, and I've put
together a quick command to search entries by keywords (I hacked up
the "Find in Document" command of the TM bundle). Keywords are marked
by brackets: [key1,key2,etc]. The command just finds given text and
shows the first line or so of the actual snippet entry, to give it
some context. It's very simple, but I've found it useful to quickly
find entries by keyword, so I thought I'd share it.
The journal bundle is here: http://www.rousette.org.uk/blog/archives/
2006/02/17/journal-textmate-plugin/
And my command can be downloaded here: http://textbench.com/tm/Find%
20in%20journal.tmCommand
Cheers-
-Alan
When invoking "Edit in TM" in some app (Safari, TextEdit, Yojimbo so
far), those apps stall and go play some beach ball with full CPU.
They must be force quitted.
But it works in TM Bundle Editor and Mail.app
I restarted, repaired permissions, removed all other Input Managers.
No go.
OS X 10.4.6
TM 1.5.1 (1070)
Am I the only one?
--
FredB
I could have sworn that there was folding in markdown before. Of
course there probably wasn't but now I need it. Any chance on folding
for markdown and the blogging bundles?
Robert
Hi,
I'm in a .rb file, which is a actually a rails file. However, I'm trying to
do 'mcc': migrate create column and it's not working in the .rb. If i try
ruby specific commands, I am successful. Can you manually assign bundles to
file extensions? It seems odd that the ruby bundle isn't assigned to the
.rb type.
Thanks
Sam
I've kept a brief user's log since switching to TextMate. It contains
bugs, suggestions, and hacks. Allen suggested I maintain a wiki page:
<http://macromates.com/wiki/Profiles/QuinnComendant>
(Allen: this is mostly for you ;-)
Q
Hi,
When I use the 'Post to Blog' function of the blogging bundle, the
Type is changed from 'Blog post (Markdown)' to 'Blog post (HTML)'.
That upsets the 'firstLineMatch' of the Blog (Markdown) syntax.
Gerd
Well, I just lost over an hour of work and I'd like to know what happened.
I was editing a long entry in a textarea field using the Edit in
TextMate thing. The connection to the server was lost, so I did a Save
As to make a local copy on my Desktop and continued working. The icon
for the new file appeared on my Desktop.
After a while, TM started beeping at me whenever I saved. Fearing the
something had gone wrong, I opened the file in TextEdit (it was still
open in TM). Everything was there, so I quit TextEdit and went back to
TM. Still getting a beep on every save, I decided to quit and relaunch
TM. As soon as I quit TM, the icon for the file disappeared from the
Desktop. When I relaunched TM, the file didn't even appear in the Open
Recent submenu.
Any ideas? I'm running Version 1.5.1 (1070).
--
Dr. Drang
hi there,
It is very handy to be able to have a line like
11.5/2.54
hit evaluate line and get
11.5/2.54 = 292.1
Currently if that line is reevaluated, it returns
11.5/2.54 = 292.1(standard_in) 1: parse error
=
My suggestion for the default behavior bundle, is that if the line
already contains an equals, eval the text in front and replace the
result.
That would be useful where one is playing with values in a formula
tim
Hello all,
I've been having some ideas about TM's project drawer/etc which came
up recently on the list. The first thing I want to say is don't
completely ditch the drawer - it's useful _sometimes_ but it doesn't
work for me most of the time. What I would like to see is something
like Mail.app's mailbox/folder pane which is embedded into the
application window. What I find really annoying about TM's "Go To
Symbol" and the symbol list in the status bar: it requires too many
clicks and it's not efficient. Let me demonstrate what I mean. Say
you're working on a .m file and you would like to change some method
in an external class which you're using in your current .m file. So
if you're going to use the status-bar symbol selection you would have
to click on the other file, click the symbol list and then select.
The alternative way would be to click on the other file and select
the symbol in the "Go To Symbol" panel. So you would need to perform
3 or 2 clicks respectively. And that is every time you would like to
quickly find a symbol in another file. Now imagine that you could
expand each file in the project pane and that it lists all the
symbols. You would of course need to click the triangle/arrow to
expand it but only once. After you've done it you can jump straight
to any symbol in the files you've expanded with _one_ click one.
Eclipse does this in a similar fashion - http://www.steema.com/
img_products/screenshots/tchjava/eclipse_teechartjava.png take a look
on the left pane how you can expand files.
Kind regards,
Milen Dzhumerov
Email: gamehack(a)1nsp1r3d.co.uk
Web: http://www.1nsp1r3d.co.uk/
I was just going through the blog and found this article on 'Code Sense'
http://macromates.com/blog/archives/2005/06/09/code-sense/
> …I’m currently working on a plugin API for plugins to show an
> unobtrusive completion menu below the text typed…
This just so happens to be the anniversary of that article and i was
wondering what's up. I saw the nib for this in textmate
'CompletionPopup.nib'
So... How do i use this thing? Or has it been abandoned for more
important things and will be finished later?
thomas Aylott—subtleGradient
/usr/local/bin/stakeout /usr/local/script/tmctags `find
$TM_PROJECT_DIRECTORY -name '*.as' | xargs echo` &
This command works fine in the terminal, but when I set it to a
command (with HTML output so as not to freeze the player) it never
terminates.
Any suggestions?
- Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> >
> > On 5/6/2006, at 12:05, marios wrote:
> >
>
>> >> [...]
>> >> 1)How do I insert a snippet inside a snippet ?
>>
> >
> > Embedded snippets are presently not supported. They can be inserted
> > using key equivalents or the ?Select Bundle Item?? functionality of
> > latest cutting edge builds, but the tab triggers will not work inside
> > a snippet, nor will an inserted snippet, inside a snippet context,
> > merge the two ?tab chains.?
>
I finally managed to find a workaround,I understood about the key
equivalents.Currently I have an extra bundle , that consists of a couple
of macros and nested macros and a couple of snippets.
It only works, when I place the zero variable right after the last
variable(which in this case is also the first one) of the the root snippet.
Currently in the final Grammartech Bundle, I can generate the code
(thousands of lines) for The Texpattern Language Grammar just with three
different scoped key bindings,(Shift tab, tab, and shift enter)that
represent the tab stops to insert the values for the tags, and it will
loop back to the beginning of the routine for each tag. (fantastic).
And all that in only half an hour.(With either the txp wiki page or the
tag manual print next to me to insert the names , values and attribute
names at the appropriate placeholder tab stops.
Actually it took me more time, to figure that one out, than the Grammar
itself.
(I'll post it here, so you can take a look at it if you like)
I'm aware, that there a much better ways to do this, like a command
that uses a perl script for example, but I'm an absolute novice, when it
comes to that.
> >
>
>> >> 2)Key bindings
>> >>
>> >> After realizing that certain key bindings are lost after the previous
>> >> update, I am not able to use certain custom key bindings,
>> >> I'm not able to recall right now, which ones they are.
>> >>
>> >> How can I reset the key bindings for TM system wide ?
>>
[snip]...............[snip]
My apologies, it was actually a typo in the scope name of the Language item.
> > As for resetting them, this depends on which key bindings you have
> > set, there are basically 3 types [1]
> >
>
>> >> 3)FoldingStopmarkers and FoldingStartmarkers not working.
>> >> [...]
>>
> >
> > For help with this, please:
> >
> > 1) drag the language grammar from the bundle editor to Finder, then
> > to Mail (should produce a tmLanguage file)
> >
> > 2) send a snippet of code which is ?not working?
> >
>
>> >> 4)Bookmarks: How can I make them consistent after closing and
>> >> reopening
>> >> a file?(on my Install id didn't work)
>>
> >
> > This only works on Tiger (and is default) -- are you using Tiger?
>
I am using Tiger, 10.4.6
> >
> >
> > [1] http://macromates.com/textmate/manual/key_bindings#key_bindings
> >
> >
>
Best regards, marios
I don't see a Setup command in the Blogging module...
The instructions say "You should first use the “Setup Blogs” command
to identify any weblogs you wish to post to. This command will load a
file for editing. Within this file, you simply specify a blog name
and the XMLRPC URL for it. For example:"
Rather difficult without the command... ;-)
b.bum
Hi,
The Build in Flash command was broken by a recent revision of
Textmate, so I've revamped it.
Now it uses a beautiful interactive Web output window.
Allan, can I be given the privilege to become a committer ?
Hello list,
I've been trying out TM for several weeks now and I wanted to
document my experiences so they are lost (maybe other people feel the
same).
Things which I miss:
- CodeSense: Basically this is my reason for not switching to
TextMate. There is an enormous amount of APIs on the Mac and I don't
think developers should be expected to know each method and its
arguments in their heads. Copying/Pasting from the Xcode
documentation browser doesn't cut it - the time spent on this
actually outweighs the benefits of using TM (for me personally). The
day a CodeSense/IntelliSense/WhateverSense is implemented in TextMate
you will have another customer. For now I'm putting my TM switch on
hold.
-.m/.h open in the same window: This is more of a convenience thing.
It's just annoying me to have headers/implementation files open in
different tabs/windows because I just want to have a quick look in
the header and switching to another tab wastes time/distracts. I'm
probably nitpicking here but that's how I feel about it.
Things which could be improved:
- Response time of clicking on a tab: I'm a performance geek. If
something is sluggish it is annoying me so much that the application
goes into the bin immediately. This is why Xcode is just killing me
each day but I have not other choice (anyone noticed the delays in
clicking a file in the list of files?). If you try switching to
another tab in TM it's not that bad - it's snappy but there is a
slight delay between the click of the mouse and the view of the new
tab. As I said it's not something really important it is just
annoying me - that is on a 2.0GHz Core Duo iMac with 2GB of RAM and
the 256VRAM - so shouldn't be because of a slow machine.
Things which would be nice to have:
-Split views: Horizontal/Vertical split views would be great.
Currently on my widescreen LCD there is a lot of (horizontal) space
wasted. The perfect solution would be that the split views would
share the tabs (i.e. not having a separate tab list for each split
view).
Things which I like:
- Anti-aliasing on/off: Just a big thanks! I cannot believe how many
people are coding using anti-aliased fonts - that's such a nightmare
if you stare at the screen for 8 hours straight (pixel fonts are the
way for me). Thank you very much for that nifty checkbox.
- Macros: _THE_ biggest time-saver.
Kind regards,
Milen Dzhumerov
Email: gamehack(a)1nsp1r3d.co.uk
Web: http://www.1nsp1r3d.co.uk/
I may be one of the last Panther/TM user but anyway...
As I told Allan on IRC, r1070 completely breaks 10.3 support and TM crashes
everytime I try to see what's in a bundle, either through menu or the gear
menu at the bottom. Am I the only one?
I reverted to r1060 and when it tried again to update itself, I clicked
Cancel and the window stayed up with both option greyed out. Only way to
remove it was to quit.
--
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto(a)keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005
Howdy,
I don't know if this happened before, but in the newest d/l (1070), I
just realized that horizontal scrolling works (even though there is
no horizontal scroll bar).
I was navigating a rather deep file directory in the drawer and just
scrolling up and down for no particular purpose -- somehow it gives
me peace of mind as I'm reading something in a tab -- I hit shift --
more peace of mind -- while using the scroll wheel and noticed from
the corner of my eye that the project drawer started to scroll left
and right!
So .. I was surprised ... hmm .. messing about with it some more, a
narrow project drawer doesn't cut the middle out of the names in
there, either.
Like I said, I don't know how long that's been happening, but that's
sweet! I figured other folks might be interested in realizing that, too.
Thanks, Allan.
-steve
I am really liking the Blogging Bundle in Textmate. It makes posting
an entry to my blog really handy when something comes to me that I
would like to post.
The one thing I am looking for is a way while I am in the Blogging
Markdown template to be able to get tags and such to create
automatically and something like a command completion for the headers
to save time on typing or if I just am not able to remember if it is
Keywords or keyword.
If it is already there how do I access it.
TIA
--
Ron Rosson
oneinsanedotnet(a)gmail.com
http://www.oneinsane.net
hi, thanks to the ever-so-cool "Get Bundle" bundle, i have the GTD
bundle installed.
I think this will be very nice.
Thought: when items are marked "d", the command strips the first 5
characters and prefixes the line-item with "done"
this loses what type of item was being handled. I wonder if simply
adding done in front might be better?
then the "done" list, can also preserve the types of things done.
So... given
EMAIL list about how great GTD is
I'd rather see
--> DONE: EMAIL list about how great GTD is
Instead of
--> DONE list about how great GTD is
Currently, this stuffs up the "Show..list" commands, as they detect
the item types even if they have DONE in front of them. The regexp
could either look for DONE and exclude those lines, or else require
that the item type is the first character of the line.
Other comments...
1. I wonder if Buy could have a default syntax like:
BUY ${1:new purchase} from: ${2:business} cost: \$${3:99}
2. Because email exists as an item type on its own, it seems like
"task" (should this
be called TODO?) item should not have email as the default?
TODO ${1:new email}
Not sure what would be better.
3. I wonder if the "Show list" parser could detect e-mail addresses
and wrap them in <a href=""></a> tags?
4. It would be nice, i think, if the "d" tab completion also post-
fixed the item with the current date
--> DONE: EMAIL list about how great GTD is (7/6/06:7pm)
Maybe done items could be parsed by done date and/or type of item and
project file?
If the items were just dumped into a table with type, file, and date
columns, there are nice little chunks of jscript that automagically
make such tables sortable.
tim
Hi,
I've had this happen a couple of times now. I have an AFP volume
mounted and after doing some editing, I closed all the files then
attempted to dismount the volume.
The Finder gives a message saying that it couldn't because there was a
file open. I used the 'lsof' command and it does look like TextMate
does still have something open:
john$ lsof | grep wwwsps
TextMate 735 john cwd VDIR 44,7 772 117658
/Volumes/wwwsps/schools/Surveys/athleticsreg
Is there any way to get TextMate to "let go" and let me dismount the
volume? Sure, I can quit TextMate, but that seems a little extreme..
Thanks,
jt
>
> On 5/6/2006, at 20:44, marios wrote:
>
>> Before I run into the risk of damaging my files, I couldn't really
>> figure out what to enter in the dialog box, when I open it from the
>> drawers info button on the tool bar.
>> I have a folder which I want to exclude from updating which is
>> below the
>> root of my project folder.
>
> The folder reference patterns are only to filter items from display.
>
> So by excluding a folder, it will disappear from the list. Sounds
> like you expect something else
Exactly, since I have a specific project that I work on from the
original folder, not projects.
So when I exclude a folder in this context, does it get excluded from
updating ?
(
>> What function does the "Save as absolute path" check box have in this
>> context ?
>
> The ‘save as absolute path’ is really a no-op when using folder
> references. If you drag individual items to the project drawer, these
> will be saved relative to the project file, but that can be changed
> with this checkbox.
Should I then use this option.The basic tree does not change, and I use
this Folder to mirror some stuff from my local drive to the Live Server
with Transmit. (Inside Sites Folder).
Thanks a lot again, and best regards, marios
>
Hi All,
I am using the latest build of TextMate 1070. If I make a project
based on a folder and then delete some files within a folder
(references only), when I reopen the project the 'deleted' files are
back. This seems like a bug to me, since surely the files should
remain absent from the project. Has anybody else encountered this
problem?
Anthony
Is there a way to set up a snippet so that some of the lines are
flush at the left margin and others are at the correct tab stops?
For instance, I like to have #ifdef at the left margin instead of
tabbed in, any way to set this up in a snippet?
When I convert a multi-markdown document to PDF, all of the
apostrophe's are removed. Does this happen to anyone else? Does
anyone know how to fix it?
Thanks,
Steve
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
For the first time since registering I've managed to spend a day
entirely in TextMate and all in all I really enjoyed it!
I'm writing here as there are a couple points I could use some help
with:
1. Static Gutter? Is there any way to turn this on? I had a look
round but couldn't find any pref's for it. I really prefer to be
able to see line numbers etc. at all times.
2. I'm sure when I first downloaded TextMate I could type Obj-C
messages [object message] and although TM automatically inserted the
closing bracket (]) if I typed it TM kindly overwrote the existing
one. Now I find it inserting a new pair of brackets ([ ]). I'm not
sure if this was me playing around with snippets or if the behaviour
has changed in a recent(ish) build.
If anyone can help me with these two things I'd be highly grateful.
Best,
- -J
- --
Joshua Lock
incandescant(a)googlemail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEhbeYPa/MMrj10iIRAlK3AJsE4rbWpy5V4Z24IXNyAk8ywyZI6QCeNtsY
/YYQFAbFqrjysL0lEUcCH0E=
=vaMR
-----END PGP SIGNATURE-----
[FIXED] The menu to disambiguate bundle items should now work
correctly with multi monitor setups.
Works fine here.
[NEW] Tab triggers are now rendered right-aligned in the menus and
with some visual ornaments that are supposed to make them
distinctive. It is no longer necessary to put the tab trigger in the
items title, to get it rendered -- in fact this is now deprecated. I
am aware that the items with tab triggers are shown in the normal
menu font size when using the gear menu from the status bar.
Love it! Any chance the tree view in the bundle editor could
similarly show shortcuts and tab triggers?
Gerd
hello :)
1) I would like to know if somebody tried to make a bundle for gnuplot
2) is it possible to make a bundle for gnuplot ?
3) Which are the difficulties ? Which is the best method to start to
make a bundle ?
Thanks
Greetings
Alain Matthes
I just discovered TextMate I am liking it a lot. I will mainly be
using it for LaTeX and I have it working nicely with TeXShop as my
previewer. With that said, I am writing a large textbook in which I
have created new definitions for \subsection and \subsubsection,
which are called \Subsection and \Subsubsection, respectively.
Unfortunately, the function pop-up menu does not show these as they
begin with a capital "s" rather than a lower-case "s". I have looked
in the symbol list for the LaTeX bundle and I see:
/* preferences */
{ showInSymbolList = 1;
symbolTransformation = '
s/(?<=\\|sub)sub/ /g; # replace all leading "sub" with
an em-space
s/^\\( *)section(?:\[[^]]*\])?\{(.+)\}/$1$2/; # then strip all
but em-space + name
';
}
I must confess that I don't know enough of what appears to be regular
expression syntax to make the bundle recognize my commands. Can
someone tell me what I need to change in the above definition to get
the behavior I desire?
Thank you,
-- Gary L. Gray
I noticed that when something is selected in TextMate and you right-
click *anywhere* in the document the pop-up menu contains items
referring to the selection (filer thru command, etc.). This strikes
me as odd because it's not how the rest of the OS behaves.
Everywhere else (that I know of) re-focuses the selection depending
on where you right-click. If you right-click in the existing
selection you are shown options for that selection, but if you right-
click outside the current selection the selection re-focuses and
moves to the word that was clicked on.
While this not really a big deal, it's caused me some confusion when
trying to correct spelling when some other bit of text is selected.
I've even gone so far as to unconsciously make sure to always select
the word I'm trying to spell-check.
I personally would prefer if the behavior was in-line with the rest
of the OS, but I could imagine there would be some cases when this is
not desirable.
Was this a design choice? What are the benefits of this?
—oliver
Is there a way (if not consider it a feature request) to dynamically
include a syntax in a syntax?
What I am getting at is here-docs and similar constructs that contain
another syntax. For example it would be cool if for example in perl I
could write:
print <<"text.xml.plist";
# some xml property list here
text.xml.plist
and it would just apply the text.xml.plist syntax to the here-doc.
I know I can hard-code it in a 'meta' syntax, but that gets
bothersome...
Gerd
Hi everyone. I just started using TextMate today and I've run into a
little problem. I've noticed that my Shell Variables (as set in the
Preferences) aren't loaded properly when I use templates. For
example, I'd kind of like to mimic Xcode's built-in templates. To do
this, I've modified the Java Class template to look more like:
//
// ${TM_NEW_FILE_BASENAME}.java
//
// Created by ${TM_USERNAME} on ${TM_DATE}.
// Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights
reserved.
//
...
and I've updated the script associated with that template to look
like this:
export TM_YEAR=`date +%Y`
export TM_DATE=`python -c 'import datetime
now = datetime.datetime.now()
print "%s/%s/%s" % (now.day, now.month, now.year)
'`
export TM_USERNAME=`niutil -readprop / /users/\$USER realname`
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< class-insert.java > "$TM_NEW_FILE"
All of this works fine, except ${TM_ORGANIZATION_NAME} isn't being
replaced correctly. It works fine for Code Snippets, but not in
Templates. If I add
env >> "$TM_NEW_FILE"
to the end of the script, TM_ORGANIZATION_NAME isn't listed. Is this
a bug or a known issue? I've searched Google, TextMate's bug list,
and the list archives, but I can't find any mention of the issue. I
would appreciate any help in resolving the problem... it's a minor
nuisance to an otherwise great application.
-Prachi
>===== Original Message From Prachi Gauriar <pgauriar(a)mac.com> =====
[...]
>BTW, TextMate is an amazing app. I've been telling my friends about
>it: "It's like Emacs, if it were designed today with a GUI in mind
>and without Emacs Lisp or the cruft of 20 years of development."
Except even TextMate can convert vi-addicts. :)
--
Sami Samhuri
sjs(a)uvic.ca
Seems that there still is some odd problem with syntaxes depending on
other syntaxes. I just got this:
2006-06-05 13:16:55.842 TextMate[5366] didn't find rule named
source.open-gl
2006-06-05 13:16:55.842 TextMate[5366] didn't find rule source.open-gl
Odd thing is to my knowledge I never edited anything that had
anything to do with open-gl...
Gerd
Hi all, I just started using TextMate (long time emacs user), and
thought I would post to let people know that I'm developing a bundle
for IDL (Interactive Data Language http://www.ittvis.com/idl/index.asp).
Current features :
Syntax Highlighting : Keywords, builtin routines, system
variables, system commands
Folding
Indenting
Recognizes a program's function names and parameters
IDL documentation search :
open IDL's builtin HTML help libraries
search IDL's builtin HTML help libraries
run DOC_LIBRARY to build help files
tab completion for common control forms
new program template
I've posted it at http://aster.colorado.edu/software/IDL.tmbundle.zip
and if I can get subversion access, I'll put it in the repository, or
somebody else can, but I'm not done with it yet... which brings me to
my next point...
I wonder if it is possible to keep a persistent process open in the
background and send commands to it. I'm not sure how IDLWAVE http://
www.idlwave.org does this for emacs, I'm afraid that emacs runs a
complete shell of its own... I suppose this could be done with a
separate program that just passes information back and forth, but
that seems inelegant (and more difficult than it needs to be). All I
need to do is start a process, pass strings to it as standard in, and
read standard out and error from it. I could see this kind of
groundwork being useful to far more than just IDL, it should work
with any interpreted language that has an interactive mode (ruby,
matlab, ...), and many debuggers for that matter (gdb at least).
If this turns out to be relatively easy to do, I would also like to
inquire about the status of a plugin API. The web page says more is
likely to be done here, has anything been done? Eventually I might
want to write a simple plugin that talks to the IDL process and
highlights associated lines in the editor window (and possibly add a
GUI for querying and displaying variables). Again, this seems like
something that a wide array of programming languages would benefit
from having a framework for (hint, hint :-) ).
Ethan
Allan,
Here is an updated version of the "AES Encrypt Document / Selection With
Password..." command. It uses secure-inputboxs and asks to verify the
entered password.
Decrypt version also needs secure-inputbox, but obviously not the
verification.
Q
---
res=$(CocoaDialog secure-inputbox --title "Encrypt Text With AES 128" --
informative-text "What password should be used?" --text "" --button1
"Continue" --button2 "Cancel")
[[ $(head -n1 <<<"$res") == "2" ]] && exit_discard
passwd=$(tail -n1 <<<"$res")
res=$(CocoaDialog secure-inputbox --title "Encrypt Text With AES 128" --
informative-text "Enter password again to verify." --text "" --button1
"Encrypt" --button2 "Cancel")
[[ $(head -n1 <<<"$res") == "2" ]] && exit_discard
passwd2=$(tail -n1 <<<"$res")
if [[ $passwd == $passwd2 ]]; then
openssl enc -e -aes128 -base64 -pass "pass:$passwd"
else
exit_show_tool_tip "Password mismatch! Please play again."
fi
Hello, to all,
I haven't been able to continue my threads due to some serious Issues in
TB mail client
In fact the only solution was to subscribe again.
That's why I am opening a new thread.
Sorry for that.
In the meanwhile I had the chance to scan the archives for valuable
information on this subject and I indeed found most of the missing
pieces of the puzzle.
I finally came to understand, the syntax used in those plist files.
I have started a second version of the grammar that is mostly derived
from the syntax model used in the experimental Html Bundle, except it
doesn't use a full tree, that resolves to an exclusive root node with
recursive
references.
Instead it requires an include value for each tag in the repository ,
while the custom attributes and values are only referenced from the
repository items (I'll see if I can group them later).
I have done it that way, since I came to realize, that any attempt to
follow the example in the experimental XHTML Grammar, would have been:
1)Unsuitable for the current meta language
2)Too complex for this purpose.
Yes I have been scanning those thousands of lines of code over and over
again and Tm makes that very convenient with all it's search
functionality, bookmarks and so on.
I like that modularity approach of the syntax and try to see, if I can
adapt it to my needs.
Before I proceed to finally construct the Language from the core module
that I have, I started asking myself, weather I have followed the right
strategy ,and if not, well. there is always enough time to adapt.
There are however a couple of questions that turned up, that I hope,
some of you might be able to answer.
1)How do I insert a snippet inside a snippet ?
I'd like to tab through a code block, that I have, at certain variable
insertion points, I have other snippets, that I call through tab
triggers,that again have variables that need to get inserted
into the first snippet, and after the last variable of the second
snippet the cursor shall return one newline after the last insertion
point of the last variable of the first snippet,or the zero variable.
How do I do that ?
(Command ?, macro?)
EDIT.: I've had a couple of inconsistencies with using snippets in snippets,
sometimes it didn't trigger if the Insertion point was a nested variable
with two placeholders itself, then backspacing would swallow the last
character of the
tabtrigger keyword of the second snippet.
Oh, well, it worked after a couple of keystrokes.
2)Key bindings
After realizing that certain key bindings are lost after the previous
update, I am not able to use certain custom key bindings,
I'm not able to recall right now, which ones they are.
How can I reset the key bindings for TM system wide ?
3)FoldingStopmarkers and FoldingStartmarkers not working.
I can't get those going, I use the following code (All most Identical
with the html bundle):
foldingStartMarker = '(?x)
(<txp:(?i:comment_permlink|file_download_link|if_article_author|if_article_category|if_article_list|if_article_section|if_author|if_category|if_comments|if_comments_allowed|if_comments_disallowed|if_comments_error|if_custom_field|if_different|if_excerpt|if_first_article|if_individual_article|if_last_article|if_plugin|if_search|if_section|if_status|link_to_home|link_to_next|link_to_prev|newer|older|permlink|php)\b.*?>
|(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|<!--(?!.*--\s*>)
|\{\{?(if|foreach|capture|literal|foreach|php|section|strip)
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
)';
foldingStopMarker = '(?x)
(</txp:(?i:comment_permlink|file_download_link|if_article_author|if_article_category|if_article_list|if_article_section|if_author|if_category|if_comments|if_comments_allowed|if_comments_disallowed|if_comments_error|if_custom_field|if_different|if_excerpt|if_first_article|if_individual_article|if_last_article|if_plugin|if_search|if_section|if_status|link_to_home|link_to_next|link_to_prev|newer|older|permlink|php)>
|(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|^(?!.*?<!--).*?--\s*>
|\{\{?/(if|foreach|capture|literal|foreach|php|section|strip)
|^[^{]*\}
)';
4)Bookmarks: How can I make them consistent after closing and reopening
a file?(on my Install id didn't work)
Again I apologize for not answering my previous topics and I thank
anyone who answers this post in advance.
best regards, marios
Before I run into the risk of damaging my files, I couldn't really
figure out what to enter in the dialog box, when I open it from the
drawers info button on the tool bar.
I have a folder which I want to exclude from updating which is below the
root of my project folder.
Do I have to enter the name of that folder in the name box , and then
alter the RE ?
According to the manual, if I alter the default pattern from:
!.*/(\.[^/]*|CVS|_darcs|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
To :
!.*/(\.[^/]*|CVS|_darcs|\{arch\}|blib|.*~\.nib|.*\.(MY_EXCLUDED_FOLDER|framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
Can I be sure, that the Folder will not be altered ?
(I know, I could test against, it, by doing "find in project, but I'd
like to know also, what the other dialog options mean, and what it does
behind the scenes, when I concurrently move files and Folders around,
and update in the meanwhile.)
What function does the "Save as absolute path" check box have in this
context ?
Sorry for bothering again,
best regards, and many thanks in advance, marios
I am using a TM Project because I need to set a few project-local
variables. Projects files, “.tmproj”s, are serialized to a single xml
file, and included is information about window settings (position,
size, drawer open?). For example, when you move the project window,
your VCS will mark it as changed. This is very annoying.
Xcode solves this problems my separating the “project” and the
project window settings, all contained inside a directory/
XcodeProject.xcodeproj/
project.pbxproj <----- The _real_ project file.
myusername.mode1 <---- other stuff.
myusername.pbxuser <---- more stuff.
-- Daniel
Hi,
I using the latest build, and I just noticed something. If I close a
file and don't want to make changes, I usually just hit CMD-W then
CMD-D for Don't Save. Now, when I hit CMD-D, instead of choosing the
button in the dialog sheet, a menu is popped up:
Push to default repository 1
Diff 2
What's New 3
etc. Looks like something for a version control, but I can't find the
key shortcut (hmm.. would be nice to be able to search for a
keystroke... there's a lot of commands in that bundle menu :)
Thanks. (I will enter a ticket if need be.
jt
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> textmate-request(a)lists.macromates.com wrote:
> [snip]...............[snip]
>
>
>
> Hi,
>
> Regarding my previous post, I'd like to mention, that I kind of solved
> one of my previous problems to escape from a nested snippet, relying
> solely mostly on snippets and macros,
> For the purpose of easy post maintenance, and since I'm a complete Idiot
> when it comes to scripts and UNIX I found a workaround on a bundle, that
> I called GrammarTech and sort of stepped out as a side project for the
> TXP Language Grammar.
>
> The only purpose of this bundle is to generate the Grammar within
> minutes and ease the maintenance of the Language.
>
> To finally return the caret to the \n position of the last variable of
> the first snippet, I have two macros.
>
> One that swaps the last include reference around(where the previous last
> include reference is a place-holder item, that never changes it's
> name),and one that returns the caret to it's initial position.
> Although it pretty much works the way I wanted, I ran in to a couple of
> Issues.
>
> To execute the macros that do the 2 previous jobs described above, I
> initially assigned them the + and - keys of the numeric keypad,
> while the scope of the Language item, (which is a conventional plist
> bundle language item by itself) of the Grammar-tech Bundle was set to
> grammartech.plist.
>
> Changing my mind afterwards and assigning them a scope of source.plit
> broke the key bindings (Changing them after to something else, also does
> not trigger the macros anymore).
> The macros are still working, but trigger only from the gear popup menu
> on the toolbar.
>
> I also found, that I could only reliably nest the one snippet in the
> other, when I place the Zero tab variable right after the last variable
> of the first snippet.
>
> I don't know if this is a bug, but I thought it would be better to
> mention it here.
>
>
> Sorry again for this long post, and many thanks in advance,
>
> regards, marios
>
>
>
I'm sure somebody here knows the answer to this, although it's not
specifically related to TextMate.
I'm adding a key equivalent to TextMate's Window -> Zoom menu item with
the following:
defaults write com.macromates.textmate NSUserKeyEquivalents -dict-add
'Zoom' '@~/';
The result? It works...but it zooms ALL open windows simultaneously. If
you select Window -> Zoom with the mouse (or click the "+" window
widget) only the TOP window zooms.
Huh!?
I know this is not a TextMate specific "problem" because the same
behavior exists with Terminal.
Q
As noted in the release notes for r1060, there is indeed a problem
with dual-headed setups. If the editor window is on the secondary
monitor, the menu is displayed on the primary monitor (in the correct
screen location, just on the wrong screen). On the plus side, if the
editor is on the main monitor the menu works properly... This is on a
MacBook running 10.4.6.
Console.log output:
2006-06-05 11:39:31.625 TextMate[3581] Quartz {1733, 123} (frame
{{1280, 0}, {1280, 768}}), QD origin {1280, 768}, QD top/left 645, 453
scott.