Code Monkey home page Code Monkey logo

zed's Introduction

ZED

A simple, leight weighed editor written in ZIG. Currently experimental mode.

Installation

$ git clone https://github.com/eislerMeinName/ZED.git
$ cd ZED
$ zig build
$ cd
$ cd /usr/bin
$ sudo ln -s /path/to/your/program/ZED zed

TODOs

  • Fix Backspace Bug
  • Implement Long Lines
  • Implement more Commands
  • Implement Highlighting for different file types
  • Clear Command Line at end
  • Get/Check mouse input
  • Drag/ Dropping files

zed's People

Contributors

eislermeinname avatar

Watchers

 avatar

zed's Issues

Crashing with SegFault

ZED crashes, if I try to write a singel "a" in every line, after reaching line 8 and pressing Enter to get to Line 9.

ERROR MSG
Segmentation fault at address 0x0
* /home/max/ZED/src/editor.zig:189:25: 0x22fc4c in insertNewLine (ZED)
* for (row.src[0..f_col]) |c| {
* ^
* /home/max/ZED/src/editor.zig:281:52: 0x2320a2 in processWriting (ZED)
* .enter => return try self.insertNewLine(),
* ^
* /home/max/ZED/src/editor.zig:376:48: 0x234caa in process (ZED)
* .writing => try self.processWriting(key),
* ^
* /home/max/ZED/src/main.zig:28:25: 0x2254d4 in main (ZED)
* try edit.process();
* ^
* /usr/lib/zig/std/start.zig:574:37: 0x224abe in posixCallMainAndExit (ZED)
* const result = root.main() catch |err| {
* ^
* /usr/lib/zig/std/start.zig:243:5: 0x2245a1 in _start (ZED)
* asm volatile (switch (native_arch) {
* ^
* ???:?:?: 0x0 in ??? (???)
* fish: Job 1, './ZED' terminated by signal SIGABRT (Abort)d

Sorry for miss alignment but, thats the way it is in my Terminal.

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.