summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorBalaji Sivaraman <balaji@balajisivaraman.com>2018-01-01 19:30:31 +0530
committerAndrew Gallant <jamslam@gmail.com>2018-01-01 09:00:31 -0500
commitba1023e1e45d7bd6edffa43d06c9613d3b84de8f (patch)
tree4fee4b0b3ef368344713e5fcac8e75593337d543 /doc
parent5e73075ef5300fdec03f6c4685750788108b00f4 (diff)
printer: add support for line number alignment
Closes #544
Diffstat (limited to 'doc')
-rw-r--r--doc/rg.18
-rw-r--r--doc/rg.1.md6
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/rg.1 b/doc/rg.1
index 2ed14b39..c91cbc5c 100644
--- a/doc/rg.1
+++ b/doc/rg.1
@@ -335,6 +335,14 @@ Follow symlinks.
.RS
.RE
.TP
+.B \-\-line\-number\-width \f[I]NUM\f[]
+Specify a width for the displayed line number.
+If number of digits in the line number is less than this number, it is
+left padded with spaces.
+Note: This setting has no effect if \-\-no\-line\-number is enabled.
+.RS
+.RE
+.TP
.B \-M, \-\-max\-columns \f[I]NUM\f[]
Don\[aq]t print lines longer than this limit in bytes.
Longer lines are omitted, and only the number of matches in that line is
diff --git a/doc/rg.1.md b/doc/rg.1.md
index 36c912c6..bbc0207e 100644
--- a/doc/rg.1.md
+++ b/doc/rg.1.md
@@ -222,6 +222,12 @@ Project home page: https://github.com/BurntSushi/ripgrep
-L, --follow
: Follow symlinks.
+--line-number-width *NUM*
+: Specify a width for the displayed line number. If number of digits
+ in the line number is less than this number, it is left padded with
+ spaces. Note: This setting has no effect if --no-line-number is
+ enabled.
+
-M, --max-columns *NUM*
: Don't print lines longer than this limit in bytes. Longer lines are omitted,
and only the number of matches in that line is printed.