• Login
Community
  • Login

UUID plugin request

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
uuidebook
2 Posts 2 Posters 5.0k Views
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.
  • H
    H B
    last edited by Dec 20, 2015, 7:43 AM

    I’d like to request a UUID plugin, that generates a unique ID, for ebook development.
    EPuB files need a unique book identifier, which often is generated by an external program.
    I like to use notepad++ to program my books, since they’re made in xml, but need to use an external program to generate the identifier.
    I’m sure it isn’t very hard to make.
    Sigil has one.

    C 1 Reply Last reply Dec 20, 2015, 6:14 PM Reply Quote 1
    • C
      Claudia Frank @H B
      last edited by Dec 20, 2015, 6:14 PM

      Hello H-B,
      if PythonScript has been already installed, then a simple script could do the job.
      Place the cursor where you want to add the uuid and execute the following script.

      import uuid
      uuid = str(uuid.uuid4())
      editor.addText(uuid)
      

      In addition the ToolBucket plugin has such functionality, be aware that the
      version which plugin manager knows isn’t the most recent one.
      This can be found here .

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors