Commit graph

470 commits

Author SHA1 Message Date
Sebastian Gniazdowski aef0e46ecc Fix snippet message and slightly improve other ones. 2020-12-19 01:20:09 -06:00
Sebastian Gniazdowski 1cea67c5cc Fix a message. 2020-12-18 05:01:16 -06:00
Sebastian Gniazdowski 94109fbaec Improve messages. 2020-12-18 04:48:20 -06:00
Sebastian Gniazdowski cdc2c4379d Fix +X autoload. Resolves gh-441. 2020-12-18 02:54:56 -06:00
Sebastian Gniazdowski 5c224537d9 Improve a message and slightly alter color theme. 2020-12-17 03:38:47 -06:00
Sebastian Gniazdowski 2c01a5ac56 Improve messages: codes like {…} automatically make current color to last after them. 2020-12-17 03:18:51 -06:00
Sebastian Gniazdowski 0c14b210d5 Minor messages update.I 2020-12-17 01:32:15 -06:00
Sebastian Gniazdowski 33b0000675 Uplift the {bar}/{th-bar} code, i.a.: add a non-UTF8 fallback character. 2020-12-16 23:29:45 -06:00
Sebastian Gniazdowski 39abb744d6 Add {bar} and {th-bar} ("thick bar") formatters, which draw a line spanning horizontal line.lj 2020-12-16 23:09:24 -06:00
Sebastian Gniazdowski 1f11f8537f Missed changes.I 2020-12-16 23:08:39 -06:00
Sebastian Gniazdowski 06a78a0a1d Uplift the m function code. Make it properly available during update. 2020-12-16 23:06:08 -06:00
Sebastian Gniazdowski dc9af228e4 Fix %F codes support for +zinit-message. Fixes #448. 2020-12-16 22:03:08 -06:00
Sebastian Gniazdowski 2463d2d028 Limit MUTE_WARNINGS recognized values. 2020-12-16 21:19:37 -06:00
Sebastian Gniazdowski 497e899a10 A small, general messages update. 2020-12-16 21:15:49 -06:00
Sebastian Gniazdowski 23d40d9d02 Updated the pid formatter and the message function. 2020-12-16 21:09:17 -06:00
Sebastian Gniazdowski 7afddbdde2 Fix autoloading with the +X option (immediate read from the disk) 2020-12-16 20:19:24 -06:00
Sebastian Gniazdowski 103f77df81 Fix the absolute path autoload functions support. #441 2020-12-16 20:17:01 -06:00
Sebastian Gniazdowski c27bf53f06 Updated the color theme. 2020-12-16 19:06:38 -06:00
Sebastian Gniazdowski 8281243840 Add -n/--no-pager option to update. Fixes #383. 2020-12-13 06:19:23 -06:00
sashaweiss ef56c2b328 Keep existing code, and add check 2020-12-07 17:37:44 -08:00
sashaweiss bb8426fc9f Only add $ZPFX/bin to path if that dir exists 2020-12-07 17:34:14 -08:00
Sebastian Gniazdowski 857d6fb6b4 Update a message. 2020-11-26 06:47:20 -06:00
Sebastian Gniazdowski 0b83b283d8 Update an error message. 2020-11-26 06:28:23 -06:00
Sebastian Gniazdowski cbea70e056 Remove a problematic character (on 5.0.2). 2020-11-14 21:37:43 -06:00
Sebastian Gniazdowski 83f2f6fd7c Extended comment on the *message() function. 2020-11-07 04:30:54 +01:00
Sebastian Gniazdowski 94ecad8335 A general, small uplift of the colors, messages, etc. 2020-11-06 23:14:06 +01:00
Sebastian Gniazdowski 3bf975a45a Fix a comment. 2020-11-06 21:55:07 +01:00
Sebastian Gniazdowski e7b16c39f8 Tweak a substitution. 2020-11-06 21:52:11 +01:00
Sebastian Gniazdowski 38f430ebdc Recognize OMZ and Prezto shorthands as URLs for the detailed coloring. 2020-11-06 21:48:07 +01:00
Sebastian Gniazdowski 72acc6127b Rename wrap-trackwrap. 2020-11-06 21:45:32 +01:00
Sebastian Gniazdowski 567e6c59d3 Uplift the message colors. 2020-11-06 21:44:44 +01:00
Sebastian Gniazdowski 6063ac8e28 Make any URLs printed with detailed coloring by a generalized mechanism. 2020-11-06 21:03:56 +01:00
Sebastian Gniazdowski b5cc9a4534 Update messages and unicode compatibility. 2020-11-06 16:00:29 +01:00
Sebastian Gniazdowski 07185a00eb Update comments. 2020-11-06 15:53:46 +01:00
Sebastian Gniazdowski 925c96e0c1 Small tweaks around the paths-establishing code. 2020-11-06 14:11:17 +01:00
Sebastian Gniazdowski acd31fcdf7 Uplift the message colors. 2020-11-06 14:10:29 +01:00
Sebastian Gniazdowski 284784985e
Merge pull request #414 from horta/zsh-5.0.2-fix
zinit-message zsh 5.0.x compatibility
2020-09-07 17:56:58 +02:00
Sebastian Gniazdowski 46c6acbafa Uplift formatter. 2020-09-07 14:44:54 +02:00
Danilo Horta f693ebdaaa zinit-message zsh 5.0.x compatibility 2020-09-07 10:27:58 +01:00
Sebastian Gniazdowski 9d7b25a1fc Reformat/reindent-only *-message. 2020-09-07 10:50:16 +02:00
Sebastian Gniazdowski dcac918f5f Seat CUR_* fields of ZINIT earlier #356. 2020-09-03 17:04:07 +02:00
Sebastian Gniazdowski 8f297f67db Improve error messages. 2020-09-03 16:08:51 +02:00
Sebastian Gniazdowski 4471e4ce19 Restore the activitiy of the light-mode. 2020-09-03 15:55:33 +02:00
Sebastian Gniazdowski a563cade19 Respect TMPDIR 2020-09-03 15:27:18 +02:00
Sebastian Gniazdowski 5e841ab328 Revert "Move the hooks up."
This reverts commit 115eb0e25a.
2020-08-08 11:17:44 +02:00
Sebastian Gniazdowski 534083182e Remove a new-Zsh dependent syntax. 2020-08-02 21:45:40 +02:00
Sebastian Gniazdowski 1d85dbceb0 Reorder functions. 2020-07-27 19:08:57 +02:00
Sebastian Gniazdowski 3390b87b4c Change order. 2020-07-27 19:03:49 +02:00
Sebastian Gniazdowski f4bad09e08 Add a new function. 2020-07-27 18:32:17 +02:00
Sebastian Gniazdowski 115eb0e25a Move the hooks up. 2020-07-27 13:44:30 +02:00
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