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.
- 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 inMakefile
). - Create
~/Library/Dictionaries
directory, if it doesn't exist. - Specify all man page directories in
manDirs
array inmain.swift
- Compile and run the program. It will build dictionaries and install them in
~/Library/Dictionaries
. - Open Dictionary application and enable man sections in preferences:
Now you can use the dictionaries.