• Login
Community
  • Login

File link problem with space character

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 1.4k 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
    J. Brouwer
    last edited by Sep 11, 2022, 1:56 AM

    Hi all,

    Seeing an equivalent space character “problem” within Windows Command Prompt for some commands and within Command Prompt this is overcome by quotation (“”), I believe the same “problem” can be seen within Notepad++, like it was inherited from Windows.

    Namely, a file link like (mine): J:\plaatjes\h_c9\help_indicator_arrows.png could be changed to [file:///J:\plaatjes\h_c9\help_indicator_arrows.png](link url) (or: [file:///J:/plaatjes/h_c9/help_indicator_arrows.png](link url)) and thus become a real file link from within Notepad++.

    But there is a problem while trying to convert a file link with space character(s) within its name, like:
    J:\plaatjes\h_c9\handwritingsystemtoasticon.contrast-white (2).png. After conversion, only a part of this link would become a real file link, and here this would be:
    [file:///J:\plaatjes\h_c9\handwritingsystemtoasticon.contrast-white](link url) (2).png, so ending at the space character. And that is to no avail, of course.

    At last, I also have tried the use of quotation, so: “[file:///J:\plaatjes\h_c9\handwritingsystemtoasticon.contrast-white (2).png](link url)”, but, as we see, the quotes are not picked up as part of the conversion by Notepad++.

    How to overcome the problem? Maybe this could be seen as a feature request for Notepad++ as well?

    Thanks.

    Jack Brouwer

    A 1 Reply Last reply Sep 11, 2022, 2:48 AM Reply Quote 0
    • A
      Alan Kilborn @J. Brouwer
      last edited by Sep 11, 2022, 2:48 AM

      @J-Brouwer

      It is a deficiency, one that is usually solved by replacing space characters with %20, but that doesn’t work in Notepad++ either.

      Instructions are HERE for making a feature request.

      1 Reply Last reply Reply Quote 0
      • J
        J. Brouwer
        last edited by Sep 11, 2022, 4:30 AM

        A feature request can be found on GitHub now:

        issue#12142

        1 Reply Last reply Reply Quote 0
        • A
          Alan Kilborn
          last edited by Sep 11, 2022, 11:57 AM

          There’s the possibility to script a solution to such a problem; for ideas on that, see this related CONCEPT.

          1 Reply Last reply Reply Quote 1
          • A Alan Kilborn referenced this topic on Sep 11, 2022, 7:27 PM
          4 out of 4
          • First post
            4/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors