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.
- Download a release gzip file from https://github.com/ignlg/lazy_hacker_editor/releases .
- 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
. - Done! Run
lhe
to try it.
- Clone the project with
git clone https://github.com/ignlg/lazy_hacker_editor
. - Go into the folder:
cd lazy_hacker_editor
. - Run
cargo install --path .
and wait for it. - Done! Run
lhe
to try it.
USAGE:
lhe [FLAGS] [OPTIONS] <FILE>...
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 <color>
Text color (0-7): [default: 2]
-c, --cps <cps>
Set chars per keypress [default: 1]
--hcolor <hcolor>
Highlight color (0-7): [default: 7]
ARGS:
<FILE>...
Files to process
Example
lhe -l -c 5 src/main.rs
Exit with ^C
. I hope you know what this means, """hacker""".
- read file
- write a char on key down
- ignore ESC
- read from multiple files
- detect term resize
- opt
-V, --version
- opt
-h, --help
- opt chars per stroke
-c, --cps N
- opt color
--color
- rudimentary code highlight (common symbols)
- opt highlight
-l, --highlight
- opt highlight color
--hcolor
- opt use line per stroke:
--lps
- control read errors
- control Ctrl+C clean exit
- fix build
- add gif to README
- add a logo
- get rid of ncurses?
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 https://www.gnu.org/licenses/.