Skip to content

Fix hooks.md basic hooks examples and hooks list#1889

Merged
fdncred merged 1 commit into
nushell:mainfrom
Kissaki:fix/hooks
Apr 26, 2025
Merged

Fix hooks.md basic hooks examples and hooks list#1889
fdncred merged 1 commit into
nushell:mainfrom
Kissaki:fix/hooks

Conversation

@Kissaki
Copy link
Copy Markdown
Contributor

@Kissaki Kissaki commented Apr 26, 2025

Fix hooks syntax; they are a list of values. The code as it was did not run.

Nushell has been using an inherent configuration and the user configuration only replacing parts. For the hooks it makes sense to set only the hooks value.

Replace "you can also use a list", which is the default and used above already, with a "you can append additional hooks" example.

For zh-CN, at least add the missing available hook docs in English instead of missing them altogether.

For zh-CN, add the new example replacement with EN text rather than keeping the old outdated one, or missing it altogether.

Resolves #1879

Fix hooks syntax; they are a list of values. The code as it was did not run.

Nushell has been using an inherent configuration and the user configuration only replacing parts.
For the hooks it makes sense to set only the hooks value.

Replace "you can also use a list", which is the default and used above already, with a "you can append additional hooks" example.

For zh-CN, at least add the missing available hook docs in English instead of missing them altogether.

For zh-CN, add the new example replacement with EN text rather than keeping the old outdated one, or missing it altogether.
@fdncred fdncred merged commit 973f881 into nushell:main Apr 26, 2025
2 checks passed
@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Apr 26, 2025

Thanks

@Kissaki Kissaki deleted the fix/hooks branch April 27, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In doc Basic Hooks config error

2 participants