mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
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:
parent
cdf8a429c5
commit
3682c720ba
|
@ -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 },
|
||||||
};
|
};
|
||||||
|
|
2
noice.1
2
noice.1
|
@ -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
|
||||||
|
|
3
noice.c
3
noice.c
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue