Citman is a native macOS citation manager designed for speed, style, and simplicity. It allows you to manage your BibTeX libraries with a clean, modern interface that feels right at home on your Mac.
- Native macOS Interface: Built with SwiftUI for a smooth, responsive, and familiar user experience.
- BibTeX Support: Open, edit, and save
.bibfiles directly. - Robust Parsing: Handles complex BibTeX entries, including nested braces (e.g.,
{The {C} Programming Language}) and various field formats. - Smart Search: Instantly filter your library by ID, title, author, year, or any field content.
- Library Organization: Automatically categorizes entries by type (Article, Book, Thesis, etc.) in the sidebar.
- Editing: Add new citations or edit existing ones with ease.
- Sorting: Sort your library by any column.
You can easily install Citman using Homebrew:
brew tap herbertwxin/citman
brew install citman-
Clone the repository:
git clone https://github.com/yourusername/citman.git cd citman -
Build the application:
swift build -c release
-
Run: The executable can be found in the build directory, or run directly via:
swift run -c release
Note: To run as a standalone app, you can package the executable or run it from Xcode.
To contribute or develop, opening the package in Xcode is recommended:
- Double-click
Package.swiftor runxed .in the terminal. - Select the
Citmanscheme and pressCmd + Rto run.
- Open Library: Launch Citman and open any
.bibfile. - Browse: Use the sidebar to filter by entry type (e.g., "Article", "Book").
- Search: Use the search bar in the toolbar to find specific papers.
- Edit: Select a citation to view details in the inspector, or use the "Add" button (+) to create a new entry.
- Export: Changes are saved back to your
.bibfile efficiently.
This project includes a test suite to ensure the BibTeX parser works correctly.
swift test- SwiftUI: For the user interface.
- BibTeXParser: A custom, robust parser in
Sources/Citman/Models/BibTeXParser.swiftthat handles nested structures using a character scanner. - CI/CD: GitHub Actions workflow configured in
.github/workflows/swift.yml.
This project is licensed under the MIT License - see the LICENSE file for details.