Clean up paste_actions docs

This commit is contained in:
Kovid Goyal 2022-03-24 17:35:07 +05:30
parent e151b8e604
commit a1d203d34a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -453,14 +453,17 @@ opt(
A comma separated list of actions to take when pasting text into the terminal. A comma separated list of actions to take when pasting text into the terminal.
Possibilities are: Possibilities are:
* quote-urls-at-prompt: If the text being pasted is a URL and the cursor is at a shell prompt, :code:`quote-urls-at-prompt`:
automatically quote the URL (needs :ref:`shell_integration`). If the text being pasted is a URL and the cursor is at a shell prompt,
* confirm: Confirm the paste if bracketed paste mode is not active or there is more automatically quote the URL (needs :ref:`shell_integration`).
a large amount of text being pasted. :code:`confirm`:
* filter: Run the filter_paste() function from the file :file:`paste-actions.py` in Confirm the paste if bracketed paste mode is not active or there is more
the kitty config directory on the pasted text. The text returned by the function will be actually pasted. a large amount of text being pasted.
''' :code:`filter`:
) Run the filter_paste() function from the file :file:`paste-actions.py` in
the kitty config directory on the pasted text. The text returned by the
function will be actually pasted.
''')
opt('strip_trailing_spaces', 'never', opt('strip_trailing_spaces', 'never',
choices=('always', 'never', 'smart'), choices=('always', 'never', 'smart'),