Commit graph

3714 commits

Author SHA1 Message Date
vladislav doster be1533552a
maint: re-format _zinit (#392)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-05 10:11:54 -05:00
vladislav doster 49926e075a
maint: consistent vim mode lines across all files (#393) 2022-10-05 09:59:15 -05:00
Sebastian Gniazdowski 7f6dc7da6c
fix: change ctags symbols browser key binding from ctrl-k to alt-Q (#387)
The key is already bound to push-line, however the zle widget
has also two other keys, ctrl-q and Alt-q, so no problem, as
IMO users who want that widget already use Alt-q, not Alt-Q.

Closes #386
2022-10-03 05:09:54 -05:00
Aaron Lichtman 65331c222d
Merge pull request #384 from zdharma-continuum/revert-378-vars 2022-09-29 15:10:26 -05:00
Aaron Lichtman 952f683753
Revert "Add a few global aliases and vars like ZIBIN, ZIPLUGS and others." 2022-09-29 13:09:54 -07:00
Aaron Lichtman 5be3b2a72e
Merge pull request #350 from psprint/zinit.1-manual 2022-09-28 06:50:50 -05:00
Aaron Lichtman 37cd36e418
Merge pull request #378 from psprint/vars 2022-09-28 06:48:31 -05:00
Sebastian Gniazdowski 9168d6c183 Add a few global aliases and vars like ZIBIN, ZIPLUGS and others.
The user can use them in 3 ways:

$ cd ZIBIN
$ cd $ZIBIN
$ cd ~ZIBIN
$ cd ZPFX
2022-09-28 10:01:05 +00:59
Sebastian Gniazdowski 061a85c4ff
Add support for multiple (cmake, scons, meson) build systems to the configure'' ice. (#351) 2022-09-27 19:54:11 -05:00
Sebastian Gniazdowski 2e783f02e2
Make variables created with param'name → value' be exported. Also (#376) 2022-09-27 19:51:53 -05:00
Sebastian Gniazdowski 17fd453dc1
A zsh language definition for Ctags wrapped in tags Make target (#332) 2022-09-19 04:42:20 -05:00
Yuta Katayama 4a2a120b34
fix: gh-r retrieves release data GH REST API (#373)
Recent changes to GitHub HTML structure broke `gh-r` & `bpick` ices method of parsing project release assets.

- `gh-r` utilizes official GitHub REST API to retrieve project releases data
- add `local` scope to `releases_url` variable

# closes #374 

Co-authored-by: Tyler Wardhaugh <tyler.wardhaugh@gmail.com>
2022-09-18 01:51:03 -05:00
Philipp Schmitt 8ed4e96dea
Merge pull request #372 from akliuxingyuan/main
use grep instead of the deprecated egrep
2022-09-12 18:59:52 +02:00
akliuxingyuan 1b90ad382b use grep instead of the deprecated egrep 2022-09-12 13:53:22 +08:00
vladislav doster bf2a411ec6
Merge pull request #369 from zdharma-continuum/fix/lnav-test
fix: remove macOS 11 from test matrix
2022-09-05 21:51:04 -05:00
Vladislav Doster c61319378d fix: remove macOS 10.5 & 11 from test matrix
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-09-05 20:50:47 -05:00
vladislav doster bc7495c65e
Merge pull request #368 from zdharma-continuum/fix/osx-ghr-pattern 2022-09-05 18:36:39 -05:00
Vladislav Doster a5b05ae9ea (fix): add os-x to darwin gh-r pattern
- add `os-x` to darwin gh-r pattern
- add zunit test for tstack/lnav

Closes #367

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-09-03 06:53:50 -05:00
Jan Katins c3d1bb586c
fix: allow zinit to be run from non-interactive scripts (#227)
* maint: Ignore .idea folder

Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>

* fix: Don't escape exclamation marks in hook keys

Exclamation marks (per default) get escaped in interactive mode,
but not in non-interactive modes. In this case it meant that zinit
would not find any hooks which implements the ices when running in
non-interactive mode (e.g. in a script). This in turn would NOT result
in errors but would just silently not execute any of the ices which
of course would be a bad thing(tm).

https://github.com/zdharma-continuum/zinit/issues/199 has the details...

Closes: #199

* fix: Ignore errors if cp cannot copy .zwc files

This would otherwise bubble up as a hook failure and further up as a zinit call failure

* fix: Add pick ice now that the compile hook is run

After the fix, the compile hook is now run and would fail without this information. IN addition, only files starting with _ are linked into the completion folder.

* fix: Fix docker-buildx gh-r test now that atclone ice is run

* maint: Add basic tests for cp/mv/atclone/make ices

zunit runs tests non-interactively and these tests fail without the fix in this branch.

Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2022-08-06 02:35:58 -04:00
vladislav doster ba2eb6807d
Merge pull request #360 from zdharma-continuum/maint/stale-labeler-bot
(maint): add config for stale labeler bot
2022-08-04 04:17:33 -05:00
vladislav doster 5fffd4f6b0
(maint): add config for stale labeler bot 2022-08-04 04:12:01 -05:00
vladislav doster c6e7acd86d
maint: refactor duplicate test logic into function (#357) 2022-07-25 18:01:25 -05:00
vladislav doster 56fb9e0b1d
fix: calico gh-r zunit test (#356)
- test using the `--help` flag instead of the `version` command
2022-07-25 05:56:59 -05:00
vladislav doster f729e065db
fix: broken yaml syntax in issue template (#355) 2022-07-24 20:42:15 -05:00
vladislav doster 95baba0a95
maint: improve OS info and add CoC agreement in issue template (#353) 2022-07-24 20:30:30 -05:00
Sebastian Gniazdowski cc724a4336 Copy zinit.1 to man1 directory 2022-07-19 21:05:40 +02:00
vladislav doster 35a28668f9
docs: updates for the new configure"" ice (#346)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-17 22:36:47 -05:00
vladislav doster 3153146cdc
docs: format README.md (#347)
- Fixes failing markdown linting test

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-17 22:03:21 -05:00
Sebastian Gniazdowski 40a46c6d22
feat: add configure"" ice (#334)
### configure ice

The new `configure''` ice is a facade for the following code.

```zsh
atclone'./configure --prefix=$PWD'
atpull'%atclone'
```

### Example:

Without the `configure` ice:

```zsh
zi for \
    as'null' \
    atclone'autoreconf -iv && ./configure --prefix=$PWD' \
    atpull'%atclone' \
    lbin'!**/stow' \
    make'PREFIX=$PWD install' \
    nocompile \
  @aspiers/stow
```

With the `configure` ice:

```zsh
zi for \
    as'null' \
    configure'#' \
    lbin'!**/stow' \
    make'PREFIX=$PWD install' \
    nocompile \
  @aspiers/stow
```

Additionally, passing `#` as the ice value will look for and run `autogen.sh` prior to running `./configure`.
2022-07-16 22:56:25 -05:00
vladislav doster 35d9a7da2c
Merge pull request #343 from zdharma-continuum/docs/add-codeowners-file
maint: add CODEOWNERS file for code owners feature
2022-07-15 17:13:02 -05:00
Vladislav Doster 4194b4e34a maint: add CODEOWNERS file for code owners feature
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-15 22:08:30 +00:00
Christian Höltje 37a592fccc
maint: add multiple 'EOL' & 'diff' rules to .gitattributes (#336)
Signed-off-by: Christian Höltje <christian.holtje@boxcast.com>
2022-07-09 03:34:21 -05:00
Christian Höltje a4dc13f66a
fix: filter by runtime detected CPU before compiled CPU (#304)
Closes  #287

Signed-off-by: Christian Höltje <docwhat@gerf.org>
2022-07-05 18:54:00 -05:00
vladislav doster f5b59449ff
style: format zinit-side.zsh to zinit convention (#327)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-05 18:49:08 -05:00
vladislav doster 2450161d45
docs: update zinit-install.zsh.adoc (#329)
Documentation for #328

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-05 18:48:04 -05:00
Sebastian Gniazdowski 68f8f1d3cb
maint: run extract'' before the atclone'', atpull'', mv'', and cp'' ices (#328)
# Evaluating the `extract' '` earlier solves multiple issues:

## 1.

```bash
atclone'./configure --prefix=$PWD'
```

## 2.

The `mv' '` ice is ran after archive extraction, so

```bash
mv''
```

ice is running sense as the extension is not required for unpacking, so one can
utilize mv'' ice for something after the unpacking, not before to rename
'tmux->tmux.tgz' or similar.

## 3.

The `gh-r''` and `pack''` ices default ziextract calling in gh-r and pack'' obey
the exclamation marks from extract'!…' to allow deciding whether `move` or
`move2` mode should be enabled (i.e., move extracted archive up 1 or 2 levels
up).

## Tested against Tmux:

```bash
zi for \
	as'null' \
	atclone'./configure --disable-utf8proc --prefix=$PWD' \
	atpull'%atclone' \
	extract'!' \
	from'gh-r' \
	id-as'tmux' \
	sbin \
	make'-j 4 install' \
	ver'latest' \
	@tmux/tmux
```
2022-07-05 18:37:10 -05:00
vladislav doster 1e49316210
maint: update license (#326)
- update copyright
2022-07-04 03:43:28 -05:00
vladislav doster c3529c8270
style: format single-line.zsh to zinit convention (#325)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-04 02:29:25 -05:00
vladislav doster 99a41e36a6
maint: delete PR template in favor of org wide copy (#324)
This PR template was used before  [zdharma-continuum/.github](https://github.com/zdharma-continuum/.github) existed. 

Deleting in favor of having a single source of truth.
2022-07-02 04:30:58 -05:00
vladislav doster 1d7d32166f
style: re-format rpm2cpio.zsh to zinit convention (#319)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-07-01 04:14:03 -05:00
vladislav doster 5f8b2706cb
style: re-format git-process-output.zsh to zinit convention (#318)
See #238
2022-07-01 04:03:28 -05:00
vladislav doster 9404d2a232
docs: update info for .zinit-formatter-auto (#314)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-20 00:16:44 -05:00
Sebastian Gniazdowski f6e1d03e43
maint: extend auto formatter to support plugin ids, numbers, times, and ice values(#311)
- It makes `a/b` strings be recognized as plugin ids (plus the previous way of
  recognition via a test to the disk, for single-word id-as plugins).
- Correctly handle ices with values and spaces (i.e., `sbin'* -> foo'`)
- OhMyZsh short-hands (i.e., `OMZP::` or `OMZL`) are recognized as plugin ids.
- It colorizes numbers with `{num}` and time notions (e.g., `3s`) with a new
  code `{time} (color 220 – gold)`
2022-06-16 12:08:24 -05:00
vladislav doster 161d7c1ee1
fix: typo & triggers in documentation workflow (#308)
- correct typo (e.g., branchs -> branches)
- add `main` branch to pull request trigger
2022-06-11 06:45:54 -05:00
vladislav doster 4546669f77
refactor: self-update logic & log styling (#307)
* refactor: self-update logging
* use git branch logic compatible with older git versions (e.g., v1.8.x)
* maint: consistent logging colors
* fix: add a new line in`update` command logging
* docs: re-generate zinit-autoload.zsh asciidoc

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-10 22:10:50 -05:00
vladislav doster fb3c082551
fix: alist repository for gh-r test (#305)
- `alist` project ownership was transferred from user`Xhofe` to organization`alist-org`
2022-06-08 13:54:25 -05:00
vladislav doster b0412c02bb
docs: updates for "zinit-formatter-dbg" code (#302)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-03 23:24:10 -05:00
Sebastian Gniazdowski 6bbe920330
[feat]: add {dbg} formatter to .zinit-message (#286)
Co-authored-by: vladislav doster <mvdoster@gmail.com>
2022-06-03 23:17:18 -05:00
vladislav doster 591b332d8e
docs: updates for "zinit-formatter-auto" code (#301)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-03 20:42:49 -05:00
vladislav doster 2b70a01cf0
Merge pull request #290 from psprint/auto-formatter
feat: automatic log formatting function
2022-06-03 20:23:30 -05:00