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

Use a flat json format for all cut/copy/paste-node commands #3472

Open
edreamleo opened this issue Jul 31, 2023 · 0 comments
Open

Use a flat json format for all cut/copy/paste-node commands #3472

edreamleo opened this issue Jul 31, 2023 · 0 comments
Assignees
Labels
Code Re Leo's code leoJS Issues & PRs that affect leoJS Waiting
Milestone

Comments

@edreamleo
Copy link
Member

edreamleo commented Jul 31, 2023

PR #3473 adds support for copy-node, cut-node, paste-node, paste-retaining-clones and paste-as-template.

A later issue and PR will add support for json-based file format.

  • c.archive creates a json-based archive dict describing all to-be-pasted (or to-be written) nodes.
  • c.unarchive overwrites a VNode with using the archive dict.
  • Leo will use archive dicts for all copy/paste-outline commands.
  • Leo will not use a compatibility setting. Such a setting would ripple throughout Leo's code.

uAs

  • Represent uAs only as json.
  • Define the check-uas command.
  • Support the --trace-uas command-line option.
  • v.archive_uas will check for invalid uAs.
    It will warn if the check-uas command calls it or if --trace=uas is in effect.
  • Convert legacy uAs to json-based uAs when reading .leo files.

Plugins

Minimal changes will be necessary.

  • bookmarks.py: write is_dup key only if its value is True.
@edreamleo edreamleo added Code Re Leo's code FileFormat labels Jul 31, 2023
@edreamleo edreamleo added this to the 6.7.5 milestone Jul 31, 2023
@edreamleo edreamleo changed the title Support a flat json file format for Leo Use a flat json format for all cut/copy/paste-node commands Aug 22, 2023
@edreamleo edreamleo modified the milestones: 6.7.5, 6.7.6 Sep 1, 2023
@edreamleo edreamleo added the leoJS Issues & PRs that affect leoJS label Oct 23, 2023
@edreamleo edreamleo modified the milestones: 6.7.6, 6.7.7 Nov 7, 2023
@edreamleo edreamleo modified the milestones: 6.7.7, 6.7.8 Dec 29, 2023
@edreamleo edreamleo modified the milestones: 6.7.8, 6.7.9 Jan 13, 2024
@edreamleo edreamleo modified the milestones: 6.7.9, 6.7.10 Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Re Leo's code leoJS Issues & PRs that affect leoJS Waiting
Projects
None yet
Development

No branches or pull requests

2 participants