string-replace-fewer-backslashes -> regex-easyesc

This shortens a very long feature name.

See discussion in #5805
This commit is contained in:
Aaron Gyes
2019-08-13 22:28:17 -07:00
parent ce178fd6fd
commit edc8d5d7a3
3 changed files with 3 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ function fish_clipboard_paste
#
# This eases pasting non-code (e.g. markdown or git commitishes).
if __fish_commandline_is_singlequoted
if status test-feature string-replace-fewer-backslashes
if status test-feature regex-easyesc
set data (string replace -ra "(['\\\])" '\\\\$1' -- $data)
else
set data (string replace -ra "(['\\\])" '\\\\\\\$1' -- $data)