From 805bc499ee8bc1618ced185107923d6c47fadc1c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 Oct 2023 10:01:24 +0530 Subject: [PATCH] Fix documentation of word_and_line_from_point --- docs/changelog.rst | 5 +++++ kitty/options/definition.py | 14 ++++---------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index b49ba919e..122164140 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -43,6 +43,11 @@ The :doc:`ssh kitten ` is redesigned with powerful new features: Detailed list of changes ------------------------------------- +0.30.2 [future] +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- A new mouse action ``mouse_selection word_and_line_from_point`` to select the current word under the mouse cursor and extend to end of line (:pull:`6663`) + 0.30.1 [2023-10-05] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/options/definition.py b/kitty/options/definition.py index f95d02fa7..2cb8667dc 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -720,11 +720,8 @@ mma('Select a line', mma('Select line from point', 'select_line_from_point ctrl+alt+left triplepress ungrabbed mouse_selection line_from_point', long_text='Select from the clicked point to the end of the line.' - ) - -mma('Select a word at the point, together with the rest of the line', - 'select_word_and_line_from_point ctrl+alt+left triplepress ungrabbed mouse_selection word_and_line_from_point', - long_text='Select the word under the clicked point, as well as through the end of the line.' + ' If you would like to select the word at the point and then extend to the rest of the line,' + ' change line_from_point to word_and_line_from_point.' ) mma('Extend the current selection', @@ -762,11 +759,8 @@ mma('Select a line even when grabbed', mma('Select line from point even when grabbed', 'select_line_from_point_grabbed ctrl+shift+alt+left triplepress ungrabbed,grabbed mouse_selection line_from_point', long_text='Select from the clicked point to the end of the line even when grabbed.' - ) - -mma('Select line from point even when grabbed', - 'select_word_and_line_from_point_grabbed ctrl+shift+alt+left triplepress ungrabbed,grabbed mouse_selection word_and_line_from_point', - long_text='Select the click word and to end of line, even when grabbed.' + ' If you would like to select the word at the point and then extend to the rest of the line,' + ' change line_from_point to word_and_line_from_point.' ) mma('Extend the current selection even when grabbed',