The \href{URL}{text} command of the hyperref package doesn't get
scoped correctly, I think. URL receives the following scope:
text.tex.latex
meta.group.braces.tex
meta.reference.label.latex
constant.other.reference.lable.latex
Shouldn't it rather receive:
text.tex.latex
meta.group.braces.tex
meta.function.link.url.latex
markup.underline.link.latex
Small thing, I know, but it affects syntax coloring and it means that
you cannot launch the URL with ⌅.
Best, Mark
I was just writing an e-mail, which is scoped as Markdown, and got an
error when trying to convert something to lower case using ⌃⇧U. I
discovered that ⌃⇧U is bound to "Update References" in the
Markdown2Book bundle. It probably needs to be changed to something else.
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
I'm curious about the reiationship between textmate projects and the
subversion bundle.
I've had occasion to commit changes in a Textmate project, then go to
the terminal in the working directory and svn info shows me at a
previous revision, but doing svn up just reports that I'm now at the
latest revision.
Is this an artifact of the way I set the project up?
I have to admit that I'm still a bit confused by JEG IIs description
of two types of text mate projects in the book. I never managed to
understand what he was saying about the difference.
I think now that it's not really that there are two types of projects,
but two types of relationship between items in the project and the
filesystem.
When I first set up my first existing rails project as a textmate
project, I picked File>New Project and then dragged the individual top
level items from the finder to the textmate project pane, so the top
level of the project has the standard rails folders: app, components,
config, db ...; and two files README and Rakefile.
I think this means that the directories are folder references and I'm
not sure what the difference, if any there is for the two top level
files. I just changed README in textmate and saved it and it
certainly seems to be directly changing the file in the rails project
directory. So just what is the difference? I think that the real
difference is between a folder reference and a group inside a textmate
project, Yes?
And I guess that I really want to restructure the project so that it
has one toplevel folder reference which is the rails project
directory.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
I tend to use snippets a lot in textmate because they help me
standardize my data (text files, reports, blogs, wiki pages, code,
etc). I wanted to know if there was anyway (or any planned features)
that would allow the use of a temporary snippet, so that someone can:
1. while working in a file goto a blank line
2. type in some snippet code
3. highlight the code
4. hit a key combo to copy the snippet into a temp register/key that
can then instantly be used in the document.
For example, say I'm writing a document that has is starting to use a
bunch of citations:
"Begin with the name of the author, moderator, or other responsible
person or organization, if available, followed by the date of
publication, the title of the site, the URL, and the date of access.
(ex: American Chemical Society. (2006). Chemistry.org. http://
www.chemistry.org/portal/a/c/s/1/home.html (24 Mar. 2006).)"
So on a blank line I type:
$1. ($2). $3. http://$4 ($5).
I then select the text, and copy it to a temp register[1], (perhaps
with a fixed tab trigger, or hot key) and now I can quickly call on
it to populate the rest of my document.
This would save me time without having to goto snippets, create a new
snippet, assign a name, key combo, code, etc, then use the snippet,
and after I'm done with the document, go back in and delete the snippet.
I find I love the use of the snippets, but sometimes a formating
issue is only needed once, not enough to warrant creating permanent
snippets.
[1]: If there were 3-4 registers, then that would be even better.
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
I'm really missing the ability to diff two files that I've selected in
the project drawer from the context menu, coming from an IntelliJ IDEA
background (now doing Ruby work).
Currently I have to do option-shift-apple-D, and then press 4 (??)
I see from an earlier post that you can't add things to the context
menu from a Bundle.
Is there anything into the works to add diff functionality into the
context menu for the project drawer? I can see at least two scenarios
that would be big time-savers:
Select modified file:
1) diff with saved version
Select two files:
2) diff between these files (regular and HTML) options, order same as
selection order
Hi,
I just uploaded the new version 0.902
Download:
http://email.eva.mpg.de/~bibiko/downloads/textmate/TMTools.tmplugin.zip
Help:
http://email.eva.mpg.de/~bibiko/downloads/textmate/tmtoolshelp.html
or
"$TMTOOLS" help me
Changes:
added: to get allEnvironmentVariables an option variables to output
only these values
added: close allAuxiliaryWindows (very useful for developing ;)
added: close allFloatingDocumentWindows
changed: do closeAllWindows to close allWindows
added: get openDocumentFiles (for all opened floating windows)
added: set/get frontMostDocument (one can edit more than one document
with one script)
added: to get openProjectFiles the output option format=mate;
changed: get openProjectFiles output option escape is renamed to
shellEscape
added: do openFileInNewWindow
added: do revealFileInFinder
added: do openFileWithFinder
added: show alertSheet
Regarding to show alertSheet: I tried to get rid of it within
TMDIALOG but I had some problems to get the return value out. Maybe
it can be done in TMDIALOG 2.0 to show an alert in a sheet attached
at the current window.
I attached two examples:
editAllFloatingWindows:
This will resize and arrange all floating windows, and inserts into
the first line the html escaped file name. Finally it will show an
alert sheet.
reopenAsProject:
This will put all floating documents into a new project (for me very
helpful ;); close all floating windows; and open the front most
document in the project. This also works if only one window is open.
Please note: these are ONLY examples for showing what can be done.
Regards,
--Hans
When I try and add a date to an action in the GTDAlt bundle, I get the
following error:
--
/usr/local/lib/ruby/1.8/date/format.rb:230:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filestrftime'
from /usr/local/lib/ruby/1.8/date/format.rb:201:in /bin/bash: -c:
line 1: unexpected EOF while looking for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filestrftime'
from /usr/local/lib/ruby/1.8/date.rb:1343:in
--
Any clues on how to sort this out?
This has happened several times today. I'm using the "cutting edge". I
believe it has happened consistently (at least twice) when I did the
following: if I enter a "(" in the middle of some text, e.g., before the "s"
here:
method_namestuff_after
so it becomes (after TM fills in the right parenthesis)
method_name()stuff_after
TM then goes into an infinite loop, taking all the CPU time and doesn't come
back, at least not before I kill it.
I'm using the Ruby Experimental bundle and MacBook Pro (i.e., Intel CPU), OS
X.4.
dean
--
Dean Wampler
http://www.objectmentor.comhttp://www.aspectprogramming.comhttp://aquarium.rubyforge.orghttp://www.contract4j.org
Hi,
can anybody tell me how to use the file selection dialog in a ruby script
with the --select-only-directories option?
i tried:
folder=Dialog.request_file(:'select‑only‑directories' => "")
next i tried:
folder=Dialog.request_folder()
after adding to file dialog.rb :
def request_folder(options = Hash.new,&block) # added by PV 13.10.2007
_options = default_hash(options)
_options["title"] = options[:title] || "Select Folder"
_options["informative-text"] = options[:prompt] || ""
_options["text"] = options[:default] || ""
_options["select‑only‑directories"] = ""
dialog("fileselect", _options,&block)
end
On page 140 of Textmate by James Edward Gray II it says:
"You may pass any other options supported by CocoaDialog"
thanks,
Peter
--
View this message in context: http://www.nabble.com/tm_dialog-fileselect---select-only-directories-tf4617…
Sent from the textmate users mailing list archive at Nabble.com.