Based on suggestions from Allan I've revised the Fetch Categories command to
work with a multi-select menu (using osascript). You can now just choose
multiple categories at once and it will insert the text "Category:
your_category" for each selected item. Once again, this is only tested with
Wordpress on my end, so I'm curious to hear if it works with other blogging
software.
I have also made the command available for download at:
http://blog.circlesixdesign.com/downloads/FetchCategories2.zip
I'm having a lot of fun writing commands and snippets, but I'm no
programmer. If anyone sees fit to clean up the code, feel free, and I'd
love a copy to learn from if you do.
Brett
Rather than try to share my very specialized autotag bundle, which requires
Wordpress with the Ultimate Tag Warrior plugin and my Autotag mod, I thought
I'd share the process and see if I get any feedback. I am not sure if this
has been done before, or if it's just too much trouble for most people to go
through, but it was a fun exercise.
Here's my blog post on the project:
http://blog.circlesixdesign.com/2006/10/01/hacking-xmlrpc-wordpress-and-text
mate/
I'm open to any feedback, criticism or suggestions.
Thanks,
Brett
All,
Is there a good way to determine a reverse mapping from a keyboard
shortcut to its purpose? Often I'd like to know if a given shortcut
is already used, but I don't know how to search for it easily.
I know about the "Show Keyboard Shortcuts" feature (invoked via
control-option-command-K). It shows the shortcuts for all bundles,
but the keystrokes are written with the fancy Apple glyphs instead of
easily searched words like "control-option-command". Is there a
simple way to enter these glyphs from the keyboard to make this
search easier? I've sometimes resorted to scanning the list for a
glyph of interest, then copying it to the clipboard and pasting it
into the find box, but I'd like a more direct way.
Also, I don't know how to generate a list of keyboard shortcuts for
built-in features not found in bundles - is there a way?
Thanks,
Michael Henry
When I attempted to use HTML > Insert Entity, I got the following
text inserted before the entity:
2006-10-01 17:58:18.374 CocoaDialog[3175] GrowlCode: App identifier
or version don't match. Doing nothing.
Obviously, this is GrowlCode's fault, but any InputManager could drop
things on STDERR and mess commands up. I've tried adding "2> /dev/
null" at strategic points in the Insert Entity command, but it
doesn't seem to be working (I don't really talk bash, as I've used
zsh for years, so it's possible I'm going about ignoring STDERR in
the wrong way — shouldn't be a difference, though)
I've uninstalled GrowlCode for now, but does anybody know of a way of
keeping irrelevant error messages from being inserted? I nearly ended
up with a very confusing-looking eBay auction :)
Thanks
--
John Yeates
All,
Is there a keyboard shortcut for activating the Replace-related
buttons in TextMate's Find dialog box? I know about the relatively
new shortcuts for activating the checkboxes (Regular expression =
command-option-r, Ignore case = command-option-i, Wrap around =
command-option-w), but is there a shortcut for the buttons
(especially Replace All, but also Replace, Replace & Find, and
Previous)?
Thanks,
Michael Henry
I was wondering what is the best way to import Excel tables into Latex
file using Textmate? I tried copy/pasting a table into Textmate, then
using "Convert Selection to Table". However, this does not result in a
correctly formatted table due to the way the Excel table is pasted.
Anyone have experience/solution for this? Thanks
Will
Hi,
I'm new to the Subversion bundle, and am having some trouble getting
the status and log functions to work:
I select Subversion|Status, and a nice HTML window comes up showing
the status of the pending files. When I click commit or revert,
nothing happens. The entire HTML page's buttons do nothing. The
links to the files work, but not commit/revert, etc.
Also, the subversion Log cmd gives me the following error:
NoMethodError
reason: undefined method `[]' for
nil:NilClass
trace:
/usr/local/lib/ruby/1.8/rexml/source.rb:131:in
`initialize'
/usr/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:
126:in `stream='
/usr/local/lib/ruby/1.8/rexml/parsers/baseparser.rb:
100:in `initialize'
/usr/local/lib/ruby/1.8/rexml/parsers/treeparser.rb:
8:in `initialize'
/usr/local/lib/ruby/1.8/rexml/document.rb:
178:in `build'
/usr/local/lib/ruby/1.8/rexml/document.rb:45:in
`initialize'
/Applications/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/format_log_xml.rb:164
Any ideas?
Thanks,
Dave.
Hi,
I am pretty close to set up my development environment exactly the way I
want it.
The TXP Bundle runs much nicer now, with no warnings in Console output.
In the meanwhile, while using it and testing along, I came across a
problem that has puzzled my for hours.
I hope, that someone might be able to help.
I have a project Folder that uses a local document root Folder in my
Site folder for Testing, no problems with that.
However in order to use the completion command, for completions, that I
want for a special Tag <txp:article />, I have a Preference Item, that
contains the following command:
{ completionCommand = 'find "$TM_DIRECTORY" \
-name "$TM_CURRENT_WORD*article.txfml" -maxdepth 2 \
-exec basename "{}" \;|sort'; }
as described in Section 4.2 of the manual, in order to provide the
filenames of a special folder, that contains the needed filenames that I
need to provide as attribute values for the above mentioned tag.
My first problem here is, that I would need maxdepth 4 and even worser,
maxdepth 4 and 5.
I tried to alter the command, setting maxdepth to 4 and 5, since I need
to maintain the directory structure of my site folders.
This does not seem to work.
The second problem is, that I also have some other completions for Tag
names and attribute names, which are sitting normally in arrays, in some
other pref Items.
I set up another pref Item,
with :
{ disableDefaultCompletion = '1'; }
and scope :
text.html.txp entity.name.tag.single.article.txp
which is the same scope that I have for the above command, in order to
suppress the default completions on article form attribute values,
but the only thing that the escape key cycles through, are the near by
found values in the open document.
What am I doing wrong here ?
(Note also, that the file endings I have, have the form eg.:
.article.txfml, comment.txfml, file.txfml, etc, which are needed,
to fine grade those completions based on this article form completion
command.
Any help appreciated.
regards, marios
Hi again, to all,
I am writing this to get a couple of evaluation thoughts together, on
the Language Grammar, that I wrote for the TXP Bundle.
It is not solely related to that Bundle only, so you may find this
useful, if you attempt a similar approach for other Languages.
I have spent the last two days inspecting this Grammar in detail and
iterating over the current approach and trying to extract the major
mistakes, so I can refactor the Grammar and make it more accessible to
TM's Automation Features.
In a nutshell, the Grammar is largely inspired and adapted from the
experimental XHTML Bundle, following a modular approach,by referencing
repository Items with include rules.
The difference is, that in the experimental XHTML Bundle, each
repository Item is referenced a in recursive manner, and resolves in one
exclusive repository Item that stands for the html tag for html tags as
exclusive root node.
Textpattern Tags on the other hand do not have this requirement, so each
repository Item gets referenced within an include rule,except for their
attributes and values, which do not have an include rule at the root.
In order to make those non root included items easily accessible a
naming convention was used, so that after reformating the code in the
Bundle Editor appears exactly below the Repository Item, that references
them, where there is one for each Tag.
Example:
author-tag =
{
};
author-tagatts = {
};
The major difficulty is in the distinction of single, container, plugin
and conditional tags, plus to get scopes also for the attribute values.
which currently leads to matching conflicts, therefore, the current
version of the Grammar doesn't have full distinction for attribute
values, mainly on the single plugin tags.
One verification, that I have done about the shortcoming of this
Grammar, is that it is wrong not to have a simple include for quoted
single and double strings, which is now the case.
For instance if I used cntrl shift < and then typed txp:article space
and then get the automatic closing quote insertion, the cursor will be
in between "".
At this point verifying Scope with cntrl shift P, I should have at least
a scope of string.quoted.double or any other dist. available.
If this is not the case,all the additional automation possibilities are
lost since I can not have a snippet insertion conditional.
On the other hand, while including a rule for such a scope left me with
the problem of specificity of such rules, making it again difficult to
have a distinct scope of attribute.value, that would match only a
string, that is in between the quotes, but has another scope then
string.quoted.double
To be continued,
regards, marios
Hello. Can I "save a file with line breaks" i.e. have TextMate save
a text file with hard wrap?
(I did a little googling on this topic w/r/t TextMate and found the
answers fairly confusing.)
Thanks!
--andreas