m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 00:53:42 -05:00

Implement --toggle-sort option (#173)

This commit is contained in:
Junegunn Choi
2015-03-31 22:05:02 +09:00
parent 84a7499ae3
commit 50292adacb
16 changed files with 156 additions and 26 deletions

4
fzf
View File

@@ -206,7 +206,9 @@ class FZF
@expect = true
when /^--expect=(.*)$/
@expect = true
when '--tac', '--sync'
when '--toggle-sort'
argv.shift
when '--tac', '--sync', '--toggle-sort', /^--toggle-sort=(.*)$/
# XXX
else
usage 1, "illegal option: #{o}"