From f8be0551c3a861a5b90e0aa08285233b0bfbd843 Mon Sep 17 00:00:00 2001 From: Ninjani <48680156+Ninjani@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:22:58 +0100 Subject: [PATCH] making new release --- CHANGELOG.md | 5 +++-- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 40 +++++++++++++++++++++++++--------------- 4 files changed, 30 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2a9eb5..d9c9849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## [0.20.0] - 2023-12-26 +- Open search window for `cp`, `del`, `view`, and `edit` subcommands if no index given, and added filter options (Issue #[154](https://github.com/out-of-cheese-error/the-way/issues/154)) - Add tag/language tab completion (Issue #[148](https://github.com/out-of-cheese-error/the-way/issues/148)) -- Add `the-way tags` and `the-way languages` to list current set of tags and languages and the count of snippets for each (Issue #[148](https://github.com/out-of-cheese-error/the-way/issues/148)) +- Add `tags` and `languages` subcommands to list current set of tags and languages and the count of snippets for each (Issue #[148](https://github.com/out-of-cheese-error/the-way/issues/148)) ## [0.19.2] - 2023-03-12 diff --git a/Cargo.lock b/Cargo.lock index d44b60a..48b983d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1775,7 +1775,7 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "the-way" -version = "0.19.2" +version = "0.20.0" dependencies = [ "assert_cmd", "bincode", diff --git a/Cargo.toml b/Cargo.toml index cd3815c..efbd032 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "the-way" -version = "0.19.2" +version = "0.20.0" edition = "2021" authors = ["Ninjani"] description = "A code snippets manager for your terminal" diff --git a/README.md b/README.md index fca503b..956a8c2 100644 --- a/README.md +++ b/README.md @@ -118,21 +118,24 @@ A code snippets manager for your terminal Usage: the-way [OPTIONS] Commands: - new Add a new code snippet - cmd Add a new shell snippet - search Fuzzy search to find a snippet and copy, edit or delete it - sync Sync snippets to a Gist - list Lists (optionally filtered) snippets - import Imports code snippets from JSON - export Saves (optionally filtered) snippets to JSON - clear Clears all data - complete Generate shell completions - themes Manage syntax highlighting themes - config Manage the-way data locations - edit Change snippet - del Delete snippet - cp Copy snippet to clipboard - view View snippet + new Add a new code snippet + cmd Add a new shell snippet + search Fuzzy search to find a snippet and copy, edit or delete it + sync Sync snippets to a Gist + list Lists (optionally filtered) snippets + import Imports code snippets from JSON + export Saves (optionally filtered) snippets to JSON + clear Clears all data + complete Generate shell completions + themes Manage syntax highlighting themes + config Manage the-way data locations + edit Change snippet + del Delete snippet + cp Copy snippet to clipboard + view View snippet + tags Lists (optionally filtered) tags + languages Lists (optionally filtered) languages + help Print this message or the help of the given subcommand(s) Options: -c, --colorize Force colorization even when not in TTY mode @@ -236,7 +239,14 @@ variable `$THE_WAY_GITHUB_TOKEN`. You can also import snippets from a Gist created by the-way using `the-way import -w `. ## Shell completions +Generate for your shell of interest and save to the appropriate completions folder +```bash +the-way complete bash > the-way-completion.bash +source the-way-completion.bash +``` + +E.g for oh-my-zsh ```bash the-way complete zsh > .oh-my-zsh/completions/_the-way exec zsh