Commit graph

470 commits

Author SHA1 Message Date
Sebastian Gniazdowski 65bb8df723 Improve the colors. 2020-07-26 08:49:12 +02:00
Sebastian Gniazdowski abb9bdda73 Uplift the color keys (ZINIT). 2020-07-24 21:58:57 +02:00
Sebastian Gniazdowski 24d3363ece Improved error messages on the basic situations like: zinit bad-command. 2020-07-24 01:37:43 +02:00
Sebastian Gniazdowski fa60c61fad A rich usage-info message when no arguments at all given. 2020-07-23 22:00:24 +02:00
Sebastian Gniazdowski 9638a3fbd1 {dots} → {…}, {bold} → {b}, +{nb} ↔ not-bold. 2020-07-23 21:59:17 +02:00
Sebastian Gniazdowski b3b4fe24c2 FEATURE: `update' has new options: -u/--urge → trigger all hooks even if no new commits, etc.
Works like run-atpull'' ice.
2020-07-23 20:35:04 +02:00
Sebastian Gniazdowski a5953e3a8d Don't use --, only - in messages. 2020-07-23 17:43:19 +02:00
Sebastian Gniazdowski eeaaf159f7 Uplift the colors. 2020-07-23 17:40:56 +02:00
Sebastian Gniazdowski 5fa766dfea Quote the new col-* keys. 2020-07-23 17:35:02 +02:00
Sebastian Gniazdowski 2352f181d6 Mute the `… --all passed' message when --all. 2020-07-23 17:31:48 +02:00
Sebastian Gniazdowski d0eb3bffb6 Use a separate function for the option-parsing code. 2020-07-23 17:30:56 +02:00
Sebastian Gniazdowski dd94885ce3 Feature: update, delete and env-whitelist now support the -h/--help options. 2020-07-23 16:14:05 +02:00
Sebastian Gniazdowski 3b8a56aaae New color/escape codes. 2020-07-23 16:13:13 +02:00
Sebastian Gniazdowski e78b79e077 Remove a debug print. 2020-07-23 15:29:51 +02:00
Sebastian Gniazdowski 3bf562925c Add {tab} and fix --quiet opt for `update'. 2020-07-23 15:15:23 +02:00
Sebastian Gniazdowski a121ef441e Prepare a generic -h/--help support for subcommands, i.a.: add help texts. 2020-07-23 15:06:48 +02:00
Sebastian Gniazdowski 0580dbadda Rename: ZINIT_ICE → ICE. 2020-07-23 13:59:41 +02:00
Sebastian Gniazdowski 591d245575 Improve options parsing for `delete'. 2020-07-23 13:47:02 +02:00
Sebastian Gniazdowski 2435b43822 New color codes. 2020-07-23 13:30:12 +02:00
Sebastian Gniazdowski 4582d9adfb Improved logic and messages for the options-parsing for `update' and in general. 2020-07-23 13:29:20 +02:00
Sebastian Gniazdowski 81f4836e50 ... → … in in all messages, if UTF-8 locale. 2020-07-22 06:14:04 +02:00
Sebastian Gniazdowski f4341c6330 Change flag order. 2020-07-20 19:51:39 +02:00
Sebastian Gniazdowski 06873a03b4 Remove unnecessary specific-case code. 2020-07-20 18:59:45 +02:00
Sebastian Gniazdowski c6dfa0ad75 FIX: https://github.com/… snippets are working again #382. 2020-07-18 23:18:12 +02:00
Sebastian Gniazdowski d2cfec3663 Correct vim-folds comments. 2020-07-18 19:52:33 +02:00
Sebastian Gniazdowski 375a898185 promptsubst isn't needed for the url formatter. 2020-07-18 19:50:59 +02:00
Sebastian Gniazdowski aa1e4474eb A good url formatter. 2020-07-18 19:49:51 +02:00
Sebastian Gniazdowski dbfcdc8020 Allow empty result from a formatter function. 2020-07-18 19:33:32 +02:00
Sebastian Gniazdowski d599245bc6 Can't use - substitution, have to stick to edge-case faulty :-… 2020-07-18 19:17:12 +02:00
Sebastian Gniazdowski 86b222e1cf Extend *message so that it calls formatter functions for {pid} and {url}. 2020-07-18 19:14:11 +02:00
Sebastian Gniazdowski d077303786 Move .zinit-setup-params to the main source. 2020-07-18 01:56:41 +02:00
Sebastian Gniazdowski 5c72619da3 FEATURE: A new ice binary' ↔ works like null' however installs completions.
- `null' works like: pick'/dev/null' nocompletions.
- `binary' works like: pick'/dev/null'.

I.e.: it denotes a binary, no-source plugin that still might have some
completions to install.
2020-07-18 00:01:30 +02:00
Sebastian Gniazdowski c78de66472 FIX: pmodload was broken (for 1.5 hour, thanks @NorthIsUp) #381. 2020-07-17 23:17:13 +02:00
Sebastian Gniazdowski 2a1a6ae45c Implement the ID overriding via teleid''. 2020-07-17 21:37:46 +02:00
Sebastian Gniazdowski 76783c910d IMPORTANT FIX: It is very probable that id-as'…' and wait'' (Turbo)
plugins were actually loaded without Turbo. That's now fixed :).
repeat 5 { time /bin/zsh -ic exit; } :)
2020-07-17 21:00:08 +02:00
Sebastian Gniazdowski 1201e1da79 No hook calling on `update'. 2020-07-17 15:28:22 +02:00
Sebastian Gniazdowski 1c4bb1f0a9 Extend the Annex API — gather the previously-processed ID in an ZINIT key. 2020-07-17 14:44:04 +02:00
Sebastian Gniazdowski 64c8f4e0f0 Fix an autoload'' bug that prevented it from working on id-as'…' plugins. 2020-07-17 14:42:57 +02:00
Sebastian Gniazdowski a4ea80e06f Update colors. 2020-07-17 14:35:13 +02:00
Sebastian Gniazdowski 4de0f031e0 Skip the current $1 in before-load's hook/callback 4th argument. 2020-07-17 13:25:26 +02:00
Sebastian Gniazdowski 0bb31a6c0d Don't shift unless error from before-load hook. 2020-07-17 08:58:34 +02:00
Sebastian Gniazdowski 6362c56c24 Add some top-level debug message. 2020-07-17 08:57:41 +02:00
Sebastian Gniazdowski c65ba93fbc Extend warning on before-load hook-communication problems (issues URL). 2020-07-17 08:07:22 +02:00
Sebastian Gniazdowski 9e0f37adc3 Extended API for communication with the before-load hooks. 2020-07-17 07:47:09 +02:00
Sebastian Gniazdowski faee4ce653 Return the gathered ret-val, not always 0. 2020-07-17 07:46:20 +02:00
Sebastian Gniazdowski e046ba991e General ret-val cleanup and also related to before-load hook. 2020-07-17 07:45:18 +02:00
Sebastian Gniazdowski b3282bdb39 Utilize return's math context. 2020-07-17 07:42:41 +02:00
Sebastian Gniazdowski ed54f898d9 Significantly improve +zinit-message. 2020-07-15 14:43:50 +02:00
Sebastian Gniazdowski ad0928b3d5 Fix *object-path's AUTO-type call. 2020-07-15 07:40:03 +02:00
Sebastian Gniazdowski f5313045cc Make *object-path accept an `AUTO' type causing it to try both (s&p) types. 2020-07-15 07:29:57 +02:00
Sebastian Gniazdowski 6e23a5eb2d Add new colors: {warn},{apo},{ok}. 2020-07-15 07:13:14 +02:00
Sebastian Gniazdowski f6dff51a22 FEATURE: A new ice `null' working like as'null', e.g.:
zi null sbin"vims" for MilesCranmer/vim-stream

