Repository: junegunn/fzf
File: src/options.go (Go)

Code before:
    -1, --select-1         Automatically select the only match
    -0, --exit-0           Exit immediately when there's no match
    -f, --filter=STR       Filter mode. Do not start interactive finder.
    --print-query          Print query as the first line
    --expect=KEYS          Comma-separated list of keys to complete fzf
    --read0                Read input delimited by ASCII NUL characters
    --print0               Print output delimited by ASCII NUL characters
    --sync                 Synchronous search for multi-staged filtering
    --listen[=[ADDR:]PORT] Start HTTP server to receive actions (POST /)
                           (To allow remote process execution, use --listen-unsafe)
    --version              Display version information and exit

  Directory traversal      (Only used when $FZF_DEFAULT_COMMAND is not set)
    --walker=OPTS          [file][,dir][,follow][,hidden] (default: file,follow,hidden)
    --walker-root=DIR      Root directory from which to start walker (default: .)
    --walker-skip=DIRS     Comma-separated list of directory names to skip
                           (default: .git,node_modules)

  Shell integration
    --bash                 Print script to set up Bash shell integration
    --zsh                  Print script to set up Zsh shell integration
    --fish                 Print script to set up Fish shell integration

  Environment variables
    FZF_DEFAULT_COMMAND    Default command to use when input is tty
    FZF_DEFAULT_OPTS       Default options (e.g. '--layout=reverse --info=inline')
    FZF_DEFAULT_OPTS_FILE  Location of the file to read default options from
    FZF_API_KEY            X-API-Key header for HTTP server (--listen)
`

const defaultInfoPrefix = " < "

// Case denotes case-sensitivity of search
type Case int

// Case-sensitivities
const (
	CaseSmart Case = iota
	CaseIgnore
	CaseRespect
)

// Sort criteria
type criterion int

const (
	byScore criterion = iota
	byChunk
	byLength
	byBegin
	byEnd

Review comment (suggestion):
The extra line at the end was intentional.

```suggestion
    FZF_API_KEY            X-API-Key header for HTTP server (--listen)

```

Code after:
    -f, --filter=STR       Filter mode. Do not start interactive finder.
    --print-query          Print query as the first line
    --expect=KEYS          Comma-separated list of keys to complete fzf
    --read0                Read input delimited by ASCII NUL characters
    --print0               Print output delimited by ASCII NUL characters
    --sync                 Synchronous search for multi-staged filtering
    --listen[=[ADDR:]PORT] Start HTTP server to receive actions (POST /)
                           (To allow remote process execution, use --listen-unsafe)
    --version              Display version information and exit

  Directory traversal      (Only used when $FZF_DEFAULT_COMMAND is not set)
    --walker=OPTS          [file][,dir][,follow][,hidden] (default: file,follow,hidden)
    --walker-root=DIR      Root directory from which to start walker (default: .)
    --walker-skip=DIRS     Comma-separated list of directory names to skip
                           (default: .git,node_modules)

  Shell integration
    --bash                 Print script to set up Bash shell integration
    --zsh                  Print script to set up Zsh shell integration
    --fish                 Print script to set up Fish shell integration

  Environment variables
    FZF_DEFAULT_COMMAND    Default command to use when input is tty
    FZF_DEFAULT_OPTS       Default options (e.g. '--layout=reverse --info=inline')
    FZF_DEFAULT_OPTS_FILE  Location of the file to read default options from
    FZF_API_KEY            X-API-Key header for HTTP server (--listen)

`

const defaultInfoPrefix = " < "

// Case denotes case-sensitivity of search
type Case int

// Case-sensitivities
const (
	CaseSmart Case = iota
	CaseIgnore
	CaseRespect
)

// Sort criteria
type criterion int

const (
	byScore criterion = iota
	byChunk
	byLength
	byBegin
	byEnd
)