Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

smartstatus

A rich, icon‑packed status bar plugin for the micro terminal editor.

Version Nerd Fonts

✨ Features

  • Filetype icons — language‑aware icons for 30+ filetypes
  • Git integration — branch name with an icon that changes based on your repo's dirty state, plus added / modified / deleted counts
  • Battery indicator — live level with charging state, cached to stay fast (Linux only)
  • Shell detection — auto‑detects bash, zsh, fish, nu, ksh, and more
  • Modified / readonly indicator — ● when unsaved, 󰌾 when read‑only
  • Selection info — shows [NL] lines or [NC] chars while text is selected
  • Clock — always‑visible HH:MM

📋 Requirements

Requirement Notes
micro (latest) Older versions are not supported. Grab the latest from micro-editor.github.io or your package manager.
Nerd Font v3 Any v3 Nerd Font installed in your terminal — nerdfonts.com
git Optional — git section simply won't appear without it

📦 Installation

Via micro's plugin manager (once published)

micro -plugin install smartstatus

Manual

git clone https://github.com/Sycorlax/smartstatus.git ~/.config/micro/plug/smartstatus

⚙️ Setup

Add this to your ~/.config/micro/settings.json:

{
    "statusformatr": "$(smartstatus.smartInfo)",
    "statusline": true
}

The left side (shell → filetype → filename) is managed automatically by the plugin.
The right side (git → cursor → battery → clock) is placed via statusformatr.

🖥️ What it looks like

smartstatus screenshot

📄 Supported filetypes

lua python c cpp java javascript typescript rust go html css json yaml toml markdown bash sh zsh fish dockerfile xml sql vim diff asm make conf ini txt

🔧 Customization

Edit smartstatus.lua to tweak:

  • Battery path (change BAT0 / BAT1 in getBattery())
  • Time format (modify os.date("%H:%M") in smartInfo())
  • Icons or filetype mappings (adjust the tables at the top of the file)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages