• Login
Community
  • Login

Issues Using NPP When There Are Spaces In File/Path

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 212 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.
  • C
    CityguyUSA
    last edited by Jun 2, 2023, 4:32 AM

    I’m trying to edit a .bat that has spaces in the path and the filename using my file manager’s context menu edit. But as you’ll see this goes very wrong saying it doesn’t exist. The second error doesn’t even display the path correctly adding words that were at another place in the path to the end. Do I want to create it? No. In the end I show in my file manager that the file and the path are accurate and the properties matches the location yet it won’t open in NPP.

    Then in a 2nd video I show that I can type in the first tab of NPP. I then proceed to open the same file as in video 1 through NPP’s open file function. While it does open the file I am unable to type anywhere in the display/tab.

    I created a video which I’ve uploaded the videos to here:

    https://mega.nz/file/Bt1VCDoR#WXW-njlZwWTcei76PFSpzGKad0wUftnwhRbOYLwbJYE

    https://mega.nz/file/49lmWBJK#osAEfmc4tHCLi2PPxcbrjmQnAodOApK95KVqcuMKjHA

    If there’s any issue with the links let me know. They should work.

    M 1 Reply Last reply Jun 2, 2023, 5:48 AM Reply Quote 0
    • M
      Mark Olson @CityguyUSA
      last edited by Jun 2, 2023, 5:48 AM

      @CityguyUSA
      Please share your debug info (?->Debug Info... from the main menu) so that people can have a better idea of what might be causing your issue.

      This sounds a lot like a plugin issue to me. I have never had such an issue with spaces in file names on any of the numerous Notepad++ versions I have.

      1 Reply Last reply Reply Quote 1
      • A
        Alan Kilborn
        last edited by Jun 2, 2023, 11:47 AM

        I haven’t looked at the videos as I don’t tend to do links to 3rd party sites I haven’t heard of. But…these type of issues usually come down to a double-quoting problem of some sort. If a filepath contains one or more spaces, it must be double-quoted at the time it reaches Notepad++'s command line.

        The command line that N++ was run with is shown in the “Debug Info” so Mark’s advice about providing it is solid.

        using my file manager’s context menu edit

        This leads me to believe the problem is NOT related to N++'s own Explorer context menu (which is in itself new and has been causing users various problems).

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