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)
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