Skip to content

ignlg/lazy_hacker_editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazy Hacker Editor

Build status

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.

Lazy Hacker Lazy Editor

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] <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""".

Changelog

v0.1.0

  • read file
  • write a char on key down
  • ignore ESC

v0.5.0

  • 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

v0.6.0

  • opt use line per stroke: --lps
  • control read errors
  • control Ctrl+C clean exit

v0.6.1

  • fix build

Backlog

  • 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 https://www.gnu.org/licenses/.

About

Lazy Hacker Editor. Because nothing beats the eficiency of writing code already written. This is that kind of editor. Just for real hackers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages