Commit Graph

952 Commits

Author SHA1 Message Date
OJarrisonn_
f6ec482ea3
feat: git clone completions (#856)
Adds completions for the `git clone` command
2024-05-28 06:35:27 -05:00
OJarrisonn_
edb832840f
feat: add ./gradlew completions (#855)
Adds completions for when using a `./gradlew` script in Gradle projects

The script provides completions both for the script flags and for the
available tasks in the current project
2024-05-28 06:34:50 -05:00
laisnuto
5ce769ca2c
Add git coommit completions (#854)
Improve git commit completions for nushell
2024-05-28 06:33:48 -05:00
Igor
42732dad6a
Port before_v0.60/with_externals and cleanup (#852) 2024-05-26 16:34:36 -05:00
Igor
840d723d89
Port before v0.60/virtual_environments (#849)
This PR is part of porting all old scripts #221 and includes the
`virtual_environments` module

## 5 files changed

- `conda.nu`: removed, already in
`modules/virtual_enviromnents/conda/nu_conda.nu`
- `conda_deactivate.nu`: also removed, has already been merged with
`nu_conda.nu`
- `README.nu`: removed, similar info in
`modules/virtual_enviromnents/README.md`

- `venv.nu`: ported to `modules/virtual_enviromnents/venv/venv.nu`
- `venv_deactivate.nu`: ported to
`modules/virtual_enviromnents/venv/venv_deactivate.nu`
2024-05-26 12:38:00 -05:00
Igor
275a0f8f26
Port before_v0.60/data_extraction before_v0.60/examples before_v0.60/duplicates (#847)
This PR is part of porting all old scripts #221 and includes a set of
modules:

- `data_extraction`
- `examples` 
- `duplicates`

## 7 changed files:

### `data_extraction`
- `data_extraction/ultimate_extractor.nu`: removed. Has already been
ported to `modules/data_extraction/ultimate_extractor.nu`

### `duplicates`
- `duplicates/duplicates.nu` -> `modules/duplicates/duplicates.nu`
- `duplicates/example.nu` -> `modules/duplicates/example.nu`
- `duplicates/README.md` -> `modules/duplicates/README.md`: unchanged

### `examples`
- `examples/netstat.nu` -> `modules/examples/netstat.nu`
- `examples/date_in_local_timezones.nu` ->
`modules/examples/date_in_local_timezones.nu`
- `befove_v0.60/assets/core_team.nu`: removed. This table has been
embedded into `date_in_local_timezones.nu`
2024-05-26 12:37:29 -05:00
Igor
9d399d8902
Port before_v0.60/config_management before_v0.60/language before_v0.60/prompt before_v0.60/tests (#851)
This PR is part of porting all old scripts #221 and includes a set of
modules:

- `config_management`
- `language`
- `tests`
- `prompt`

## 12 files changed

### `config_management`
This module was removed, because it was related to the old `config.toml`
format
1. `README.md`: removed
2. `config.toml`: removed
3. `startup.nu`: removed

### `language`
4. `playground.nu` : unchanged because this is just `source ...`
5. `std.nu` : unchanged because this is just `source ...`
6. `playground/lib.nu` -> `playground/mod.nu` and all commands have been
exported
7. `std/date.nu` + `export` keyword

### `tests`
This module contained only the usage of `language` module, so I merged
it with `language`
8. `tests/language/std/date.nu` -> `modules/language/tests/date.nu`
9. `main.nu`: removed because it was just `source date.nu`

### `prompt`
10. `git_status_prompt.nu` -> `modules/git_status_prompt.nu` + `export`
keyword
11. `left_and_right_prompt.nu` -> `modules/left_and_right_prompt.nu` +
`export` keyword
12. `README.md` : has been removed as a duplicate of
`modules/prompt/README.md`
2024-05-26 12:37:01 -05:00
Igor
e8df70a406
Port before_v0.60/fuzzy, before_v0.60/ls-mods and before_v0.60/nu_101 (#845)
This PR is part of porting all old scripts #221 and includes a set of
modules:

- fuzzy -> `modules/fuzzy/fuzzy_command_search.nu`
- ls-mods -> `modules/ls-mods`: `ls-less.nu`, `ls-wide.nu` and
`ls-wide-with-color.nu`
- nu_101 -> `modules/nu_101`: `nothing.nu` and `inner_outer_loop.nu`

Edit: `fuzzy` and `nu_101` have been moved to `sourced`
2024-05-26 12:35:59 -05:00
Schweber
7a5424d7d0
modules/nix: init activation-script (#848) 2024-05-26 07:55:40 -05:00
Igor
adaae97990
Port before_v0.60/stdlib_candidate (#850)
This PR is part of porting all old scripts #221 and includes the
`stdlib_candidate` scripts

## 7 changed files

- `flatter.nu`
- `get-column.nu`
- `get-row.nu`
- `get-latest-release-linux.nu`
- `logging.nu`
- `nu_style.nu`
- `print.nu`
2024-05-26 07:49:03 -05:00
Igor
93e71fe6a8
Port before_v0.60/progress_bar before_v0.60/weather before_v0.60/webscrapping (#846)
This PR is part of porting all old scripts #221 and includes only
removing already ported modules:

- `progress_bar` -> `sourced/progress_bar`
- `weather` ->  `modules/weather`
- `webscrapping` -> `sourced/webscrapping`
2024-05-25 13:06:00 -05:00
Igor
15cb7179e2
Port before_v0.60/math, before_v0.60/parsing and before_v0.60/git (#844)
This PR is part of porting all old scripts #221 and includes a set of
small modules:
- `math`
- `parsing`
- `git`
2024-05-25 10:18:21 -05:00
Bob Hyman
429126f3d8
fix regressions noted in 0.93.1 from 0.83: (#843)
1. double pathsep when displaying PWD
2. error 'not a git repo' when PWD outside a repo (`do --ignore-error
{}` no longer eats the stderr text?)
3. improve display when terminal quite narrow (not a regression, just an
improvement)
4. reduce overhead for padding
2024-05-25 08:28:42 -05:00
OJarrisonn_
407a313bbb
feat: add bend completions (#842)
Adds [Bend](https://github.com/HigherOrderCO/Bend) completions for
nushell
2024-05-22 12:41:01 -05:00
Wind
537d7fc4f4
Update conda.nu to use (sys host) rather than (sys).host (#839) 2024-05-22 06:35:50 -05:00
Tai Zeming
bb1fa35baa
feat(yarn): complete runnables(bin & scripts) (#841)
Allow custom-completions/yarn to complete scripts and bins by explicitly
listing existing commands and scripts & bins that loads from the current
path.
2024-05-22 06:30:50 -05:00
winston
66c76a9dbd
fix: adjust for nushell commandline syntax deprecation (#840)
Fixes for changes introduced by
https://github.com/nushell/nushell/pull/12658
2024-05-19 13:33:08 -05:00
Matt Norton
8a77d51e93
Add more detailed poetry completions (#838) 2024-05-15 08:35:02 -05:00
Igor
a0e69735ed
Port root before_v0.60/*.nu scripts (issue #221) (#837)
This PR is part of porting all old scripts #221 and ports all root
`before_v0.60/*.nu` scripts to `modules/*.nu`
2024-05-13 09:54:10 -04:00
Igor
bb814f1173
Port before_v0.60/coloring folder (issue #221) (#836)
This PR is part of porting all old scripts #221 and ports `coloring`
folder
2024-05-13 09:53:53 -04:00
Igor
13f2c47135
Port before_v0.60/make_release folder (#830)
This PR is part of porting all old scripts #221 and ports `make_release`
folder
## Summary

### make_release/this_week_in_nu_weekly.nu
This script has already been ported and has received some updates: #433.
So I just removed it
```yaml
from: before_v0.60/make_release/this_week_in_nu_weekly.nu
to: make_release/this_week_in_nu_weekly.nu
functions:
    do-work: make_release/this_week_in_nu_weekly.nu:1:query-week-span
```

### make_release/this_week_in_nu_release.nu

I have ported this, but I'm not sure if we need it because it has
strange name and we have `prs.nu` and `make_release/release-note/`

```yaml
from: before_v0.60/make_release/this_week_in_nu_release.nu
to: make_release/this_week_in_nu_release.nu
functions:
    do-work: make_release/this_week_in_nu_release.nu:1:do-work
```

### make_release/nu_release.nu

This has already been ported to `make_release/nu_release.nu` and has
received new updates #828 so I just removed it

```yaml
from: before_v0.60/make_release/nu_release.nu
to: make_release/nu_release.nu
```

### make_release/gen-js-ext.nu
This has already been moved to `make_release/gen-js-ext.nu` and has
received new updates #621 but not completely ported so I have ported it
- pipeline `for` to `each`
- `$nu.scope.commands` to `scope commands`
- explicit `print`
```yaml
from: before_v0.60/make_release/gen-js-ext.nu
to: make_release/gen-js-ext.nu
functions:
  gen_keywords: make_release/gen-js-ext.nu:1:gen_keywords
  gen_sub_keywords: make_release/gen-js-ext.nu:20:gen_sub_keywords
```

### make_release/gen-ts-ext.nu
I have ported this script
```yaml
from: before_v0.60/make_release/gen-ts-ext.nu
to: make_release/gen-ts-ext.nu
functions:
  gen-ts-cmds-begin: make_release/gen-ts-ext.nu:1:gen-ts-cmds-begin
  gen-ts-cmds: make_release/gen-ts-ext.nu:18:gen-ts-cmds
  gen-ts-subs: make_release/gen-ts-ext.nu:40:gen-ts-subs
```
2024-05-13 09:53:13 -04:00
Igor
2fe0756df9
Port before_v0.60/fun folder (issue #221) (#835)
This PR is part of porting all old scripts #221 and ports `fun` folder

<details><summary>Summary</summary>

### star.nu
```yaml
from: before_v0.60/fun/star.nu
to: modules/fun/star.nu
```

### spark.nu
The script has already been ported. I've removed old version.
```yaml
from: before_v0.60/fun/spark.nu
to: sourced/fun/spark.nu
functions:
  spark: sourced/fun/spark.nu:1:spark
```

### life.nu
```yaml
from: before_v0.60/fun/life.nu
to: modules/fun/life.nu
```

### lisp_mode.nu
There is a problem with this module because `-` is not allowed in names
anymore, however `def "-"` is a valid syntax, but you will be unable to
call this function.
```yaml
from: before_v0.60/fun/lisp_mode.nu
to: sourced/fun/lisp_mode.nu
```


### nyancat.nu
I also fixed animation frames from https://github.com/klange/nyancat
```yaml
from: before_v0.60/fun/nyancat.nu
to: modules/fun/nyancat.nu
```


</details>
2024-05-13 07:55:11 -05:00
Igor
b40ead9ae2
Port before_v0.60/cool_oneliners folder (#831)
This PR is part of porting all old scripts #221 and ports
`cool_oneliners` folder

## Summary

### dict.nu
This script has already been ported to `sourced/cool_oneliners/dict.nu`
in
28c7e097db

```yaml
from: before_v0.60/cool_oneliners/dict.nu
to: sourced/cool-oneliners/dict.nu
functions:
  dict: sourced/cool-oneliners/dict.nu:2:dict
```

### file_cat.nu
has already been ported to `sourced/cool_oneliners/file_cat.nu` in
c47ccd42b8
```yaml
  from: before_v0.60/cool_oneliners/file_cat.nu
  to: sourced/cool-oneliners/file_cat.nu
```

### filesize.nu

```yaml
from: before_v0.60/cool_oneliners/filesize.nu
to: sourced/cool-oneliners/filesize.nu
```

### js_map_to_markdown.nu
```yaml
from: before_v0.60/cool_oneliners/js_map_to_markdown.nu
to:  sourced/cool-oneliners/js_map_to_markdown.nu
```
I created `sourced/cool-oneliners/assets/js_map.json` with the data for
this script as it was before

### cdpath-implementation.nu
```yaml
from: before_v0.60/cool_oneliners/cdpath-implementation.nu
to: sourced/cool-oneliners/cdpath-implementation.nu
functions:
  c: sourced/cool-oneliners/cdpath-implementation.nu:18:c
```

### parse_aws_s3_ls.nu
I don't have aws so I just ported the syntax
```yaml
from: before_v0.60/cool_oneliners/parse_aws_s3_ls.nu
to:  null
```
Edit: I considered not porting this script yet because I can't test it
for now

### npm_update_versions.nu
```yaml
from: before_v0.60/cool_oneliners/npm_update_versions.nu
to: sourced/cool-oneliners/npm_update_versions.nu
```

### xml_search_schema.nu
```yaml
from: before_v0.60/cool_oneliners/xml_search_schema.nu
to: sourced/cool-oneliners/xml_search_schema.nu
```
2024-05-13 07:53:40 -05:00
undefined
f1b0432ad9
feat: add adb&fastboot completions (#834)
Although all correct commands have been added where possible, some
instructions may be missing
2024-05-10 11:05:44 -05:00
Maxim Uvarov
afde2592a6
use typos for corrections (#833)
I used [typos](https://github.com/crate-ci/typos/).
I manually checked all the corrections and they seem safe to me.
There are still some left, but those in this PR are good
2024-05-08 06:47:54 -05:00
Matt Norton
a0aa600153
Improve custom-menus docs (#832) 2024-05-06 12:32:53 -05:00
Jakub Žádník
4eab7ea772
Fix link for creating release note PR (#728)
@amtoine I couldn't get it to work with the old link, but with this fix,
opening the PR worked like charm!
2024-04-30 16:54:12 -07:00
Ian Manske
fcde8dc870
Update release script (#828)
Add new crates to the release script and updates the order of existing
crates according to the `nu_deps.nu` script.
2024-04-30 21:43:36 +00:00
Róbert Kalmár
76ab5b09b3
Remove deprecated --redirect-stdout in git branch cleanup (#827) 2024-04-29 06:22:31 -05:00
Rayan Amal
5782e2b5d2
Update README.md for background tasks (#826) 2024-04-28 16:07:57 -05:00
Stefan Holderbach
660b55c2f0
Add nu_plugin_polars as a crate to release (#814)
For the upcoming `0.93.0` release we want to ship this plugin.

Merge ahead of the release process (not when we have a patch release
inbetween)
2024-04-27 14:38:38 +02:00
zhangym
8c9d0e13bf
feat: add git worktree command (#824) 2024-04-25 07:44:17 -05:00
Konstantins Zmanovskis
912bea4588
Winget custom completions fixes (#823)
Here is a bunch of fixes I implemented to make Winget custom completion
script functional.
Namely,
- Made it compatible with the latest Nushell version
- Fixed parsing of Winget show command
- Added the missing command aliases
- Implemented a workaround for the in Winget itself when filtering for a
particular package source -
https://github.com/microsoft/winget-cli/issues/4236
2024-04-23 06:35:10 -05:00
Devyn Cairns
dfdd5692d7
Add nu_plugin_nu_example to bump-version.nu (#822)
What it says on the tin. This just updates the `bump-version.nu` script
to also edit the version in
the new nu_plugin_nu_example plugin, the same way it does for python
2024-04-19 15:43:09 -05:00
nils-degroot
b95f260bb4
Add zellij action new-tab completions (#821)
This PR add completions for this `zellij action new-tab` command, which
is currently missing.
2024-04-18 08:28:15 -04:00
Jakub Žádník
1a4c6e9a6c
Revert "fix: prefix conda commands with conda" (#820)
Reverts nushell/nu_scripts#816

Fixes https://github.com/nushell/nu_scripts/issues/818
2024-04-17 19:13:23 +03:00
zhangym
c33c7808fc
feat: add mvn completion (#819) 2024-04-17 06:38:45 -05:00
Zuruh
f0975a9458
add composer completions (#817)
Implemented definitions for all composer 2.7 base commands with flags,
arguments, and descriptions. Also add completions when a set of values
is expected 🙂
2024-04-12 21:09:00 -05:00
Miles Cranmer
0d665a71ec
fix: prefix conda commands with conda (#816)
I wasn't sure if this was on purpose or not but the conda environments
were simply "activate" and "deactivate" instead of "conda activate" and
"conda deactivate" as they would be normally in bash/zsh.

Due to the potential name conflicts I think it's better to leave these
as the more specific `conda activate` and let the user define an alias
in their file with `alias activate = conda activate`
2024-04-12 06:26:51 -05:00
Miles Cranmer
2d3406b526
Fix non-exported completions (#815)
ack, as, and tar were not exported
2024-04-11 18:56:18 -05:00
Edward DeVries
b1019dab18
panache-git: do not print stderr from Git commands (#813)
Nushell 0.92 changed how external commands operate in pipelines:
https://www.nushell.sh/blog/2024-04-02-nushell_0_92_0.html

After updating to Nushell 0.92, panache-git would print errors when the
current working directory was not a Git repository: "fatal: not a git
repository (or any of the parent directories): .git"

This change properly handles stderr from Git commands according to
Nushell's updated external command behavior.

Also, Nushell 0.91 introduced "is-not-empty", so places in the code
where a string was checked for being not-empty or not-contains were
simplified a bit.

Finally, the main command in the module was renamed to "main" to make it
simpler to import and use in config.
2024-04-11 08:00:04 -05:00
Christofer
c30efc727b
add missing scoop completions (#812)
I added the missing shims, alias, and help commands for the scoop
completer (#483)

I also updated the deprecated `rootPath` and `globalPath` config names
for the config command
2024-04-07 18:09:04 -05:00
Christofer
554cb31819
add windows compatibility for command not found hook (#811)
the hook (did_you_mean.nu) had stopped working for me recently, I added
an if branch for Windows to use their `Path` env var (not `PATH`) and
only list files that match in the `PATHEXT` env var to resolve my issue
2024-04-07 07:46:35 -05:00
Piepmatz
df90d65eec
Add from env (#808)
This adds a little command that allows opening .env files as records.
My implementation removes comments and works with both quoted and
unquoted .env files.
2024-04-03 06:49:41 -05:00
fj0r
a715b74453
utils of history with sqlite (#779)
- backup
- restore
- timing
- top

---------

Co-authored-by: nash <nash@iffy.me>
2024-04-03 06:29:45 -05:00
Stefan Holderbach
f1c247aca6
Bump version in the python plugin example as well (#809)
This is a requirement of the new plugin protocol
2024-04-02 20:27:22 +02:00
Jakub Žádník
368785e3ec
Add nu-plugin-test-support to release script (#810)
Discovered during 0.92.0 release
2024-04-02 20:27:11 +02:00
Christofer
dc0aa004c0
add op (1password cli) completions (#807)
1Password cli completions for all of the commands
2024-04-02 12:07:04 -05:00
Ian Manske
a2929c0bf8
Use cargo hack in release process (#804)
This PR adds two [`cargo hack`](https://github.com/taiki-e/cargo-hack)
commands to the release process to check for errors due to combination
of features. The first one will run `cargo check` on each crate multiple
times over, toggling different combinations of features each time. This
is to check for compilation errors regarding missing imports, etc. The
second command will run `cargo build` for each crate separately (with
default features) to check for build errors (from `build.rs` or
whatever).

Using the [error](https://github.com/nushell/nushell/pull/11786) from
the 0.90.0 publishing as a test, the first command does indeed find the
compilation error.

In the future, we should probably put these commands into a manually
triggered CI job so that they will be run on multiple platforms.

Also, this PR cleans up `nu_release.nu` a little bit.
2024-03-30 22:36:20 +00:00
Stefan Holderbach
b9c873bc67
Remove the failing CI on the main branch (#805)
See
https://github.com/nushell/nu_scripts/pull/771#issuecomment-2020331739
and following

As we don't have a path forward to make sure all files are fixed and
will be maintained. (and the file detection itself is reliable)
Disable the `main` branch (and nightly run) for now.

This will keep the CI for PRs so at least added scripts pass the current
nu version
2024-03-30 16:37:19 -05:00