Merge pull request #62 from ficoos/module_loaded
Change ModuleLoad to ModuleLoaded as per kakoune change
This commit is contained in:
commit
9180b69217
14 changed files with 14 additions and 14 deletions
|
@ -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
|
**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
|
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**,
|
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.
|
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
|
From now on I assume that you're using one of the methods listed above for all
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# │ GitHub.com/andreyorst/fzf.kak │
|
# │ 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
|
declare-option -docstring "command to provide list of files in GNU Bazaar repository to fzf. Arguments are supported
|
||||||
Supported tools:
|
Supported tools:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# │ GitHub.com/andreyorst/fzf.kak │
|
# │ 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
|
declare-option -docstring "command to provide list of files in git tree to fzf. Arguments are supported
|
||||||
Supported tools:
|
Supported tools:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# │ GitHub.com/andreyorst/fzf.kak │
|
# │ 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
|
declare-option -docstring "command to provide list of files in mercurial repository to fzf. Arguments are supported
|
||||||
Supported tools:
|
Supported tools:
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# │ GitHub.com/andreyorst/fzf.kak │
|
# │ 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
|
declare-option -docstring "command to provide list of files in svn repository to fzf. Arguments are supported
|
||||||
Supported tools:
|
Supported tools:
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# │ GitHub.com/andreyorst/fzf.kak │
|
# │ GitHub.com/andreyorst/fzf.kak │
|
||||||
# ╰──────────────────────────────────────╯
|
# ╰──────────────────────────────────────╯
|
||||||
|
|
||||||
hook global ModuleLoad fzf %§
|
hook global ModuleLoaded fzf %§
|
||||||
|
|
||||||
map global fzf -docstring "open buffer" 'b' '<esc>: fzf-buffer<ret>'
|
map global fzf -docstring "open buffer" 'b' '<esc>: fzf-buffer<ret>'
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ str cd_preview_cmd "tree -d {}"
|
||||||
declare-option -docstring 'maximum amount of previewed directories' \
|
declare-option -docstring 'maximum amount of previewed directories' \
|
||||||
int fzf_preview_dirs '300'
|
int fzf_preview_dirs '300'
|
||||||
|
|
||||||
hook global ModuleLoad fzf %§
|
hook global ModuleLoaded fzf %§
|
||||||
|
|
||||||
map global fzf -docstring "change directory" 'c' '<esc>: fzf-cd<ret>'
|
map global fzf -docstring "change directory" 'c' '<esc>: fzf-cd<ret>'
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ declare-option -docstring "file that should be used by fzf-tag to provide tags.
|
||||||
Default value: tags" \
|
Default value: tags" \
|
||||||
str fzf_tag_file_name "tags"
|
str fzf_tag_file_name "tags"
|
||||||
|
|
||||||
hook global ModuleLoad fzf %§
|
hook global ModuleLoaded fzf %§
|
||||||
|
|
||||||
map global fzf -docstring "find tag" 't' '<esc>: fzf-tag<ret>'
|
map global fzf -docstring "find tag" 't' '<esc>: fzf-tag<ret>'
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ Default arguments:
|
||||||
" \
|
" \
|
||||||
str fzf_file_command "find"
|
str fzf_file_command "find"
|
||||||
|
|
||||||
hook global ModuleLoad fzf %§
|
hook global ModuleLoaded fzf %§
|
||||||
|
|
||||||
map global fzf -docstring "open file" 'f' '<esc>: fzf-file<ret>'
|
map global fzf -docstring "open file" 'f' '<esc>: fzf-file<ret>'
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
declare-option -docstring "file where saved projects are stored" str fzf_project_file "%val{config}/.fzf-projects"
|
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
|
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' '<esc>: fzf-project<ret>'
|
map global fzf -docstring "open project" 'p' '<esc>: fzf-project<ret>'
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
# │ GitHub.com/andreyorst/fzf.kak │
|
# │ GitHub.com/andreyorst/fzf.kak │
|
||||||
# ╰──────────────────────────────────────╯
|
# ╰──────────────────────────────────────╯
|
||||||
|
|
||||||
hook global ModuleLoad fzf %§
|
hook global ModuleLoaded fzf %§
|
||||||
|
|
||||||
map global fzf -docstring "search in buffer" 's' '<esc>: fzf-buffer-search<ret>'
|
map global fzf -docstring "search in buffer" 's' '<esc>: fzf-buffer-search<ret>'
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# │ GitHub.com/andreyorst/fzf.kak │
|
# │ GitHub.com/andreyorst/fzf.kak │
|
||||||
# ╰──────────────────────────────────────╯
|
# ╰──────────────────────────────────────╯
|
||||||
|
|
||||||
hook global ModuleLoad fzf %§
|
hook global ModuleLoaded fzf %§
|
||||||
|
|
||||||
map global fzf -docstring "edit file from vcs repo" 'v' '<esc>: require-module fzf_vcs; fzf-vcs<ret>'
|
map global fzf -docstring "edit file from vcs repo" 'v' '<esc>: require-module fzf_vcs; fzf-vcs<ret>'
|
||||||
map global fzf -docstring "svitch to vcs selection mode" '<a-v>' '<esc>: fzf-vcs-mode<ret>'
|
map global fzf -docstring "svitch to vcs selection mode" '<a-v>' '<esc>: fzf-vcs-mode<ret>'
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# │ GitHub.com/alexherbo2/yank-ring.kak │
|
# │ GitHub.com/alexherbo2/yank-ring.kak │
|
||||||
# ╰─────────────────────────────────────╯
|
# ╰─────────────────────────────────────╯
|
||||||
|
|
||||||
hook global ModuleLoad fzf %§
|
hook global ModuleLoaded fzf %§
|
||||||
|
|
||||||
# this will fail if yank-ring.kak isn't installed
|
# this will fail if yank-ring.kak isn't installed
|
||||||
hook global -once WinCreate .* %{ try %{
|
hook global -once WinCreate .* %{ try %{
|
||||||
|
|
|
@ -17,7 +17,7 @@ str fzf_sk_grep_command 'grep -RHn'
|
||||||
|
|
||||||
declare-option -hidden str fzf_sk_first_file ''
|
declare-option -hidden str fzf_sk_first_file ''
|
||||||
|
|
||||||
hook global ModuleLoad fzf %§
|
hook global ModuleLoaded fzf %§
|
||||||
|
|
||||||
evaluate-commands %sh{
|
evaluate-commands %sh{
|
||||||
if [ -n "$(command -v sk)" ]; then
|
if [ -n "$(command -v sk)" ]; then
|
||||||
|
|
Loading…
Reference in a new issue