bed

Binary editor written in Go

Github星跟蹤圖

bed CI Status

Binary editor written in Go

Screenshot

bed command screenshot

Why?

Why not? Programming is so fun!

I learned so much while creating this editor; handling of file pointers, what the saying details should depend on abstractions mean, how to mock file system for tests in Go language, how to solve deadlock or race conditions between goroutines and many other things.

After all, creating by yourself is the best way to learn how it works.

Okay, but why?

I actually want a binary editor with Vim-like user interface, which runs in terminals, portable, fast and with window splitting feature.
I think I started coding for what I want before doing research on existing editors.

Installation

Homebrew

brew install itchyny/tap/bed

Build from source

go get github.com/itchyny/bed/cmd/bed

Features

  • Basic editing: inserting, replacing, deleting bytes
  • Support for large files
  • Window splitting
  • Partial writing
  • Text searching

Note that this software is still in its early stage of development.
Please refer to #1 for roadmap.

Commands and keyboard shortcuts

This binary editor is influenced by the Vim editor.
So if you have experience with Vim, you will notice most of basic operations of Vim are supported with this binary editor too.

  • File operations
    • :edit, :enew, :new, :vnew
  • Quit and save
    • :quit, :qall, :write, :wq, :xit, :xall, :cquit
  • Window operations
    • :wincmd [nlhkjtbpKJHL], <C-w>[nlhkjtbpKJHL]
  • Mode operations
    • i, I, a, A, R, <ESC>, v
  • Undo and redo
    • :undo, u, :redo, <C-r>
  • Searching
    • /, ?, n, N, <C-c> (to 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.

主要指標

概覽
名稱與所有者itchyny/bed
主編程語言Go
編程語言Makefile (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2018-04-09 22:06:07
推送於2024-12-01 09:01:15
最后一次提交
發布數10
最新版本名稱v0.2.8 (發布於 )
第一版名稱v0.1.0 (發布於 )
用户参与
星數1.3k
關注者數19
派生數48
提交數0.9k
已啟用問題?
問題數14
打開的問題數1
拉請求數20
打開的拉請求數0
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?