19 Commits

Author SHA1 Message Date
bd68b809cd various qol improvements
Some checks failed
Release / Bump Homebrew formula (push) Has been cancelled
+ C-u works with C-f and C-b (and their delete counterparts).
+ Opening files now allows adding a line number after to jump to.
2025-11-27 12:48:10 -08:00
f200a7bfcd rename editor type. 2025-11-26 18:39:06 -08:00
58daeac6ad typedef struct abuf -> abuf 2025-11-26 18:38:32 -08:00
3ef6bab265 typedef struct erow -> erow 2025-11-26 18:35:51 -08:00
3800751bcf move var decl to top of function. 2025-11-26 17:57:59 -08:00
87272a669b remove debug log
just redirect stderr to a logfile like a normal person
2025-11-26 17:09:34 -08:00
b77748f7c0 add first post about ke to the readme 2025-11-26 16:47:58 -08:00
c70b502006 display message if KIONREAD ioctl fails. 2025-11-26 16:16:10 -08:00
e14d620887 remove comments, not needed 2025-11-26 16:14:25 -08:00
db38266849 bump version
Some checks failed
Release / Bump Homebrew formula (push) Has been cancelled
2025-11-26 16:09:43 -08:00
6d1b7f8e56 keep default.nix in sync 2025-11-26 16:08:38 -08:00
64647f77b0 performance improvements 2025-11-26 16:00:15 -08:00
2c3b2ae0f0 bump version
Some checks failed
Release / Bump Homebrew formula (push) Has been cancelled
2025-11-26 15:25:37 -08:00
a605e47458 kbhit makes it go a lot faster 2025-11-26 15:25:32 -08:00
40ee1e8d7b kill unused declaration. 2025-11-26 13:46:48 -08:00
4464159301 remove all undo stuff to start over 2025-11-26 13:45:44 -08:00
dc9fb58a41 remove all undo stuff to start over 2025-11-26 13:40:08 -08:00
bbd682cec7 Remove and start over with some of the undo stuff. 2025-11-26 08:25:41 -08:00
ace25c5c65 more undo work 2025-11-26 03:00:49 -08:00
4 changed files with 241 additions and 590 deletions

View File

@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
project(ke C) # Specify C language explicitly
set(CMAKE_C_STANDARD 99)
set(KE_VERSION "1.5.0")
set(KE_VERSION "1.5.2")
set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Wshadow -Werror -std=c99 -g")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_DEFAULT_SOURCE -D_XOPEN_SOURCE")

View File

@@ -19,3 +19,6 @@ Released under an ISC license.
Started by following along with kilo:
https://viewsourcecode.org/snaptoken/kilo/
E.g., in the devlogs
https://log.wntrmute.dev/2020/02/20200207

View File

@@ -5,9 +5,15 @@
installShellFiles,
...
}:
let
cmakeContent = builtins.readFile ./CMakeLists.txt;
cmakeLines = lib.splitString "\n" cmakeContent;
versionLine = lib.findFirst (l: builtins.match ".*set\\(KE_VERSION \".+\"\\).*" l != null) (throw "KE_VERSION not found in CMakeLists.txt") cmakeLines;
version = builtins.head (builtins.match ".*set\\(KE_VERSION \"(.+)\"\\).*" versionLine);
in
stdenv.mkDerivation {
pname = "ke";
version = "1.5.0";
inherit version;
src = lib.cleanSource ./.;

818
main.c

File diff suppressed because it is too large Load Diff