diff --git a/rc/tools/grep.kak b/rc/tools/grep.kak index faef6ee92..60563166f 100644 --- a/rc/tools/grep.kak +++ b/rc/tools/grep.kak @@ -1,8 +1,10 @@ -# require-module jump - declare-option -docstring "shell command run to search for subtext in a file/directory" \ str grepcmd 'grep -RHn' +provide-module grep %{ + +require-module jump + define-command -params .. -docstring %{ grep []: grep utility wrapper All optional arguments are forwarded to the grep utility @@ -58,3 +60,7 @@ define-command grep-next-match -docstring %{alias for "jump-next *grep*"} %{ define-command grep-previous-match -docstring %{alias for "jump-previous *grep*"} %{ jump-previous *grep* } + +} + +hook -once global KakBegin .* %{ require-module grep } diff --git a/rc/tools/jump.kak b/rc/tools/jump.kak index a50958b4c..51d0bca21 100644 --- a/rc/tools/jump.kak +++ b/rc/tools/jump.kak @@ -1,10 +1,10 @@ -provide-module jump %ยงยง - declare-option -docstring "name of the client in which all source code jumps will be executed" \ str jumpclient declare-option -docstring "name of the client in which utilities display information" \ str toolsclient +provide-module jump %{ + declare-option -hidden int jump_current_line 0 define-command -hidden jump %{ @@ -64,3 +64,7 @@ define-command -hidden jump-select-previous %{ # See comment in jump-select-next execute-keys ge %opt{jump_current_line}g ^[^:\n]+:\d+: } + +} + +hook -once global KakBegin .* %{ require-module jump } diff --git a/rc/tools/make.kak b/rc/tools/make.kak index 895877d13..5def6ee4c 100644 --- a/rc/tools/make.kak +++ b/rc/tools/make.kak @@ -1,11 +1,11 @@ -# require-module jump - declare-option -docstring "shell command run to build the project" \ str makecmd make declare-option -docstring "pattern that describes lines containing information about errors in the output of the `makecmd` command. Capture groups must be: 1: filename 2: line number 3: optional column 4: optional error description" \ regex make_error_pattern "^([^:\n]+):(\d+):(?:(\d+):)? (?:fatal )?error:([^\n]+)?" +provide-module make %{ +require-module jump define-command -params .. \ -docstring %{ @@ -86,3 +86,7 @@ define-command make-next-error -docstring %{alias for "jump-next *make*"} %{ define-command make-previous-error -docstring %{alias for "jump-previous *make*"} %{ jump-previous *make* } + +} + +hook -once global KakBegin .* %{ require-module make }