On Mon Aug 9, 2021 at 10:52 AM EDT, Johannes Altmanninger wrote:
> On Sun, Aug 08, 2021 at 07:09:36PM -0400, Adam Cooper via Fish-users
> wrote:
>
> > source /usr/share/fish/vendor_functions.d/fzf_key_bindings.fish
>
> You don't need to explicitly source that file. Fish will autoload
> functions
> from $fish_function_path, as long as file and function names match.

Ok, well, I removed the line to source the file. And what follows is the
self-contradictory (I think) result:

  $ functions -Dv fzf_key_bindings
  /usr/share/fish/vendor_functions.d/fzf_key_bindings.fish
  autoloaded
  16
  scope-shadowing
  n/a

  $ bind \cr
  bind --preset \cr 'commandline | string length -q; and commandline -f
  history-search-backward'
  # Again, the standard fish ^R binding, not FZF's.

  $ functions -q fzf_key_bindings 

  # I was not expecting this to be blank!

  $ functions --names 
  N_, abbr, alias, bg, cd, cdh, contains_seq, delete-or-exit, diff, dirh,
  dirs, disown, down-or-search, edit_command_buffer, export, fg,
  fish_add_path, fish_breakpoint_prompt, fish_clipboard_copy, 
  fish_clipboard_paste, fish_command_not_found, fish_commandline_append,
  fish_commandline_prepend, fish_config, fish_default_key_bindings,
  fish_default_mode_prompt, fish_git_prompt, fish_greeting, fish_hg_prompt,
  fish_hybrid_key_bindings, fish_indent, fish_is_root_user, 
  fish_job_summary, fish_key_reader, fish_mode_prompt, fish_opt, 
  fish_print_git_action, fish_print_hg_root, fish_prompt,
  fish_sigtrap_handler, fish_status_to_signal, fish_svn_prompt,
  fish_title, fish_update_completions, fish_vcs_prompt, fish_vi_cursor,
  fish_vi_key_bindings, funced, funcsave, fzf_key_bindings, grep, help,
  history, isatty, kill, la, ll, ls, man, navi-widget, nextd,
  nextd-or-forward-word, open, popd, prevd, prevd-or-backward-word,
  prompt_hostname, prompt_login, prompt_pwd, psub, pushd, realpath, seq,
  setenv, suspend, trap, umask, up-or-search, vared, wait, z, zi

To be clear, the inconsistency I see is that, while the function is
autoloaded and appears in the list, it nevertheless is not available in
the shell, and can't be successfully queried. I've gone wrong somewhere,
but where?


_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to