instead of:

    zi as"null" sbin"vims" for MilesCranmer/vim-stream
2020-07-15 07:02:21 +02:00
Sebastian Gniazdowski 693edb36e4 FIX the localize-special parameter error #380.
https://mail.google.com/mail/u/0/#label/github/FMfcgxwJWrXJRsTmcdRSjHsqCgZcPhxJ
2020-07-15 04:57:38 +02:00
Sebastian Gniazdowski 63c80c2480 Localize a correct IFS value. 2020-07-14 22:11:54 +02:00
Sebastian Gniazdowski 841da4a346 Fix the storing of ices. 2020-07-14 21:34:10 +02:00
Sebastian Gniazdowski 043161c23c Make the ices respect the order-number given to @zinit-register-annex. 2020-07-13 20:27:34 +02:00
Sebastian Gniazdowski 0f8882ad50 Add %ZPFX shorthand. 2020-07-12 19:56:14 +02:00
Sebastian Gniazdowski 801c62ea4f Use $REPLY of *path. 2020-07-11 19:11:07 +02:00
Sebastian Gniazdowski a733e2362f Set REPLY in *object-path. 2020-07-11 19:05:39 +02:00
Sebastian Gniazdowski 7bdee59a54 Fix a message. 2020-07-10 21:09:10 +02:00
Sebastian Gniazdowski 08fb94f428 New colors. 2020-07-10 13:54:13 +02:00
Sebastian Gniazdowski 4cb75b799c *object-path now supports %HOME, %SNIPPETS, etc. shorthands. 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski c822aca8be Add %PLUGINS support. 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski 888b3a8c1c .zinit-any-to-pid, .zinit-util-shands-path 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski 3cfbb28f32 Limit localization of the reply params. 2020-07-10 13:54:12 +02:00
Sebastian Gniazdowski b37aecfc45 Update colors (i.a.: add {ice}). 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 3deaaddff6 Add and use {dots} to +zinit-message: 3 dots, Unicode `…' if UTF-locale. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski c88677c84c A nice warncreateglobal trick. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 09e86874c5 NEW: Utilize the 256 color palette for plugin IDs, if available. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 4be0852886 A nicer condition. 2020-07-10 13:54:11 +02:00
Sebastian Gniazdowski 06b715c8e5 IMPORTANT: API change of the annexes – you should update them too and restart the shell. 2020-07-10 13:54:10 +02:00
Sebastian Gniazdowski decb99c8a5 FIX: the in-zshrc installation of snippets. 2020-07-09 04:27:36 +02:00
Sebastian Gniazdowski 6f827ebe3c FIX: the in-zshrc installation of Turbo objects. 2020-07-09 04:12:34 +02:00
Sebastian Gniazdowski f2b835d6cf Correctly handle non-zero return code from `before-load' hooks. 2020-07-09 03:08:28 +02:00
Sebastian Gniazdowski c6de771ea5 Run the `before-load' hook also on update of an object. 2020-07-09 02:58:00 +02:00
Sebastian Gniazdowski 404fedb73b A new hook-type: `before-load' that allows object-ID unscoping. 2020-07-09 01:57:22 +02:00
Sebastian Gniazdowski 477280401d A new ice: `debug' to enable some debug output from e.g.: annexes. 2020-07-08 23:52:47 +02:00
Sebastian Gniazdowski dffafb2da7 Further undefensive the code. 2020-07-08 23:29:40 +02:00
Sebastian Gniazdowski 0c8b4a1280 Remove an over-defensive code. 2020-07-08 23:21:38 +02:00
Sebastian Gniazdowski 1e944dd031 Remove an empty line. 2020-07-08 19:26:34 +02:00
Sebastian Gniazdowski e03c38c57f Reformat the color-hash definition into multiple columns. 2020-07-08 19:25:13 +02:00
Sebastian Gniazdowski bad2b97873 Tweak the colors (add new ones: var, glob, cmd). 2020-07-08 19:20:10 +02:00
Sebastian Gniazdowski a3dbe5cbfe silent'' mutes the `Snippet not loaded' error message. 2020-07-08 18:02:33 +02:00
Sebastian Gniazdowski 2d4dc4f9da Remove an unneeded unset of subscribe''. 2020-07-08 17:17:19 +02:00
Sebastian Gniazdowski f7c343bf7a zinit: Don't load wait'' from disk. 2020-07-08 15:46:06 +02:00
Sebastian Gniazdowski cb777034fc zinit: Mute a warncreateglobal warning. 2020-07-08 15:13:52 +02:00
Sebastian Gniazdowski 27d1b66ab2 FIX: prevent interactive double-installation of wrongly entered plugins. 2020-07-08 14:44:14 +02:00
Sebastian Gniazdowski 5d2084234a zinit: Fix the loading of disk ices. 2020-07-08 11:18:15 +02:00
Sebastian Gniazdowski 4d8f292812 zinit: Fix +zinit-message. 2020-07-07 19:27:53 +02:00
Sebastian Gniazdowski ad324236da Don't add unnecessary entries to path. 2020-07-06 10:00:05 +02:00
Sebastian Gniazdowski 54363e33a8 Introducing a new annex/zinit hook argument: a subtype, that denotes the
place where the hook is being invoked. Currently only for hook:preinit.
2020-07-05 15:14:12 +02:00
Sebastian Gniazdowski ec8a0a5a9f zinit: A small cleanup. 2020-07-05 15:12:52 +02:00
Sebastian Gniazdowski ce53848800 Fix some comments. 2020-07-04 21:23:15 +02:00
Sebastian Gniazdowski 7a9151e886 Remove @ from ${(@on)…. 2020-07-04 21:21:27 +02:00
Sebastian Gniazdowski 464eb23dc7 Work in progress – a major cleanup. 2020-07-04 21:20:24 +02:00
Sebastian Gniazdowski 59340b01a1 Work in progress: Extended preinit annex-hook processing. 2020-07-04 21:10:25 +02:00
Sebastian Gniazdowski 4236d9769e Work in progress – the major cleanup in the hook-related code. 2020-07-04 06:20:06 +02:00
Sebastian Gniazdowski 5450909912 ZINIT[col-msg1 → col-msg] plus related print → +zinit-message changes 2020-07-04 03:50:33 +02:00
Sebastian Gniazdowski c892ae55e0 A few print → +zinit-message conversions 2020-07-04 00:49:23 +02:00
Sebastian Gniazdowski c95c0cc5a9 zinit,autoload: One global variable less 2020-06-28 13:57:32 +02:00
Sebastian Gniazdowski 1cad6df5e5 zinit: FEATURE – ability to invoke autoloaded function: autoload'#fun'
– by prefixing it with the hash. So that it's possible to invoke e.g.:

    zinit autoload'#manydots-magic' for knu/zsh-manydots-magic

instead of:

    zinit autoload'manydots-magic' atload'manydots-magic' for \
        knu/zsh-manydots-magic
2020-06-25 17:22:40 +02:00
Sebastian Gniazdowski e53c6878b9 zinit: Fix indentation 2020-06-20 21:39:19 +02:00
Sebastian Gniazdowski 3055bd8e8c zinit,install: Update the colors 2020-06-20 21:38:08 +02:00
Sebastian Gniazdowski 25a13f75e4 zinit: Improve +zinit-message 2020-06-20 17:13:33 +02:00
Sebastian Gniazdowski 754aae4c27 zinit: Improve +zinit-message 2020-06-20 17:11:30 +02:00
Sebastian Gniazdowski 6d8cb156a4 zinit: Improve +zinit-message 2020-06-20 16:58:48 +02:00
Sebastian Gniazdowski 95415bb31d all: Change [code] to {code} in +zinit-message and in `m' 2020-06-20 15:57:19 +02:00
Sebastian Gniazdowski a0cdf6b5c0 zinit,install: Better messages 2020-06-19 14:17:55 +02:00
Sebastian Gniazdowski 45a908ec41 zinit: Fix the is-snippet condition #362 2020-06-18 16:57:55 +02:00
Sebastian Gniazdowski 0729a2414a zinit: Try to properly implement loading of disk ices #362, #363, #364 2020-06-17 17:16:25 +02:00
Sebastian Gniazdowski 440d847aa5 Revert "zinit: Try to properly implement the loading of the disk ices #363"
This reverts commit 59a651020c.

Issues #362, #363, #364
2020-06-17 17:09:36 +02:00
Sebastian Gniazdowski dd2825b7c7 zinit: Improve *get-object-path #363, #364 2020-06-16 18:44:16 +02:00
Sebastian Gniazdowski 59a651020c zinit: Try to properly implement the loading of the disk ices #363 2020-06-16 18:27:35 +02:00
Sebastian Gniazdowski 82afb3981d Revert "zinit: Correctly load the disk ices"
This reverts commit ca6083a64d.
2020-06-16 17:56:43 +02:00
Sebastian Gniazdowski 15b118144e zinit: Improve *any-to-user-plugin 2020-06-14 16:12:48 +02:00
Sebastian Gniazdowski ca6083a64d zinit: Correctly load the disk ices 2020-06-13 08:49:58 +02:00
Sebastian Gniazdowski e872b50c18 zinit: Change syntax 2020-06-13 08:47:38 +02:00
Sebastian Gniazdowski 4de9820397 zinit: Restore proper hook calling for plugins 2020-06-13 06:50:10 +02:00
Sebastian Gniazdowski 73ebeb5dc5 zinit: Use the snippet shorthand URLs without redirections 2020-06-13 02:56:06 +02:00
Sebastian Gniazdowski b684c3f8af zinit: Correct option computation 2020-06-12 22:48:03 +02:00
Sebastian Gniazdowski b9daefeaff zinit,*autoload: FEATURE – new options to `update': -s/--snippets and
-l/--plugins – they're limiting the `update --all' to only plugins or
snippets. Example:

    zinit update --plugins

Works also with -p/--parallel.
2020-06-12 22:35:30 +02:00
Sebastian Gniazdowski 9db192db79 zinit: Alternate syntax 2020-06-11 13:55:19 +02:00
Sebastian Gniazdowski 0ff0c7855c Revert "all: Alternate syntax"
This reverts commit 611aa3f5e6.
2020-06-10 18:58:11 +02:00
Sebastian Gniazdowski 4bf80a891b zinit: Fix has'' ice #352 2020-06-10 18:16:00 +02:00
Sebastian Gniazdowski 611aa3f5e6 all: Alternate syntax 2020-06-10 17:05:15 +02:00
Sebastian Gniazdowski 279321d512 all: Correct print → builtin print 2020-06-06 16:43:34 +02:00
Sebastian Gniazdowski 9352ffe864 all: print → builtin print 2020-06-06 15:07:08 +02:00
Sebastian Gniazdowski 9ff614d1a7 zinit: Add the missing pullopts'' ice 2020-06-05 16:55:51 +02:00
Sebastian Gniazdowski 7910e244bd zinit: Feature – allow multiple has'' elements – all commands required
Issue #351
2020-05-30 17:26:46 +02:00
Sebastian Gniazdowski 2be7544d59 zinit: Add $ZPFX/usr/{sbin,bin} to $path 2020-05-27 01:30:37 +02:00
Sebastian Gniazdowski 1a4d1c938e zinit: Feature: A new function `@autoload' which is an extension of the
plugin standard. It allows plugins to autoload any functions without
extending $fpath and with the rename feature, e.g.:

    @autoload function-file-A → my-function \
                funB '->' funC

The syntax is the same as in autoload'' ice.
2020-05-27 01:07:39 +02:00
Sebastian Gniazdowski 37c3f75b51 zinit: Filter out -- from the arguments of autoload 2020-05-20 08:49:21 +02:00
Sebastian Gniazdowski aa3beb1722 zinit,*install: FEATURE: zicm and zimv functions for atclone''/atpull''
usage. Use them to install files and directories into $ZPFX or another
directory. Example:

zi make'!' atclone'zicp share bin/fzf → bin usr -> /usr/local' for junegunn/fzf

Without an arrow (→,-> or =>) copies into the same directory in $ZPFX,
i.e.: `share' onto `$ZPFX/share' in the example. With an arrow –
into the given directory. Supports also file names with spaces – use the
non-breaking space (Right–AltGr + Space) in place of the intended space.
2020-05-19 10:16:45 +02:00
Sebastian Gniazdowski 10596f3db4 zinit: FEATURE – autoload'funA -> funB' to load/rename funA as funB 2020-05-15 10:50:20 +02:00
Sebastian Gniazdowski f7756b4c26 zinit: autoload'' can *rename* the funs, e.g.: autoload'funA -> funB'
to load the function/file `funA' as function `funB'. Also, alternate,
"manual" loading method – via: eval "$(<func-file)" – has been exposed,
to use it, precede the ice with exclamation mark, i.e.: autoload'!funA'.
2020-05-15 10:37:53 +02:00
Sebastian Gniazdowski fedd94db2d zinit: Update color palette 2020-05-15 05:41:39 +02:00
Sebastian Gniazdowski 2e3c1a476e zinit.zsh: Update color palette 2020-05-15 05:36:48 +02:00
Sebastian Gniazdowski 1cfc98ba34 zinit: Update color palette 2020-05-15 05:33:12 +02:00
Sebastian Gniazdowski 2212b2e214 zinit: Update color palette 2020-05-15 05:28:06 +02:00
Sebastian Gniazdowski ffca5f8cc5 zinit: Add a color to a message 2020-05-14 14:09:36 +02:00
romkatv 2b02f17592 hide internal function arguments from sourced scripts
When manually sourcing a file from `.zshrc`, `$@` is empty during
the evaluation of the file. However, when sourcing the same file
via `zinit snippet`, `zinit light` or `zinit load`, `$@` are those
of the internal `zinit` function that happens to invoke `source`.
This PR sets `$@` to empty before sourcing scripts to make sourcing
of files via `zinit` consistent with manual sourcing.

Test case:

  % cat ~/.zshrc
  source ~/.zinit/bin/zinit.zsh
  source ~/plugin.zsh
  zinit snippet ~/plugin.zsh
  % cat ~/plugin.zsh
  print -lr -- start "$@" end

Without this commit:

  % zsh
  start
  end
  start
  /home/romka/plugin.zsh
  end

With this commit:

  % zsh
  start
  end
  start
  end

Motivation:

Some zsh scripts allow additional arguments to be passed when they
are being sourced.

  source ~/plugin.zsh foo bar

Sourcing such scripts via `zinit` is currently impossible. It would
be perfect if `zinit` allowed custom arguments to be passed to
sourced scripts. This PR doesn't go that far but at least it allows
passing no arguments.
2020-05-13 09:42:37 +02:00
Sebastian Gniazdowski 726aa8ea19 *additiona: FEATURE – ability to substitute stringA -> stringB in plugin
source body before executing by subst'A -> B'. Work also for any nested
`source' commands. Example – rename the dl'' ice into a dload'' ice in
the Patch-Dl annex:

zi subst"dl'' -> dload''" for zinit-zsh/z-a-patch-dl
2020-05-12 16:09:03 +02:00
Sebastian Gniazdowski 7528ac820b zinit: Three new colors 2020-05-12 14:54:45 +02:00
Sebastian Gniazdowski 391f25e949 zinit: Create zinit-additional.zsh 2020-05-12 14:47:03 +02:00
Sebastian Gniazdowski 688fef86ac zinit: Silence warnings from unfunction 2020-05-12 14:29:04 +02:00
Sebastian Gniazdowski d828a87e9b zinit: Preliminary support for substitutions 2020-05-11 11:36:28 +02:00
Sebastian Gniazdowski fcff4a8f17 zinit: FEATURE – a new ice autoload'' which invokes `autoload -Uz …' on
the given files/functions. Example – a plugin that converts cd ... into
cd ../..:

zinit autoload'manydots-magic' atload'manydots-magic' for \
    knu/zsh-manydots-magic
2020-05-10 13:29:28 +02:00
Sebastian Gniazdowski f124600b5d zinit: Fix autoload -w 2020-05-10 11:35:53 +02:00
Sebastian Gniazdowski 1fd93ff28e zinit: Update Zle hooks list 2020-05-10 05:34:21 +02:00
Sebastian Gniazdowski bb41c7986a zinit: FEATURE – a new ice opts'' which takes options to sticky-set
during sourcing of the plugin. This means that thee options will be also
set for all of the *functions* that the plugin defines – during their
execution. The option list is space separated.
2020-05-09 18:55:42 +02:00
Sebastian Gniazdowski a6f6b8bbfc Revert "zinit: Increase noaliases-option handling correctness"
This reverts commit 0f81a7684d.

Issue #331
2020-05-09 18:02:20 +02:00
Sebastian Gniazdowski 0f81a7684d zinit: Increase noaliases-option handling correctness 2020-05-09 16:22:17 +02:00
Sebastian Gniazdowski 639e3e53ad zinit,*install: Feature: `creinstall' has -Q option muting ALL output
Issue #326
2020-05-09 15:44:05 +02:00
Sebastian Gniazdowski 788ca4989b zinit: Remove unneeded spaces 2020-05-09 12:28:07 +02:00
Sebastian Gniazdowski 9004dfa4f8 zinit: Increase the length of the underscore prefix from __ to ___ #329 2020-05-08 21:18:53 +02:00
Sebastian Gniazdowski eb825f6fea zinit: Hide three functions' local variables with `__...' prefix #329 2020-05-08 20:46:52 +02:00
Sebastian Gniazdowski ad9ece5331 all: Extend vim modeline 2020-05-06 14:34:34 +02:00
Sebastian Gniazdowski 930d12ef99 zinit: Change color 2020-05-06 14:30:11 +02:00
Sebastian Gniazdowski 5a420aa3cd zinit: Use *message in a few places 2020-05-06 14:28:40 +02:00
Sebastian Gniazdowski da23b0a45e zinit: Improve *message 2020-05-06 14:27:45 +02:00
Sebastian Gniazdowski 6d4ba4add2 zinit,*install,*autoload: Remove trailing spaces 2020-05-06 14:16:51 +02:00
Sebastian Gniazdowski 3448a1be87 zinit: Include the cloneopts ice in the non-value ice list #312 2020-04-21 21:03:16 +02:00
Sebastian Gniazdowski ff859ff375 zinit: Resolve the lack of posixargzero on 5.0.2 #310 2020-04-19 18:22:48 +02:00
Sebastian Gniazdowski a40f7943cd zinit: Better reloading support 2020-04-18 17:35:04 +02:00
Sebastian Gniazdowski 7ed6ab9dc5 zinit: FEATURE – a function `m' available during loading of the plugin
or snippet. It works like `print' with colorizing features – [key] are
replaced with $ZINIT[col-key] values, which are in general colors. You
can define your own $ZINIT keys or use some of the default ones: obj,
obj2, pre, file, uname, pname, keyword, error, success, failure, info,
info2, msg1, msg2, rst.  Example: m 'This is a [file]./file/path[rst].'.
You can use this function inside e.g.: atinit'' or atload'', etc.
2020-04-18 17:22:27 +02:00
Sebastian Gniazdowski afe03d4f08 zinit: Preserve Turbo tasks when reloading, fixes #306 2020-04-17 17:35:26 +02:00
Sebastian Gniazdowski cacfa35d9e zinit: Detect lack of datetime module #306 2020-04-17 16:32:56 +02:00
greg 9e785d31ed zinit: Fix ZSH_CACHE_DIR value 2020-04-17 01:06:16 +02:00
Sebastian Gniazdowski 3a01df8495 zinit: Remove `cloneonly' file 2020-04-16 16:30:19 +02:00
Sebastian Gniazdowski a4cdccfe3e zinit: Provide the OMZT entry 2020-04-15 19:18:11 +02:00
Sebastian Gniazdowski 23493ec5c8 zinit,*install: FEATURE – ability to skip the /themes/….zsh-theme from a
OMZ theme URL, e.g.: zi for OMZT::gnzh
2020-04-15 19:04:34 +02:00
Sebastian Gniazdowski 2654046d2e zinit: Correct PZTM 2020-04-15 18:21:12 +02:00
Sebastian Gniazdowski b96f274f4a zinit,*install: Correct ZSH typeset 2020-04-15 18:20:37 +02:00
Sebastian Gniazdowski 46a2084b97 zinit,*install,*autoload: FEATURE - new prefixes OMZP:: = OMZ::/plugins/
OMZL:: = OMZ::lib/, PZTM:: = PZT::modules/, for both svn and single-file
snippets. Example use:
  zinit for OMZP::ruby/ruby.plugin.zsh
  zinit svn for OMZP::ruby
2020-04-15 16:37:43 +02:00
Sebastian Gniazdowski 373eb3c23e zinit,*install: Correctly move the snippet of code 2020-04-15 16:35:32 +02:00
Sebastian Gniazdowski e11b9617fb zinit,*install: Move a snippet to *install 2020-04-15 15:08:26 +02:00
Sebastian Gniazdowski cd93467743 zinit: Fix a message 2020-04-15 14:38:14 +02:00
Sebastian Gniazdowski 711da6ad54 zinit: Return code 0 #304 2020-04-15 14:23:35 +02:00
Sebastian Gniazdowski f5b303450a zinit: Better auto-disable-Turbo support 2020-04-13 19:06:44 +02:00
Sebastian Gniazdowski 3c990cadcb zinit: Fix the id-as'' ice 2020-04-12 20:07:21 +02:00
Sebastian Gniazdowski f32505d629 zinit: Feature: An empty id-as'' works like id-as'auto' 2020-04-12 19:56:20 +02:00
Sebastian Gniazdowski 1553e50443 zinit: Remove unneded setopt 2020-04-08 19:42:01 +02:00
Sebastian Gniazdowski ba51c3e102 zinit: Improve bindmap'' handling #271 2020-04-08 17:13:03 +02:00
Sebastian Gniazdowski 7c142130e5 zinit: Rename functions 2020-04-08 16:12:16 +02:00
Sebastian Gniazdowski 2d0f81dcec zinit,*autoload: Rearrange functions 2020-04-08 16:11:18 +02:00
Sebastian Gniazdowski 4883ab6a91 zinit: Ensure a source 2020-04-07 19:53:58 +02:00
Sebastian Gniazdowski c4f74ca439 zinit,*install,*autoload: A more safe sourcing of the side sources 2020-04-07 16:00:16 +02:00
Sebastian Gniazdowski 5fba601dbe zinit: Setup param'' earlier 2020-04-07 15:33:00 +02:00
Sebastian Gniazdowski d325f71d80 zinit: Remove uneeded flag 2020-04-06 18:43:00 +02:00
Sebastian Gniazdowski d8fd9340f9 zinit: Check param'' first 2020-04-05 18:10:42 +02:00
Sebastian Gniazdowski 8023b04688 zinit: Optimized param'' handling 2020-04-05 18:09:50 +02:00
Sebastian Gniazdowski dfc95c5f9a zinit: Optimized param'' handling 2020-04-04 16:33:42 +02:00
Sebastian Gniazdowski 01ac879bcb zinit: Optimize ices loading 2020-04-03 20:51:07 +02:00
Sebastian Gniazdowski b61706d03e zinit: A defensive code in *load-ices 2020-03-24 20:45:06 +01:00
Sebastian Gniazdowski e4c092fc60 zinit: Handle POSIX_ARG_ZERO 2020-03-24 20:44:33 +01:00
Sebastian Gniazdowski 3073804b97 zinit: Improve *get-object-path 2020-03-24 20:32:20 +01:00
Sebastian Gniazdowski c0f2a8fbd5 zinit: Store aliases option state 2020-03-22 14:30:28 +01:00
Sebastian Gniazdowski 5ddb033342 zinit: Allow empty colors in *message 2020-03-20 07:08:26 +01:00
Sebastian Gniazdowski 1658cf0f75 zinit: Use *message 2020-03-20 07:05:22 +01:00
Sebastian Gniazdowski aeab7d7347 zinit: Make *message output unchanged text if given color not found 2020-03-20 07:03:59 +01:00