This repository was archived by the owner on Jul 2, 2024. It is now read-only.
Add file and page tags to the cache file #281
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm working on a personal project that will require inspecting files that have specific tags on them. As a part of doing that, I have modified
rmapito include the names of the tags that have been applied to the top level file or to specific pages within a file.This may address some what is desired in issue #249.
The file tags are in the
fileTagsfield.The page tags are in the
pageTagsfield.The updated cache file entry for a file with tags will look like the following:
{ "coverPageNumber": 0, "documentMetadata": { }, "dummyDocument": false, "extraMetadata": { "LastBallpointColor": "Black", "LastBallpointSize": "2", "LastBallpointv2Color": "Black", "LastBallpointv2Size": "2", "LastCalligraphyColor": "Black", "LastCalligraphySize": "2", "LastClearPageColor": "Black", "LastClearPageSize": "2", "LastEraseSectionColor": "Black", "LastEraseSectionSize": "2", "LastEraserColor": "Black", "LastEraserSize": "1", "LastEraserTool": "EraseSection", "LastFinelinerColor": "Black", "LastFinelinerSize": "2", "LastFinelinerv2Color": "Black", "LastFinelinerv2Size": "2", "LastHighlighterColor": "Black", "LastHighlighterSize": "2", "LastHighlighterv2Color": "Black", "LastHighlighterv2Size": "2", "LastMarkerColor": "Black", "LastMarkerSize": "2", "LastMarkerv2Color": "Black", "LastMarkerv2Size": "3", "LastPaintbrushColor": "Black", "LastPaintbrushSize": "2", "LastPaintbrushv2Color": "Gray", "LastPaintbrushv2Size": "3", "LastPen": "Ballpointv2", "LastPencilColor": "Black", "LastPencilSize": "2", "LastPencilv2Color": "Black", "LastPencilv2Size": "2", "LastReservedPenColor": "Black", "LastReservedPenSize": "2", "LastSelectionToolColor": "Black", "LastSelectionToolSize": "2", "LastSharpPencilColor": "Black", "LastSharpPencilSize": "2", "LastSharpPencilv2Color": "Black", "LastSharpPencilv2Size": "2", "LastSolidPenColor": "Black", "LastSolidPenSize": "2", "LastTool": "SelectionTool", "LastUndefinedColor": "Black", "LastUndefinedSize": "2", "LastZoomToolColor": "Black", "LastZoomToolSize": "2" }, "fileType": "notebook", "fontName": "", "formatVersion": 1, "lineHeight": -1, "margins": 100, "orientation": "portrait", "originalPageCount": -1, "pageCount": 5, "pageTags": [ { "name": "Planning", "pageId": "016892c0-1a4c-44e2-93d3-23b1f111a858", "timestamp": 1670176484275 } ], "pages": [ "701d6ba6-c3cc-4bb2-9424-c6fe546979f8", "5527ba53-ef9f-4b5d-a35a-1cb768608567", "016892c0-1a4c-44e2-93d3-23b1f111a858", "37b227c5-6f06-44a9-a175-94ff0018b988", "64124558-0ae7-40ef-96b4-b054ad34aa82" ], "redirectionPageMap": [ ], "sizeInBytes": "3389175", "fileTags": [ { "name": "Daily", "timestamp": 1655955509272 } ], "textAlignment": "left", "textScale": 1 }