Skip to content

how to show the spinner when enabled the --inline-info --info=inline #4344

Open
@marslo

Description

@marslo

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

HEAD-93cb375 (brew)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

the FZF_DEFAULT_OPTS set as below:

FZF_DEFAULT_OPTS="--inline-info --info=inline "
FZF_DEFAULT_OPTS+="--info-command='echo \"\x1b[33;1m\$FZF_POS\x1b[m/\$FZF_INFO\"' "

export FZF_DEFAULT_OPTS

result

$ echo $FZF_DEFAULT_OPTS 
--inline-info --info=inline --info-command='echo "\x1b[33;1m$FZF_POS\x1b[m/$FZF_INFO"'

$ ... | fzf

spinner will not show when --info=inline been set.


screencast as below:

  • has spinner :

    $ unset FZF_DEFAULT_OPTS; \
      export FZF_DEFAULT_OPTS='--height 35% --min-height 8+'; \
      echo $FZF_DEFAULT_OPTS 
    --height 35% --min-height 8+
    has-spinner.mov
  • no spinner :

    $ unset FZF_DEFAULT_OPTS; \
      export FZF_DEFAULT_OPTS="--height 35% --min-height 8+ --inline-info --info=inline --info-command='echo \"\x1b[33;1m\$FZF_POS\x1b[m/\$FZF_INFO\"' "; \
      echo $FZF_DEFAULT_OPTS 
    --height 35% --min-height 8+ --inline-info --info=inline --info-command='echo "\x1b[33;1m$FZF_POS\x1b[m/$FZF_INFO"'
    no-spinner.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions