Update documentation
This commit is contained in:
parent
cd821274c0
commit
92de282027
@ -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
|
||||
}
|
||||
}
|
||||
----
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user