1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-31 14:17:45 +00:00
Commit graph

229 commits

Author SHA1 Message Date
e2dk4r
19948a5cbc
custom-completions: scoop: fix getting environmental variables (#567)
`env` command do not exists anymore
use `$env.variable` to access and `'variable' in $env` to check if
environmental  variable exists
2023-08-01 07:38:38 -05:00
dedebenui
94ae821daa
fix pass-completion as let cannot be used at module level (#544)
* fix pass-completion as `let` cannot be used at module level

`let` cannont be used at module level. #8248 proposes to add `const` for modules, but in the meantime, a function is the best way to make this script useable as a module.

* remove calls to system commands for better portability

`^realpath` and `^find` are replaced with `path expand` and `ls` in an effort not to rely on system commands. Literal "/" are also replaced with native path operations.

---------

Co-authored-by: Benoît Sierro <benoit.sierro@bluewin.ch>
2023-07-03 07:54:14 -05:00
ShinyZero0
1d1a70417f
complete manpages (#534)
* add manpage completions

* fix replacing .gz in man cmp, format braces
2023-06-23 06:00:43 -05:00
ShinyZero0
35db6d1e28
Case insensitive and reformatted make completions (#515)
* case-insensitive makefile completion

* format makefile completions
2023-05-26 16:00:23 -05:00
Antoine Stevan
a7bde3acf2
add completion for toipe (#508) 2023-05-24 13:02:00 -05:00
Tilen Gimpelj
e580af935b
Fixed the completion of --flamegraph (#502) 2023-05-17 17:34:01 -05:00
Tilen Gimpelj
d48ce0b6c1
Added typst completion script. (#494) 2023-05-16 07:28:44 -05:00
Amy
2c37b5f583
fix: just completions (#491) 2023-05-14 11:38:47 -05:00
Maxim Uvarov
b2fadc0ea8
the function to display bars of given percentage from given width (#478)
* function to display bars of given percentage from given width

* adding --progress, moving width to options

thanks @amtoine

* typos of ESL studnet

* added examples and tests

* feat(nano): add completions (#479)

* feat(nano): add completions

* feat(nano): add readme

* removed escape symbols from tests, fixed fraction indexing

* fixed tests

Fixed tests, although they need escape sequences, as the bar function has the ability to change the colors of both the background and foreground and uses the default color by default.

* Rename bar_fn.nu to bar.nu

---------

Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
2023-05-12 09:11:20 -05:00
Emily Grace Seville
ee996ec169
fix(completions): clean-up (#484) 2023-05-11 06:08:36 -05:00
Emily Grace Seville
25c85042f1
feat(nano): add completions (#479)
* feat(nano): add completions

* feat(nano): add readme
2023-05-07 08:45:52 -05:00
Hilmar Gústafsson
09647b77ee
fix(npm-completions): move extern down (#475)
Looks like nu has gotten stricter about the order in which things
must be declared.
2023-05-02 06:42:33 -05:00
Mel Massadian
c47ccd42b8
refactor: (#418)
* refactor:  move in one commit

Eveything in modules should probably be changed to `exported` defs.
The idea is to move everything first to keep proper history.

* refactor: 📝 add modules readme (wip)

* refactor:  small move

* refactor: 📝 changed nestring, updated modules readme

* refactor: 📝 to document or not to document

* fix: 🐛 themes

replaced the template to use `main` and regenerated them
from lemnos themes.

* Revert "fix: 🐛 themes"

This reverts commit 4918d3633c8d2d81950a0ed0cfd9eb84241bc886.

* refactor:  introduce sourced

- Created a source `root` in which sourcable demos are stored.
  Some might get converted to modules later on.
- Moved some files to bin too.

* fix: 🐛 fehbg.nu

* fix: 🐛 modules/after.nu

* moved some other stuff around

---------

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2023-04-25 17:56:25 -05:00
nils-degroot
1d16a376b2
Added completions for pass (#454) 2023-04-20 08:12:48 -05:00
TuffenDuffen
e4784d44a3
fixed error in yarn completions (#451) 2023-04-18 07:02:04 -05:00
Darren Schroeder
87655ab380
update range syntax in str substring usage (#448) 2023-04-16 07:15:37 -05:00
Jan Klass
40459e646d
Fix winget-completions.nu for nushell v0.78 closure syntax change (#443) 2023-04-11 13:52:33 -05:00
Darren Schroeder
b7a45fbcca
replace occurences of str collect with str join (#436) 2023-04-03 08:47:25 -05:00
Darren Schroeder
4f2263447f
update script syntax to match the latest nushell (#429) 2023-03-31 07:39:20 -05:00
sgasse
9f480c470f
custom-completions: git: Expand completions (#407)
The different commands such as `git checkout`, `git switch`, `git
cherry-pick` and `git rebase` all accept slightly differing refspecs.
This commit separates the extraction of refspecs and combines them in
individual completion commands for the different external commands.

All git commands complete with a table of `value | description` now.

Addresses #406

Co-authored-by: Simon Gasse <sgasse@users.noreply.github.com>
2023-03-29 06:42:19 -05:00
David Lattimore
1884426d79
git-completions: Add completions for more subcommands (#420)
Added branch, remote, diff, commit, pull, stash, init, status, add, rm,
help, log, bisect

Also removed ? from `git rebase --onto` which was putting a literal `?`
into the flag when completing.
2023-03-21 07:37:08 -05:00
sgasse
471c81c5ff
custom-completions: git: Add git rebase (#404)
Co-authored-by: Simon Gasse <sgasse@users.noreply.github.com>
2023-03-12 12:22:52 +01:00
chtenb
bc71f8d1e9
Make commands optional (#398) 2023-03-05 14:45:19 -06:00
Darren Schroeder
4a0f59265d
fix text where comments don't have spaces (#387) 2023-02-22 07:13:10 -06:00
Hofer-Julian
8b4ed82af3
Fix scoop completions (#363) 2023-01-25 10:51:20 -06:00
Hofer-Julian
dc87ff276c
git-completions: Stop checking --force-with-lease (#362) 2023-01-25 06:22:50 -06:00
Marc Schreiber
6801071f50
Fix git checkout/switch completions (#359) 2023-01-24 06:02:58 -06:00
Marc Schreiber
e89b4ac6be
Improve git checkout/switch completions (#358) 2023-01-23 06:05:43 -06:00
Antoine Stevan
89c209f89e
add the "export" keyword to "extern git cherry-pick" (#356) 2023-01-21 13:16:23 -06:00
Marc Schreiber
a023cea71a
Add git cherry-pick completion (#355) 2023-01-21 07:19:52 -06:00
Günter Zöchbauer
b4a5b9e940
Change list of values to list of records with value and description (#354)
It is just one entry for now, but I just found out from the docs
that in this case comments are not used as description
2023-01-20 06:22:35 -06:00
Günter Zöchbauer
cdf6f416cb
Add completions for Bitwarden CLI client (#350) 2023-01-19 07:51:51 -06:00
ldsands
02fac2cd18
Add files via upload (#319) 2023-01-15 17:55:05 -06:00
everyone
4e85e22e11
feat(custom-completions): add reflector completions (#329) 2023-01-15 17:53:03 -06:00
WindSoilder
1203bec68d
fix custom completions arg names (#324) 2022-12-12 06:20:31 -06:00
JT
6f9d6250d4
Switch to 'and' and 'or' (#322)
* Switch to 'and' and 'or'

* oops
2022-12-08 12:52:10 +13:00
Jesper Hasselquist
e2d8f736d4
feat(custom-completions): add zellij completions (#317) 2022-11-25 07:26:34 -06:00
Emil Gardström
a532ee8c4d
improve cargo completions (#316)
* improve cargo completions

* fix indentation
2022-11-22 15:49:36 -06:00
tshaynik
a4e08f4901
Add custom completions for nix (#314)
* Add generated completions for nix

Add initial completions for nix, generated by parsing
the nix help pages with a script.

* Add completion for nix log-format

* add README for nix completions

* allow taking arguments
2022-11-15 06:00:04 -06:00
DWTW321
daf23a9b77
New custom completions for ani-cli, btm, glow & tealdeer (#304)
* New custom completions for ani-cli, btm, glow, gsudo & tealdeer

* Delete README.md

* Delete gsudo-completions.nu

* Update btm-completions.nu

* fixed error in btm completions
2022-10-09 17:56:50 -05:00
Darren Schroeder
c72a6717b9
update cargo update completions 2022-09-22 10:14:11 -05:00
Darren Schroeder
e28c0bdb6d
add cargo update completions (#297) 2022-09-22 10:07:59 -05:00
Francesc Elies
b42a0a4c9b
cargo clippy completions (#296)
Co-authored-by: Francesc Elies <francesc.elies@mbbm-ast.com>
2022-09-22 09:55:52 -05:00
e2dk4r
f51feccce8
custom completions: scoop: fix getting environmental variables (#293)
`nu v0.68.0` how `use filename *` works, this broke my way of getting environmental variables.
Before I get environmental variables by `$env.NAME`, now I use `env | where name == 'NAME' | get value | first`
2022-09-08 06:31:48 -05:00
e2dk4r
d160647359
custom completions: scoop: fix list sub command (#291)
`scoop list` can be call without any parameters.
2022-09-07 12:12:45 -05:00
Stefan Holderbach
203727b291
Update old question mark commands any?/all?/empty? to any/all/is-empty (#287)
* Replace `all?` with `all` for nushell/nushell#6464

* Replace `any?` with `any` for nushell/nushell#6464

* Replace `emtpy?` with `is-empty`

Account for nushell/nushell#6464

* Ignore for `before_v0.60` scripts
2022-09-05 16:43:01 +02:00
e2dk4r
ff5cf0e96d
custom completions: scoop: adds some missing command completions (#281)
this commit adds scoop commands that are:
- bucket
- cache
- create
- depends
- download
- export
- hold
- import
- prefix
- reset
- unhold
- virustotal
2022-08-25 08:54:36 -05:00
e2dk4r
87937cb86f
custom completions: scoop: add some missing command completions (#280)
* custom completions: scoop: add some missing command completions

this commit adds scoop commands that are:
- cat
- checkup
- config
- home
- status
- which

* custom completions: scoop: fix getting configuration values
2022-08-23 06:33:17 -05:00
e2dk4r
3ee771b640
custom completions: add completions for scoop (#277)
this commit add scoop commands that are:
- cleanup
- info
- list
- uninstall
- update
2022-08-17 09:35:59 -05:00
WindSoilder
a34f173181
Migrate some scripts to fit new variable and arguments naming style (#268)
* add tmp script

* fix more scripts

* remove tmp file

* migrate to new variable definition

* rename builtin variable back
2022-08-05 10:47:18 +03:00