Skip to content

Preserving user modifications during updates #148

Closed

Description

@x87

By the way, I noticed that templates are reset to standard ones after installing new versions, which is also an inconvenience, since I, for one, have my own CLEO template and slightly modified standard templates of conditions and loops. It would be cool to have them saved until a serious change is needed.

Originally posted by @VitalRus95 in #130 (comment)

Activity

  1. added
    discussion
    on Jun 9, 2021
  2. x87 commented on Jun 9, 2021

    @x87
    CollaboratorAuthor

    One related feature to this is #74 It should extract custom opcodes from one single file to separate folders where they could follow different update flow.

  3. x87 commented on Jun 15, 2021

    @x87
    CollaboratorAuthor

    User templates: #154

  4. VitalRus95 commented on Jun 19, 2021

    @VitalRus95

    Thanks for the update! I've tried to add a custom template, and templates.custom.txt was successfully created!

    Yet what I would also like to have is a possibility to hide default templates if there are custom ones with the same name. For instance, I've changed ifthen and ifelse by adding more indentation (4 spaces instead of 2 and an indentation after then/else to save even more time), and after that I had duplicates in templates menu.

    The CLEO template story is the same as I told before: if one wants their own shared template, they'll have to manually edit all exclusive templates by either modifying or deleting them, yet these would be restored after a new version comes out, leading to new confusion and duplicates.

    So, in order to keep my own CLEO template, I had to name it other way and save as a custom template, which means I can't use “New CLEO script” but have to create an empty file and insert my template. All in all, the largest inconvenience for me is that you cannot just change/overwrite the default templates, since they always get restored.

    However, saving custom ones is a great step forward and a nice way to preserve and share template ideas, so I am grateful for this new feature! 👍

    P. S. A stupid thought has crossed my mind that templates could be shared just like new themes, he-he.

  5. x87 commented on Jun 19, 2021

    @x87
    CollaboratorAuthor

    A stupid thought has crossed my mind that templates could be shared just like new themes, he-he.

    If you have some useful templates to share, submit a pull request in https://github.com/sannybuilder/data

    I will look into templates visibility.

  6. x87 commented on Jul 24, 2021

    @x87
    CollaboratorAuthor

    what I would also like to have is a possibility to hide default templates if there are custom ones with the same name.

    @VitalRus95 this has been implemented in v3.8.0-beta.0, please give it a try

  7. x87 commented on Aug 25, 2021

    @x87
    CollaboratorAuthor

    closing this discussion as templates have been implemented and opcodes are tracked in a separate ticket

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions