Voltar ao ranking

itchyny/bed

Go

Binary editor written in Go

golangbinaryhex-editor
Crescimento de estrelas
Estrelas
1.3k
Forks
51
Crescimento semanal
Issues
0
8001k1.2k
abr. de 2018jan. de 2021out. de 2023jul. de 2026
ArtefatosGo Modulesgo get github.com/itchyny/bed
README

bed

CI Status Go Report Card MIT License release pkg.go.dev

Binary editor written in Go

Screenshot

bed command screenshot

Motivation

I wanted to create a binary editor with Vim-like user interface, which runs in terminals, fast, and is portable. I have always been interested in various binary formats and I wanted to create my own editor to handle them. I also wanted to learn how a binary editor can handle large files and allow users to edit them interactively.

While creating this binary editor, I leaned a lot about programming in Go language. I spent a lot of time writing the core logic of buffer implementation of the editor. It was a great learning experience for me and a lot of fun.

Installation

Homebrew

brew install bed

Build from source

go install github.com/itchyny/bed/cmd/bed@latest

Features

  • Basic byte editing
  • Large file support
  • Command line interface
  • Window splitting
  • Partial writing
  • Text searching
  • Undo and redo

Commands and keyboard shortcuts

This binary editor is influenced by the Vim editor.

  • File operations
    • :edit, :enew, :new, :vnew, :only
  • Current working directory
    • :cd, :chdir, :pwd
  • Quit and save
    • :quit, ZQ, :qall, :write, :wq, ZZ, :xit, :xall, :cquit
  • Window operations
    • :wincmd [nohjkltbpHJKL], <C-w>[nohjkltbpHJKL]
  • Cursor motions
    • h, j, k, l, w, b, ^, 0, $, <C-[fb]>, <C-[du]>, <C-[ey]>, <C-[np]>, G, gg, :{count}, :{count}goto, :{count}%, H, M, L, zt, zz, z., zb, z-, <TAB> (toggle focus between hex and text views)
  • Mode operations
    • i, I, a, A, v, r, R, <ESC>
  • Inspect and edit
    • gb (binary), gd (decimal), x (delete), X (delete backward), d (delete selection), y (copy selection), p, P (paste), < (left shift), > (right shift), <C-a> (increment), <C-x> (decrement)
  • Undo and redo
    • :undo, u, :redo, <C-r>
  • Search
    • /, ?, n, N, <C-c> (abort)

Bug Tracker

Report bug at Issues・itchyny/bed - GitHub.

Author

itchyny (https://github.com/itchyny)

License

This software is released under the MIT License, see LICENSE.

Repositórios relacionados
practical-tutorials/project-based-learning

Curated list of project-based tutorials

PythonPyPIMIT Licensetutorialproject
274.4k35.4k
avelino/awesome-go

A curated list of awesome Go frameworks, libraries and software

GoGo ModulesMIT Licensegolanggolang-library
awesome-go.com
178.7k13.4k
ollama/ollama

Get up and running with Kimi-K2.6, GLM-5.2, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

GoGo ModulesMIT Licensellamallm
ollama.com
176.5k17k
golang/go

The Go programming language

GoGo ModulesBSD 3-Clause "New" or "Revised" Licenseprogramming-languagelanguage
go.dev
135.3k19.3k
caddyserver/caddy

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

GoGo ModulesApache License 2.0goweb-server
caddyserver.com
74.2k4.8k
unionlabs/union

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

Rustcrates.ioApache License 2.0blockchaincosmos
union.build
73.9k3.9k
moby/moby

The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems

GoGo ModulesApache License 2.0dockercontainers
mobyproject.org
71.9k19k
nektos/act

Run your GitHub Actions locally 🚀

GoGo ModulesMIT Licensegithub-actionsgolang
nektosact.com
71.1k2k
traefik/traefik

The Cloud Native Application Proxy

GoGo ModulesMIT Licensemicroservicedocker
traefik.io
64.1k6.1k
santifer/career-ops

Open-source AI job search: scan job portals, score listings A-F, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Gemini, Codex, OpenCode…)

JavaScriptnpmMIT Licenseai-agentanthropic
career-ops.org
60.8k12k
pocketbase/pocketbase

Open Source realtime backend in 1 file

GoGo ModulesMIT Licenseauthenticationbackend
pocketbase.io
60.1k3.6k
rclone/rclone

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

GoGo ModulesMIT Licensegolanggo
rclone.org
58.5k5.2k