• Login
Community
  • Login

-nosession Switch on CmdLine Used, session still loaded

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
command linesessions
4 Posts 4 Posters 416 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.
  • D
    Dennis Bareis
    last edited by Sep 16, 2021, 2:55 AM

    I am trying to start the editor from the command line and use the “-nosession” switch.

    That seem to do nothing, but I have a second issue in that I can’t see a switch to not load previous files (if notepad++ is not already open).

    If I specify a file AND notepad++ is not running I don’t want a session prefix in the title bar and I don’t want previously loaded files loaded (single tab open). If it is already running I want a new tab added.
    Can notepad++ do this?

    I have hardly used Notepad++ so I could be doing something wrong. I may have downloaded plugins that I don’t remember.

    E P A 3 Replies Last reply Sep 16, 2021, 9:11 AM Reply Quote 0
    • E
      Ekopalypse @Dennis Bareis
      last edited by Sep 16, 2021, 9:11 AM

      @Dennis-Bareis

      I’m using the -nosession flag constantly and it works for me.

      If I understand correctly, then setting prefereces->multi-instance to default and uncheck preferences->Backup->remember current session for next launch should do what you want.

      1 Reply Last reply Reply Quote 1
      • P
        PeterJones @Dennis Bareis
        last edited by PeterJones Sep 16, 2021, 1:02 PM Sep 16, 2021, 1:01 PM

        @Dennis-Bareis said in -nosession Switch on CmdLine Used, session still loaded:

        I don’t want a session prefix in the title bar

        You mention a session prefix. Notepad++ doesn’t do that natively. Are you using the Session Manager plugin? Because that plugin has a session-prefix option (Show in title bar). If you are using that plugin, then I doubt that the plugin obeys Notepad++'s -nosession command line option. Unfortunately, the author of that plugin has abandoned it, and other than someone bumping from 1.4.2 to 1.4.3 to support 64bit Notepad++, no one has adopted the plugin, so there’s little chance of getting a new feature added anytime soon.

        addendum: the Session Manager documentation is still hosted here , if you want to learn more about the settings.

        1 Reply Last reply Reply Quote 1
        • A
          Alan Kilborn @Dennis Bareis
          last edited by Sep 16, 2021, 1:13 PM

          @Dennis-Bareis said in -nosession Switch on CmdLine Used, session still loaded:

          I may have downloaded plugins that I don’t remember.

          Well, of course there is any easy way to show yourself (and others) your plugins. Looking at your Plugins menu is one way, example:

          5e04d692-296a-4959-bcb2-2a9ac0b9f092-image.png

          And going to the ? menu and choosing Debug Info is another way:

          088eb0ee-beba-46a6-9cb0-a571be85ed23-image.png

          It will give you something that looks like this:

          Imgur

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