|
1 |
| -*debugprint.nvim.txt* For NVIM Last change: 2024-12-16 |
| 1 | +*debugprint.nvim.txt* For NVIM Last change: 2024-12-17 |
2 | 2 |
|
3 | 3 | ==============================================================================
|
4 | 4 | Table of Contents *debugprint.nvim-table-of-contents*
|
@@ -56,6 +56,8 @@ generation. It:
|
56 | 56 | - Provides |debugprint.nvim-keymappings| for normal, insert, visual, and
|
57 | 57 | operator-pending modes. Supports dot-repeat
|
58 | 58 | <https://jovicailic.org/2018/03/vim-the-dot-command/>.
|
| 59 | +- Supports direct writing to NeoVim registers for batch insert of debugprint |
| 60 | + lines. |
59 | 61 | - Provides |debugprint.nvim-commands| to delete debugging lines added to the
|
60 | 62 | current buffer or comment/uncomment those lines.
|
61 | 63 | - Can optionally move to the inserted line (or not).
|
@@ -151,6 +153,10 @@ following table.
|
151 | 153 | Command :ResetDebugPrintsCounter Reset debug print persistent counter (only -
|
152 | 154 | for built-in counter implementation)
|
153 | 155 | -------------------------------------------------------------------------------------------------
|
| 156 | +Each of the keymappings (except for insert mode) can also be prefixed with a |
| 157 | +register, see the showcase <SHOWCASE.md#register-usage> for an example of how |
| 158 | +to use this to insert debugprint lines in batches. |
| 159 | + |
154 | 160 | The keys and commands outlined above can be specifically overridden using the
|
155 | 161 | `keymaps` and `commands` objects inside the `opts` object used above during
|
156 | 162 | configuration of debugprint. For example, if configuring via `lazy.nvim`, it
|
@@ -329,23 +335,27 @@ they are used to convert sections to ROT-13, which most folks don’t use.
|
329 | 335 | Can control whether to :+1: :x: :x: :x: :x: :x: :x:
|
330 | 336 | move to inserted lines
|
331 | 337 |
|
332 |
| - Clean up all debug :+1: :x: :+1: :x: :x: :x: :x: |
333 |
| - lines |
| 338 | + Clean up/delete all :+1: :+1: :+1: :x: :x: :x: :x: |
| 339 | + debug lines in buffer |
| 340 | + |
| 341 | + Comment/uncomment all :+1: :+1: :x: :x: :x: :x: :x: |
| 342 | + debug lines in buffer |
334 | 343 |
|
335 | 344 | Comment/uncomment all :+1: :x: :x: :x: :x: :x: :x:
|
336 |
| - debug lines |
| 345 | + debug lines in selected |
| 346 | + range |
337 | 347 |
|
338 |
| - Can put debugprint text :x: :x: :x: :+1: :x: :x: :x: |
339 |
| - into default register |
| 348 | + Can put debugprint text :+1: :x: :x: :+1: :x: :x: :x: |
| 349 | + into register |
340 | 350 |
|
341 | 351 | Extra visual emphasis :x: Flashes to status line :x: :x: :x: :x:
|
342 | 352 | of log statements highlight counter,
|
343 | 353 | lines when signcolumn,
|
344 | 354 | inserted line-highlight,
|
345 | 355 | scrollbar
|
346 | 356 |
|
347 |
| - Can insert logs in :x: :+1: :x: :x: :x: :x: :x: |
348 |
| - batches |
| 357 | + Can insert logs in :+1: (using :+1: :x: :x: :x: :x: :x: |
| 358 | + batches registers) |
349 | 359 |
|
350 | 360 | Log watcher mechanism :x: :+1: :x: :x: :x: :x: :x:
|
351 | 361 |
|
|
0 commit comments