Minga.Extension.Badge (minga_sdk v0.1.0)

Copy Markdown View Source

Registry for extension-owned decorations on file tree entries and tabs.

Decorate a file tree entry by path with a badge (colored dot, short text) and/or a semantic level (a 0..4 familiarity/heat bucket the frontend maps to a theme tint), or a tab by buffer PID.

File decoration options

  • :level — semantic 0..4 bucket rendered as a row tint
  • :color — badge color (RGB integer)
  • :text — short badge text
  • :animation — :static (default) or :pulse

This is a compile-time stub. At runtime, the real module in Minga's BEAM VM provides the implementation.

Summary

Types

animation()

@type animation() :: :static | :pulse

level()

@type level() :: 0..4

Functions

remove_all(extension_name)

@spec remove_all(atom()) :: :ok

remove_file(extension_name, path)

@spec remove_file(atom(), String.t()) :: :ok

remove_tab(extension_name, buffer_pid)

@spec remove_tab(atom(), pid()) :: :ok

set_file(extension_name, path, opts \\ [])

@spec set_file(atom(), String.t(), keyword()) :: :ok

set_tab(extension_name, buffer_pid, opts \\ [])

@spec set_tab(atom(), pid(), keyword()) :: :ok