Ankur Deka
Ankur Deka

Reputation: 361

Switch to tab by file name in text editor

I have multiple files open in different tabs in sublime text 3. Is there a way to switch to a tab by the name of the file that's open in it? If there's a different text editor that supports this, it'll be equally helpful. Thank you!

Upvotes: 2

Views: 480

Answers (2)

Prog1020
Prog1020

Reputation: 4781

CudaText editor (free) has the command "Find tab by title" in the plugin CudaExt. Command shows menu with the filter field. To install the plugin: "Plugins / Addon manager / Install".

CudaText

Upvotes: 1

MattDMo
MattDMo

Reputation: 102942

If you open the Goto Anything popup menu by hitting CtrlP, the currently opened files will be listed at the top.

You can also select file tabs at different positions in the tab bar by using Alt#, where # is the file's position - Alt1 for the first file on the left, Alt2 for the second from left, and so on. You can use CtrlPgUp/CtrlPgDn to navigate through the tabs in order, and CtrlTab/CtrlShiftTab to navigate through the stack of recently focused tabs.

All of these options are available under the Goto → Switch File menu. Some of the keyboard shortcuts may be different on macOS.

Upvotes: 3

Related Questions