2

To reopen a closed tab in Notepad++ you press ALT+F&1. I was wondering if there was a way to make a macro or program to do this so that I can press link it to the shortcut CTRL+SHIFT+T instead, which is a universal reopen closed tab shortcut I'm used to.

If anyone could tell me how to make a simple program that does that, and that I could then link to Notepad++ to create a shortcut with, that would teach me a lot and help.

Thank you for reading

2 Answers 2

2

I have successfully tested the following solution: define this AutoHotKey macro:

SendMode Input                ;just to set up preferred method of sending hotkeys
SetTitleMatchMode, RegEx      ;from now on, windows titles are matched by regex

#IfWinActive Notepad\+\+      ;(open block) the following hotkeys work only in N++
+^t::Send !f1                 ;desired hotkey: Ctrl+Shift+T sends Alt+F, 1
^w::Send ^{F4}                ;bonus: Ctrl+W sends Ctrl+F4 (close file convention)
#IfWinActive                  ;(close #IfWinActive block)

do not forget to run AutoHotKey as administrator.

Using the AHK you can achieve many useful things in N++ and all other applications.

1
  • I am incredibly grateful. Thank you so much @miroxlav. Nov 26, 2014 at 22:04
1

As of now, the shortcut CTRL+SHIFT+T is already the default for reopen closed tabs.

You can always use the ShortCut Mapper : enter image description here

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .