Community
    • 登入

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

    已排程 已置頂 已鎖定 已移動 General Discussion
    4 貼文 2 Posters 732 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Doug RogersD
      Doug Rogers
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • EkopalypseE
        Ekopalypse @Doug Rogers
        最後由 編輯

        @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 條回覆 最後回覆 回覆 引用 1
        • Doug RogersD
          Doug Rogers
          最後由 編輯

          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 條回覆 最後回覆 回覆 引用 0
          • EkopalypseE
            Ekopalypse @Doug Rogers
            最後由 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 條回覆 最後回覆 回覆 引用 2
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors