mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 16:29:08 +08:00
CHANGELOG.md
This commit is contained in:
parent
e918b18ca7
commit
0fd2d9c8a8
17
vendor/clink.lua
vendored
17
vendor/clink.lua
vendored
@ -406,24 +406,7 @@ local function svn_prompt_filter()
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
local function tilde_match (text, f, l)
|
|
||||||
if text == '~' then
|
|
||||||
clink.add_match(clink.get_env('userprofile'))
|
|
||||||
clink.matches_are_files()
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
if text:sub(1, 1) == '~' then
|
|
||||||
clink.add_match(string.gsub(text, "~", clink.get_env('userprofile'), 1))
|
|
||||||
-- second match prevents adding a space so we can look for more matches
|
|
||||||
clink.add_match(string.gsub(text, "~", clink.get_env('userprofile'), 1) .. '+')
|
|
||||||
clink.matches_are_files()
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- insert the set_prompt at the very beginning so that it runs first
|
-- insert the set_prompt at the very beginning so that it runs first
|
||||||
clink.register_match_generator(tilde_match, 1)
|
|
||||||
clink.prompt.register_filter(set_prompt_filter, 1)
|
clink.prompt.register_filter(set_prompt_filter, 1)
|
||||||
clink.prompt.register_filter(hg_prompt_filter, 50)
|
clink.prompt.register_filter(hg_prompt_filter, 50)
|
||||||
clink.prompt.register_filter(git_prompt_filter, 50)
|
clink.prompt.register_filter(git_prompt_filter, 50)
|
||||||
|
8
vendor/sources.json
vendored
8
vendor/sources.json
vendored
@ -6,13 +6,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "clink",
|
"name": "clink",
|
||||||
"version": "1.1.34",
|
"version": "1.1.45",
|
||||||
"url": "https://github.com/chrisant996/clink/releases/download/v1.1.34/clink.1.1.34.d161e9.zip"
|
"url": "https://github.com/chrisant996/clink/releases/download/v1.1.45/clink.1.1.45.1c3985.zip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "conemu-maximus5",
|
"name": "conemu-maximus5",
|
||||||
"version": "191012",
|
"version": "210304",
|
||||||
"url": "https://github.com/Maximus5/ConEmu/releases/download/v19.10.12/ConEmuPack.191012.7z"
|
"url": "https://github.com/Maximus5/ConEmu/releases/download/v21.03.04/ConEmuPack.210304.7z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "clink-completions",
|
"name": "clink-completions",
|
||||||
|
Loading…
Reference in New Issue
Block a user