Advanced Line Numbers

by anamaydev
5
4
3
2
1
Score: 35/100

Description

This plugin has not been manually reviewed by Obsidian staff. Show absolute, relative, and hybrid line numbers in markdown files, with cursor position (line and column) in the status bar.

Reviews

No reviews yet.

Stats

stars
212
downloads
0
forks
1
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Advanced Line Numbers

An Obsidian plugin that enhances the editor with customizable line numbers and active line highlighting.

Features

Line Number Modes

  • Absolute - Standard line numbers (1, 2, 3...)
  • Relative - Shows distance from current line (useful for vim-style navigation)
  • Hybrid - Combines both: absolute number on current line, relative on others

Active Line Highlighting

  • Highlight the active line in the editor
  • Highlight the active line in the gutter
  • Highlight the active line number with a distinct color

Status Bar

  • Displays cursor's position (Ln X, Col Y)

Screenshots

Line Number Modes

Hybrid Hybrid Mode Relative Relative Mode Absolute Absolute Mode

Cursor's Position In Status Bar

Cursor's Position

Installation

From Community Plugins

  1. Open Settings → Community Plugins
  2. Search for "Advanced Line Numbers"
  3. Click Install, then Enable

Manual Installation

  1. Download main.js, styles.css, and manifest.json from the latest release
  2. Create folder: VaultFolder/.obsidian/plugins/advanced-line-numbers/
  3. Copy the downloaded files into the folder
  4. Reload Obsidian and enable the plugin in Settings → Community Plugins

Settings

Setting Description
Line Number Mode Choose between Absolute, Relative, or Hybrid
Display Cursor's Position Toggle on and off

Development

# Install dependencies
npm install

# Build for development (watch mode)
npm run dev

# Build for production
npm run build

# Lint code
npm run lint

Support

License

MIT