From cb1fa307e7ea8c55d210f23097143fa1f9f6160c Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Tue, 1 Oct 2019 22:16:48 +0200 Subject: Add a configurable VCS max message length Previously it was hardcoded as 50, let's make it easy to change for the user. Improves upon #1705. Related to #1704. --- doc/ranger.1 | 5 ++++- doc/ranger.pod | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/ranger.1 b/doc/ranger.1 index ee4c84e7..7bbea1cd 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.9.2" "2019-09-24" "ranger manual" +.TH RANGER 1 "ranger-1.9.2" "2019-10-01" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -1124,6 +1124,9 @@ Sets the state for the version control backend. The possible values are: \& local display only local state. \& enabled display both, local and remote state. May be slow for hg and bzr. .Ve +.IP "vcs_msg_length [int]" 4 +.IX Item "vcs_msg_length [int]" +Truncate the long commit messages to this length when shown in the statusbar. .IP "viewmode [string]" 4 .IX Item "viewmode [string]" Sets the view mode, which can be \fBmiller\fR to display the files in the diff --git a/doc/ranger.pod b/doc/ranger.pod index beb2fdb8..c01f611d 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -1170,6 +1170,10 @@ Sets the state for the version control backend. The possible values are: local display only local state. enabled display both, local and remote state. May be slow for hg and bzr. +=item vcs_msg_length [int] + +Truncate the long commit messages to this length when shown in the statusbar. + =item viewmode [string] Sets the view mode, which can be B to display the files in the -- cgit 1.4.1-2-gfad0 From da78747a9ccb7626ff48a3461f2e4a26212f61ee Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Wed, 2 Oct 2019 00:32:18 +0200 Subject: Reword the vcs_msg_length docs --- doc/ranger.1 | 3 ++- doc/ranger.pod | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/ranger.1 b/doc/ranger.1 index 7bbea1cd..e67354af 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -1126,7 +1126,8 @@ Sets the state for the version control backend. The possible values are: .Ve .IP "vcs_msg_length [int]" 4 .IX Item "vcs_msg_length [int]" -Truncate the long commit messages to this length when shown in the statusbar. +Length to truncate first line of the commit messages to when shown in +the statusbar. Defaults to 50. .IP "viewmode [string]" 4 .IX Item "viewmode [string]" Sets the view mode, which can be \fBmiller\fR to display the files in the diff --git a/doc/ranger.pod b/doc/ranger.pod index c01f611d..999a1f57 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -1172,7 +1172,8 @@ Sets the state for the version control backend. The possible values are: =item vcs_msg_length [int] -Truncate the long commit messages to this length when shown in the statusbar. +Length to truncate first line of the commit messages to when shown in +the statusbar. Defaults to 50. =item viewmode [string] -- cgit 1.4.1-2-gfad0