ranger.gui.widgets.browsercolumn
index
../../ranger/gui/widgets/browsercolumn.py

The BrowserColumn widget displays the contents of a directory or file.

 
Modules
       
curses
stat

 
Classes
       
ranger.gui.widgets.pager.Pager(ranger.gui.widgets.Widget)
BrowserColumn

 
class BrowserColumn(ranger.gui.widgets.pager.Pager)
    
Method resolution order:
BrowserColumn
ranger.gui.widgets.pager.Pager
ranger.gui.widgets.Widget
ranger.gui.displayable.Displayable
ranger.core.shared.EnvironmentAware
ranger.core.shared.FileManagerAware
ranger.gui.curses_shortcuts.CursesShortcuts
ranger.core.shared.SettingsAware
builtins.object

Methods defined here:
__init__(self, win, level)
Initializes a Browser Column Widget
 
win = the curses window object of the BrowserView
level = what to display?
 
level >0 => previews
level 0 => current file/directory
level <0 => parent directories
__str__(self)
click(self, event)
Handle a MouseEvent
draw(self)
Call either _draw_file() or _draw_directory()
execute_curses_batch(self, line, commands)
Executes a list of "commands" which can be easily cached.
 
"commands" is a list of lists.    Each element contains
a text and an attribute.  First, the attribute will be
set with attrset, then the text is printed.
 
Example:
execute_curses_batch(0, [["hello ", 0], ["world", curses.A_BOLD]])
has_preview(self)
level_restore(self)
level_shift(self, amount)
poke(self)
request_redraw(self)
resize(self, y, x, hei, wid)
scroll(self, n)
scroll down by n lines

Data and other attributes defined here:
display_infostring = False
display_vcsstate = True
ellipsis = {False: '~', True: '…'}
last_redraw_time = -1
main_column = False
old_dir = None
old_thisfile = None
scroll_begin = 0
target = None

Methods inherited from ranger.gui.widgets.pager.Pager:
clear_image(self, force=False)
close(self)
destroy(self)
draw_image(self)
finalize(self)
move(self, narg=None, **kw)
open(self)
press(self, key)
set_image(self, image)
set_source(self, source, strip=False)

Data and other attributes inherited from ranger.gui.widgets.pager.Pager:
max_width = None
need_clear_image = False
need_redraw_image = False
old_scroll_begin = 0
old_source = None
old_startx = 0
source = None
source_is_stream = False

Data and other attributes inherited from ranger.gui.widgets.Widget:
vcsfilestatus_symb = {'changed': ('*', ['vcschanged']), 'conflict': ('X', ['vcsconflict']), 'deleted': ('-', ['vcschanged']), 'ignored': ('·', ['vcsignored']), 'none': (' ', []), 'staged': ('*', ['vcsstaged']), 'sync': ('√', ['vcssync']), 'unknown': ('?', ['vcsunknown']), 'untracked': ('+', ['vcschanged'])}
vcsremotestatus_symb = {'ahead': ('>', ['vcsahead']), 'behind': ('<', ['vcsbehind']), 'diverged': ('Y', ['vcsdiverged']), 'none': (' ', []), 'sync': ('=', ['vcssync']), 'unknown': ('?', ['vcsunknown'])}

Methods inherited from ranger.gui.displayable.Displayable:
__bool__ = __nonzero__(self)
Always True
__contains__(self, item)
Checks if item is inside the boundaries.
 
item can be an iterable like [y, x] or an object with x and y methods.
__nonzero__(self)
Always True
contains_point(self, y, x)
Test whether the point lies inside this object.
 
x and y should be absolute coordinates.

Methods inherited from ranger.core.shared.EnvironmentAware:
env = None
Data descriptors inherited from ranger.core.shared.EnvironmentAware:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from ranger.gui.curses_shortcuts.CursesShortcuts:
addch(self, *args)
addnstr(self, *args)
addstr(self, *args)
color(self, *keys)
Change the colors from now on.
color_at(self, y, x, wid, *keys)
Change the colors at the specified position
color_reset(self)
Change the colors to the default colors
set_fg_bg_attr(self, fg, bg, attr)

 
Functions
       
time(...)
time() -> floating point number
 
Return the current time in seconds since the Epoch.
Fractions of a second may be present if the system clock provides them.

 
Data
        COLOR_PAIRS = {10: 0}
black = 0
blink = 524288
blue = 4
bold = 2097152
cyan = 6
default = -1
default_colors = (-1, -1, 0)
green = 2
invisible = 8388608
magenta = 5
normal = 0
red = 1
reverse = 262144
underline = 131072
white = 7
yellow = 3