-
Couldn't load subscription status.
- Fork 21
Allow override of rm and custom fzf options #49
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
base: main
Are you sure you want to change the base?
Conversation
6ad7054 to
4e73098
Compare
|
Ping @gazorby |
|
Hi, how to customize the fzf opts based on your change? |
Sorry about that, just updated the README. You simply set the |
Thanks for your work, this is exactly the feature that I am missing. can't wait for this to be merged. |
|
I don't know if this error is caused by this change. |
This PR has not been merged yet; this error must come from the last one I merged earlier this week. |
|
Hi @ollehu, Thanks for contributing! |
* Remove hardcoded use of tab (\t) for _fifc
Did you get this using this PR or main? If using this PR, how did you trigger it? |
|
Any chance to have this merged? |
|
Are there any blockers here? Hope this will get merged soon. |
Not to my knowledge, awaiting approval from @gazorby |
|
I just tested this PR out and noticed a weird bug. This is my config, it binds Tab and Shift+Tab so that you can tab through the completions: set -U fifc_custom_fzf_opts --bind tab:down --bind btab:upFirst try to perform completions on flags: cat -<Tab>This works. But then, try to complete file paths: cat <Tab>The fzf option above no longer applies. Then try to do flag completion again. The fzf options also stops working there. Not sure why this is happening. |
|
Ok here's something easier to reproduce: $ set -U fifc_custom_fzf_opts --bind tab:down
$ set --show fifc_custom_fzf_opts
$fifc_custom_fzf_opts: set in universal scope, exported, with 2 elements
$fifc_custom_fzf_opts[1]: |--bind|
$fifc_custom_fzf_opts[2]: |tab:down|
$ cat # press <Tab> here
$ set --show fifc_custom_fzf_opts
$fifc_custom_fzf_opts: set in universal scope, exported, with 1 elements
$fifc_custom_fzf_opts[1]: || |
|
Interesting, I was not able to reproduce your scenario in a clean WSL2 ubuntu installation |
|
That is strange. But in any case there is this branching logic that will eventually overwrite the user's Perhaps it can be safely removed? It's working fine without it on my end, so far. |
Agreed. Good find, let's include it here then. |
Co-authored-by: musjj <[email protected]>
|
I'm now running @ollehu's fork and it's working great for me. No more weird things not working that I set in |
|
I use @ollehu fork too, works great, Thank you! |
It's not unusual to alias
rmto something harmless when using, for example, trash to remove files/directories. This PR will enable the user to change that command. This PR also lets the user add additional argument to the fzf_cmd, something that was not working properly before (I believe?)