jabref2obsidian.load.attach_entries_to_group#
- jabref2obsidian.load.attach_entries_to_group(entries: list, group_dict: dict)[source]#
Attaches a list of entries to the corresponding groups in a dictionary of groups.
- Parameters:
entries (list) – A list of entries to be attached to the groups.
group_dict (dict) – A dictionary of groups to which the entries will be attached.
Examples
# load bib file bib_database = load.load_bib(bib_path) # parse the group tree # P.S. the group dictionary is for fast accessing of the group tree nodes tree_str = bib_database.comments[1] group_dict, tree_root = load.parse_group_tree(tree_str) # attach the loaded entries to the corresponding nodes load.attach_entries_to_group(bib_database.entries, group_dict)