Add C-l to force a redraw

Often I am waiting for a file to download and be renamed from
.foo.part to .foo.  Forcing a redraw is a simple way to check if
the file has completed downloading.
This commit is contained in:
sin 2015-03-11 18:55:28 +00:00
parent cdf8a429c5
commit 3682c720ba
3 changed files with 6 additions and 0 deletions

View File

@ -51,4 +51,5 @@ struct key bindings[] = {
{ 'c', SEL_CD },
/* Toggle sort by time */
{ 't', SEL_MTIME },
{ CONTROL('L'), SEL_REDRAW },
};

View File

@ -49,6 +49,8 @@ Enter filter-as-you-type mode.
Change into the given directory.
.It Ic t
Toggle sort by time modified.
.It Ic l
Force a redraw.
.It Ic !
Spawn shell in current directory.
.It Ic q

View File

@ -57,6 +57,7 @@ enum action {
SEL_SH,
SEL_CD,
SEL_MTIME,
SEL_REDRAW,
};
struct key {
@ -817,6 +818,8 @@ moretyping:
case SEL_MTIME:
mtimeorder = !mtimeorder;
goto out;
case SEL_REDRAW:
goto out;
}
}