File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ z -b foo # cd to the parent directory starting with foo
142
142
- set ` $_ZL_MATCH_MODE ` to 1 to enable enhanced matching.
143
143
- set ` $_ZL_NO_CHECK ` to 1 to disable path validation, use ` z --purge ` to clean
144
144
- set ` $_ZL_HYPHEN ` to 1 to treat hyphon (-) as a normal character not a lua regexp keyword.
145
+ - set ` $_ZL_CLINK_PROMPT_PRIORITY ` change clink prompt register priority (default 99).
145
146
146
147
## Aging
147
148
Original file line number Diff line number Diff line change @@ -2059,6 +2059,7 @@ end
2059
2059
---- -------------------------------------------------------------------
2060
2060
function z_clink_init ()
2061
2061
local once = os .environ (" _ZL_ADD_ONCE" , false )
2062
+ local _zl_clink_prompt_priority = os .environ (' _ZL_CLINK_PROMPT_PRIORITY' , 99 )
2062
2063
local previous = ' '
2063
2064
function z_add_to_database ()
2064
2065
pwd = clink .get_cwd ()
@@ -2070,7 +2071,7 @@ function z_clink_init()
2070
2071
end
2071
2072
z_add (clink .get_cwd ())
2072
2073
end
2073
- clink .prompt .register_filter (z_add_to_database , 99 )
2074
+ clink .prompt .register_filter (z_add_to_database , _zl_clink_prompt_priority )
2074
2075
function z_match_completion (word )
2075
2076
local M = z_match ({word }, Z_METHOD , Z_SUBDIR )
2076
2077
for _ , item in pairs (M ) do
You can’t perform that action at this time.
0 commit comments