in src/pathpicker/screen_control.py [0:0]
def output_description_pane(self, line_obj: LineMatch) -> None:
if not self.get_is_sidebar_mode():
return
_max_y, max_x = self.screen_control.get_screen_dimensions()
border_x = max_x - self.width
start_y = self.sidebar_y + 1
start_x = border_x + 2
header_line = "Description for " + line_obj.path + " :"
line_prefix = " * "
desc_lines = [
line_obj.get_time_last_accessed(),
line_obj.get_time_last_modified(),
line_obj.get_owner_user(),
line_obj.get_owner_group(),
line_obj.get_file_size(),
line_obj.get_length_in_lines(),
]
self.printer.addstr(start_y, start_x, header_line)
y_pos = start_y + 2
for desc_line in desc_lines:
desc_line = self.trim_line(desc_line, max_x - start_x - len(line_prefix))
self.printer.addstr(y_pos, start_x, line_prefix + desc_line)
y_pos = y_pos + 1
self.description_clear = False