From cedec02ff58b6438c3aaa2a10faf51c3e5c4b037 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 29 Jan 2021 09:17:03 -0600 Subject: [PATCH] updated short_list to find nu_style, added some todos to progress_bar --- coloring/short_list.nu | 2 +- progress_bar.nu | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/coloring/short_list.nu b/coloring/short_list.nu index 5205254..15085dd 100644 --- a/coloring/short_list.nu +++ b/coloring/short_list.nu @@ -1,4 +1,4 @@ -source nu_style.nu +source ../stdlib_candidate/nu_style.nu # # Regular Colors echo ' Regular Colors' $(char newline) $(char newline) | str collect diff --git a/progress_bar.nu b/progress_bar.nu index 245b4d6..74d8872 100644 --- a/progress_bar.nu +++ b/progress_bar.nu @@ -45,4 +45,11 @@ echo 1..<$pb_len | each { echo $blocks.7 | str lpad -c $blocks.7 -l $pb_len | autoview echo $(char newline) echo "Done" -echo $(ansi cursor_on) \ No newline at end of file +echo $(ansi cursor_on) + + +# Try to do this in the next version +# Make it a custom command so you can do +# set-progress 33 100 +# and the display look like +# 33% (33/100) [███████████ ] \ No newline at end of file