A new action to clear the current selection

Fixes #4600
This commit is contained in:
Kovid Goyal 2022-01-31 08:17:40 +05:30
parent 1cb3875cb5
commit e7ee6d9e26
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 0 deletions

View File

@ -107,6 +107,8 @@ Detailed list of changes
rather than a plane. This means the first and last window are considered
neighbors (:iss:`4494`)
- A new action to clear the current selection (:iss:`4600`)
- Shell integration: fish: Fix cursor shape not working with fish's vi mode
(:iss:`4508`)

View File

@ -1178,6 +1178,10 @@ class Window:
else:
open_url(text, cwd=cwd)
@ac('cp', 'Clear the current selection')
def clear_selection(self) -> None:
self.screen.clear_selection()
@ac('sc', 'Scroll up by one line')
def scroll_line_up(self) -> None:
if self.screen.is_main_linebuf():