Community
    • Login

    Close console etc windows using keyboard?

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 4.1k Views 2 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.
    • Matt IsaacsonM Offline
      Matt Isaacson
      last edited by

      Is there a way to close “extra” non-document windows - especially the Search Results Window, but also others such as the Python Script Console - other than by using the mouse to click the window’s close button? I haven’t managed to stumble across this in either the menus or the Shortcut Mapper.

      Among the things I routinely do in NPP so far, this is the only one which I haven’t figured out how to do from the keyboard. I have to think it must be possible. I know that the physical movement is probably good for my health :-) but somehow I find it jarring to have to reach for the mouse whenever I want to do this. It sort of breaks up my flow, not least of all because every time I do it, this same question automatically replays itself in my mind and I have to tell myself to ignore it (yeah, I’m a bit peculiar …)

      Matt

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Matt Isaacson
        last edited by

        Hi Matt,

        tbh, I din’t find a way to close search result window by using keyboard. :-(

        Python Script console could be closed by typeing console.hide() into
        the run line.

        When you assing a shortcut to show console you could just press the shortcut to
        give it the focus then type the command.

        if console.hide() is to long you could edit startup.py and add

        c = console.hide
        

        and then write

        c()
        

        to the run line or you create a python script which just calls console.hide()

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Matt IsaacsonM Offline
          Matt Isaacson
          last edited by

          I found a way to close all console windows at once with two quick keystrokes - it’s pretty cheesy …

          • Alt-F4 to exit Notepad++

          • Then one more key combination: A Windows shortcut to start Notepad++ again, which I already had in place anyway. In my case: Alt-Ctrl-M, in fond memory of Multi-Edit :-)

          … but since NPP exits and restarts so quickly and puts you right back where you were, this does the job quite nicely :-)

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC Offline
            Claudia Frank @Matt Isaacson
            last edited by

            Hi Matt,

            this is a good one :-D

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0

            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