summaryrefslogtreecommitdiff
path: root/modules/custom-file-buffer.el
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Rename custom-file-buffer to custom-buffer-fileCraig Jennings2025-10-271-260/+0
| | | | | | | | | Renamed the module 'custom-file-buffer' to 'custom-buffer-file' to ensure consistency across the codebase. This change affects module imports and test files. Additionally, new module 'system-commands.el' has been created to handle system power and session management commands, removing these functionalities from 'wip.el'.
* feat:which-key: Add descriptive labels for custom keymapsCraig Jennings2025-10-271-1/+14
| | | | | | | | | | | | Enhance which-key integration by providing detailed descriptions for new key bindings across multiple modules. This improves the usability of custom keymaps by clarifying the purpose of each keybinding, making it easier for users to navigate and understand different menus and options available within the configuration. This update ensures that all custom keymaps now display a descriptive label in the which-key popup to explain their functionality, aiding users in identifying keymap purposes promptly.
* test+fix:custom-file-buffer: add tests, fix linter warningCraig Jennings2025-10-261-1/+1
| | | | | | | | | | | | | | | Add 58 unit tests for buffer/file utility functions: - cj/copy-link-to-buffer-file (12 tests) - cj/copy-path-to-buffer-file-as-kill (12 tests) - cj/copy-whole-buffer (14 tests) - cj/clear-to-bottom-of-buffer (10 tests) - cj/clear-to-top-of-buffer (10 tests) Tests cover normal cases, boundary cases (unicode, empty buffers, narrowing, read-only buffers), and error cases. Production code change: - Fix linter warning: unused variable 'err' → '_' in cj/move-buffer-and-file
* feat+test:custom-file-buffer: add tests and safety refactoringCraig Jennings2025-10-261-16/+63
| | | | | | | | | | | | | | | | | Add 106 unit tests with full coverage for move-buffer-and-file (51 tests) and rename-buffer-and-file (55 tests). Refactor both functions using interactive/non-interactive split pattern for simpler testing and reusability. Changes: - Split cj/move-buffer-and-file and cj/rename-buffer-and-file into internal implementations (cj/--*) and interactive wrappers - Add ok-if-exists parameter with user confirmation to prevent data loss - Fix bugs: return values, path expansion, string-match arg order, regex - Add test utilities for proper buffer cleanup and isolation - Document interactive/non-interactive pattern in quality-engineer.org - Document error message testing guidelines in quality-engineer.org All 106 tests passing.
* feat: undead-buffers: Add `cj/make-buffer-undead` function and testsCraig Jennings2025-10-221-4/+6
| | | | | | | | | | | | | | | Introduce a new function `cj/make-buffer-undead` that appends a buffer name to the `cj/undead-buffer-list`, preventing it from being killed. This comes along with a suite of tests to check various scenarios and edge cases for handling undead buffers. Additionally, add tests for related functions: `cj/kill-buffer-or-bury-alive`, `cj/kill-buffer-and-window`, and others to ensure they correctly manage buffers, particularly with undead-status considerations. Refactor `undead-buffer-list` naming for consistency and clarity in the module.
* feat: buffer: added cj/copy-buffer-name convenience functionCraig Jennings2025-10-211-67/+74
|
* fix: custom-file-buffer: Declare cj/custom-keymap for compilationCraig Jennings2025-10-201-1/+2
| | | | | Declare `cj/custom-keymap` variable to prevent compilation warnings related to undefined keymaps.
* improved commentaryCraig Jennings2025-10-191-2/+13
|
* fix: buffer-and-file-map: symbol vs string errorCraig Jennings2025-10-181-1/+1
|
* feat: file-buffer: Add PostScript printing with colorCraig Jennings2025-10-171-47/+80
| | | | | | | | | - cj/print-buffer-ps prints buffer or active region; prefix enables color - Auto-detect and cache spooler (lpr/lp); override via cj/print-spooler-command - Sends to default printer with no headers - Replace use-package ps-print config; add declare-function guards - Refactor keymap to defvar-keymap and keymap-set - Minor cleanup in rename function (remove unused var)
* maint: remaining custom functions grouped into separate modulesCraig Jennings2025-10-121-2/+0
|
* maint: assemble file and buffer operations into single moduleCraig Jennings2025-10-121-0/+148