From d427f9cd8331542a8d4c3a64be45e1bc961478bf Mon Sep 17 00:00:00 2001 From: Mark Rogalski Date: Mon, 16 May 2016 18:20:32 +0200 Subject: Add line number to the predisplay_left --- ranger/gui/widgets/browsercolumn.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index 129d8486..efecb93d 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -239,6 +239,8 @@ class BrowserColumn(Pager): copied = [f.path for f in self.fm.copy_buffer] + linum_mode_is_set = True + selected_i = self._get_index_of_selected_file() for line in range(self.hei): i = line + self.scroll_begin @@ -290,6 +292,9 @@ class BrowserColumn(Pager): predisplay_right = [] space = self.wid + if linum_mode_is_set: + predisplay_left.append([str(i), ["directory"]]) + # selection mark tagmark = self._draw_tagged_display(tagged, tagged_marker) tagmarklen = self._total_len(tagmark) -- cgit 1.4.1-2-gfad0 r> about summary refs log blame commit diff stats
path: root/doc/tools/print_colors.py
blob: 762ac3e3293306429b3aa95f20aca5687c8a8f11 (plain) (tree)
1
2
3
4
5
6
7
8
9