OK -- I'm diving into the GTD2 bundle's way of doing GTD. Cool enough.
The URLs for the GTD Active View List seem broken. At least, clicking 'em does not bring up the file/line as I would expect.
The URLs produced are of the form:
txmt://open/?url=file://personal&line=7
Clearly, the file path is incorrect.
b.bum
Wow - I didn't know it could do that! I'll look at the code and see if I can fix it.
Mike
On 10/12/06, Bill Bumgarner bbum@mac.com wrote:
OK -- I'm diving into the GTD2 bundle's way of doing GTD. Cool enough.
The URLs for the GTD Active View List seem broken. At least, clicking 'em does not bring up the file/line as I would expect.
The URLs produced are of the form:
txmt://open/?url=file://personal&line=7
Clearly, the file path is incorrect.
b.bum
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Well... I fixed it. Sort of. It works for me, but assumes that the files end with a ".gtd" suffix.
I changed the TextMate.file_link() function to the following:
def TextMate.file_link (file, line = 0) return "txmt://open/?url=file://" + $myPath + "/" + file.gsub(/[^a-zA-Z0-9.-/]/) { |m| sprintf("%%%02X", m[0]) } + ".gtd&line=" + line.to_s end
Bill -
That works great! Thanks!
Mike
On Oct 12, 2006, at 8:51 AM, Bill Bumgarner wrote:
def TextMate.file_link (file, line = 0) return "txmt://open/?url=file://" + $myPath + "/" + file.gsub(/[^a-zA-Z0-9.-/]/) { |m| sprintf("%%%02X", m[0]) } + ".gtd&line=" + line.to_s end