https://github.com/ignlg/lazy_hacker_editor
Lazy Hacker Editor. Because nothing beats the eficiency of writing code already written. This is that kind of editor. Just for real hackers.
https://github.com/ignlg/lazy_hacker_editor
command-line command-line-tool editor fun funny hacker lazy ncurses prank rust
Last synced: about 1 year ago
JSON representation
Lazy Hacker Editor. Because nothing beats the eficiency of writing code already written. This is that kind of editor. Just for real hackers.
- Host: GitHub
- URL: https://github.com/ignlg/lazy_hacker_editor
- Owner: ignlg
- License: gpl-3.0
- Created: 2020-03-28T17:41:34.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-28T10:24:39.000Z (over 1 year ago)
- Last Synced: 2025-03-27T09:40:15.162Z (about 1 year ago)
- Topics: command-line, command-line-tool, editor, fun, funny, hacker, lazy, ncurses, prank, rust
- Language: Rust
- Homepage:
- Size: 58.6 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Lazy Hacker Editor
[](https://ci.appveyor.com/project/ignlg/lazy-hacker-editor/branch/master)
Fake code editor that writes real code (hopefully yours, probably from someone else) no matter which key you stroke.
> Because nothing beats the eficiency of writing code already written.


## Installation
### From release files
1. Download a release gzip file from https://github.com/ignlg/lazy_hacker_editor/releases .
2. Extract it to install the binary on any folder of your `$PATH`, for example: `tar xzf lhe-macos-v0.6.1.tar.gz -C ~/bin`.
3. Done! Run `lhe` to try it.
### From source
1. Clone the project with `git clone https://github.com/ignlg/lazy_hacker_editor`.
2. Go into the folder: `cd lazy_hacker_editor`.
3. Run `cargo install --path .` and wait for it.
4. Done! Run `lhe` to try it.
## Usage
```
USAGE:
lhe [FLAGS] [OPTIONS] ...
FLAGS:
-h, --help
Prints help information
-l, --highlight
Highlight some common code characters
--lps
Activate line per keypress, ignores -c, --cps
-V, --version
Prints version information
OPTIONS:
--color
Text color (0-7): [default: 2]
-c, --cps
Set chars per keypress [default: 1]
--hcolor
Highlight color (0-7): [default: 7]
ARGS:
...
Files to process
```
**Example**
```
lhe -l -c 5 src/main.rs
```
Exit with `^C`. I hope you know what this means, _"""hacker"""._
## Changelog
### v0.1.0
- [x] read file
- [x] write a char on key down
- [x] ignore ESC
### v0.5.0
- [x] read from multiple files
- [x] detect term resize
- [x] opt `-V, --version`
- [x] opt `-h, --help`
- [x] opt chars per stroke `-c, --cps N`
- [x] opt color `--color`
- [x] rudimentary code highlight (common symbols)
- [x] opt highlight `-l, --highlight`
- [x] opt highlight color `--hcolor`
### v0.6.0
- [x] opt use line per stroke: `--lps`
- [x] control read errors
- [x] control Ctrl+C clean exit
### v0.6.1
- [x] fix build
## Backlog
- [x] add gif to README
- [ ] add a logo
- [ ] get rid of ncurses?
## License
Lazy Hacker Editor
Copyright (C) 2020 Ignacio Lago
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .