From 95aea6b533e71e478d61d18fac71cca116c56a4d Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 22 May 2022 22:47:23 +0100 Subject: Add all the plugins I currently use --- start/fzf/bin/tags.pl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 start/fzf/bin/tags.pl (limited to 'start/fzf/bin/tags.pl') diff --git a/start/fzf/bin/tags.pl b/start/fzf/bin/tags.pl new file mode 100644 index 0000000..4208c16 --- /dev/null +++ b/start/fzf/bin/tags.pl @@ -0,0 +1,15 @@ +#!/usr/bin/env perl + +use strict; + +foreach my $file (@ARGV) { + open my $lines, $file; + while (<$lines>) { + unless (/^\!/) { + s/^[^\t]*/sprintf("%-24s", $&)/e; + s/$/\t$file/; + print; + } + } + close $lines; +} -- cgit v1.2.3