walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
587 stars 17 forks source link

single character shift when moving righ/left #130

Closed nkh closed 1 year ago

nkh commented 1 year ago

documentation says "Left / right can be used to hide / show line numbers" which works nominally

given an aligned text (graph, table, csv, ...) moving right/left cut 16?! characters from the text which makes it difficult to use.

this would roughly be equivalent to less's option --shift, except that hiding the line number must be taken into account

example text

1 Bonn blessed in 'Graph::Easy::Node'
  2 |- att (no elements)  [H1]
  3 |- cache  [H2]                                                                                                                                                                               4 |  |- border_style = solid  [S3]
  5 |  |- bottom_border = solid  [S4]                                                                                                                                                            6 |  |- class = node  [S5]
  7 |  |- flow = 90  [S6]
  8 |  |- left_border = solid  [S7]                                                                                                                                                              9 |  |- right_border = solid  [S8]
 10 |  |- subclass =   [S9]
 11 |  `- top_border = solid  [S10]                                                                                                                                                             12 |- children (no elements)  [H11]
 13 |- class = node  [S12]
 14 |- cx = 1  [S13]                                                                                                                                                                            15 |- cy = 1  [S14]
 16 |- edges  [H15]
 17 |  `- 6 =  blessed in 'Graph::Easy::Edge'  [OH16]                                                                                                                                           18 |     |- att  [H17]
 19 |     |  |- label = undef  [S18]                                                                                                                                                            20 |     |  `- style = undef  [S19]
walles commented 1 year ago

What about if you could do ALT-arrow-key to scroll one column at a time?

nkh commented 1 year ago

that would not be as good but it would certainly work