]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Open current search results as a quickfix
authorSergey Matveev <stargrave@stargrave.org>
Thu, 11 Jun 2020 15:27:54 +0000 (18:27 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 12 Jun 2020 11:19:43 +0000 (14:19 +0300)
bin/bin/qq [new file with mode: 0755]

diff --git a/bin/bin/qq b/bin/bin/qq
new file mode 100755 (executable)
index 0000000..290f136
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+tmp=`mktemp`
+tmux capture-pane -J
+tmux save-buffer $tmp
+tmux delete-buffer
+perl -ne '/^([^:]+:\d+:.*[^\s])\s*$/ and print "$1\n"' < $tmp > $tmp.err
+rm $tmp
+vim -c copen -q $tmp.err
+rm $tmp.err