mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-05 01:10:17 +00:00
53783: use case-insensitive search for more variants of language files
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2025-10-31 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* Jim Murphy: 53783: Functions/Prompts/prompt_adam2_setup,
|
||||
Functions/Prompts/prompt_special_chars: use case-insensitive
|
||||
search for more variants of language files
|
||||
|
||||
2025-10-31 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* LangLangbart: github #149: Completion/Darwin/Command/_say:
|
||||
|
||||
@@ -41,7 +41,7 @@ prompt_adam1_precmd () {
|
||||
local prompt_length space_left
|
||||
|
||||
base_prompt_expanded_no_color=$(print -P "$base_prompt_no_color")
|
||||
base_prompt_etc=$(print -P "$base_prompt%($((${prompt_path_ellipsize_num} + 1))~|...|)%${prompt_path_ellipsize_num}~")
|
||||
base_prompt_etc=$(print -P "$base_prompt_no_color%($((${prompt_path_ellipsize_num} + 1))~|...|)%${prompt_path_ellipsize_num}~")
|
||||
prompt_length=${#base_prompt_etc}
|
||||
if [[ $prompt_length -lt $prompt_wrap_length ]]; then
|
||||
path_prompt="%B%F{$prompt_adam1_color2}%($((${prompt_path_ellipsize_num} + 1))~|...|)%${prompt_path_ellipsize_num}~%F{white}"
|
||||
|
||||
@@ -25,7 +25,7 @@ prompt_adam2_setup () {
|
||||
|
||||
if [[ $1 == '8bit' ]]; then
|
||||
shift
|
||||
if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *UTF-8* ]]; then
|
||||
if [[ ${${LC_ALL:-${LC_CTYPE:-$LANG}}:u} = *(UTF-8|UTF8)* ]]; then
|
||||
prompt_gfx_tlc=$'\xe2\x94\x8c'
|
||||
prompt_gfx_mlc=$'\xe2\x94\x9c'
|
||||
prompt_gfx_blc=$'\xe2\x94\x94'
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
typeset -gA schars
|
||||
|
||||
if [[ ${LC_ALL:-${LC_CTYPE:-$LANG}} = *(UTF-8|utf8)* ]]; then
|
||||
if [[ ${${LC_ALL:-${LC_CTYPE:-$LANG}}:u} = *(UTF-8|UTF8)* ]]; then
|
||||
schars[300]=$'\xe2\x94\x94'
|
||||
schars[304]=$'\xe2\x94\x8c'
|
||||
schars[332]=$'\xe2\x94\x8c'
|
||||
|
||||
Reference in New Issue
Block a user