Restore Tab Key

by jerrymk
5
4
3
2
1
Score: 62/100

Description

Category: Note Enhancements

The Restore Tab Key plugin is a game-changer for Obsidian users who struggle with the default tab key behavior. This plugin allows you to insert tabs and spaces as expected, just like in any IDE. Say goodbye to cutting and pasting to get the right indentation! With this plugin, you can easily indent code blocks or text using the tab key, and even customize the settings to your liking. The plugin also offers a "hard space" feature that allows you to insert wide blanks inside text. Whether you're working on code or writing in Markdown, this plugin is a must-have for anyone who wants to streamline their workflow and make Obsidian feel more like a native IDE.

Reviews

No reviews yet.

Stats

73
stars
15,253
downloads
4
forks
1,176
days
417
days
417
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
20
total issues
1
open issues
19
closed issues
17
commits

Latest Version

a year ago

Changelog

Fixed lists environment only works on list-1 (level 1 lists) and not indented lists (level 2 lists, list-2, and so on)

README file from

Github

Restore Tab Key Plugin for Obsidian

Restore tab key behaviour: tab key inserts a tab, the way it should be.

To summarize, this plugin can make code blocks, or anywhere, behave like any IDE as you would expect, everything regarding tabs and indentation, which Obsidian does terribly.

By default, there is no way to insert a tab character in Obsidian without cutting and pasting, can you believe that?

Sure, tabs are pretty useless in Markdown, however, that can't be said in Markdown code blocks, the tab key behavior is just absolutely unreasonable, and this plugin should solve that.

Check out the forum thread that inspired this plugin: Feature Request: Option to disable tab to indent | Obsidian Forum

Restore Tab Key

Before

before

After

after


Braces Auto Indent

Before

before_braces

After

after_braces


Settings

Quick configuration for just code

  • Turn on Only activate in code blocks
  • Decide to use space or tabs by setting Use spaces instead of tab

ALL the settings image image


Indent using tabs

Select some text and press tab to indent, like just about any IDE.
The indent action is completely unaltered (native indentMore command), you can change "Indent using tabs" and "Tab indent size" in Editor settings to change that behavior.


Hard space

Hard spaces (U+00A0) as tab allows you to insert wide blanks inside text. Without using hard spaces, repeated spaces (and tabs) will be rendered as one single space. You can toggle whether to use hard space instead of regular spaces.
You can insert hard spaces in the beginning of a line to act like indentation. You will have to move the cursor to the beginning and press tab to insert them though. Indenting (select text and press tab) will not insert hard spaces.

live preview/source view: (Yes, with hard spaces as indentation it still turns into a code block. Aaargh!)

after render (reading view):


Also comes in Chinese

image

设定页可选择显示语言,部分翻译内容和中国大陆在地化参考了 ACodeHX 的 fork。

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
New Tab Default Page
4 years ago by pseudometa
Obsidian plugin to open a note of your choice when creating a new tab, like in the browser.
External Link Opener
3 years ago by zorazrr
Obsidian plugin to open external links in modals or tabs
CodeBlock Tabs
3 years ago by Jemin Mau
Create tab group for contiguous codeblocks.
Mononote
3 years ago by Carlo Zottmann
An Obsidian plugin that ensures each note occupies only one tab. If a note is already open, its existing tab will be focussed instead of opening the same file in the current tab.
HTML Tabs
3 years ago by Patrick Tournet
Obsidian plugin allowing the creation and rendering of Tabs and tab panels in your notes.
Minitabs
2 years ago by ssjy1919
Obsidian tabs
Tab Shifter
2 years ago by Joshua Rozner
Tab Selector
2 years ago by namikaze-40p
This is an Obsidian plugin which can quickly switch tabs in various ways.
New Tab +
2 years ago by Raphaël Le Carval
Allow to open markdown files, graph and canvas in new tab as the default behavior.
Tabs
2 years ago by Huajin
Shrink pinned tabs
2 years ago by Nicolas Lœuillet
Obsidian plugin to shrink pinned tabs in order to save screen space
Vertical Tabs
2 years ago by oxdc
An Obsidian plugin that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.
Tab Switcher
5 years ago by Vinzent & phibr0
Tab Switcher - Obsidian Plugin
Tab Limiter
a year ago by Henry Gustafson
Limits the number of tabs that can be opened in Obsidian
Autofit Tabs
a year ago by Bradley Wyatt
Obsidian Plugin that automatically adjusts tab header widths in real-time to perfectly fit each tab's title content while maintaining a clean, seamless interface that prevents awkward text truncation and ensures optimal readability of your document titles.
Tab Group Arrangement
a year ago by situ2001
Arrange the tab groups of Obsidian in a more flexible way
Wheel Tab Switcher
a year ago by 22-2
Switch between Obsidian Tabs using your mouse wheel when hovering over tab headers.
Smooth Navigator
a year ago by Michael Schrauzer
Smoothly cycle through open files and splits in Obsidian via the keyboard.
Tab File Path
8 months ago by John Burnett
Mobile Sidebar Notes
6 months ago by Chris Kephart
Open notes & new tabs in the sidebar on the Obsidian mobile app.
Disable Tabs
4 months ago by David V. Kimball
Disables having more than one tab open at a time Obsidian.