Replies: 4 comments 3 replies
-
Hi Wayne, the minimum version of fish for fzf.fish is 3.3. Can you try that
instead of 3.1?
…On Fri, Aug 27, 2021 at 11:17 PM W4yneWu ***@***.***> wrote:
Hi there,
I met some warnings/errors while tying to install fzf plugin into my
Ubuntu 20.04. I had all the dependencies installed, and running fish 3.1.0.
When I install the plugin following the command in README, the installation
seemed to be ok, but got several error messages about wrong parameters are
used for complete.
How do you fix the problem? Thanks in advance. Below are the full install
logs.
~> fisher install PatrickF1/fzf.fish fisher install version 4.2.0
Fetching https://codeload.github.com/PatrickF1/fzf.fish/tar.gz/HEAD
Installing PatrickF1/fzf.fish
/Users/wayne/.config/fish/functions/_fzf_configure_bindings_help.fish
/Users/wayne/.config/fish/functions/_fzf_extract_var_info.fish
/Users/wayne/.config/fish/functions/_fzf_preview_file.fish
/Users/wayne/.config/fish/functions/_fzf_report_file_type.fish
/Users/wayne/.config/fish/functions/_fzf_search_directory.fish
/Users/wayne/.config/fish/functions/_fzf_search_git_log.fish
/Users/wayne/.config/fish/functions/_fzf_search_git_status.fish
/Users/wayne/.config/fish/functions/_fzf_search_history.fish
/Users/wayne/.config/fish/functions/_fzf_search_variables.fish
/Users/wayne/.config/fish/functions/_fzf_wrapper.fish
/Users/wayne/.config/fish/functions/fzf_configure_bindings.fish
/Users/wayne/.config/fish/conf.d/fzf.fish
/Users/wayne/.config/fish/completions/fzf_configure_bindings.fish
Invalid option or a positional argument was provided.
USAGE:
fzf_configure_bindings [--FEATURE[=KEY_SEQUENCE]...]
DESCRIPTION
By default, fzf_configure_bindings installs mnemonic key bindings for fzf.fish's features. Each
feature's binding can be customized through a corresponding namesake option:
FEATURE | MNEMONIC KEY SEQUENCE | CORRESPONDING OPTION
Search directory | Ctrl+Alt+F (F for file) | --directory
Search git log | Ctrl+Alt+L (L for log) | --git_log
Search git status | Ctrl+Alt+S (S for status) | --git_status
Search history | Ctrl+R (R for reverse) | --history
Search variables | Ctrl+V (V for variable) | --variables
An option with a key sequence value overrides the binding for its feature, while an option
without a value disables the binding. A feature that is not customized retains its default
menomonic binding specified above. Key bindings are installed for default and insert modes.
In terms of validation, fzf_configure_bindings fails if passed unknown options. Furthermore, it
expects an equals sign between an option's name and value. However, it does not validate key
sequences. Rather, consider using fish_key_reader to manually validate them.
In terms of experimentation, fzf_configure_bindings erases any bindings it previously installed
before installing new ones so it can be repeatedly executed in the same fish session without
problem. Once the desired fzf_configure_bindings command has been found, add it to config.fish
in order to persist the bindings.
The -h and --help options print this help message.
EXAMPLES
Install the default mnemonic bindings
$ fzf_configure_bindings
Install the default bindings but override git log's binding to Ctrl+G
$ fzf_configure_bindings --git_log=\cg
Install the default bindings but leave search history unbound
$ fzf_configure_bindings --history
Alternative style of disabling search history
$ fzf_configure_bindings --history=
An agglomeration of all the options
$ fzf_configure_bindings --git_status=\cg --history=\ch --variables --directory --git_log
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 1):
complete fzf_configure_bindings --no-files
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 177 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 2):
complete fzf_configure_bindings --long help --short h --description "Print help"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 177 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 3):
complete fzf_configure_bindings --long directory --description "Change the key binding for searching directory"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 177 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 4):
complete fzf_configure_bindings --long git_log --description "Change the key binding for searching git log"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 177 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 5):
complete fzf_configure_bindings --long git_status --description "Change the key binding for searching git status"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 177 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 6):
complete fzf_configure_bindings --long history --description "Change the key binding for searching history"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 177 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
complete: Too many arguments
~/.config/fish/completions/fzf_configure_bindings.fish (line 7):
complete fzf_configure_bindings --long variables --description "Change the key binding for searching variables"
^
from sourcing file ~/.config/fish/completions/fzf_configure_bindings.fish
called on line 177 of file ~/.config/fish/functions/fisher.fish
in function 'fisher' with arguments 'install PatrickF1/fzf.fish'
(Type 'help complete' for related documentation)
Installed 1 plugin/s
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#196>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPAJEE3W2DVOL4PGH2567DT7B5RFANCNFSM5C6ZD6SQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
PatrickF1
-
Now your fzf is out of date. Try updating that. Check the read me for
minimum requirements.
…On Sat, Aug 28, 2021 at 8:20 PM W4yneWu ***@***.***> wrote:
Hey Patrick,
Thanks for the reply, I had fish upgraded to the latest 3.3.1 for Focal,
and installed fzf.fish smoothly. However, another problem arose: when I
tried to use the shortcut keybindings, like ctrl+v, ctrl+alt+s, etc., I got
errors of unknown option: --marker=*, and the search box wouldn't show.
Thanks again.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#196 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPAJEFWAPYJZWHWHDSNHATT7GRRNANCNFSM5C6ZD6SQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Now it works fine. Thanks a lot. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Great to hear it works! As a favor, would you mind starring this repo? Feel free not to if you end up not liking the plugin at all, which I hope doesn't happen. Haha |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I met some warnings/errors while tying to install fzf plugin into my Ubuntu 20.04. I had all the dependencies installed, and running fish 3.1.0. When I install the plugin following the command in README, the installation seemed to be ok, but got several error messages about wrong parameters are used for
complete
.How do you fix the problem? Thanks in advance. Below are the full install logs.
Beta Was this translation helpful? Give feedback.
All reactions