The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

zsh completion: strip ANSI escapes again (#220)

+15 -11
+3 -3
vendor/opam/cmdliner/B0.ml
··· 73 73 let pwsh = String.replace_first ~sub:"_cmdliner_generic" ~by:"%s" pwsh in 74 74 let src = Fmt.str 75 75 "let strf = Printf.sprintf\n\n\ 76 - let bash_generic_completion fun_name = strf \n{|%s\ 76 + let bash_generic_completion fun_name = strf\n{|%s\ 77 77 |} fun_name\n\n\ 78 - let zsh_generic_completion fun_name = strf \n{|%s\ 78 + let zsh_generic_completion fun_name = strf\n{|%s\ 79 79 |} fun_name\n\n\ 80 - let pwsh_generic_completion fun_name = strf \n{|%s\ 80 + let pwsh_generic_completion fun_name = strf\n{|%s\ 81 81 |} fun_name" bash zsh pwsh 82 82 in 83 83 Os.File.write ~force:true ~make_path:false ml src
+9 -5
vendor/opam/cmdliner/CHANGES.md
··· 2 2 - completion: add support for powershell (#214) 3 3 Thanks to Brian Ward for the work. 4 4 5 - - cmdliner tool: add support for generating standalone completion 6 - scripts via the `--standalone-completion`. Can be used if your 7 - users don't have the cmdliner library installed (#243). 8 - Thanks to Brian Ward for suggesting. 9 - 10 5 - Improve bash completion of long options with `=` (#231). 11 6 Thanks to Brian Ward for the patch. 7 + 12 8 - Improve bash completion on files and directories (#238). 13 9 Thanks to Brian Ward for the report and fix. 10 + 11 + - zsh completion: strip ANSI escapes from doc strings. The experience 12 + is too unreliable (#220). 13 + 14 + - cmdliner tool: add support for generating standalone completion 15 + scripts via the `--standalone-completion`. Can be used if your 16 + users don't have the cmdliner library installed (#243). 17 + Thanks to Brian Ward for suggesting. 14 18 15 19 - Help output, improve graceful degration on groff or pager errors (#140). 16 20 Thanks to Sergey Fedorov for the report.
+2 -2
vendor/opam/cmdliner/src/tool/cmdliner_data.ml
··· 132 132 item="${prefix:0:2}${item}" 133 133 fi 134 134 fi 135 - # item_doc="${item_doc//$'\e'\[(01m|04m|m)/}" 135 + item_doc="${item_doc//$'\e'\[(01m|04m|m)/}" 136 136 completions+=("${item}":"${item_doc}") 137 137 elif [[ "$type" == "dirs" ]]; then 138 138 _path_files -/ ··· 156 156 } 157 157 |} fun_name 158 158 159 - let pwsh_generic_completion fun_name = strf 159 + let pwsh_generic_completion fun_name = strf 160 160 {|<# 161 161 Note: PowerShell swallows all errors in tab completion functions. 162 162 If you are hacking on this file and get unexpected results (like
+1 -1
vendor/opam/cmdliner/src/tool/zsh-completion.sh
··· 48 48 item="${prefix:0:2}${item}" 49 49 fi 50 50 fi 51 - # item_doc="${item_doc//$'\e'\[(01m|04m|m)/}" 51 + item_doc="${item_doc//$'\e'\[(01m|04m|m)/}" 52 52 completions+=("${item}":"${item_doc}") 53 53 elif [[ "$type" == "dirs" ]]; then 54 54 _path_files -/