Skip to content

Krishna-Sivakumar/definex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Define X

A terminal-based dictionary for MacOS.

There's no good dictionary database for free online, so I just parsed MacOS' native dictionary :P

Make a pull request if you feel like there's something that needs to be added.

Usage

usage: definex [word]

To Build

cargo build --release

To Run

cargo run --release [word]
(or)
./target/release/definex [word] (post build)

To do/fix

  1. CFStrings are still FFI unsafe, need to be changed to CFStringRefs
  2. There's a RAII bug on CoreServices' side sometimes
  3. Select specific headings from definitions

Credits

kornelski/core-services: to help understand core services FFI bindings