Skip to content
Permalink
Browse files

kakrc: Add a delete-buffers-matching helper command

This deletes all buffers whose filename match a given globbing
pattern.
  • Loading branch information...
mawww committed Sep 4, 2018
1 parent 2c1f013 commit 699b2bf2d9937158b2247fb220367c4669062039
Showing with 6 additions and 0 deletions.
  1. +6 −0 kakrc
6 kakrc
@@ -111,6 +111,12 @@ define-command ide %{
set-option global docsclient docs
}

define-command delete-buffers-matching -params 1 %{
evaluate-commands -buffer * %{
evaluate-commands %sh{ case "$kak_buffile" in $1) echo "delete-buffer" ;; esac }
}
}

# Load local Kakoune config file if it exists
# ───────────────────────────────────────────

0 comments on commit 699b2bf

Please sign in to comment.
You can’t perform that action at this time.