| Age | Commit message (Collapse) | Author |
|
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.
|
|
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
|
|
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.
|
|
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.
|
|
|
|
Declare `cj/custom-keymap` variable to prevent compilation warnings
related to undefined keymaps.
|
|
|
|
|
|
- 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)
|
|
|
|
|