From c500572ed02d0558adc8a4802b60c762cc378aee Mon Sep 17 00:00:00 2001 From: Joseda Rios Date: Wed, 26 Jun 2019 01:01:21 +0200 Subject: [PATCH] Update version and docs --- CHANGELOG.md | 1 + README.md | 36 +++++++++++++++++++----------------- VERSION | 2 +- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63d5a96..37aae53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - **Remove** `use` option - Add **terminal interface** to the new `sel` option to prompt the list of folders and use the selected one +- Add **terminal interface** to the `del` option to prompt the list of folders and delete the selected one - **Adjust shell helpers** to work with this new feature ## Release 0.0.14 (2019-06-25) diff --git a/README.md b/README.md index 3d456a3..b886f28 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ If you usually run tons of commands that generate garbage, wherever you are, you ``` mkdir -p rubbi-sh && \ -curl -sSL https://github.com/jotadrilo/rubbi-sh/releases/download/0.0.14/rubbi-sh_0.0.14_linux_x86_64.tar.gz | tar xzf - -C rubbi-sh && \ +curl -sSL https://github.com/jotadrilo/rubbi-sh/releases/download/0.1.0/rubbi-sh_0.1.0_linux_x86_64.tar.gz | tar xzf - -C rubbi-sh && \ sudo bash -c 'cd rubbi-sh; ./install.sh' ``` @@ -32,7 +32,7 @@ Alternative: ``` mkdir -p rubbi-sh && \ -curl -sSL https://github.com/jotadrilo/rubbi-sh/releases/download/0.0.14/rubbi-sh_0.0.14_darwin_x86_64.tar.gz | tar xzf - -C rubbi-sh && \ +curl -sSL https://github.com/jotadrilo/rubbi-sh/releases/download/0.1.0/rubbi-sh_0.1.0_darwin_x86_64.tar.gz | tar xzf - -C rubbi-sh && \ sudo bash -c 'cd rubbi-sh; ./install.sh' ``` @@ -92,30 +92,32 @@ This helper will add a new custom rubbish folder. It will not change the working ### rubdel -This helper will delete an existing rubbish folder by number. +This helper will prompt the list of folders and will delete to the choosen one. ``` -> jotadrilo @ ~ $ rubshow -[0] 20190613 /tmp/rubbish/20190613 -[1] 20190614 /tmp/rubbish/20190614 -[2] foo /tmp/rubbish/foo -> jotadrilo @ ~ $ rubdel 2 -> jotadrilo @ ~ $ rubshow -[0] 20190613 /tmp/rubbish/20190613 -[1] 20190614 /tmp/rubbish/20190614 +> jotadrilo @ ~ $ rubdel +Use the arrow keys to navigate: ↓ ↑ → ← +? Select Folder: + /tmp/rubbish/20190625 + ▸ /tmp/rubbish/20190626 +✔ /tmp/rubbish/20190626 +> jotadrilo @ ~ $ ``` +> **NOTE:** If the choosen folder was the latest one, the last folder in the list will become the new latest folder. + ### rubsel -This helper will prompt the list of folders and will ask for a folder number to `cd`. +This helper will prompt the list of folders and will `cd` to the choosen one. ``` > jotadrilo @ ~ $ rubsel -[0] 20190613 /tmp/rubbish/20190613 -[1] 20190614 /tmp/rubbish/20190614 - -Folder to use: 1 -> jotadrilo @ /tmp/rubbish/20190614 $ +Use the arrow keys to navigate: ↓ ↑ → ← +? Select Folder: + ▸ /tmp/rubbish/20190625 + /tmp/rubbish/20190626 +✔ /tmp/rubbish/20190625 +> jotadrilo @ /tmp/rubbish/20190625 $ ``` ## Development diff --git a/VERSION b/VERSION index 9789c4c..6e8bf73 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.14 +0.1.0