1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 14:47:47 +00:00

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>
This commit is contained in:
Maxim Uvarov 2023-05-12 22:11:20 +08:00 committed by GitHub
parent 58a05e91da
commit b2fadc0ea8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,10 @@
# `nano` custom completions
This script provides custom completions for `nano`.
It can be used by importing its exported commands via:
```
use path/to/nano/nano-completions.nu *
```
With `path/to/` being either the relative path of the file to your current working directory or its absolute path.