diff options
author | Tom Feist <shabble@cowu.be> | 2010-07-24 16:32:00 +0000 |
---|---|---|
committer | Tom Feist <shabble@cowu.be> | 2010-07-24 16:32:00 +0000 |
commit | 62ed4e1c708ef0f2641b872539dd6e02ff8bcad9 (patch) | |
tree | 0272414d4f3f9ce5ef0bb14a635a320d7be483d6 /history-search/history_search.pl | |
parent | modified parse_xsfuncs to output arguments as well (diff) | |
download | irssi-scripts-62ed4e1c708ef0f2641b872539dd6e02ff8bcad9.tar.gz irssi-scripts-62ed4e1c708ef0f2641b872539dd6e02ff8bcad9.zip |
misc stuffs
Diffstat (limited to 'history-search/history_search.pl')
-rw-r--r-- | history-search/history_search.pl | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/history-search/history_search.pl b/history-search/history_search.pl index d54e264..0a2282e 100644 --- a/history-search/history_search.pl +++ b/history-search/history_search.pl @@ -148,47 +148,3 @@ sub UNLOAD { print Dumper(\@_); uninstall_prompt(); } -# my $prev_typed; -# my $prev_startpos; -# my $enabled = 0; - -# Irssi::command_bind('history_search', sub { -# $enabled = ! $enabled; -# if ($enabled) { -# $prev_typed = ''; -# $prev_startpos = 0; -# } -# }); - -# Irssi::signal_add_last 'gui key pressed' => sub { -# my ($key) = @_; - -# if ($key == 10) { # enter -# $enabled = 0; -# } - -# return unless $enabled; - -# my $prompt = Irssi::parse_special('$L'); -# my $pos = Irssi::gui_input_get_pos(); - -# if ($pos < $prev_startpos) { -# $enabled = 0; -# return; -# } - -# my $typed = substr($prompt, $prev_startpos, ($pos-$prev_startpos)); - -# my $history = ($typed eq '') ? '' : Irssi::parse_special('$!' . $typed . '!'); -# if ($history eq '') { -# $history = $typed; -# } - -# my $startpos = index(lc($history), lc($typed)); - -# Irssi::gui_input_set($history); -# Irssi::gui_input_set_pos($startpos + length($typed)); - -# $prev_typed = $typed; -# $prev_startpos = $startpos; -# }; |