Skip to content

This is an Obsidian plugin which can quickly switch tabs in various ways.

License

Notifications You must be signed in to change notification settings

namikaze-40p/obsidian-tab-selector

Repository files navigation

Obsidian Tab Selector

This is an Obsidian plugin which can quickly switch tabs in various ways.

How to use

Go to previous/next tab - Switch tab by general way in like other apps

  1. Set up the Go to previous/next tab command in the plugin's settings.
    1. In the default configuration, each command are as follows.
      1. Tab Selector: Go to previous tab: ^Tab or Ctrl + Tab
      2. Tab Selector: Go to next tab: ^⇧Tab or Ctrl + Shift + Tab
    2. Don't use shortcut keys reserved by the OS. OS shortcut keys take precedence and don't work properly.
      1. In case MacOS, ⌘Tab and ⌥Tab etc… can't use.
  2. Set hotkeys to match the command settings implemented above.
  3. From then on you can switch tabs using hotkeys.

demo

Open tab selector - Switch tab with keeping the keyboard home position on the modal

  1. Call the modal in one of the following ways.
    1. Using hotkey. (recommend)
    2. Click the icon(Open tab selector) from the Ribbon.
    3. Selecting Tab Selector: Open tab selector from the command palette.
  2. Select the tab you want to switch to in one of the following ways.
    1. Press the one-letter key displayed to the left of the tab name. (recommend)
    2. Move the cursor with arrow keys and select the tab.
    3. Click on the tab name with the mouse cursor.
  3. If you want to close a tab, you can do in one of the following ways.
    1. Hold down the Control key, press the one-letter key displayed to the left of the tab name.
    2. Move the cursor with arrow keys and press Backspace or Delete key.
    3. Click on the X button with the mouse cursor.

demo

Show tab shortcuts - Switch tab with keeping the keyboard home position without the modal

Note

This command is available on PC or tablet devices. It’s not available on smartphones.

  1. Call the modal in one of the following ways.
    1. Using hotkey. (recommend)
    2. Selecting Tab Selector: Show tab shortcuts from the command palette.
  2. Press the one-letter key displayed under the tab name.

demo

Search tabs - Search and open tab

  1. Call the modal in one of the following ways.
    1. Using hotkey. (recommend)
    2. Selecting Tab Selector: Search tabs from the command palette.
  2. Enter keywords to find a tab.
  3. Select the tab you wish to open in one of the following ways.
    1. Move the cursor with arrow keys and select the item.
    2. Click on the item name with the mouse cursor.

demo

Installation

Install the plugin in one of the following ways.

Community Plugins browser

This plugin is available in Obsidian's Community Plugins Browser.

  1. Launch the Obsidian application.
  2. Open the Settings, select Community Plugins, and select Browse.
  3. Search for Tab Selector, and click it.
  4. Click the Install.

Manually

You can also install this plugin manually.

  1. Access to Releases, and download the 3 files(main.js, manifest.json, style.css) of latest version.
  2. Create a new folder named tab-selector.
  3. Move download the 3 files to the tab-selector folder.
  4. Place the folder in your .obsidian/plugins directory. If you don't know where that is, you can go to Community Plugins inside Obsidian. There is a folder icon on the right of Installed Plugins. Click that and it opens your plugins folder.
  5. Reload plugins. (the easiest way is just restarting Obsidian)
  6. Activate the plugin as normal.

BRAT Plugin Manager

You can also install this plugin using the BRAT plugin.

  1. Install BRAT using the Obsidian Plugin manager
  2. In your Obsidian settings on the left, select BRAT in the list.
  3. In BRAT settings, click the button Add Beta Plugin
  4. In the textbox, supply the URL to this repo => https://github.com/namikaze-40p/obsidian-tab-selector
  5. Once Tab Selector is installed, activate it in your Obsidian settings.

About

This is an Obsidian plugin which can quickly switch tabs in various ways.

Resources

License

Stars

Watchers

Forks

Packages

No packages published