Respect $FZF_DEFAULT_OPTS_FILE in key bindings and completion (#3742)

Fix #3740
This commit is contained in:
Junegunn Choi
2024-04-19 22:40:38 +09:00
committed by GitHub
parent 31d72efba7
commit f864f8b5f7
6 changed files with 89 additions and 27 deletions

View File

@@ -3457,7 +3457,11 @@ module CompletionTest
tmux.until { |lines| assert_operator lines.match_count, :>, 0 }
tmux.send_keys :Tab, :Tab # Tab does not work here
tmux.send_keys 55
tmux.until { |lines| assert_equal 1, lines.match_count }
tmux.until do |lines|
assert_equal 1, lines.match_count
assert_includes lines, '> 55'
assert_includes lines, '> /tmp/fzf-test/d55'
end
tmux.send_keys :Enter
tmux.until(true) { |lines| assert_equal 'cd /tmp/fzf-test/d55/', lines[-1] }
tmux.send_keys :xx