• Login
Community
  • Login

How to set custom icons in N++ for different file extensions ?

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 848 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.
  • S
    Sashank999
    last edited by Feb 6, 2022, 12:03 PM

    I know that there isn’t code to implement this. I looked at the code. Does anyone remember where the original issue is ? Can anyone link to it ? I think I have a plan to implement it.

    So the plan is to create a new XML file containing the location of the icon to the extension. All the icons shall be limited to 16x16 pixels and only ICO (Wiki Link ) icons shall be provided. The XML can be modified by the users however they wish. If an icon cannot be loaded, then N++ will use the default icon.

    This customisation can be limited to the toolbar or can be extended to “Folder As Workspace” too. I doubt whether it increases CPU or RAM usage.

    1 Reply Last reply Reply Quote 0
    • A
      Alan Kilborn
      last edited by Feb 6, 2022, 12:10 PM

      Where in Notepad++ UI is such an icon to be shown?

      S 1 Reply Last reply Feb 6, 2022, 1:30 PM Reply Quote 0
      • S
        Sashank999 @Alan Kilborn
        last edited by Feb 6, 2022, 1:30 PM

        @alan-kilborn In the toolbar, where there are file tabs.
        https://imgur.com/yhMeprz .

        A 1 Reply Last reply Feb 6, 2022, 1:41 PM Reply Quote 0
        • A
          Alan Kilborn @Sashank999
          last edited by Alan Kilborn Feb 6, 2022, 1:42 PM Feb 6, 2022, 1:41 PM

          @sashank999 said in How to set custom icons in N++ for different file extensions ?:

          In the toolbar, where there are file tabs.

          If I understand your meaning, that space is already used for saved/modified/locked status.

          Maybe your proposal is to show the extension specific icon only when the file is saved (and in dark mode – without alternate icons configured in the preferences – there is currently an empty area there)?

          I don’t know that I personally see great value in showing an extension-specific icon in this area.

          S 1 Reply Last reply Feb 6, 2022, 1:46 PM Reply Quote 1
          • S
            Sashank999 @Alan Kilborn
            last edited by Feb 6, 2022, 1:46 PM

            @alan-kilborn I was actually trying imitate the VS Code style. I actually have many files opened at once so having those custom icons kind of helps.

            Or maybe in “Folder As Workspace” ?
            9cf68328-6b9d-43c5-bb8b-a3e1b24df6aa-image.png
            The files would be useful here as I have CSS and JS files both in there. And I a lot often open JS file when I need CSS.

            A 1 Reply Last reply Feb 6, 2022, 2:02 PM Reply Quote 1
            • A
              Alan Kilborn @Sashank999
              last edited by Feb 6, 2022, 2:02 PM

              @sashank999 said in How to set custom icons in N++ for different file extensions ?:

              Or maybe in “Folder As Workspace”

              That area plus the “project” panels might be a good place for such extension-based icons. OK, I’m in with the idea. :-)

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