All Projects → wfxr → Code Minimap

wfxr / Code Minimap

Licence: other
🛰 A high performance code minimap render.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Code Minimap

Teip
Select partial standard input and replace with the result of another command efficiently
Stars: ✭ 280 (+19.15%)
Mutual labels:  cli, terminal, tool
Csview
📠 A high performance csv viewer with cjk/emoji support.
Stars: ✭ 208 (-11.49%)
Mutual labels:  cli, terminal, tool
Laravel Zero
A PHP framework for console artisans
Stars: ✭ 2,821 (+1100.43%)
Mutual labels:  cli, terminal, tool
Fd
A simple, fast and user-friendly alternative to 'find'
Stars: ✭ 19,851 (+8347.23%)
Mutual labels:  cli, terminal, tool
Create Component App
Tool to generate different types of React components from the terminal. 💻
Stars: ✭ 879 (+274.04%)
Mutual labels:  cli, terminal, tool
Fsq
A tool for querying the file system with a SQL-like language.
Stars: ✭ 60 (-74.47%)
Mutual labels:  cli, terminal, tool
Pastel
A command-line tool to generate, analyze, convert and manipulate colors
Stars: ✭ 3,742 (+1492.34%)
Mutual labels:  cli, terminal, tool
Bat
A cat(1) clone with wings.
Stars: ✭ 30,833 (+13020.43%)
Mutual labels:  cli, terminal, tool
Pixterm
Draw images in your ANSI terminal with true color
Stars: ✭ 782 (+232.77%)
Mutual labels:  cli, terminal, tool
Lucid
A simple mock-application for programs that work with child processes
Stars: ✭ 45 (-80.85%)
Mutual labels:  cli, terminal, tool
Grex
A command-line tool and library for generating regular expressions from user-provided test cases
Stars: ✭ 4,847 (+1962.55%)
Mutual labels:  cli, terminal, tool
Saldl
A lightweight well-featured CLI downloader optimized for speed and early preview.
Stars: ✭ 203 (-13.62%)
Mutual labels:  cli, terminal
Sclack
The best CLI client for Slack, because everything is terrible!
Stars: ✭ 2,363 (+905.53%)
Mutual labels:  cli, terminal
.tmux
🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
Stars: ✭ 15,594 (+6535.74%)
Mutual labels:  cli, terminal
Nord Xresources
An arctic, north-bluish clean and elegant Xresources color theme.
Stars: ✭ 210 (-10.64%)
Mutual labels:  cli, terminal
Ascii
👾 ASCII Roulette :: ascii art video chat on the cli
Stars: ✭ 202 (-14.04%)
Mutual labels:  cli, terminal
Stonky
A command line dashboard for monitoring stocks
Stars: ✭ 208 (-11.49%)
Mutual labels:  cli, terminal
Ascii py
Make some ascii arts
Stars: ✭ 211 (-10.21%)
Mutual labels:  cli, terminal
Tty
Toolkit for developing sleek command line apps.
Stars: ✭ 2,329 (+891.06%)
Mutual labels:  cli, terminal
Kmdr Cli
🧠 The CLI tool for learning commands from your terminal
Stars: ✭ 218 (-7.23%)
Mutual labels:  cli, terminal

🛰 code-minimap

A high performance code minimap render.

CICD License Version Platform

This tool is for generating text minimaps at 🚀 speed. You can use it to implement IDE-like minimap plugin for a terminal text editor, minimap.vim for example.

Features

Usage

$ code-minimap src/core.rs -H 0.6 -V 0.5
⣿⣿⣿⣿⣿⠿⠛⠓⠒⠒⠂
⣉⣿⣿⣿⣟⣛⣛⣛⠒⠒⠂
⠀⠉⣿⣿⣿⣿⠭⠭⠭⠭⠤⠤⠤⠤⠤
⠀⠉⠛⠻⢿⣿⣿⣿⣿⣶⣶⣶⣒⣒⣒⣒⣒⣒⣀⣀⣀⣀⣀⣀⣀⣀⣀⡀
⠀⣀⣶⣾⣿⣿⣿⣿⣭⣭⣭⣤⣤⣤⣤⣤⠤⠤⠤⠤⠤
⣿⣿⣿⣶⡒⠒⠒⠒
⣿⣿⣶⣶⣶⣶⣶⣶⣤⣤⣤⣤⣤⣤⣤⣤⣄
⣭⣭⣭⣭⠭⠭⠭⠭⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉
⣿⣿⣿⣿⣧⣤⣤⣤⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⡀
⣛⣿⣿⣿⣟⣛⣒⣒⠂
⣀⣛⣛⣛⣛⣛⣛⣛⣛⣛⣛⣛⣛⣛⣛⣛⣋⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⣀⡀
⠀⣤⣭⣽⣿⣷⣶⣶⣶⠶⠶⠶⠶⠶⠶⠶⠶⠶⠶⠶⠶⠒⠒⠒⠒⠒
⠀⠶⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠛⠓⠒⠒⠒⠒⠒
⣉⣛⣛⣛⣛⣛⣛⣛⣛⣛⣛⣛⡛⠛⠛⠛⠛
⠒⣶⣶⣶⣶⣶⣶⣶⣶⣶⣶⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⣤⡄
⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇
⠄⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠛⠃

Run code-minimap --help to view detailed usage.

Installation

On Arch Linux

code-minimap is available in the Arch User Repository. To install it from AUR:

yay -S code-minimap

On macOS

You can install code-minimap with Homebrew:

brew tap wfxr/code-minimap
brew install code-minimap

From binaries

Prebuilt versions of code-minimap for various architectures are available at Github release page.

Note that you can try the musl version (which is statically-linked) if runs into dependency related errors.

From source

code-minimap is also published on crates.io. If you have Rust toolchains (1.40 or above) installed you can use cargo to install it from source:

cargo install --locked code-minimap

If you want the latest version, clone this repository and run cargo build --release.

Benchmark

$ hyperfine -w 10 'code-minimap src/core.rs'
Benchmark #1: code-minimap src/core.rs
  Time (mean ± σ):       0.2 ms ±   0.1 ms    [User: 0.4 ms, System: 0.3 ms]
  Range (min … max):     0.2 ms …   1.1 ms    1560 runs

79 lines, 4K size, 0.2ms.


$ fd -t f -e rs -x cat "{}" >> /tmp/all-in-one.rs
$ hyperfine -w 10 'code-minimap /tmp/all-in-one.rs'
Benchmark #1: code-minimap /tmp/all-in-one.rs
  Time (mean ± σ):     322.7 ms ±   4.5 ms    [User: 298.7 ms, System: 23.8 ms]
  Range (min … max):   318.5 ms … 334.1 ms    10 runs

1,153,225 lines, 37M size, 323ms.


$ base64 /dev/urandom | head -10000000 > huge.txt
$ hyperfine -w 1 'code-minimap huge.txt'
Benchmark #1: code-minimap huge.txt
  Time (mean ± σ):      2.941 s ±  0.034 s    [User: 2.618 s, System: 0.321 s]
  Range (min … max):    2.919 s …  3.028 s    10 runs

10,000,000 lines, 735M size, 2.9s.


Test environment:

Binary version: 0.3.0
OS: Arch Linux x86_64
Kernel: 5.8.10-arch1-1
CPU: Intel i9-9900K (16) @ 5.000GHz

Related Project

minimap.vim: Blazing fast minimap for vim.

License

code-minimap is distributed under the terms of both the MIT License and the Apache License 2.0.

See the LICENSE-APACHE and LICENSE-MIT files for license details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].