diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-06-02 12:56:59 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-06-02 12:56:59 +0200 |
commit | 5cfa00200a3c7aece46122fcd6afc963b747782f (patch) | |
tree | f918cfc32ac452e3d1058cfcd59e1ef6c6de8f71 | |
parent | 181f4a7581d7d43e8d5ad38059d9ecba0c3477d8 (diff) |
Improve the status message.
Add the extension name in status_msg(), do not hardcode it in each call.
-rw-r--r-- | reselect | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -96,7 +96,7 @@ sub on_user_command { if ($num < 1) { my $desc = $issel ? "in visible selected text" : "on visible screen"; - $self->status_msg("url-picker: no URLs found $desc"); + $self->status_msg("no matches found $desc"); } else { my $url_picker = {}; $url_picker->{prompt} = $self->overlay( @@ -193,9 +193,11 @@ sub launch { sub status_msg { my ($self, $msg) = @_; + + $msg = $self->{name} . ":" . $msg; $self->{url_picker_msg} = $self->overlay(0, -1, length($msg), 1, $self->get_rend("status",urxvt::OVERLAY_RSTYLE), 0); - $self->{url_picker_msg}->set(0,0,$msg); + $self->{url_picker_msg}->set(0, 0, $msg); $self->{url_picker_timer} = urxvt::timer ->new ->after (5) |