Skip to content

Commit

Permalink
fix: more cleaning up urls
Browse files Browse the repository at this point in the history
  • Loading branch information
docwhat committed Nov 11, 2021
1 parent 2728a64 commit 672ae51
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@
```
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
Expand Down Expand Up @@ -651,7 +651,7 @@
- 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
Expand Down Expand Up @@ -687,18 +687,18 @@
- 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.
Expand Down
2 changes: 1 addition & 1 deletion doc/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ For more information see:
- intro to Zinit at the Wiki:
- https://zdharma-continuum.org/zinit/wiki/INTRODUCTION/,
- zinit-zsh GitHub account, which holds all the available Zinit annexes:
- https://github.com/zinit-zsh/,
- https://github.com/zdharma-continuum/,
- For-Syntax 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
10 changes: 5 additions & 5 deletions doc/zsdoc/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
6 changes: 3 additions & 3 deletions zinit-install.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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:" \
Expand Down Expand Up @@ -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."
Expand All @@ -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]} ]] && \
Expand Down
12 changes: 6 additions & 6 deletions zinit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1930,7 +1930,7 @@ builtin setopt noaliases
else
ch=-
fi

REPLY=$ZINIT[col-$2]${(pl:COLUMNS-1::$ch:):-}$ZINIT[col-rst]
}
# ]]]
Expand Down Expand Up @@ -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).
Expand All @@ -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))([\{]([^\}]##)[\}])|([\{]([^\}]##)[\}])([^\%\{\\]#))/\
Expand All @@ -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:
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit 672ae51

Please sign in to comment.