Remarkbox
Log in
Topic: https://brettterpstra.com/2014/04/13/searchlink-2-dot-1-1-blogger-friendlier/
ttscoff 12y, 234d ago

I work very similarly these days, actually. I build the reference block with links I _know_ I'm going to need ahead of time, just so I have them as reference. Whenever I type a product name or anything that needs to be linked on the fly, I usually do it on the spot with an inline SearchLink result. The To References service works with the combination and respects the existing reference links, so I just consolidate when I'm done.

If I'm doing long lists of links, I generally use a TextExpander snippet to insert the [text](!xxx) syntax for each and then run SearchLink on the whole thing, but for links as I write, the inline format is ideal.

root

Comments

We'll email a 6-digit code to verify your comment and notify you of replies.

hide preview ▲show preview ▼
Matt Connors 12y, 234d ago

On the reference list topic, how are the reference link numbers generated/ selected? Is there a way to force Searchlink or your services to number reference links beginning at 1 in each new document? I seem to end up with wacky reference numbers like: 9085-001

We'll email a 6-digit code to verify your comment and notify you of replies.

hide preview ▲show preview ▼
ttscoff 12y, 234d ago

The 9085 is randomly generated to avoid conflicts with any other numbering systems. Just set prefix_random to false in ~/.searchlink and it will go away. Numbering only works when you run it on the whole document, too, as a Service has no way to know what else is there besides the text you have selected.

We'll email a 6-digit code to verify your comment and notify you of replies.

hide preview ▲show preview ▼
ttscoff 12y, 234d ago

Note that if you turn random prefixing off and then run SearchLink a second time on a new block of text, it will start the numbering back at 1 and you'll have conflicting references.

We'll email a 6-digit code to verify your comment and notify you of replies.

hide preview ▲show preview ▼
Matt Connors 12y, 234d ago

Understood. Thanks.

We'll email a 6-digit code to verify your comment and notify you of replies.

hide preview ▲show preview ▼