Rename variable to fish_killring

This commit is contained in:
Karolina Gontarek
2021-04-16 20:23:14 +02:00
committed by ridiculousfish
parent da97daa800
commit 9d66ddc840
4 changed files with 6 additions and 6 deletions

View File

@@ -397,7 +397,7 @@ Fish uses an Emacs-style kill ring for copy and paste functionality. For example
Copy and paste from outside are also supported, both via the :kbd:`Control`\ +\ :kbd:`X` / :kbd:`Control`\ +\ :kbd:`V` bindings (the ``fish_clipboard_copy`` and ``fish_clipboard_paste`` functions [#]_) and via the terminal's paste function, for which fish enables "Bracketed Paste Mode", so it can tell a paste from manually entered text.
In addition, when pasting inside single quotes, pasted single quotes and backslashes are automatically escaped so that the result can be used as a single token simply by closing the quote after.
Kill ring entries are stored in ``killring`` variable.
Kill ring entries are stored in ``fish_killring`` variable.
.. [#] These rely on external tools. Currently xsel, xclip, wl-copy/wl-paste and pbcopy/pbpaste are supported.

View File

@@ -1262,7 +1262,7 @@ Fish also provides additional information through the values of certain environm
- ``version``, the version of the currently running fish (also available as ``FISH_VERSION`` for backward compatibility).
- ``killring``, list of entries in fish kill ring.
- ``fish_killring``, list of entries in fish kill ring.
As a convention, an uppercase name is usually used for exported variables, while lowercase variables are not exported. (``CMD_DURATION`` is an exception for historical reasons). This rule is not enforced by fish, but it is good coding practice to use casing to distinguish between exported and unexported variables.