Skip to content

usr-sse2/ManToDictionary

Repository files navigation

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.

About

Convert man pages into Apple Dictionary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published