diff --git a/config.def.h b/config.def.h index a7e5ffce..45e9d5b0 100644 --- a/config.def.h +++ b/config.def.h @@ -51,4 +51,5 @@ struct key bindings[] = { { 'c', SEL_CD }, /* Toggle sort by time */ { 't', SEL_MTIME }, + { CONTROL('L'), SEL_REDRAW }, }; diff --git a/noice.1 b/noice.1 index 1a353b3d..2d940ad7 100644 --- a/noice.1 +++ b/noice.1 @@ -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 diff --git a/noice.c b/noice.c index 31c0771e..e56a5f9a 100644 --- a/noice.c +++ b/noice.c @@ -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; } }