Community
    • Login

    Prefix custom title option or hide filename entirely so Alt+Tab shows just the custom title

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    4 Posts 3 Posters 49 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.
    • Thomas ZitoT
      Thomas Zito
      last edited by Thomas Zito

      Hi, would it be feasible to add an option so that addTitle set the prefix of the notepad++ window title instead of adding a suffix? Or, just hide filename entirely?

      I’m not sure which parts of the codebase need to be rewritten. Hopefully it’d be simple and nothing relies on this particular order.

      So let’s describe the scenario
      Problem: you have 4 or 5 notepad++ windows each with a custom title. When you do Alt+Tab, it shows the title for each window starting from the filename, resulting in the custom title being cut off.

      The reason i ended up in this scenario is im doing some searches on command line using findstr to open all search results in a new instance window each time

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Thomas Zito
        last edited by

        @Thomas-Zito

        I like these ideas, generally. Although, I think it should be an absolute requirement that the title bar always starts with Notepad++ - , i.e., you can’t change that no matter what you do. Your “prefix” would then follow this.

        CoisesC Alan KilbornA 2 Replies Last reply Reply Quote 0
        • CoisesC
          Coises @Alan Kilborn
          last edited by

          @Alan-Kilborn said in Prefix custom title option or hide filename entirely so Alt+Tab shows just the custom title:

          I think it should be an absolute requirement that the title bar always starts with Notepad++ - , i.e., you can’t change that no matter what you do. Your “prefix” would then follow this.

          This would be annoying for multiple instance users (whether using the -titleAdd argument or not). Windows uses the title bar text as the label for the button in the task bar. Space there is limited; a multiple instance user wants the most useful information for distinguishing one instance from another to be visible. I assume that’s reason for the existence of Settings | Preferences | MISC.: Show only file name in title bar. (Only in this context is as opposed to showing the full path and the file name.)

          It would make sense to add the custom title at the very beginning, rather than the end. What else is the point of the custom title if not to distinguish one Notepad++ window from another in the taskbar or the Alt+Tab window?

          The Notepad++ icon is always at the left, so “Notepad++” is redundant.

          1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @Alan Kilborn
            last edited by Alan Kilborn

            @Alan-Kilborn said:

            I think it should be an absolute requirement that the title bar always starts with Notepad++ -

            Hmm, this is what I get for posting when I don’t have Notepad++ right in front of me (i.e., I get it wrong). :-(

            Now that I have it in front of me, the Notepad++ title bar shows pathname - Notepad++ or filename - Notepad++.

            My point was mainly about Notepad++ remaining somewhere in the titlebar, because this bit of consistency aids in other programs in locating the N++ main window, via the FindWindow Win32 API call. I do this a fair amount, and thus I’m projecting that I’m not alone and that others do this as well.

            Here’s a bad example; some PythonScript code:

            notepad.hwnd = user32.FindWindowW(u'Notepad++', None)

            (It’s “bad” because it isn’t necessary any longer, because newer versions of PythonScript have the notepad.hwnd variable predetermined for you – but for a long time this was not the case)

            But, if Notepad++ weren’t in the title bar text, it would not be as “easy” to locate the window, for those that need to.

            Note that the OP made no suggestion to drop Notepad++ from the title bar text; I was just thinking if the original idea was extended (as tends to happen), I’m sure someone would come up with that idea. And @Coises did call the text redundant, so that could be construed as a first step at “removal” – in quotes because of course all of these suggestions would be for optional things.

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