mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-09 14:55:58 +08:00
Add --color=[dark|light|16|bw] option
- dark: the current default for 256-color terminal - light: color scheme for 256-color terminal with light background - 16: the default color scheme for 16-color terminal (`+2`) - bw: no colors (`+c`)
This commit is contained in:
1 parent
2fe1e28220
commit
f66d94c6b0
7 files changed
+124
-47
No files matched your search
@@ -206,10 +206,10 @@ class FZF
|
||||
@expect = true
|
||||
when /^--expect=(.*)$/
|
||||
@expect = true
|
||||
when '--toggle-sort', '--tiebreak'
|
||||
when '--toggle-sort', '--tiebreak', '--color'
|
||||
argv.shift
|
||||
when '--tac', '--no-tac', '--sync', '--no-sync', '--hscroll', '--no-hscroll',
|
||||
/^--toggle-sort=(.*)$/, /^--tiebreak=(.*)$/
|
||||
/^--color=(.*)$/, /^--toggle-sort=(.*)$/, /^--tiebreak=(.*)$/
|
||||
# XXX
|
||||
else
|
||||
usage 1, "illegal option: #{o}"
|
||||
|
||||
Reference in new issue
Block a user