summaryrefslogtreecommitdiffstats
path: root/smenu.1
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2020-08-22 21:05:29 +0200
committerpgen <p.gen.progs@gmail.com>2020-08-27 00:19:18 +0200
commitb4215ab8fe2157db5ddf2b9034e1e685c3a9270a (patch)
tree96ec79d13ab7758d3e4fd91e13132a7f27ac63a5 /smenu.1
parentb09d3f45c707dd68612c58b9ca551c2291d6f306 (diff)
Set a default 10s search timer
Diffstat (limited to 'smenu.1')
-rw-r--r--smenu.117
1 files changed, 12 insertions, 5 deletions
diff --git a/smenu.1 b/smenu.1
index 623a131..8314b9c 100644
--- a/smenu.1
+++ b/smenu.1
@@ -240,12 +240,20 @@ and the word is added to the list of matching words and displayed with
an error attribute (in red by default).
This special state will persist until all the symbols following the first
-erroneous one are deleted (using backspace) or if \fBESC\fP is pressed.
+erroneous one are deleted (using backspace) or if \fBESC\fP is pressed
+to cancel the search session and clear the search buffer.
.PP
During a search session, the cursor changes and each character entered is
added in (or removed from) the search buffer.
The display is refreshed after each change in this buffer.
.PP
+A 10 seconds timeout (by default) automatically ends the current
+search session as if the \fBEnter\fP key had been pressed.
+This timeout is reset each time a new key is hit in search mode.
+This delay can be configured using the \fBsearch\fP entry in the
+\fBtimers\fP section of the configuration file as shown in the example
+in the configuration subsection.
+.PP
The slash key (\fB/\fP) can also be used instead of any of these keys.
By default it is is programmed to do a \fIfuzzy\fP search but this can
be changed by using the command line option
@@ -262,9 +270,8 @@ matching word "words" will be displayed as \fBw\fP\fIo\fP\fBrd\fP\fIs\fP
when the \fIfuzzy\fP algorithm is in use depending of the display
attributes configured.
.PP
-\fBESC\fP can be used anytime to abort the current search session.
-\fBENTER\fP and all cursor moves also terminate the search
-session but do not clear the list of the matchng words.
+\fBENTER\fP and all cursor moves terminate the search session but do
+not clear the list of the matching words and the search buffer.
.PP
The user can then use the \fBn\fP/\fBs\fP/\fBSPACE\fP keys (forward) and
the \fBN\fP/\fBS\fP keys (backward) to navigate in the list of matching
@@ -500,7 +507,7 @@ allowed:
columns = 128 ; arbitrary max number of columns (int)
[timers]
- search = 60 ; search timers in 1/10 s
+ search = 100 ; search timeout in 1/10 s
help = 150 ; duration of the help message in 1/10 s
window = 7 ; delay before redrawing if the size of the
; terminal's window change in 1/10 s
'>119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
# Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
# SPDX-License-Identifier: GPL-3.0-or-later

MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
CLEANFILES = \
    cron/netdata-updater-daily \
    freebsd/rc.d/netdata \
    initd/init.d/netdata \
    launchd/netdata.plist \
    logrotate/netdata \
    lsb/init.d/netdata \
    openrc/conf.d/netdata \
    openrc/init.d/netdata \
    runit/run \
    systemd/netdata.service \
    systemd/netdata.service.v235 \
    systemd/netdata-updater.service \
    $(NULL)

include $(top_srcdir)/build/subst.inc
SUFFIXES = .in

dist_config_SCRIPTS = \
    edit-config \
    $(NULL)

dist_config_DATA = \
    .install-type \
    netdata-updater.conf \
    $(NULL)

libconfigvnodesdir=$(libconfigdir)/vnodes
libsyscrondir=$(libsysdir)/cron
libsysfreebsddir=$(libsysdir)/freebsd
libsysfreebsdrcddir=$(libsysfreebsddir)/rc.d
libsysinitddir=$(libsysdir)/initd
libsysinitdinitddir=$(libsysinitddir)/init.d
libsyslaunchddir=$(libsysdir)/launchd
libsyslogrotatedir=$(libsysdir)/logrotate
libsyslsbdir=$(libsysdir)/lsb
libsyslsbinitddir=$(libsyslsbdir)/init.d
libsysopenrcdir=$(libsysdir)/openrc
libsysopenrcinitddir=$(libsysopenrcdir)/init.d
libsysopenrcconfddir=$(libsysopenrcdir)/conf.d
libsysrunitdir=$(libsysdir)/runit
libsyssystemddir=$(libsysdir)/systemd

# Explicitly install directories to avoid permission issues due to umask
install-exec-local:
	$(INSTALL) -d $(DESTDIR)$(configdir)
	$(INSTALL) -d $(DESTDIR)$(libsysdir)
	$(INSTALL) -d $(DESTDIR)$(libsyscrondir)
	$(INSTALL) -d $(DESTDIR)$(libsysfreebsdrcddir)
	$(INSTALL) -d $(DESTDIR)$(libsysinitdinitddir)
	$(INSTALL) -d $(DESTDIR)$(libsyslaunchddir)
	$(INSTALL) -d $(DESTDIR)$(libsyslogrotatedir)
	$(INSTALL) -d $(DESTDIR)$(libsyslsbinitddir)
	$(INSTALL) -d $(DESTDIR)$(libsyssystemddir)
	$(INSTALL) -d $(DESTDIR)$(libsysopenrcinitddir)
	$(INSTALL) -d $(DESTDIR)$(libsysopenrcconfddir)
	$(INSTALL) -d $(DESTDIR)$(libsysrunitdir)
	$(INSTALL) -d $(DESTDIR)$(libconfigvnodesdir)

dist_libconfigvnodes_DATA = \
    vnodes/vnodes.conf
    $(NULL)

libexecnetdatadir=$(libexecdir)/netdata
nodist_libexecnetdata_SCRIPTS = \
    install-service.sh \
    $(NULL)

nodist_libsyscron_DATA = \
    cron/netdata-updater-daily \
    $(NULL)

nodist_libsysfreebsdrcd_DATA = \
    freebsd/rc.d/netdata \
    $(NULL)

nodist_libsysinitdinitd_DATA = \
    initd/init.d/netdata \
    $(NULL)

nodist_libsyslaunchd_DATA = \
    launchd/netdata.plist \
    $(NULL)

nodist_libsyslogrotate_DATA = \
    logrotate/netdata \
    $(NULL)

nodist_libsyslsbinitd_DATA = \
    lsb/init.d/netdata \
    $(NULL)

nodist_libsysopenrcinitd_DATA = \
    openrc/init.d/netdata \
    $(NULL)

nodist_libsysopenrcconfd_DATA = \
    openrc/conf.d/netdata \
    $(NULL)

nodist_libsysrunit_DATA = \
    runit/run \
    $(NULL)

nodist_libsyssystemd_DATA = \
    systemd/netdata.service \
    systemd/netdata.service.v235 \
    systemd/netdata-updater.service \
    $(NULL)

dist_libsyssystemd_DATA = \
    systemd/netdata-updater.timer \
    systemd/50-netdata.preset
    $(NULL)

dist_noinst_DATA = \
    install-service.sh.in \
    netdata.conf \
    cron/netdata-updater-daily.in \
    freebsd/rc.d/netdata.in \
    initd/init.d/netdata.in \
    launchd/netdata.plist.in \
    logrotate/netdata.in \
    lsb/init.d/netdata.in \
    openrc/conf.d/netdata.in \
    openrc/init.d/netdata.in \
    runit/run.in \
    systemd/netdata.service.in \
    systemd/netdata.service.v235.in \
    systemd/netdata-updater.service.in \
    $(NULL)