How do you open a new tab next to the current?
-
Hi
How do you open a new tab next to the current?
-
I don’t believe it can be done by Notepad++ itself.
If by “next to” you mean “to the right of”, then the following PythonScript script can do it:
# -*- coding: utf-8 -*- from Npp import * curr_view = notepad.getCurrentView() total_tabs_in_view = 0 for (pathname, buffer_id, index, view) in notepad.getFiles(): if view == curr_view: total_tabs_in_view += 1 curr_tab_index = notepad.getCurrentDocIndex(curr_view) notepad.new() for __ in range(total_tabs_in_view - curr_tab_index - 1): notepad.menuCommand(MENUCOMMAND.VIEW_TAB_MOVEBACKWARD)