Skip to content

Feature idea for E2, Templates for fresh E2s #3176

Closed

Description

@Tjackjesus

I was told to go here for this feature idea after i asked about it on the discord!

Its a simple idea really, its just the ability to have templates open, so you dont always start with the basic "@name @inputs" etc, but instead you can choose freely, so i.e i'd choose to start with "@name @inputs W A S D if(first()|dupefinished()) {} " and what not, it feels like a useful idea, because i rarely dont use the if first statement, so it'd be nice to have it always there :)

Activity

  1. deltamolfar commented on Nov 12, 2024

    @deltamolfar
    Contributor

    Want to do that, so I've asked him to create an issue here, so it doesn't get lost.
    Basic implementation idea (once I'm done with popup lib):
    New auto-gen file: _templates/default.txt to where the current default e2 content goes.

    On new e2 created - if there is more then 1 file in _templates > dialog opens (that can be blocked, and then unblocked from settings) that prompts user to selected template to choose from.

    Also examples and tutorials can go there in _tutorials or whatever subfolder

  2. Denneisk commented on Nov 12, 2024

    @Denneisk
    Member

    Yes, yes, and with templates we can stop people from using if(first()) and enforce @trigger none...

  3. Tjackjesus commented on Nov 12, 2024

    @Tjackjesus
    Author

    Yes, yes, and with templates we can stop people from using if(first()) and enforce @trigger none...

    I feel targeted by this comment... ( ͡° ͜ʖ ͡°)

  4. Denneisk commented on Nov 12, 2024

    @Denneisk
    Member

    On new e2 created - if there is more then 1 file in _templates > dialog opens (that can be blocked, and then unblocked from settings) that prompts user to selected template to choose from.

    I don't know how viable it is with the setup we have, but I feel like ideally templates would be loaded by a hyperlink in the editor.

    Maybe instead we could make a landing page? Meh.

    Landing page example

    Either of these suggestions make me want to try and see how bad an HTML E2 editor could be.

  5. deltamolfar commented on Nov 12, 2024

    @deltamolfar
    Contributor

    Maybe instead we could make a landing page? Meh.

    Such page would be nice on just opened editor, but not when you want to create a yet new file, that's for sure.

  6. vurvdev commented on Nov 24, 2024

    @vurvdev
    Contributor

    "not a bug" isnt used for suggestions. convert it to a discussion @Denneisk

  7. Denneisk commented on Nov 24, 2024

    @Denneisk
    Member

    Oh yeah

  8. locked and limited conversation to collaborators on Nov 24, 2024
  9. converted this issue into a discussion #3186 on Nov 24, 2024
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions