[Tags] Support multiple tags files

We also apply --nth 1..2 by default to limit the search scope.

Close #106
Related #5, #329
This commit is contained in:
Junegunn Choi
2017-03-10 17:04:52 +09:00
parent e4f79f6e98
commit 06a8b870c0
2 changed files with 37 additions and 19 deletions

15
bin/tags.pl Executable file
View File

@@ -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;
}