Hi everyone,
Just wondering if there is a way to modify the hyperlink helper bundle when working in markdown (ok, I'm pretty sure there is a way, I just don't have the sweet skills to accomplish this on my own).
Currently, when i paste a link using ctrl-shift-L I get:
[text](http://linkaddress.yay)
I would prefer to get
[text][1]
and then have the link entered at the bottom of the document.
Any thoughts on how this could be pulled off?
thank you.
On 6. Jun 2007, at 15:53, jeff newman wrote:
[...] Currently, when i paste a link using ctrl-shift-L I get:
[text](http://linkaddress.yay)
I would prefer to get
[text][1]
and then have the link entered at the bottom of the document.
Any thoughts on how this could be pulled off?
That can’t be done -- though it could insert the two lines (by editing the template), just the second one would not go to the bottom.
I’ve considered doing a “toggle” between inline and reference style links, this might be better, also because the next time you do a link, it should use [2], but it needs to look at your reference list to figure out that.
Thanks Allan,
It's strictly a visual preference that makes me prefer the footnotes. I'll just keep using my current work around which involves saving my file as HTML and then dragging it from finder into the markdown document window. This reformats everything the way I like it. I was just hoping to streamline the process.
Appreciated your response, though. Thanks.
j.
On 6/6/07, Allan Odgaard throw-away-1@macromates.com wrote:
On 6. Jun 2007, at 15:53, jeff newman wrote:
[...] Currently, when i paste a link using ctrl-shift-L I get:
[text](http://linkaddress.yay)
I would prefer to get
[text][1]
and then have the link entered at the bottom of the document.
Any thoughts on how this could be pulled off?
That can't be done -- though it could insert the two lines (by editing the template), just the second one would not go to the bottom.
I've considered doing a "toggle" between inline and reference style links, this might be better, also because the next time you do a link, it should use [2], but it needs to look at your reference list to figure out that.
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
On 6/6/07, jeff newman bangersandmash@gmail.com wrote:
Hi everyone,
Just wondering if there is a way to modify the hyperlink helper bundle when working in markdown (ok, I'm pretty sure there is a way, I just don't have the sweet skills to accomplish this on my own).
Currently, when i paste a link using ctrl-shift-L I get:
[text](http://linkaddress.yay)
I would prefer to get
[text][1]
and then have the link entered at the bottom of the document.
Any thoughts on how this could be pulled off?
I made macros to do this for normal links, Google and Wikipedia links, as well as markdown-extra footnotes, incrementing the number if there is other ref links. These are based on a command I made in Ruby, the macro is only needed to insert the link at the cursor position and the reference at the bottom of the doc.
I'm actually fighting to get my connection back, as an ISP "stole" it a week ago (!), so I'm not online often for now.
Can I post the macros alone or should I post the commands and explain how to make the macros?
-- FredB