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 }, { 'c', SEL_CD },
/* Toggle sort by time */ /* Toggle sort by time */
{ 't', SEL_MTIME }, { 't', SEL_MTIME },
{ CONTROL('L'), SEL_REDRAW },
}; };

View file

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

View file

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