Update documentation

This commit is contained in:
Austen Adler 2022-03-12 18:18:09 -05:00
parent cd821274c0
commit 92de282027
2 changed files with 3 additions and 6 deletions

View File

@ -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
}
}
----

View File

@ -24,7 +24,7 @@ pub fn uniq(options: &Options) -> Result<KakMessage, KakMessage> {
// Set the new selection types
let new_selections: Vec<Option<SelectionWithDesc>> = 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 {