diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-12-29 00:00:20 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-12-29 00:21:38 +0900 |
commit | e1dd798482490db6c43158d418973aa6e61659b7 (patch) | |
tree | 35279c7813366b4dd5908ec5c19631cc78195509 /test | |
parent | c8a3f6f06a171fcb5fc7c8129c225999859d398e (diff) |
[bash/zsh-completion] List hidden files as well
Close #456 and #457
Diffstat (limited to 'test')
-rw-r--r-- | test/test_go.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 1e13ba38..c938921d 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -1071,6 +1071,8 @@ module CompletionTest tmux.prepare tmux.send_keys 'cat /tmp/fzf-test/10**', :Tab, pane: 0 tmux.until(1) { |lines| lines.item_count > 0 } + tmux.send_keys ' !d' + tmux.until(1) { |lines| lines[-2].include?(' 2/') } tmux.send_keys :BTab, :BTab tmux.until(1) { |lines| lines[-2].include?('(2)') } tmux.send_keys :Enter @@ -1111,6 +1113,16 @@ module CompletionTest tmux.send_keys 'C-L' lines[-1].end_with?('/tmp/fzf\ test/foobar') end + + # Should include hidden files + (1..100).each { |i| FileUtils.touch "/tmp/fzf-test/.hidden-#{i}" } + tmux.send_keys 'C-u' + tmux.send_keys 'cat /tmp/fzf-test/hidden**', :Tab, pane: 0 + tmux.until(1) do |lines| + tmux.send_keys 'C-L' + lines[-2].include?('100/') && + lines[-3].include?('/tmp/fzf-test/.hidden-') + end ensure ['/tmp/fzf-test', '/tmp/fzf test', '~/.fzf-home', 'no~such~user'].each do |f| FileUtils.rm_rf File.expand_path(f) |