Skip to content

[feat] zi cd with zero args or -[[:digit:]] argument will jump to the last N dir #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 29 additions & 24 deletions doc/zsdoc/zinit-autoload.zsh.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ FUNCTIONS
.zinit-check-which-completions-are-installed
.zinit-clear-completions
.zinit-clear-report-for
.zinit-compile-uncompile-all
.zinit-compiled
.zinit-compile-uncompile-all
.zinit-confirm
.zinit-create
.zinit-delete
Expand Down Expand Up @@ -157,13 +157,18 @@ ____
FUNCTION: .zinit-cd [[[
Jumps to plugin's directory (in Zinit's home directory).

Remembers which directories you have navigated to, so you can "jump" to them in
just a few keystrokes. When n not given ($1, $2 are empty) or if a negative number
will be entered to point to that number distance entry from the top of the stack. -1
(the default) points to the last, most recent dir, and so on. By default, the
last 1500 directories are remembered.
User-action entry point.

$1 - plugin spec (4 formats: user---plugin, user/plugin, user, plugin)
$2 - plugin (only when $1 - i.e. user - given)
____

Has 15 line(s). Calls functions:
Has 36 line(s). Calls functions:

.zinit-cd
`-- zinit.zsh/+zinit-message
Expand Down Expand Up @@ -350,21 +355,20 @@ Called by:

.zinit-unload

.zinit-compile-uncompile-all
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.zinit-compiled
~~~~~~~~~~~~~~~

____

FUNCTION: .zinit-compile-uncompile-all [[[
Compiles or uncompiles all existing (on disk) plugins.
FUNCTION: .zinit-compiled [[[
Displays list of plugins that are compiled.

User-action entry point.
____

Has 23 line(s). Calls functions:
Has 26 line(s). Calls functions:

.zinit-compile-uncompile-all
|-- zinit-install.zsh/.zinit-compile-plugin
.zinit-compiled
|-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
`-- zinit.zsh/.zinit-any-to-user-plugin

Expand All @@ -374,20 +378,21 @@ Called by:

zinit.zsh/zinit

.zinit-compiled
~~~~~~~~~~~~~~~
.zinit-compile-uncompile-all
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

____

FUNCTION: .zinit-compiled [[[
Displays list of plugins that are compiled.
FUNCTION: .zinit-compile-uncompile-all [[[
Compiles or uncompiles all existing (on disk) plugins.

User-action entry point.
____

Has 26 line(s). Calls functions:
Has 23 line(s). Calls functions:

.zinit-compiled
.zinit-compile-uncompile-all
|-- zinit-install.zsh/.zinit-compile-plugin
|-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
`-- zinit.zsh/.zinit-any-to-user-plugin

Expand Down Expand Up @@ -462,9 +467,9 @@ Has 99 line(s). Calls functions:

.zinit-delete
|-- zinit-side.zsh/.zinit-compute-ice
|-- zinit.zsh/+zinit-prehelp-usage-message
|-- zinit.zsh/.zinit-any-to-user-plugin
`-- zinit.zsh/.zinit-parse-opts
|-- zinit.zsh/.zinit-parse-opts
`-- zinit.zsh/+zinit-prehelp-usage-message

Uses feature(s): _setopt_

Expand Down Expand Up @@ -1071,8 +1076,8 @@ ____
Has 42 line(s). Calls functions:

.zinit-self-update
|-- zinit.zsh/+zinit-message
`-- zinit.zsh/.zinit-get-mtime-into
|-- zinit.zsh/.zinit-get-mtime-into
`-- zinit.zsh/+zinit-message

Uses feature(s): _setopt_, _source_, _zcompile_

Expand Down Expand Up @@ -1390,8 +1395,8 @@ Has 84 line(s). Calls functions:

.zinit-update-all-parallel
|-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|-- zinit.zsh/+zinit-message
`-- zinit.zsh/.zinit-any-to-user-plugin
|-- zinit.zsh/.zinit-any-to-user-plugin
`-- zinit.zsh/+zinit-message

Uses feature(s): _setopt_

Expand Down Expand Up @@ -1425,8 +1430,8 @@ Has 325 line(s). Calls functions:
|-- zinit-side.zsh/.zinit-exists-physically-message
|-- zinit-side.zsh/.zinit-store-ices
|-- zinit-side.zsh/.zinit-two-paths
|-- zinit.zsh/+zinit-message
|-- zinit.zsh/.zinit-any-to-user-plugin
|-- zinit.zsh/+zinit-message
`-- zinit.zsh/.zinit-set-m-func

Uses feature(s): _kill_, _read_, _setopt_, _source_, _trap_, _wait_
Expand Down Expand Up @@ -1456,9 +1461,9 @@ Has 133 line(s). Calls functions:
.zinit-update-or-status-all
|-- zinit-install.zsh/.zinit-compinit
|-- zinit-side.zsh/.zinit-any-colorify-as-uspl2
|-- zinit.zsh/+zinit-message
|-- zinit.zsh/.zinit-any-to-user-plugin
`-- zinit.zsh/.zinit-get-mtime-into
|-- zinit.zsh/.zinit-get-mtime-into
`-- zinit.zsh/+zinit-message

Uses feature(s): _setopt_, _source_

Expand Down
Loading