"ziplinks" and Watched Folders and Pasted Text

I’m having trouble using “ziplinks” in the content I would like to import into Tinderbox that links to content already in Tinbertbox. Unless I’m reading aTbRef wrong, when text containing “ziplinks” is pasted, imported, and stamped, they should be converted to text links.

This does not appear to work for me in any of these use cases from a newly created Tinderbox file. I have confirmed that $Ziplinks is enabled.

If there isn’t a way to import text with “ziplinks” markup to create text links, is there a way to generate text links programatically in action code? If there is, I could not find any “operators” [sic] that perform such actions.

How are you setting up the “import”.

If I have a file named Here.md with this content:

and I drag Here.md into a Tinderbox document with two notes: The Kitchen and The Basement, then this is the result:

Pasting the text rather than dragging the .md file into Tinderbox is an iffy proposition – it generally does not work to set up the links, for me. I don’t know why.

Try the operators listed here: Linking operators. When looking at those operators, note in the table at the top of the article the link to a listing like the one given where I try and cross connect different ops in the same function area. The Link related listing covers making links, removing links.

Tinderbox links are always basic links (note to note) or text links (text to not, or text to text) and that can’t be altered. There is no such form of link as a ‘ziplink’ though some use it to refer to links generated via the ‘zip’ method of link creation (as you correctly cite above).

Also bear in mind that Tinderbox pre-dates the recent crop of Markdown-based tools - not all noting tools are built around Markdown, even though it is popular today. It was confused Markdown users that were the genesis of ths feature as it uses Markdown-like mark-up to generate links. Many Tinderbox users don’t need/use this.

I may be wrong but I think scanning of pasted text occurs only for dragged in emails: see. Even then the trigger for parsing for [[ ]] markup is drag-drop, not pasted text.

One way to trigger detection of [[ ]] zip-method markup is to place the text insertion cursor after the last ] and then press the Return key followed by the Backspace key (aka Mac Delete). This is explicitly a workaround and obviously isn’t suggested for use at scale.

Thanks, @PaulWalters. This method worked and will likely satisfy my immediate use case. Thank you very much!

@mwra, I have thoroughly reviewed the link-related functions in aTbRef. I could not find an operator that allows one to create a text link to another note programmatically. Do you know of a method to create in-text links programmatically?

Correct. Links can be made programmatically but:

  • not within $Text.
  • you can create only Basic (note to note) links not Text links.

I think you need to raise a future request to make Tinderbox scan (on demand?) the text ($Text) of selected note(s) and evaluating any Zip-method mark-up. That said, I suspect there may be all sorts of weird edge cases, but as there is no built-in method via automation or UI, there is no harm in emailing in a request.

Hmm, I wonder if there is some edge case use of eval() that might work (though I’m not sure how to go about testing that).

1 Like