Plugin: Refresh Table numbers

Refresh Table Numbers Plugin for Obsidian

A simple Obsidian plugin that refreshes sequence numbers in Markdown tables.

Features

  • Refresh renumber tables: Refresh sequence numbers in table rows
  • Add sequence columns: Insert a new sequence column to tables that don’t have one
  • Customizable header: Configure the header text for the sequence column
  • Alignment options: Choose between left, center, or right alignment for the sequence column

Refresh_table_numbers

Usage

  1. Open a note with Markdown tables
  2. Press Ctrl+P (or Cmd+P on macOS) to open the command palette
  3. Type “Refresh Table Numbers” and select the command

Keyboard Shortcut

You can assign a keyboard shortcut to the “Refresh Table Numbers” command in Obsidian’s keyboard settings.

Settings

The plugin has the following settings:

Column Header

  • Description: The header text for the sequence column
  • Default: Empty (no header)
  • Example values: #, No., 序号

Alignment

  • Description: Alignment for the sequence column
  • Options: Left, Center, Right
  • Default: Center

How It Works

The plugin processes tables in the following ways:

  1. Tables with empty first column: Adds or updates sequence numbers in the first column
  2. Tables with matching header: Updates sequence numbers in the column with the specified header
  3. Tables with different header: Inserts a new sequence column at the beginning with the specified header

It hasn’t been listed on the community plugin store yet because I don’t know how to upload it.