The tab bar is, surprisingly, a set of tab, each of which represents a buffer (or document view) currently open in the current view.
The tab bar is hidden in Edit -> PostIt view, and toggled from Settings -> Preferences -> Global -> Tab bar -> Hide checkbox. However, it is an useful navigation and management tool for documents.
Clicking on a tab makes its attached document active. Dragging a tab and dropping it will:
- rearrange tabs on the same view
- move document to the other view
- move document to new instance
- move document to existing view in another instance
depending on where the tab drops.
Similarly, Ctrl+dropping a dragged tab will
- duplicate the tab in current view
- clone document to the other view
- clone document to new instance
- clone document to existing view in another instance
That is, unless you check Settings -> Preferences -> Global -> Tab bar -> Lock (no Drag N Drop).
Note that, as of v6.6.6, dragging and dropping the last tab from a Notepad++ instance closes the instance.
Now what happens if you drag a tab inside its own document? This is an easy mouse gesture to perform, but might not seem to make sense. As a consequence, short context menu suggests you to either go or clone the tab to another view. Click on the tab again to dismiss the menu if appropriate.
Checking the state of documents
Tabs can show a variety of document properties in a compact way:
- The unique active tab is drawn with a frame, unless Settings -> Preferences -> Global -> Tab bar -> Draw the orange top bar is unchecked
- The tab that would be active on a switch to the other view is displayed specificallly too
- Inactive tabs are displayed in a particular way, or like the other active tab if Settings -> Preferences -> Global -> Tab bar -> Draw inactive tabs is unchecked
- A floppy disc icon is shown on all tabs, and its color reflects the state of the active document (on inactive tabs, it is shown as greyed):
- red if modified, modifiable
- blue if unmodified, modifiable
- grey if unmodifiable (read-only)
There is a variety of ways to close a document by its tab:
- Middle clicking on it
- Clicking on the close button, if Settings -> Preferences -> Global -> Tab bar -> Enable close button on each tab is checked
- Double clicking it, if Settings -> Preferences -> Global -> Tab bar -> Double click to close document is checked
- Right clicking on it and using the Context Menu.
The following settings customise the appearance of tabs:
- The so called orange border around the focused tab has a configurable color using Settings -> Styler Configurator -> Global Styles , Active tab (focused indicator)
- By default, the other active tab doesn't display a border, but this can be changed using Settings -> Styler Configurator -> Global Styles , Active tab (unfocused indicator)
- The color of the active tab text can be set using Settings -> Styler Configurator -> Global Styles , Active tab text
- Both background and foreground of inactive tab are controlled by Settings -> Styler Configurator -> Global Styles , Inactive tabs
- Tab can be arranged verticallly by checking Settings -> Preferences -> Global -> Tab bar -> Vertical
- The tabs can be made compact by checking Settings -> Preferences -> Global -> Tab bar -> Reduce
- When more tabs that can fit on the view are displayed:
- if Settings -> Preferences -> Global -> Tab bar -> Multiline is checked, several rows of tabs will stack. Clicking on a tab brings to the bottommost row the whole row of tabs
- Otherwise a pair of small buttons pointing left and right will show, and clicking them will move through the imaginary row of tabs. The triangles show up and down if the tabs are arrranged vertically.
The tab context menu is not configurable, and has known commands under slightly different names sometimes:
- Close All BUT This
- Close All to the Left
- Close All to the Right
- Save As
- Move to Recycle Bin
- Open Containing Folder in Explorer
- Open Containing Folder in cmd
- Clear Read-Only flag
- Full file path to Clipboard
- File name to CLipboard
- Current dir path to Clipboard
- Go to another view
- Clone to another view
- Go to new instance
- Open in new instance