pacmax beta

Alfred Pac by jaekyeom on GitHub

typora

Alfred workflow for Typora.

From their README

Alfred Typora Workflow

Alfred workflow for Typora.

Typora workflow screenshot

Installation

Download and install Typora-Documents.alfredworkflow.

Usage

Querying documents

  • ty {query}: Query Typora documents. It automatically searches the parent Git repositories or directories for markdown files.
  • ty* {query}: Query Typora documents and all types of files from the parent Git repositories or directories, regardless of LIST_ONLY_OPEN_DOCS.
  • User actions
    • ↩: Open/activate the selected document or file.
    • ⌥ + ↩: Close the selected document (if it's open).
    • ⌘ + ↩: Reveal file in Finder.

Searching contents of documents

  • tyi {query}: Search inside (i.e., the contents of) Typora documents. It automatically searches the parent Git repositories or directories for markdown files.
  • tyi* {query}: Search inside (i.e., the contents of) Typora documents and all types of files from the parent Git repositories or directories, regardless of SEARCH_ONLY_OPEN_DOCS_CONTENTS.
  • User actions
    • ↩: Open/activate the selected document or file.
    • ⌥ + ↩: Close the selected document (if it's open).
    • ⌘ + ↩: Reveal file in Finder.

Copying relative markdown links to any files/directories

  • (Universal) File Action Copy relative links for Typora: Copy markdown link(s) to the given file/directory path(s) relative to Typora's active document.
    • One simple use case is pressing ⌘ + ⌥ + \ in Finder and invoking this File Action.
    • It escapes paths and names according to the markdown syntax.
    • It is especially useful for copying links to files that Typora doesn't support the drag-and-drop link insertion from Finder, such as .docx, .tex, and .md files.

Configurations

  • LIST_ONLY_OPEN_DOCS: If set to 0 (default), ty queries open documents and markdown files from the parent Git repositories or directories. If set to 1, ty only queries open documents.
  • NUM_RECENT_DIRS: The number of recent directories to keep and list files from. Set this to 0 to disable it. 5 by default.
  • SEARCH_ONLY_OPEN_DOCS_CONTENTS: If set to 0 (default), tyi searches the contents of open documents and markdown files from the parent Git repositories or directories. If set to 1, tyi only returns open documents.

Credits

License

MIT

Latest release

  • 1.1.62 years ago, 78 KBDownload
    • Fix opening files with content searching.
15 earlier releases
  • 1.1.52 years ago, 78 KBDownload
    • Implement File Action Copy absolute links for Typora.
    • When opening a file, make its project directory as the root directory for Typora so that the files sidebar and tree explorer show the project directory instead of the direct parent directory.
  • 1.1.44 years ago, 107 KBDownload
    • Handle edge cases when copying markdown links.
    • Allow file extension filtering with tyi*.
  • 1.1.34 years ago, 106 KBDownload
    • Support exact matching using double quotes ("") for file contents search.
    • Prevent unexpected resetting of search result item selection.
    • More stable focusing/opening of documents.
  • 1.1.24 years ago, 106 KBDownload
    • Improve query handing for file contents search.
  • 1.1.14 years ago, 106 KBDownload
    • Minor fix.
  • 1.1.04 years ago, 106 KBDownload
    • Add a keyword ty* for querying all types of files from the parent directories.
    • Add keywords tyi and tyi* for searching inside (i.e., contents of) files.
    • Make documents matched by file extensions (e.g., .md) in ty and ty* queries.
    • Add File Action Copy relative links for Typora.
    • Some under-the-hood improvements.
  • 1.0.84 years ago, 97 KBDownload
    • Add support for universal actions.
    • Decrease the tolerance for documents cache from 1s to 0.25s.
  • 1.0.74 years ago, 75 KBDownload
    • Cache the document list for faster loading.
  • 1.0.64 years ago, 72 KBDownload
    • Display modified documents' icons with accents (red dots).
  • 1.0.54 years ago, 49 KBDownload
    • List markdown files from recent directories even when Typora is not running.
  • 1.0.44 years ago, 49 KBDownload
    • Keep a list of recently accessed directories and list markdown files from them (with new workflow variable NUM_RECENT_DIRS).
  • 1.0.34 years ago, 49 KBDownload
    • Fix querying markdown files from Git repositories.
    • Support revealing files in Finder with ⌘ + ↩.
    • Integrate OneUpdater.
  • 1.0.24 years ago, 47 KBDownload
    • Support querying markdown files from the same Git repositories or directories (when LIST_ONLY_OPEN_DOCS is 0).
  • 1.0.14 years ago, 27 KBDownload
    • Support closing the selected document with ⌥ + ↩.
  • 1.0.04 years ago, 26 KBDownload

    Initial release.