Skip to content

Fixing autocomplete and adding citation extraction#43

Open
dhufe wants to merge 3 commits intomangecoeur:masterfrom
dhufe:master
Open

Fixing autocomplete and adding citation extraction#43
dhufe wants to merge 3 commits intomangecoeur:masterfrom
dhufe:master

Conversation

@dhufe
Copy link
Copy Markdown
Contributor

@dhufe dhufe commented Dec 14, 2021

Due to some additional quotes the code that updates the cached citation keys did not work anymore (bibfile_modifed and load_bibfile).

Additionally, I added some code to extract the used citation entries. This is dne using some GPL code provided by
Joseph Reagle.

Comment thread citer.py
ref_dir = os.path.dirname(window.project_file_name())
result = ref_dir + '/' + project_data['bibtex_file']
filename = project_data['bibtex_file']
result = ref_dir + '/' + filename.replace('\'', '')
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will fail on windows - need to use os.path.join (or work with pathlib but that's probably overkill)

@mangecoeur
Copy link
Copy Markdown
Owner

Hi thanks for the PR, I just had a look and I left a comment - there is a case of joining paths that I think will fail on windows. Could you please check the comment and resolve thanks :)

@dhufe
Copy link
Copy Markdown
Contributor Author

dhufe commented Jan 14, 2022

Sry for the late response.
I will check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants