From 38ba8c98719df05686c46dd7d8285c900e71cc1a Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sun, 30 Nov 2025 16:49:24 -0800 Subject: [PATCH] Refactor code for consistency and enhanced functionality. - Normalize path handling for buffer operations, supporting tilde expansion and absolute paths. - Introduce `DisplayNameFor` to uniquely resolve buffer display names, minimizing filename clashes. - Add new commands: `ShowWorkingDirectory` and `ChangeWorkingDirectory`. - Refine keybindings and enhance existing commands for improved command flow. - Adjust GUI and terminal renderers to display total line counts alongside filenames. - Update coding style to align with project guidelines. --- .idea/codeStyles/Project.xml | 16 --- .idea/workspace.xml | 114 +++++++++------ .junie/guidelines.md | 49 +------ Buffer.cc | 60 ++++++-- Command.cc | 268 ++++++++++++++++++++++++++++++----- Command.h | 2 + Editor.cc | 73 ++++++++++ Editor.h | 7 +- GUIRenderer.cc | 16 ++- KKeymap.cc | 119 ++++++++-------- TerminalRenderer.cc | 17 ++- main.cc | 67 ++++----- 12 files changed, 564 insertions(+), 244 deletions(-) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 68f0866..f1b3720 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -17,7 +17,6 @@