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

Tags Indexer and Simple TimeLine #22

Merged
merged 23 commits into from Jun 1, 2019
Merged

Tags Indexer and Simple TimeLine #22

merged 23 commits into from Jun 1, 2019

Conversation

vkbo
Copy link
Owner

@vkbo vkbo commented Jun 1, 2019

This PR adds an index to the project that holds the position of all headers in the novel part of the project and all tags set in the notes part. It also holds all the links from novel files to notes.

The relationship can be viewed in a new TimeLineView GUI. It's in the tools meny, and can also be opened with Ctrl+T.

The spell checker now used this index to highlight keywords/value sets. If the keyword or value is not valid, it will not be highlighted and will instead have a wiggly line under it. This also checks that references point to valid tags. For this to work, the index has to be up to date. The index of a file is saved when the file is saved, but the entire index can be rebuilt by pressing F9.

This tool may still have bugs that needs cleaning out. I will fix them as I see them while working on my own novel project.

@codecov-io
Copy link

codecov-io commented Jun 1, 2019

Codecov Report

Merging #22 into master will increase coverage by 2.16%.
The diff coverage is 93.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
+ Coverage   81.04%   83.21%   +2.16%     
==========================================
  Files          23       26       +3     
  Lines        3313     3729     +416     
==========================================
+ Hits         2685     3103     +418     
+ Misses        628      626       -2
Impacted Files Coverage Δ
nw/project/document.py 88.57% <100%> (+0.16%) ⬆️
nw/gui/doceditor.py 67.24% <100%> (+0.46%) ⬆️
nw/theme.py 85.89% <100%> (+0.37%) ⬆️
nw/gui/statusbar.py 97.24% <100%> (ø) ⬆️
nw/__init__.py 68.31% <100%> (+0.31%) ⬆️
nw/tools/wordcount.py 100% <100%> (ø)
nw/constants.py 100% <100%> (ø) ⬆️
nw/gui/wordcounter.py 100% <100%> (+1.81%) ⬆️
nw/gui/mainmenu.py 96.38% <100%> (+0.14%) ⬆️
nw/config.py 91.74% <75%> (-2.97%) ⬇️
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9bf8a8...3e7f360. Read the comment docs.

@vkbo vkbo merged commit dc1fbc4 into master Jun 1, 2019
@vkbo vkbo deleted the indexer branch June 1, 2019 19:22
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.

None yet

2 participants