Skip to content

v1.0.0 - Initial Release

Choose a tag to compare

@atiladefreitas atiladefreitas released this 03 Dec 13:29
· 7 commits to main since this release
5e6a5f1

🎯 Initial Release - CSS Unit Converter for Neovim (v1.0.0)

What's Changed

TinyUnit launches with a robust set of features designed to streamline unit conversions directly within Neovim:

  • Introduced floating window interface for quick unit conversions
  • Implemented comprehensive unit conversion system supporting px, rem, em, mm, cm, in, and pt
  • Added visual selection support for converting existing measurements
  • Integrated clipboard management for seamless conversion and pasting
  • Established configurable base font size for relative unit calculations

Technical Details

Core Features

  • Accurate conversion formulas using standard web and print measurements
  • Dynamic window positioning based on editor dimensions
  • Efficient text selection and replacement system

Unit Conversion System

  • Pixel-perfect conversions between absolute and relative units
  • Industry-standard constants: 96px per inch, 72pt per inch
  • Precise handling of floating-point calculations with clean decimal formatting

Configuration

{
    window = {
        width = 30,         -- Width of the floating window
        height = 15,        -- Height of the floating window
        border = "rounded", -- Border style
        title = "Unit Converter",
        input_title = "Enter Value",
    },
    keymap = {
        open = "<leader>tc", -- Toggle converter window
        close = "q",         -- Close window
        convert = "<CR>",    -- Convert value
        escape = "<Esc>",    -- Close window
    },
    base_font_size = 16,    -- Base size for rem/em calculations
}

Installation

Using Lazy.nvim:

{
    "atiladefreitas/tinyunit",
    version = "v1.0.0",
    config = function()
        require("tinyunit").setup()
    end
}

Migrating From Previous Versions

This is the initial release of TinyUnit. No migration steps are necessary.

Acknowledgments

Special thanks to the Neovim community for inspiration and best practices in plugin development.