Next/Previous Tab shortcut without cycling
-
The current behavior of ctrl+page down cycles the tabs. For instance if I have 3 tabs {A B C} pressing ctrl+page down will do {A B C, A B C, A B C …}. I’d like to be able to go to the next tab put stop at the last tab {A B C}.
-
It is not possible to do what you want with Notepad++ itself; however, with scripting it can be done. Something like this snippet logic would do it:
curr_view = notepad.getCurrentView() curr_index = notepad.getCurrentDocIndex(curr_view) max_index = -1 for (pathname, buffer_id, index, view) in notepad.getFiles(): if view == curr_view: if index > max_index: max_index = index if curr_index < max_index: notepad.menuCommand(MENUCOMMAND.VIEW_TAB_NEXT)
-
@alan-kilborn excellent…thank you.