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

code **<TAB> doesn't execute fzf #3843

Closed
5 of 10 tasks
griiid opened this issue Jun 7, 2024 · 5 comments
Closed
5 of 10 tasks

code **<TAB> doesn't execute fzf #3843

griiid opened this issue Jun 7, 2024 · 5 comments
Labels

Comments

@griiid
Copy link

griiid commented Jun 7, 2024

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

0.53.0 (brew)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

Type code ** and then press <TAB>, it doesn't execute fzf?
The result is: code \*\*

How can I check what's the problem?

@junegunn
Copy link
Owner

junegunn commented Jun 7, 2024

https://github.com/junegunn/fzf?tab=readme-ov-file#supported-commands should answer your question.

We may add code to the default list in the future.

@griiid
Copy link
Author

griiid commented Jun 8, 2024

@junegunn

Sorry, but I don't know how to show all directories like when I type cd **<TAB>

I don't know what should I put in <()

Here's my .bashrc settings:

_fzf_complete_code() {
  _fzf_complete --multi --reverse --prompt="code> " -- "$@" < <(
  )
}
[ -n "$BASH" ] && complete -F _fzf_complete_code -o default -o bashdefault code

@junegunn
Copy link
Owner

junegunn commented Jun 8, 2024

I was suggesting that you just add _fzf_setup_completion path code to your .bashrc.

But we may add code to the list of the commands for which fuzzy completion is enabled by default so that is no longer necessary.

@griiid
Copy link
Author

griiid commented Jun 9, 2024

@junegunn oh, I see, thank you!!

@thyeun
Copy link

thyeun commented Jul 7, 2024

May i know how should i using cd **<tab> in fish shell?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants