diff --git a/README.md b/README.md index ef32145..ee52c3b 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ is being used to create new windows. **fzf.kak** features a lot of settings via options that can be altered to change how **fzf.kak** behaves. All settings belong to `fzf` module, so in order to change variable values use `defer "fzf %{ ... }"` if you're using **plug.kak**, -and if not, use `hook global ModuleLoad fzf %{ ... }`, or simply `require-module +and if not, use `hook global ModuleLoaded fzf %{ ... }`, or simply `require-module fzf` before configuring options. Same goes for `fzf_vcs` module. From now on I assume that you're using one of the methods listed above for all diff --git a/rc/modules/VCS/fzf-bzr.kak b/rc/modules/VCS/fzf-bzr.kak index 8527b7e..592a765 100644 --- a/rc/modules/VCS/fzf-bzr.kak +++ b/rc/modules/VCS/fzf-bzr.kak @@ -7,7 +7,7 @@ # │ GitHub.com/andreyorst/fzf.kak │ # ╰───────────────────────────────────────╯ -hook global ModuleLoad fzf_vcs %§ +hook global ModuleLoaded fzf_vcs %§ declare-option -docstring "command to provide list of files in GNU Bazaar repository to fzf. Arguments are supported Supported tools: diff --git a/rc/modules/VCS/fzf-git.kak b/rc/modules/VCS/fzf-git.kak index 151ff07..bafb433 100644 --- a/rc/modules/VCS/fzf-git.kak +++ b/rc/modules/VCS/fzf-git.kak @@ -7,7 +7,7 @@ # │ GitHub.com/andreyorst/fzf.kak │ # ╰───────────────────────────────────────╯ -hook global ModuleLoad fzf_vcs %§ +hook global ModuleLoaded fzf_vcs %§ declare-option -docstring "command to provide list of files in git tree to fzf. Arguments are supported Supported tools: diff --git a/rc/modules/VCS/fzf-hg.kak b/rc/modules/VCS/fzf-hg.kak index 4c79c0f..ff21a14 100644 --- a/rc/modules/VCS/fzf-hg.kak +++ b/rc/modules/VCS/fzf-hg.kak @@ -7,7 +7,7 @@ # │ GitHub.com/andreyorst/fzf.kak │ # ╰──────────────────────────────────────╯ -hook global ModuleLoad fzf_vcs %§ +hook global ModuleLoaded fzf_vcs %§ declare-option -docstring "command to provide list of files in mercurial repository to fzf. Arguments are supported Supported tools: diff --git a/rc/modules/VCS/fzf-svn.kak b/rc/modules/VCS/fzf-svn.kak index 272b03f..b6bd210 100644 --- a/rc/modules/VCS/fzf-svn.kak +++ b/rc/modules/VCS/fzf-svn.kak @@ -7,7 +7,7 @@ # │ GitHub.com/andreyorst/fzf.kak │ # ╰───────────────────────────────────────╯ -hook global ModuleLoad fzf_vcs %§ +hook global ModuleLoaded fzf_vcs %§ declare-option -docstring "command to provide list of files in svn repository to fzf. Arguments are supported Supported tools: diff --git a/rc/modules/fzf-buffer.kak b/rc/modules/fzf-buffer.kak index eb4242a..6d58482 100644 --- a/rc/modules/fzf-buffer.kak +++ b/rc/modules/fzf-buffer.kak @@ -8,7 +8,7 @@ # │ GitHub.com/andreyorst/fzf.kak │ # ╰──────────────────────────────────────╯ -hook global ModuleLoad fzf %§ +hook global ModuleLoaded fzf %§ map global fzf -docstring "open buffer" 'b' ': fzf-buffer' diff --git a/rc/modules/fzf-cd.kak b/rc/modules/fzf-cd.kak index f11a942..7a34736 100644 --- a/rc/modules/fzf-cd.kak +++ b/rc/modules/fzf-cd.kak @@ -29,7 +29,7 @@ str cd_preview_cmd "tree -d {}" declare-option -docstring 'maximum amount of previewed directories' \ int fzf_preview_dirs '300' -hook global ModuleLoad fzf %§ +hook global ModuleLoaded fzf %§ map global fzf -docstring "change directory" 'c' ': fzf-cd' diff --git a/rc/modules/fzf-ctags.kak b/rc/modules/fzf-ctags.kak index 644780b..fd02a9c 100644 --- a/rc/modules/fzf-ctags.kak +++ b/rc/modules/fzf-ctags.kak @@ -11,7 +11,7 @@ declare-option -docstring "file that should be used by fzf-tag to provide tags. Default value: tags" \ str fzf_tag_file_name "tags" -hook global ModuleLoad fzf %§ +hook global ModuleLoaded fzf %§ map global fzf -docstring "find tag" 't' ': fzf-tag' diff --git a/rc/modules/fzf-file.kak b/rc/modules/fzf-file.kak index 7708542..7e6abe8 100644 --- a/rc/modules/fzf-file.kak +++ b/rc/modules/fzf-file.kak @@ -24,7 +24,7 @@ Default arguments: " \ str fzf_file_command "find" -hook global ModuleLoad fzf %§ +hook global ModuleLoaded fzf %§ map global fzf -docstring "open file" 'f' ': fzf-file' diff --git a/rc/modules/fzf-project.kak b/rc/modules/fzf-project.kak index 7cba51c..da5aaa3 100644 --- a/rc/modules/fzf-project.kak +++ b/rc/modules/fzf-project.kak @@ -11,7 +11,7 @@ declare-option -docstring "file where saved projects are stored" str fzf_project_file "%val{config}/.fzf-projects" declare-option -docstring %sh{ printf "%s\n" "use '~/' instead of '${HOME}'" } bool fzf_project_use_tilda false -hook global ModuleLoad fzf %§ +hook global ModuleLoaded fzf %§ map global fzf -docstring "open project" 'p' ': fzf-project' diff --git a/rc/modules/fzf-search.kak b/rc/modules/fzf-search.kak index 4890cc0..961de83 100644 --- a/rc/modules/fzf-search.kak +++ b/rc/modules/fzf-search.kak @@ -8,7 +8,7 @@ # │ GitHub.com/andreyorst/fzf.kak │ # ╰──────────────────────────────────────╯ -hook global ModuleLoad fzf %§ +hook global ModuleLoaded fzf %§ map global fzf -docstring "search in buffer" 's' ': fzf-buffer-search' diff --git a/rc/modules/fzf-vcs.kak b/rc/modules/fzf-vcs.kak index 9508da8..40c2227 100644 --- a/rc/modules/fzf-vcs.kak +++ b/rc/modules/fzf-vcs.kak @@ -9,7 +9,7 @@ # │ GitHub.com/andreyorst/fzf.kak │ # ╰──────────────────────────────────────╯ -hook global ModuleLoad fzf %§ +hook global ModuleLoaded fzf %§ map global fzf -docstring "edit file from vcs repo" 'v' ': require-module fzf_vcs; fzf-vcs' map global fzf -docstring "svitch to vcs selection mode" '' ': fzf-vcs-mode' diff --git a/rc/modules/fzf-yank-ring.kak b/rc/modules/fzf-yank-ring.kak index f0172de..371f26f 100644 --- a/rc/modules/fzf-yank-ring.kak +++ b/rc/modules/fzf-yank-ring.kak @@ -10,7 +10,7 @@ # │ GitHub.com/alexherbo2/yank-ring.kak │ # ╰─────────────────────────────────────╯ -hook global ModuleLoad fzf %§ +hook global ModuleLoaded fzf %§ # this will fail if yank-ring.kak isn't installed hook global -once WinCreate .* %{ try %{ diff --git a/rc/modules/sk-grep.kak b/rc/modules/sk-grep.kak index ed88525..f7c7d1e 100644 --- a/rc/modules/sk-grep.kak +++ b/rc/modules/sk-grep.kak @@ -17,7 +17,7 @@ str fzf_sk_grep_command 'grep -RHn' declare-option -hidden str fzf_sk_first_file '' -hook global ModuleLoad fzf %§ +hook global ModuleLoaded fzf %§ evaluate-commands %sh{ if [ -n "$(command -v sk)" ]; then