Bläddra i källkod

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.
master
sin 10 år sedan
förälder
incheckning
3682c720ba
3 ändrade filer med 6 tillägg och 0 borttagningar
  1. +1
    -0
      config.def.h
  2. +2
    -0
      noice.1
  3. +3
    -0
      noice.c

+ 1
- 0
config.def.h Visa fil

@@ -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
- 0
noice.1 Visa fil

@@ -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
- 0
noice.c Visa fil

@@ -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;
} }
} }




Laddar…
Avbryt
Spara