diff options
author | Tom Feist <shabble@metavore.org> | 2010-10-08 00:44:42 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2010-10-08 00:44:42 +0000 |
commit | 7c447b8328be2e404fa3d34780da3c0e954082d0 (patch) | |
tree | 57d5304bbfb44916310be5b8b76293aa4c5cc520 /feature-tests/internal_signals.pl | |
parent | added prompt_replace to dev branch (diff) | |
parent | vim_mode: Fix :registers' display of "+ and "*. (diff) | |
download | irssi-scripts-7c447b8328be2e404fa3d34780da3c0e954082d0.tar.gz irssi-scripts-7c447b8328be2e404fa3d34780da3c0e954082d0.zip |
Merge remote branch 'origin/dev' into dev
Conflicts:
prompt_info/prompt_replace.pl
test/irssi/config
Diffstat (limited to 'feature-tests/internal_signals.pl')
-rw-r--r-- | feature-tests/internal_signals.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/feature-tests/internal_signals.pl b/feature-tests/internal_signals.pl new file mode 100644 index 0000000..e40587f --- /dev/null +++ b/feature-tests/internal_signals.pl @@ -0,0 +1,14 @@ +# not a complete script, just a useful snippet +Irssi::signal_register({'complete command set' + => ["glistptr_char*", "Irssi::UI::Window", + "string", "string", "intptr"]}); + +my @res = (); +my $num; +Irssi::signal_emit('complete command set', \@res, Irssi::active_win(), + '', '', \$num); + +print "results: @res"; + +# will return all the possible completions for the /set command. you can filter +# it by changing the 2 empty strings (word-fragment, and line context) |