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

Switch between sources/modes #13

Open
danisztls opened this issue Jul 26, 2021 · 1 comment
Open

Switch between sources/modes #13

danisztls opened this issue Jul 26, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@danisztls
Copy link
Owner

Switching between sources is not problematic as only the query would change and Fzf even have an example of it on the README.

FZF_DEFAULT_COMMAND='find . -type f' \
  fzf --bind 'ctrl-d:reload(find . -type d),ctrl-f:reload($FZF_DEFAULT_COMMAND)' \
      --height=50% --layout=reverse

But switching between modes like conventional file search to ps, cd, cp, mv is another story.

One difficulty is dealing with source/mode specifics. Having a complex spaghetti codebase that is difficult to maintain and improve is not desired.

@danisztls danisztls added the enhancement New feature or request label Jul 26, 2021
@danisztls
Copy link
Owner Author

The 'change-prompt' discussed bellow might be useful
junegunn/fzf#2423

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

No branches or pull requests

1 participant