Giter VIP home page Giter VIP logo

ego's Introduction

EGO

A bare bones cross-platform terminal based text editor written in Go
THIS PROGECT HAS BEEN SUPERSEDED BY VICI

Screenshot

IMAGE ALT TEXT HERE

Features

  • modes (VIEW/EDIT)
  • display buffer & status bar
  • inserting characters
  • deleting characters
  • concatenating lines
  • inserting lines
  • deleting lines
  • navigation
  • copy/paste
  • undo/redo
  • syntax highlighting
  • search/replace(GNUsed as plugin)

Key bindigns

   ESC: enter the 'VIEW' mode
     e: enter the 'EDIT' mode
     q: quit from the text editor
     w: write file to disk
     a: cat current line to previous one
     d: cut current line to copy buffer
     c: copy current line to copy buffer
     p: paste line from copy buffer
     s: push text buffer to undo buffer
     l: pull text buffer from undo buffer
     h: toggle syntax highlighting
     x: execute GNUsed command
   0-9: navigate throughout the file
Arrows: move cursor
PgDown: scroll 1/4 of the screen downwards
  PgUp: scroll 1/4 of the screen upwards
  HOME: move cursor to the begining of the current line
   END: move cursor to the end of the current line

GNUsed cheat sheet

Search:

/hello/=              # puts cursor on the line where first occurrence of "hello" is found
10,20 {/hello/=}      # same as above but within lines 10-20
10,$ {/hello/=}       # same as above but from line 10 to the end of document


Replace:

s/hello/hi/g          # replace "hello" with "hi" in the entire document
10 s/hello/hi/        # same but only on line 10
10,20 s/^/    /       # set indentation 4 spaces within the lines 10-20
s/ *$//g              # remove trailing spaces entire document

Move:

1,10d                 # delete lines 1-10
1,10H; 11g            # copy lines 1-10 and paste to line 11
1,10H; 11g 1,10d      # cut lines 1-10 and paste to line 11

NOTE: to use GNUsed on Windows you need first to install it and make
      sure 'sed.exe' utility is available system wide, you can find
      the windows installer file in this repo in a folder 'sed'.

Usage

$ ego                 # opens editor with 'out.txt' source file name
$ ego my_file.txt     # opens editor with 'my_file.txt' if it exists,
                      # otherwise sets source filename to 'my_file.txt'

Video Tutorial Series

IMAGE ALT TEXT HERE

Latest Release

https://github.com/maksimKorzh/ego/releases/

Build from sources

cd src
go mod init ego
go build -o ego e.go

Donations

# PayPal                                                                        
paypal_email = '"[email protected]"'

# Patreon
patreon_url = '"https://www.patreon.com/code_monkey_king"'

# Features
useful_str = 'Did you like the project? (Yes/No): '
instructive_str = 'Did you enjoy following YouTube series? (Yes/No) '

# Ask user feedback
project_is_useful = True if input(useful_str) == 'Yes' else False

# Ask viewer feedback
series_is_instructive = True if input(instructive_str) == 'Yes' else False

# Ask for donations
if project_is_useful or series_is_instructive:
  print("\nYou can support me via:" +
        "\n  PayPal", paypal_email,
        "\n  Patreon", patreon_url)
else:
  print("\nThank you for passing by!")
  print("\nPlease consider subscribing to my YouTube channel:\n" +
        "https://www.youtube.com/@monkey_see_monkey_do")

ego's People

Contributors

maksimkorzh avatar

Stargazers

Straughter "BatmanOsama" Guthrie avatar  avatar  avatar  avatar jd4codes avatar  avatar  avatar  avatar Kevin Hernandez avatar Walid Ismail avatar Billy Zaelani Malik avatar RetroTechResto avatar Ben Hunt avatar Rimuh avatar Apinant.u avatar  avatar Jarrett avatar  avatar Yauheni Lantsau avatar

Watchers

 avatar

Forkers

rggh pduquenoy

ego's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.