Community
    • Login

    Want Save for new doc to use first line of text for filename

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 950 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.
    • Doug RogersD Offline
      Doug Rogers
      last edited by

      I’m wondering if there’s a plugin that will use the text in the first line of a new doc as the name when I do the first save. The first line of many of my text files is the title, and that would make a good filename too. I’ve done some searching but can’t find a plugin that does this. I think it would be easy to write for someone who writes N++ plugins.

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE Offline
        Ekopalypse @Doug Rogers
        last edited by

        @Doug-Rogers

        I don’t think that you have something like
        d:\some_dir\MY_TITLE as the first line of your doc, do you?

        It would be quite easy to create a python script to make
        this work, the only open question is how it should behave.

        1 Reply Last reply Reply Quote 1
        • Doug RogersD Offline
          Doug Rogers
          last edited by

          Normally when you save a Word doc for the first time it gives you a suggested file name and it is usually the first line in the document. I wish NP++ had this feature, or a plugin which will do this.

          For example, if I write a doc such as:
          Do List for Thursday
          item 1
          item 2
          Then when I first do Save or Save As… I’d like the save dialog to be pre-loaded with “Do List for Thursday.txt” as the default filename.

          EkopalypseE 1 Reply Last reply Reply Quote 0
          • EkopalypseE Offline
            Ekopalypse @Doug Rogers
            last edited by Ekopalypse

            @Doug-Rogers

            Okay, if you want this inside npp, you’re going to need to create a
            feature request, read up here, but make clear how it shouldn’t affect the current behaviour.
            Perhaps by adding a setting that can be enabled or disabled.

            1 Reply Last reply Reply Quote 2

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors