From 92de2820279d4aeda23ded001c261f9d9b9b6088 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 12 Mar 2022 18:18:09 -0500 Subject: [PATCH] Update documentation --- README.adoc | 7 ++----- src/uniq.rs | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.adoc b/README.adoc index 8af1264..5d2c2e3 100644 --- a/README.adoc +++ b/README.adoc @@ -40,15 +40,12 @@ cargo install --git https://github.com/austenadler/kakutils-rs [source,title='kakrc'] ---- -define-command utils -params 0.. %{ +define-command utils -params .. %{ eval -save-regs '"' %{ - reg dquote %val{selections} eval %sh{ - regex="${1:-.*}" # use kak_command_fifo kak_response_fifo; - ~/syncthing/code/kakutils-rs/target/debug/kakutils-rs sort "$regex" -- "$@" + kakutils-rs "$@" } - exec R } } ---- diff --git a/src/uniq.rs b/src/uniq.rs index d9c7f98..e27fbc7 100644 --- a/src/uniq.rs +++ b/src/uniq.rs @@ -24,7 +24,7 @@ pub fn uniq(options: &Options) -> Result { // Set the new selection types let new_selections: Vec> = selections .into_iter() - // Create a BTreeSet of hashes of lines. This way, string content is not stored, but uniqueness can be determined + // Create a BTreeSet of hashes of selections. This way, string content is not stored, but uniqueness can be determined .scan(BTreeSet::new(), |state, s| { // Strip whitespace if requested let mut key = if options.no_skip_whitespace {