summaryrefslogtreecommitdiff
path: root/modules/custom-file-buffer.el
AgeCommit message (Collapse)Author
46 hoursfeat:which-key: Add descriptive labels for custom keymapsCraig Jennings
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.
3 days test+fix:custom-file-buffer: add tests, fix linter warningCraig Jennings
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
3 daysfeat+test:custom-file-buffer: add tests and safety refactoringCraig Jennings
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.
7 daysfeat: undead-buffers: Add `cj/make-buffer-undead` function and testsCraig Jennings
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.
8 daysfeat: buffer: added cj/copy-buffer-name convenience functionCraig Jennings
9 daysfix: custom-file-buffer: Declare cj/custom-keymap for compilationCraig Jennings
Declare `cj/custom-keymap` variable to prevent compilation warnings related to undefined keymaps.
10 daysimproved commentaryCraig Jennings
12 daysfix: buffer-and-file-map: symbol vs string errorCraig Jennings
12 daysfeat: file-buffer: Add PostScript printing with colorCraig Jennings
- 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)
2025-10-12maint: remaining custom functions grouped into separate modulesCraig Jennings
2025-10-12maint: assemble file and buffer operations into single moduleCraig Jennings