Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to hide prompt ? #1396

Closed
sigzegv opened this issue Oct 1, 2018 · 4 comments · Fixed by #4210
Closed

Is it possible to hide prompt ? #1396

sigzegv opened this issue Oct 1, 2018 · 4 comments · Fixed by #4210
Labels

Comments

@sigzegv
Copy link

sigzegv commented Oct 1, 2018

As subject says, I would like to hide prompt and just have pointer selector.

Is there a way to do that ?

@junegunn
Copy link
Owner

junegunn commented Oct 2, 2018

The whole line? It's not supported. --prompt '' is your best bet.

@slowpeek
Copy link

@junegunn I wonder what is the idea behind --phony without an option to hide the prompt? As a workaround I use --phony --prompt='' --bind=change:clear-query so that it looks and behaves like a pure item selector, but the flickering cursor is still there.

I probably overlook something, but isnt the prompt useless in --phony mode??

@junegunn
Copy link
Owner

isnt the prompt useless in --phony mode

No, it's not useless. Here's an example: https://github.com/junegunn/fzf/blob/master/ADVANCED.md#using-fzf-as-interative-ripgrep-launcher (--disabled is the new name for --phony)

a pure item selector

For a pure item selector, there are many, possibly better, alternatives to fzf such as smenu.

@slowpeek
Copy link

No, it's not useless. Here's an example

Got it.

For a pure item selector, there are many, possibly better, alternatives to fzf such as smenu

If only any of those was as ubiquitous and sexy:

Screenshot_20210820_165149

junegunn added a commit that referenced this issue Jan 29, 2025
Close #2890
Close #1396
 
You can't type in queries in this mode, and the only way to trigger an
fzf search is to use `search(...)` action.

  # Click header to trigger search
  fzf --header '[src] [test]' --no-input --layout reverse \
      --header-border bottom --input-border \
      --bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants