diff options
author | Tom Feist <shabble@cowu.be> | 2010-08-27 19:26:32 +0000 |
---|---|---|
committer | Tom Feist <shabble@cowu.be> | 2010-08-27 19:26:32 +0000 |
commit | 9c49cf08cf47fa4fd7db5260cee67d8cb23b891c (patch) | |
tree | e9a95e428a852570c11bda8f147cd3932dafb77f /docs/sigextract.pl | |
parent | A custom expando like $M that doesnt show channel key (diff) | |
download | irssi-scripts-9c49cf08cf47fa4fd7db5260cee67d8cb23b891c.tar.gz irssi-scripts-9c49cf08cf47fa4fd7db5260cee67d8cb23b891c.zip |
extracted all signals from irssi codebase, uniqed and sorted: complete-signal-list.txt
Diffstat (limited to 'docs/sigextract.pl')
-rwxr-xr-x | docs/sigextract.pl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/sigextract.pl b/docs/sigextract.pl new file mode 100755 index 0000000..cc6f8bb --- /dev/null +++ b/docs/sigextract.pl @@ -0,0 +1,24 @@ +#!/usr/bin/env perl + +use strict; +use warnings; + +my $file = shift // 'allsigs.txt'; + +open my $fh, $file or die "couldn't open $file: $!"; +my $sigs = {}; + +while (my $line = <$fh>) { + chomp $line; + if ($line =~ m/"(\w+(?:\s+\w+)*)"/) { + #print "Found signal: $1\n"; + $sigs->{$1}++; + } +} + +close $fh; + +my @signals = keys %$sigs; + +print join("\n", sort @signals); +print "\n"; |