Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/comfies/bed
bash only text editor
https://github.com/comfies/bed
bash command-line text-editor
Last synced: 12 days ago
JSON representation
bash only text editor
- Host: GitHub
- URL: https://github.com/comfies/bed
- Owner: comfies
- License: unlicense
- Created: 2020-07-27T07:55:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-07T21:00:28.000Z (6 months ago)
- Last Synced: 2024-08-01T22:58:18.394Z (3 months ago)
- Topics: bash, command-line, text-editor
- Language: Shell
- Homepage:
- Size: 26.4 KB
- Stars: 196
- Watchers: 7
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
||
|| ||
||/||___ ||
|| /` )____________||_/|
||/___ //_/_/_/_/_/_/||/ |
||(___)/_/_/_/_/_/_/_|| |
|| |_|_|_|_|_|_|_|| /|
|| | | | | | | | ||/||
||~~~~~~~~~~~~~~~~~~~||
|| ||Bash only text editor
[ DESCRIPTION ]
Line-based/modal visual editor. Navigate with the arrow keys and edit with
vim-like bindings. Supports basic file editing and viewing (e.g. scrolling,
paging up/down, line editing, deleting, saving/loading).[ ENVIRONMENT VARIABLES ]
BED_FILE_PROMPT Prompt shown when setting a file
BED_REFRESH_TIMEOUT How long to wait idle until redrawing
BED_ICON String to be shown in the top left of the status bar[ KEYBINDS ]
Each bind is set with an environment variable 'BED_KEY_'. Values for
the binds are the actual contents the keypress(es) would insert.Name Default Description
---- ------- -----------
PGUP pgup Move up a window's worth of lines
PGDN pgdn Move down a window's worth of lines
UP ↑ Move up a line
DOWN ↓ Move down a line
QUIT q Exit bed
FILE f Set target file
READ r Read file into the buffer
WRITE w Write buffer into the file
EDIT e Modify current line
APPEND a Append new line, move to it and begin editing
DELETE d Delete the current line
NEW n Insert new line after current