From 8ebbedb58845d4bce91cfb1db705fb4e942ee333 Mon Sep 17 00:00:00 2001 From: chrisgrieser Date: Thu, 28 Dec 2023 14:25:53 +0000 Subject: [PATCH] chore: Auto generate docs --- doc/various-textobjs.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/various-textobjs.txt b/doc/various-textobjs.txt index cbedb20..f7a0090 100644 --- a/doc/various-textobjs.txt +++ b/doc/various-textobjs.txt @@ -1,4 +1,4 @@ -*various-textobjs.txt* For NVIM v0.8.0 Last change: 2023 December 26 +*various-textobjs.txt* For NVIM v0.8.0 Last change: 2023 December 28 ============================================================================== Table of Contents *various-textobjs-table-of-contents* @@ -133,6 +133,10 @@ LIST OF TEXT OBJECTS*various-textobjs-nvim-various-textobjs--list-of-text-object the last line in the window + lastChange Last - - g; all + non-deletion-change, + yank, or paste.[3] + mdlink markdown link like inner is only the link small il, al markdown, [title](url) title (between the []) toml @@ -170,6 +174,10 @@ LIST OF TEXT OBJECTS*various-textobjs-nvim-various-textobjs--list-of-text-object [2] This respects vim’s quoteescape option. +[3] The lastChange textobject does not work well with plugins that +manipulate paste operations such as yanky.nvim or plugins that auto-save +the buffer. + NON-GOALS *various-textobjs-nvim-various-textobjs--non-goals* nvim-treesitter-textobjects @@ -331,6 +339,8 @@ can copypaste this list and enter your own bindings.Mappings for all text object keymap({ "o", "x" }, "YOUR_MAPPING", "lua require('various-textobjs').nearEoL()") + keymap({ "o", "x" }, "YOUR_MAPPING", "lua require('various-textobjs').lastChange()") + keymap( { "o", "x" }, "YOUR_MAPPING",