104 Commits

Author SHA1 Message Date
a9bcb0d36b Major codebase cleanup and overhaul.
+ editor removes per-buffer fields.
+ switching from internal use of 'int' to 'size_t'.
+ deleting old code
+ double checking relevancy of comments. A lot has changed in
  5 years, even more so in the past week.
+ fixing a few vestigal memory errors from the overhaul.
+ fixing search behavior
2025-11-28 15:19:47 -08:00
7b20e9ee37 Fix segfault. 2025-11-28 10:59:55 -08:00
5d581c1c2f fixups
Some checks failed
Release / Bump Homebrew formula (push) Has been cancelled
2025-11-28 03:20:33 -08:00
78e4f84f7b fix bug into goto_line
Some checks failed
Release / Bump Homebrew formula (push) Has been cancelled
2025-11-28 03:12:08 -08:00
a0d760c7d2 Checkpoint file split. 2025-11-28 02:38:54 -08:00
4db6077738 Splitting into separate files. 2025-11-28 00:29:52 -08:00
d9777c9f02 Remove erow. 2025-11-27 18:40:18 -08:00
d9c5a6696e Fix ESC+BKSP.
Some checks failed
Release / Bump Homebrew formula (push) Has been cancelled
2025-11-27 14:04:55 -08:00
5c2571eba7 C-l should update window size.
Noticed this when splitting the screen in tmux.
2025-11-27 14:00:07 -08:00
9afd030b87 fix jump bug 2025-11-27 13:15:10 -08:00
2f198e611e less-compatible paging 2025-11-27 13:08:41 -08:00
e079726ced fix check for jump
Some checks failed
Release / Bump Homebrew formula (push) Has been cancelled
2025-11-27 13:02:18 -08:00
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
c70b502006 display message if KIONREAD ioctl fails. 2025-11-26 16:16:10 -08:00
64647f77b0 performance improvements 2025-11-26 16:00:15 -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
2579bb01c8 fix C-e bug 2025-11-26 02:24:56 -08:00
a528b3fc3e universal args, more work on undo. 2025-11-26 02:12:37 -08:00
faa70af9b7 Working on undo system. 2025-11-26 01:45:56 -08:00
e1abaae6aa unindent, formatting fixups, and fix memleak
I think clion royally wrecked my formatting. Going to keep
fixing it up as I find stuff.
2025-11-26 00:26:07 -08:00
12553f301b delete region works. 2025-11-25 22:31:03 -08:00
75b19042b9 add support for reloading the current file 2025-11-25 21:20:13 -08:00
1a184b1a08 minor fixups 2025-11-25 16:32:07 -08:00
78d522ba98 quality of life improvements 2025-11-25 15:50:05 -08:00
feb6667a24 add missing function declarations 2025-11-25 15:32:17 -08:00
707362574c fixups for nixos 2025-11-25 09:18:26 -08:00
56db8bd8d2 Indent region, version bump.
Some checks failed
Release / Bump Homebrew formula (push) Has been cancelled
2025-11-25 00:47:06 -08:00
a32ef2ff53 move to first non-whitespace on next line
Some checks failed
Release / Bump Homebrew formula (push) Has been cancelled
2025-11-25 00:20:32 -08:00
0c0c3d9ce5 fix arrows in search 2025-11-25 00:12:44 -08:00
7245003769 cleanups 2025-11-24 23:05:40 -08:00
a359f4e6c4 fix Makefile CFLAGS for nix 2025-11-24 22:59:09 -08:00
3a36b35c1f support running cloc over the file 2025-11-24 22:51:10 -08:00
afcc33329f add C-k l to get lines of code 2025-11-24 22:14:51 -08:00
af3c0eddc4 set editor position 2025-11-24 21:38:04 -08:00
f8f01f7dd6 don't clear mark in kill/delete_region 2025-11-24 21:32:23 -08:00
8206ab0a40 fixed counting, I think 2025-11-24 21:21:37 -08:00
af8dcb847e working on delete-region 2025-11-24 21:14:56 -08:00
9434a34116 kill_region appears to work 2025-11-24 20:49:55 -08:00
3b2b60466c continuing region work 2025-11-24 20:27:30 -08:00
52e1f2dd8b Cleaning up; start mark/region work. 2025-11-24 20:07:15 -08:00