Add support for creating a new empty buffer (C-k i).

- Introduced `BufferNew` command to create and switch to a new unnamed buffer.
- Registered `BufferNew` in the command registry and updated keymap and help text.
- Implemented `cmd_buffer_new()` to handle buffer creation and switching logic.
This commit is contained in:
2025-12-06 11:40:00 -08:00
parent 5f57cf23dc
commit 3493695165
4 changed files with 19 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ HelpText::Text()
" C-k c Close current buffer\n"
" C-k d Kill to end of line\n"
" C-k e Open file (prompt)\n"
" C-k i New empty buffer\n"
" C-k f Flush kill ring\n"
" C-k g Jump to line\n"
" C-k h Show this help\n"