From 70db0c3418867550d2b497ec3dbe1d2f1fc5f8d7 Mon Sep 17 00:00:00 2001 From: Ninjani <48680156+Ninjani@users.noreply.github.com> Date: Wed, 27 Dec 2023 22:11:04 +0100 Subject: [PATCH] bugfix #159 --- CHANGELOG.md | 5 +++++ Cargo.lock | 2 +- Cargo.toml | 2 +- src/the_way/mod.rs | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9f43dd..9069dbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ 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). +## [0.20.2] - 2023-12-27 +- Bug fix for`--stdout` option (Issue #[159](https://github.com/out-of-cheese-error/the-way/issues/159)) + ## [0.20.1] - 2023-12-26 - Updated dependencies - Fixes sublime-syntax loading issue (Issue #[152](https://github.com/out-of-cheese-error/the-way/issues/152)) @@ -463,6 +466,8 @@ This uses the correct release directory now based on the TARGET environment vari - A first working version of the-way - cargo install option +[0.20.2]: https://github.com/out-of-cheese-error/the-way/compare/v0.20.1...v0.20.2 + [0.20.1]: https://github.com/out-of-cheese-error/the-way/compare/v0.20.0...v0.20.1 [0.20.0]: https://github.com/out-of-cheese-error/the-way/compare/v0.19.2...v0.20.0 diff --git a/Cargo.lock b/Cargo.lock index ee58374..23a9b7c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1783,7 +1783,7 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "the-way" -version = "0.20.1" +version = "0.20.2" dependencies = [ "assert_cmd", "bincode", diff --git a/Cargo.toml b/Cargo.toml index 5f9f839..b3d049e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "the-way" -version = "0.20.1" +version = "0.20.2" edition = "2021" authors = ["Ninjani"] description = "A code snippets manager for your terminal" diff --git a/src/the_way/mod.rs b/src/the_way/mod.rs index df6468d..9ee6bbf 100644 --- a/src/the_way/mod.rs +++ b/src/the_way/mod.rs @@ -91,7 +91,7 @@ impl TheWay { exact, stdout, force, - } => self.search(&filters, stdout, search::SkimCommand::All, exact, force), + } => self.search(&filters, exact, search::SkimCommand::All, stdout, force), TheWaySubcommand::Cp { index, filters, @@ -99,7 +99,7 @@ impl TheWay { stdout, } => match index { Some(index) => self.copy(index, stdout), - None => self.search(&filters, stdout, search::SkimCommand::Copy, exact, false), + None => self.search(&filters, exact, search::SkimCommand::Copy, stdout, false), }, TheWaySubcommand::Edit { index,