omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Customize default templates

    Pythonista
    5
    5
    3809
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lukaskollmer
      lukaskollmer last edited by

      Is there a way to edit the file templates?

      I know that I can add custom templates using the Templates folder, but I'd like to automatically add a copyright message with my name, the filename and the current date at the beginning of the file.

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        No, that's not possible. You'd have to create your own file templates if you want to insert a standard copyright message, but you couldn't insert the current date automatically (that's a neat idea though, I'll think about that).

        1 Reply Last reply Reply Quote 1
        • JonB
          JonB last edited by

          another option would be to create a script that adds the info to the top of the current file. You would run via the wrench menu.

          Webmaster4o 1 Reply Last reply Reply Quote 3
          • Webmaster4o
            Webmaster4o @JonB last edited by

            @JonB You could even make a "Apply default template" script that detected the file extension

            1 Reply Last reply Reply Quote 0
            • Phuket2
              Phuket2 last edited by

              I also followed @JonB suggestion to write a one liner to stop rogue ui.delay scripts, with a wrench script that just called ui.cancel_delays() 😜👍 was actually the most straight forward way

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors