An open API service indexing awesome lists of open source software.

https://github.com/gurgeous/vectro

rpn calculator for your terminal
https://github.com/gurgeous/vectro

Last synced: 3 months ago
JSON representation

rpn calculator for your terminal

Awesome Lists containing this project

README

          

# Vectro
The rpn calculator for your terminal.

![logo](vectro.png)

## Screenshot

![demo](demo.gif)

## What is this?

![ci](https://github.com/gurgeous/vectro/actions/workflows/ci.yml/badge.svg)

Vectro is an [rpn](https://en.wikipedia.org/wiki/Reverse_Polish_notation) calculator for your terminal. Many people consider rpn easier and faster than traditional calculators. Vectro is written in Go using the excellent [Bubble Tea](https://github.com/charmbracelet/bubbletea) package and distributed as a single executable.

## Installation

On MacOS use brew:

```
$ brew install gurgeous/tap/vectro
```

For Linux and Windows, see the [latest release on github](https://github.com/gurgeous/vectro/releases/latest). You'll find MacOS builds in there too, but they are difficult to run since they are unsigned.

Then run vectro like this:

```
$ vectro
```

## Features

- Responsive, works with many terminal sizes
- Stack is saved across sessions
- Niceties like Paste (yank) and Undo, error messages, etc.

## Future Work
- advanced ops (autocomplete, shift-ctrl-p)
- animate when stack changes
- theming

## Operators Not Yet Implemented
- abs / ln / square
- deg/rad / cos/acos / sin/asin / tan/atan
- lcm/gcd / prime (prime factorization)
- floor/ceil/round
- bin/oct/hex / << >> & | ^ ~
- rgb / hsl / oklch

## Special Thankss

These open source projects helped make Vectro possible. Thanks everybody!

- [Go Releaser](https://goreleaser.com/), [Lip Gloss](https://github.com/charmbracelet/lipgloss) & [VHS](https://github.com/charmbracelet/vhs), [decimal](https://github.com/shopspring/decimal), [just](https://github.com/casey/just).