Krolyxon
Commit 590d9fe

Branches

Refs →

nsxiv590d9fe

Fix typo and manpage improvement (#249)

* Fixes some typo and adds some consistency to the manpage

Typo detected automatically whilst packaging nsxiv for Debian
Author
Nick Morrott
Date
2022-03-26 10:02 +0000
Committer
GitHub · 2022-03-26 10:02 +0000
Parent
1ef0c1f
Commit
590d9fe0a9573ca72fdbab5119fd2c60dce3dd19

+27 −16

2 files changed

  1. M examples/key-handler +1 −1
  2. M nsxiv.1 +26 −15
M examples/key-handler View
@@ -9,7 +9,7 @@
99 # reloads them.
1010
1111 # By default nsxiv(1) will send one image per-line to stdin, however when using
12−# -0 the image list will be NULL separated and the enviornment variable
12+# -0 the image list will be NULL separated and the environment variable
1313 # "$NSXIV_USING_NULL" will be set to 1.
1414
1515 # The key combo argument has the following form: "[C-][M-][S-]KEY",
M nsxiv.1 View
@@ -30,7 +30,7 @@ It has two modes of operation: image and thumbnail mode. The default is image
3030 mode, in which only the current image is shown. In thumbnail mode a grid of
3131 small previews is displayed, making it easy to choose an image to open.
3232 .P
33−Please note, that the fullscreen mode requires an EWMH/NetWM compliant window
33+Please note, that the fullscreen mode requires an EWMH/NetWM-compliant window
3434 manager.
3535 .SH OPTIONS
3636 .TP
@@ -83,7 +83,7 @@ nsxiv can be used as a visual filter/pipe.
8383 Enable private mode, in which nsxiv does not write any cache or temporary files.
8484 .TP
8585 .B \-q
86−Be quiet, disable warnings to standard error stream.
86+Be quiet, and disable warnings to standard error stream.
8787 .TP
8888 .B \-r
8989 Search the given directories recursively for images to view.
@@ -93,7 +93,7 @@ Start in slideshow mode. Set the delay between images to
9393 .I DELAY
9494 seconds.
9595 .I DELAY
96−may be a floating point number.
96+may be a floating-point number.
9797 .TP
9898 .BI "\-s " MODE
9999 Set scale mode according to MODE character. Supported modes are: [d]own,
@@ -112,11 +112,11 @@ The same as `\-z 100'.
112112 Set zoom level to ZOOM percent.
113113 .TP
114114 .B \-0
115−Use NULL-separator. With this option output of \-o and file-list sent to the
115+Use NULL-separator. With this option, output of \-o and file-list sent to the
116116 key-handler and the input of \-i will be separated by a NULL character.
117117 .SH KEYBOARD COMMANDS
118118 .SS General
119−The following keyboard commands are available in both image and thumbnail mode:
119+The following keyboard commands are available in both image and thumbnail modes:
120120 .TP
121121 .BR 0 \- 9
122122 Prefix the next command with a number (denoted via
@@ -366,7 +366,7 @@ The following mouse mappings are available in thumbnail mode:
366366 Select the image. Goes into image mode if double\-clicked.
367367 .TP
368368 .B Button3
369−Mark/unmark the image. Dragging while holding Button3 down will mark/unmark
369+Mark/unmark the image. Dragging while holding down Button3 will mark/unmark
370370 multiple images.
371371 .TP
372372 .B Button4
@@ -429,12 +429,18 @@ The window title can be replaced with the output of a user-provided script,
429429 which is called by nsxiv whenever there's a redraw. The path of this script is
430430 .I $XDG_CONFIG_HOME/nsxiv/exec/win-title
431431 and the arguments given to it (where "Optional" arguments might be empty) are:
432−1) resolved absolute path of the current file,
433−2) current file number,
434−3) total file count,
435−4) image width (Optional: Disabled on thumbnails mode),
436−5) image height (Optional: Disabled on thumbnails mode),
437−6) current zoom (Optional: Disabled on thumbnails mode).
432+.IP $1 4
433+resolved absolute path of the current file
434+.IP $2 4
435+current file number
436+.IP $3 4
437+total file count
438+.IP $4 4
439+image width (Optional: Disabled on thumbnails mode)
440+.IP $5 4
441+image height (Optional: Disabled on thumbnails mode)
442+.IP $6 4
443+current zoom (Optional: Disabled on thumbnails mode)
438444 .P
439445 The term file is used rather than image as nsxiv does not precheck that the
440446 input files are valid images. Total file count may be different from the actual
@@ -447,8 +453,13 @@ The information displayed on the left side of the status bar can be replaced
447453 with the output of a user-provided script, which is called by nsxiv whenever an
448454 image gets loaded. The path of this script is
449455 .I $XDG_CONFIG_HOME/nsxiv/exec/image-info
450−and the arguments given to it are: 1) path to image file, 2) image width,
451−3) image height.
456+and the arguments given to it are:
457+.IP $1 4
458+path to image file
459+.IP $2 4
460+image width
461+.IP $3 4
462+image height
452463 .P
453464 There is also an example script installed together with nsxiv as
454465 .IR EGPREFIX/image-info .
@@ -465,7 +476,7 @@ the handler terminates. It then checks which images have been modified and
465476 reloads them.
466477
467478 By default nsxiv(1) will send one image per-line to stdin, however when using
468−\-0 the image list will be NULL separated and the enviornment variable
479+\-0 the image list will be NULL separated and the environment variable
469480 "$NSXIV_USING_NULL" will be set to 1.
470481
471482 The key combo argument has the following form: "[C-][M-][S-]KEY",