Templates

Template folders.

By popular demand, as of Hook 3.0, Hook enables you to Hook to New folders. Hook’s built-in folder contains some awesome template folders, as follows:

  • a Composition template folder with plain text files. That is for creative projects like writing documents, or creating presentations or screencasts. It has the major components of any project: an outline file, a planning file, a drafts file, a title file, and subfolders.
  • a Composition (OmniOutliner) template folder. That is for creative projects like writing documents, or creating presentations or screencasts. It has OmniOutliner versions of the above.
  • a Meetings (Text) template. That is for contact management. This turns Hook into an indispensable tool for contact management!
  • a folder with a single file. This is a starter template folder.
  • an empty folder. This is an even leaner starter template folder.

For more information see Built-in Templates.

The gist of Hook to New… > Folder

When, in the context of a particular Source you invoke Hook to New... and select a (template) folder, Hook does a bunch of magic for you: it replicates the folder, renames it and its contents, hooks the folder to the source-context, mesh hooks the files in the folder, and optionally tagging them. You can then get straight to work in the replicated folder!

The nitty gritty of Hook to New… > Folder

Hook does all the following in one operation:

  1. Hook replicates the folder and all of its contents (files and subfolders)
  2. Hook bidirectionally links (“hooks”) the replicated folder to the source (enabling you to navigate back and forth from the source to the entire folder).
  3. Hook renames the replicated folder in accordance with current Hook to New renaming rules. This means it applies the Notes preferences suffix and prefix, if there are any. The name of the new folder is based on the name of the template (which is part of what you see in the Hook to New... menu, excluding the app name).
  4. Hook renames each file in the replicated folder as follows: if the file is named foo-bar-baz, it gets renamed to <templateFilename> <Source><templateExtension>. That is, it appends the source name to the replicated file name. Example: if the <Source> is named foo.md , and
    • if the template file to replicate is outline-.txt, we say <templateFilename> is outline- and <templateExtension> is outline-.txt.
    • Then, the replicated file will be named: outline- foo-bar-baz.txt
  5. Hook bidirectionally links (“hooks”) every replicated non-folder file in the replicated folder to the replicated folder (but not to the source).
  6. Mesh-hook the replicated folder to its replicated files (this enables the user to quickly navigate between these files. That is the main point of Hook to New Folder).
  7. Apply a Hook Finder tag to the replicated folder and to each of the hooked replicated files. If an item is not hooked, it does not get a Hook tag.
  8. Open the replicated folder.

With the replicated folder open, you will be able to get straight to work! You can then navigate back and forth between items in the folder and the source.

Custom template folders

FAQ: Can I modify built-in templates?

If you want to edit a template, it’s best to move it into the ~/Documents/Hook/custom templates.

Some are folders, some are files.

FAQ: Can I reveal the the built-in templates?

Yes. In the Hook to New menu, you can use Use ⌘⏎ to reveal the template (whether it is a built-in or template)

FAQ: How does Hook ‘translate’ template folder/file names when Hook to New... is invoked?

Hook presents these files and folders in the Hook to New... window (and the Notes tab) using the following convention:

  • <App Name> - <Template File Name>.extension

for instance, there is a template file called rich text.pages. In the Hook to New... menu, it appears as:

  • Pages - rich text.pages

there are a couple of plain text templates

  • text.txt
  • Analytical Notes about.txt

How they appear in the Hook to New... depends on what software opens .txt files on your Mac. If it TextEdit, then you will see:

  • TextEdit: text.txt
  • TextEdit: Analytical Notes about.txt

if were BBEdit, you would see:

  • BBEdit: text.txt
  • BBEdit: Analytical Notes about.txt

UPDATED 2021-05-13 11:10 AM PT. 25% off FLASH sale: checkout coupon code: HOOK-FLASHSALE expires imminently. Our discourse forum is back online too.