Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1.17 KB

README.md

File metadata and controls

18 lines (12 loc) · 1.17 KB

ManToDictionary

This is a program to convert man pages to Apple Dictionary dictionaries. It allows to find manuals for shell commands and C functions using Dictionary app, Look Up context menu item, or Look up & data detectors trackpad gesture in Terminal, Safari, TextEdit and other applications.

Lookup from Terminal

Dictionary app

Usage

  1. Download Additional Tools for Xcode from https://developer.apple.com and put Dictionary Development Kit from it to /DevTools/Utilities/Dictionary Development Kit (path can be changed in Makefile).
  2. Create ~/Library/Dictionaries directory, if it doesn't exist.
  3. Specify all man page directories in manDirs array in main.swift
  4. Compile and run the program. It will build dictionaries and install them in ~/Library/Dictionaries.
  5. Open Dictionary application and enable man sections in preferences:

Dictionary Preferences

Now you can use the dictionaries.