Allow defining actions to take when pasting

Fixes #4873
This commit is contained in:
Kovid Goyal
2022-03-24 17:22:46 +05:30
parent cb7aed3234
commit 3c67e991c2
10 changed files with 114 additions and 33 deletions

View File

@@ -41,6 +41,8 @@ Detailed list of changes
clone local shell and editor configuration on remote machines, and automatic
re-use of existing connections to avoid connection setup latency.
- When pasting URLs at shell prompts automatically quote them. Also allow filtering pasted text and confirm pastes. See :opt:`paste_actions` for details. (:iss:`4873`)
- macOS: When using Apple's less as the pager for viewing scrollback strip out OSC codes as it cant parse them (:iss:`4788`)
- diff kitten: Fix incorrect rendering in rare circumstances when scrolling after changing the context size (:iss:`4831`)

View File

@@ -35,7 +35,7 @@ your machine).
# get the kitty window into which to paste answer
w = boss.window_id_map.get(target_window_id)
if w is not None:
w.paste(answer)
w.paste_text(answer)
Now in :file:`kitty.conf` add the lines::