mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
parent
2728a6431f
commit
672ae51414
10
README.md
10
README.md
|
|
@ -555,7 +555,7 @@ # News
|
|||
```
|
||||
|
||||
i.e.: precede the plugin name with `@`. Note: `sbin''` is an ice added by the
|
||||
[zinit-annex-bin-gem-node](https://github.com/zinit/zinit-annex-bin-gem-node) annex, it provides
|
||||
[zinit-annex-bin-gem-node](https://github.com/zdharma-continuum/zinit-annex-bin-gem-node) annex, it provides
|
||||
the command to the command line without altering `$PATH`.
|
||||
|
||||
See the [Zinit Wiki](https://zdharma-continuum.github.io/zinit/wiki/For-Syntax/) for more
|
||||
|
|
@ -651,7 +651,7 @@ # News
|
|||
|
||||
- There's a Vim plugin which extends syntax highlighting of zsh scripts with coloring
|
||||
of the Zinit commands. [Project
|
||||
homepage](https://github.com/zinit/zinit-vim-syntax).
|
||||
homepage](https://github.com/zdharma-continuum/zinit-vim-syntax).
|
||||
|
||||
- 13-09-2019
|
||||
|
||||
|
|
@ -687,18 +687,18 @@ # News
|
|||
- Three new Zinit annexes (i.e.
|
||||
[extensions](https://zdharma-continuum.github.io/zinit/wiki/Annexes/)):
|
||||
|
||||
- [zinit-annex-man](https://github.com/zinit/zinit-annex-man)
|
||||
- [zinit-annex-man](https://github.com/zdharma-continuum/zinit-annex-man)
|
||||
|
||||
Generates man pages and code-documentation man pages from plugin's README.md
|
||||
and source files (the code documentation is obtained from
|
||||
[Zshelldoc](https://github.com/zdharma-continuum/zshelldoc)).
|
||||
|
||||
- [zinit-annex-test](https://github.com/zinit/zinit-annex-test)
|
||||
- [zinit-annex-test](https://github.com/zdharma-continuum/zinit-annex-test)
|
||||
|
||||
Runs tests (if detected `test` target in a `Makefile` or any `*.zunit` files)
|
||||
on plugin installation and non-empty update.
|
||||
|
||||
- [zinit-annex-patch-dl](https://github.com/zinit/zinit-annex-patch-dl)
|
||||
- [zinit-annex-patch-dl](https://github.com/zdharma-continuum/zinit-annex-patch-dl)
|
||||
|
||||
Allows easy download and applying of patches, to e.g. aid building a binary
|
||||
program equipped in the plugin.
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ For more information see:
|
|||
- [38;5;226mintro[0m to Zinit at the Wiki:
|
||||
- https://zdharma-continuum.org/zinit/wiki/INTRODUCTION/,
|
||||
- [38;5;226mzinit-zsh[0m GitHub account, which holds all the available Zinit annexes:
|
||||
- https://github.com/zinit-zsh/,
|
||||
- https://github.com/zdharma-continuum/,
|
||||
- [38;5;226mFor-Syntax[0m article on the Wiki; it is less directly related to the ices, however, it explains how to use them conveniently:
|
||||
- https://zdharma-continuum.org/zinit/wiki/For-Syntax/.
|
||||
EOF
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
# Code documentation
|
||||
|
||||
Here is `Asciidoc` code documentation generated using [Zshelldoc](https://github.com/zdharma/zshelldoc).
|
||||
Here is `Asciidoc` code documentation generated using [Zshelldoc](https://github.com/zdharma-continuum/zshelldoc).
|
||||
There are `4` Zinit's source files, the main one is [zinit.zsh](zinit.zsh.adoc). The documentation
|
||||
lists all functions, interactions between them, their comments and features used.
|
||||
|
||||
Github allows to directly view `Asciidoc` documents:
|
||||
* [zinit.zsh](zinit.zsh.adoc) – always loaded, in `.zshrc` ([pdf](https://zdharma.github.io/zinit/wiki/zinit.zsh))
|
||||
* [zinit-side.zsh](zinit-side.zsh.adoc) – common functions, loaded by `*-install` and `*-autoload` scripts ([pdf](https://zdharma.github.io/zinit/wiki/zinit-side.zsh))
|
||||
* [zinit-install.zsh](zinit-install.zsh.adoc) – functions used only when installing a plugin or snippet ([pdf](https://zdharma.github.io/zinit/wiki/zinit-install.zsh))
|
||||
* [zinit-autoload.zsh](zinit-autoload.zsh.adoc) – functions used only in interactive `Zinit` invocations ([pdf](https://zdharma.github.io/zinit/wiki/zinit-autoload.zsh/))
|
||||
* [zinit.zsh](zinit.zsh.adoc) – always loaded, in `.zshrc` ([pdf](https://zdharma-continuum.github.io/zinit/wiki/zinit.zsh))
|
||||
* [zinit-side.zsh](zinit-side.zsh.adoc) – common functions, loaded by `*-install` and `*-autoload` scripts ([pdf](https://zdharma-continuum.github.io/zinit/wiki/zinit-side.zsh))
|
||||
* [zinit-install.zsh](zinit-install.zsh.adoc) – functions used only when installing a plugin or snippet ([pdf](https://zdharma-continuum.github.io/zinit/wiki/zinit-install.zsh))
|
||||
* [zinit-autoload.zsh](zinit-autoload.zsh.adoc) – functions used only in interactive `Zinit` invocations ([pdf](https://zdharma-continuum.github.io/zinit/wiki/zinit-autoload.zsh/))
|
||||
|
||||
# PDFs, man pages, etc.
|
||||
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { builtin print -P "${ZINIT
|
|||
+zinit-message '{error}requires the {apo}`{annex}'${namemap[$required]}'{apo}`' \
|
||||
"{error}annex, which is currently not installed." \
|
||||
"{nl}{nl}If you'd like to install it, you can visit its homepage:" \
|
||||
"{nl}– {url}https://github.com/zinit-zsh/zinit-annex-${(L)namemap[$required]}{rst}" \
|
||||
"{nl}– {url}https://github.com/zdharma-continuum/zinit-annex-${(L)namemap[$required]}{rst}" \
|
||||
"{nl}for instructions."
|
||||
(( ${#profiles[@]:#$profile} > 0 )) && \
|
||||
+zinit-message "{nl}Other available profiles are:" \
|
||||
|
|
@ -249,7 +249,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { builtin print -P "${ZINIT
|
|||
fi
|
||||
}
|
||||
|
||||
if [[ -n ${ICE[dl]} && -z ${(k)ZINIT_EXTS[(r)<-> z-annex-data: zinit-annex-patch-dl *]} ]] {
|
||||
if [[ -n ${ICE[dl]} && -z ${(k)ZINIT_EXTS[(r)<-> z-annex-data: z-a-patch-dl *]} ]] {
|
||||
+zinit-message "{nl}{u-warn}WARNING{b-warn}:{rst} the profile uses" \
|
||||
"{ice}dl''{rst} ice however there's currently no {annex}zinit-annex-patch-dl{rst}" \
|
||||
"annex loaded, which provides it."
|
||||
|
|
@ -258,7 +258,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || { builtin print -P "${ZINIT
|
|||
"The package should still work, as it doesn't indicate to" \
|
||||
"{u}{slight}require{rst} the annex."
|
||||
+zinit-message "{nl}You can download the" \
|
||||
"annex from its homepage at {url}https://github.com/zinit-zsh/zinit-annex-patch-dl{rst}."
|
||||
"annex from its homepage at {url}https://github.com/zdharma-continuum/zinit-annex-patch-dl{rst}."
|
||||
}
|
||||
|
||||
[[ -n ${jsondata1[message]} ]] && \
|
||||
|
|
|
|||
12
zinit.zsh
12
zinit.zsh
|
|
@ -1930,7 +1930,7 @@ builtin setopt noaliases
|
|||
else
|
||||
ch=-
|
||||
fi
|
||||
|
||||
|
||||
REPLY=$ZINIT[col-$2]${(pl:COLUMNS-1::$ch:):-}$ZINIT[col-rst]
|
||||
}
|
||||
# ]]]
|
||||
|
|
@ -1985,10 +1985,10 @@ builtin setopt noaliases
|
|||
# Zakończenie aktywności kodu escape.
|
||||
append=$ZINIT[col-rst]
|
||||
fi
|
||||
|
||||
|
||||
# Skonstruuj tekst.
|
||||
REPLY=$in_prepend${ZINIT[col-$2]:-$1}$influx$3$append
|
||||
|
||||
|
||||
# Zamień nowe linie na znaki, które działają tak samo ale nie są
|
||||
# usuwane w podstawieniu $( … ) – vertical tab 0xB ↔ 13 w systemie
|
||||
# oktagonalnym połączone z powrotem karetki (015).
|
||||
|
|
@ -2006,7 +2006,7 @@ builtin setopt noaliases
|
|||
|
||||
ZINIT[__last-formatter-code]=
|
||||
msg=${${(j: :)${@:#--}}//\%/%%}
|
||||
|
||||
|
||||
# First try a dedicated formatter, marking its empty output with ←→, then
|
||||
# the general formatter and in the end filter-out the ←→ from the message.
|
||||
msg=${${msg//(#b)(([\\]|(%F))([\{]([^\}]##)[\}])|([\{]([^\}]##)[\}])([^\%\{\\]#))/\
|
||||
|
|
@ -2018,7 +2018,7 @@ $(.zinit-main-message-formatter "$match[6]" "$match[7]" "$match[8]"; \
|
|||
)${${ZINIT[__last-formatter-code]::=${${${match[7]:#(…|ndsh|mdsh|mmdsh|-…|lr)}:+\
|
||||
$match[7]}:-${ZINIT[__last-formatter-code]}}}:+}}}//←→}
|
||||
|
||||
|
||||
|
||||
# Przywróć domyślny kolor na końcu wiadomości.
|
||||
msg=$msg$ZINIT[col-rst]
|
||||
# Output the processed message:
|
||||
|
|
@ -2593,7 +2593,7 @@ env-whitelist|bindkeys|module|add-fpath|fpath|run${reply:+|${(~j:|:)"${reply[@]#
|
|||
+zinit-message "{u-warn}Warning{b-warn}:{msg} Bad new-ices returned" \
|
||||
"from the annex{ehi}:{rst} {annex}${___arr[3]}{msg}," \
|
||||
"please file an issue report at:{url}" \
|
||||
"https://github.com/zinit-zsh/${___arr[3]}/issues/new{msg}.{rst}"
|
||||
"https://github.com/zdharma-continuum/${___arr[3]}/issues/new{msg}.{rst}"
|
||||
___ices=( ) ___retval+=7
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue