aboutsummaryrefslogtreecommitdiff
path: root/autoload/grep.kak
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-06-12 20:33:09 +0530
committerAkshay Nair <phenax5@gmail.com>2026-06-12 20:33:09 +0530
commit1ccf3d5c1d2ee7ff8ec97488c0b15b8316fb29f9 (patch)
tree9a358f7611205b1e5f0f90757c06b60f5859eab3 /autoload/grep.kak
parentcd744290334f28d1b03e952cac9df6cdc164a0cf (diff)
downloadkakoune-config-1ccf3d5c1d2ee7ff8ec97488c0b15b8316fb29f9.tar.gz
kakoune-config-1ccf3d5c1d2ee7ff8ec97488c0b15b8316fb29f9.zip
Clipboard actions + grep selection
Diffstat (limited to '')
-rw-r--r--autoload/grep.kak3
1 files changed, 2 insertions, 1 deletions
diff --git a/autoload/grep.kak b/autoload/grep.kak
index c0d1010..4caee4e 100644
--- a/autoload/grep.kak
+++ b/autoload/grep.kak
@@ -1,6 +1,7 @@
set-option global grepcmd "rg -S --vimgrep --hidden -g '!**/.git/**'"
-map global file g ":grep ''<left>" -docstring 'Grep'
+map global file g ':grep ''''<left>' -docstring 'Grep'
+map global file * ': grep --case-sensitive %val{selection}<ret>' -docstring 'Grep selection'
define-command grep-write %{
execute-keys '%' # Consider selecting manually