m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Rename --null to --read0 and undocument the option

`--null` is ambiguous. For completeness' sake, we need both `--read0`
and `--print0`.

`--read0` only makes sense when the input contains multiline entries.
However, fzf currently cannot correctly display multiline entries,
I'm going to make `--read0` an undocumented feature.
This commit is contained in:
Junegunn Choi
2015-06-21 17:29:58 +09:00
parent 638a956a9e
commit 8270f7f0ca
3 changed files with 7 additions and 6 deletions

View File

@@ -518,10 +518,10 @@ class TestGoFZF < TestBase
assert_equal data, `cat #{tempname} | #{FZF} -f .`.chomp
end
def test_null
def test_read0
lines = `find .`.split($/)
assert_equal lines.last, `find . | #{FZF} -e -f "^#{lines.last}$"`.chomp
assert_equal lines.last, `find . -print0 | #{FZF} --null -e -f "^#{lines.last}$"`.chomp
assert_equal lines.last, `find . -print0 | #{FZF} --read0 -e -f "^#{lines.last}$"`.chomp
end
def test_select_all_deselect_all_toggle_all