Community
    • Login

    NP++ and hidden files

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 2.9k Views 1 Watching
    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.
    • ct7agrC Offline
      ct7agr
      last edited by

      In the first place: I thank the makers of Notepad++ ! I use NP++ it since many years in MS Windows. It is my favorite editor. Recently I installed NP++ in Unbuntu 20.04. Installed it with Snap. It takes a bit longer to come up on the desktop than the Windows version. Secondly: the font of the menus and main window are quite little (I am 74 (but kickin’)). The reason for my question is this: in Linux there are quite a bit of hidden files, to begin within the home folder of a user /home/<username>/, e.g.: the file .profile. This file and some other files that start with a . (dot) I need to edit once in a while. But NP++ does not show them. I installed the Explorer plugin. This plugin shows the hidden files.
      In the explorer plugin window the hidden folders are colored with a light-blue color while the non-hidden folders have a dark-blue color. When I click on one of the non-hidden folders the Explorer plugin shows me the contents (list of files) of the selected folder. When I click on a hidden folder, contents of that folder is not shown. So I am not able to see, neither select to open a hidden file.
      Is there a solution available ?
      Thank you!
      Paulus Schulinck (paulsk), Lisbon, Portugal.

      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP Online
        PeterJones @ct7agr
        last edited by

        @ct7agr ,

        There is no native port of Notepad++ to Linux. To run, it must be going through a translation layer like Wine, because Notepad++ is using win32 API calls, which Linux does not understand.

        So when Notepad++ asks the win32 interface for the standard Windows file menu, that translation layer is handling the call, and that translation layer gets to decide what files to show to Notepad++. There is nothing you can do inside Notepad++ to change that behavior.

        I presume the Explorer plugin is using standard c-style directory access routines rather than a win32 call, which is why it is showing hidden files. And no, Notepad++ is not going to switch to generating its own file open dialog using standard c-style calls, because Notepad++ is a win32 app, and will continue to make use of that API.

        It may be possible to configure Wine or whatever translation layer you use to show hidden files, but I don’t know how. There is nothing to do inside Notepad++. Sorry.

        1 Reply Last reply Reply Quote 3
        • gstaviG Offline
          gstavi
          last edited by

          Treating dot files as hidden is only a convention for shells and some other applications. There is nothing “hidden” about them as far as Linux file system or wine care. When I worked with NPP over wine I opened many dot files and files in dot directories without a problem.

          I wonder if it is a bug in the Explorer plugin where it treats dot files (and dot directories) as files with empty name and an extension which confuses it. This may explain the coloring issues. If you have a Windows system you can try creating a dot file there and check if it behaves differently than with wine.

          I am quite sure that if you just try to open the files from the ‘Open’ dialog you would not have a problem.

          1 Reply Last reply Reply Quote 3

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors