Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor cache architecture #628

Closed
wants to merge 3 commits into from
Closed

Refactor cache architecture #628

wants to merge 3 commits into from

Commits on Jun 13, 2022

  1. refactor: split caches, make API key-focused

    Sorry for this breaking change, but I wanted to get the foundations
    right before tagging 1.0.
    
    This completely restructures the core of citar to borrow some code and
    ideas from the org-mode oc-basic package.
    
    In particular, it changes to using two primary caches:
    
    - bibliography
    - completion
    
    Both of these now use hash tables, rather than lists.
    
    Caching functionality is also changed, and the API now focuses on
    citekeys as arguments for key functions.
    
    Finally, citar--parse-bibliography should re-parse bibliography files
    upon change.
    
    Fix #623 Close #627
    bdarcus committed Jun 13, 2022
    Configuration menu
    Copy the full SHA
    b4383ba View commit details
    Browse the repository at this point in the history
  2. Add citar--bibliography-files

    This functions returns all local and global bibliography files for
    'citar--parse-bibliography' to parse.
    bdarcus committed Jun 13, 2022
    Configuration menu
    Copy the full SHA
    61e385a View commit details
    Browse the repository at this point in the history
  3. Add citar-prefilter-entries

    Allows to independently turn off whether to do this by default, and
    whether to toggle the behavior.
    bdarcus committed Jun 13, 2022
    Configuration menu
    Copy the full SHA
    c2a4855 View commit details
    Browse the repository at this point in the history