Refresh Table Numbers
unlistedby connoryang331
Refresh markdown table number rows
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
Installation
From Obsidian Community Plugin Browser (Recommended)
- Open Obsidian
- Go to Settings → Community plugins
- Disable Safe mode
- Click "Browse" and search for "Refresh Table Numbers"
- Click "Install" and then "Enable"
Manual Installation
- Download the latest release from the GitHub repository
- Extract the files to your Obsidian plugins folder:
VaultFolder/.obsidian/plugins/refresh-table-numbers/ - Restart Obsidian
- Enable the plugin in Settings → Community plugins
Usage
- Open a note with Markdown tables
- Press
Ctrl+P(orCmd+Pon macOS) to open the command palette - 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:
- Tables with empty first column: Adds or updates sequence numbers in the first column
- Tables with matching header: Updates sequence numbers in the column with the specified header
- Tables with different header: Inserts a new sequence column at the beginning with the specified header
Examples
Before
| Item | Description |
|------|-------------|
| 1 | First item |
| 3 | Third item |
| 2 | Second item |
After (with empty header)
| | Item | Description |
|---|------|-------------|
| 1 | 1 | First item |
| 2 | 3 | Third item |
| 3 | 2 | Second item |
After (with header "#")
| # | Item | Description |
|---|------|-------------|
| 1 | 1 | First item |
| 2 | 3 | Third item |
| 3 | 2 | Second item |
Table Format Issues
The plugin works best with standard Markdown tables. If you encounter issues with complex table formats, please report them on the GitHub repository.
Contributing
Contributions are welcome! If you have ideas for improvements or bug fixes, please:
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
License
This plugin is licensed under the MIT License. See the LICENSE file for details.
Support
If you have any questions or issues, please open an issue on the GitHub repository or contact the developer.
Note: This plugin is still in development. Please report any bugs or feature requests to help improve it!
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.