From e01bf0062ad29f356878985a813b47ec86966803 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 24 May 2016 15:43:24 +0200 Subject: merge setting "relative_line_numbers" into "line_numbers" line_numbers now takes a string rather than a bool, with the valid values "false", "absolute" and "relative". Related to #546 --- doc/ranger.1 | 16 +++++++++------- doc/ranger.pod | 13 ++++++------- 2 files changed, 15 insertions(+), 14 deletions(-) (limited to 'doc') diff --git a/doc/ranger.1 b/doc/ranger.1 index ecc4f7f1..b2ba1aac 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -735,9 +735,15 @@ this pattern will hide all files that start with a dot or end with a tilde. The delay that ranger idly waits for user input, in milliseconds, with a resolution of 100ms. Lower delay reduces lag between directory updates but increases \s-1CPU\s0 load. -.IP "line_numbers [bool]" 4 -.IX Item "line_numbers [bool]" -Show line numbers in main column. +.IP "line_numbers [string]" 4 +.IX Item "line_numbers [string]" +Show line numbers in main column. Possible values are: +.Sp +.Vb 3 +\& false turn the feature off +\& absolute absolute line numbers for use with "gg" +\& relative relative line numbers for "k" or "j" +.Ve .IP "max_console_history_size [integer, none]" 4 .IX Item "max_console_history_size [integer, none]" How many console commands should be kept in history? \*(L"none\*(R" will disable the @@ -776,10 +782,6 @@ to disable this feature. Which script should handle generating previews? If the file doesn't exist, or use_preview_script is off, ranger will handle previews itself by just printing the content. -.IP "relative_line_numbers [bool]" 4 -.IX Item "relative_line_numbers [bool]" -Show relative line numbers in main column. Requires \fBline_numbers\fR set to -\&\fBtrue\fR. .IP "save_console_history [bool]" 4 .IX Item "save_console_history [bool]" Should the console history be saved on exit? If disabled, the console history diff --git a/doc/ranger.pod b/doc/ranger.pod index 00c26f12..a69dc52d 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -720,9 +720,13 @@ The delay that ranger idly waits for user input, in milliseconds, with a resolution of 100ms. Lower delay reduces lag between directory updates but increases CPU load. -=item line_numbers [bool] +=item line_numbers [string] -Show line numbers in main column. +Show line numbers in main column. Possible values are: + + false turn the feature off + absolute absolute line numbers for use with "gg" + relative relative line numbers for "k" or "j" =item max_console_history_size [integer, none] @@ -772,11 +776,6 @@ Which script should handle generating previews? If the file doesn't exist, or use_preview_script is off, ranger will handle previews itself by just printing the content. -=item relative_line_numbers [bool] - -Show relative line numbers in main column. Requires B set to -B. - =item save_console_history [bool] Should the console history be saved on exit? If disabled, the console history -- cgit 1.4.1-2-gfad0 ef='#n11'>11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99