• Login
Community
  • Login

command line sftp auto-connect

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 529 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.
  • J
    Jimmy Devine
    last edited by Apr 1, 2022, 4:57 PM

    Is there a command line method of interacting with plugins? I’m using putty session manager which on top of putty integrates with some other programs such as filezilla and it would be nice if there were a way to integrate this with notepad++ as well to open notepad++ to a specific site.

    P 1 Reply Last reply Apr 1, 2022, 5:11 PM Reply Quote 0
    • P
      PeterJones @Jimmy Devine
      last edited by Apr 1, 2022, 5:11 PM

      @jimmy-devine ,

      The plugin would have had to define an interface for doing that. I doubt that NppFTP has implemented such a feature, but the NppFTP > About NppFTP dialog gives a link to their website, so you could ask for that feature (with no guarantee of getting it)

      1 Reply Last reply Reply Quote 1
      • J
        Jimmy Devine
        last edited by Apr 1, 2022, 5:23 PM

        @PeterJones do you know of any plugins that have command line interactivity? I imagine this would need host (notepad++) support, I’m curious how this implementation would work.

        P 1 Reply Last reply Apr 1, 2022, 5:26 PM Reply Quote 0
        • P
          PeterJones @Jimmy Devine
          last edited by PeterJones Apr 1, 2022, 5:36 PM Apr 1, 2022, 5:26 PM

          @jimmy-devine ,

          I imagine this would need host (notepad++) support

          Notepad++ provides the -z command line option – see usermanual here ; since plugins have access to the string that called Notepad++ from the command line, they can process everything after -z for their own options. Here is an example implementation (using a script in the PythonScript plugin, but a compiled plugin has the same access to that information)

          For example, maybe NppFTP could look for a -nppftpconnect parameter after the -z to immediately connect to a site…

          1 Reply Last reply Reply Quote 3
          • J
            Jimmy Devine
            last edited by Apr 1, 2022, 8:09 PM

            @PeterJones that looks like what I’m looking for. I’ll have to read up on integrating npp user parameters with plugins, thanks!

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