From a13ad907a0453d89a86d6a98ccc72b2b8ae05a5b Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 3 Dec 2014 18:33:55 +0100 Subject: rename "title" linemode to "papertitle" --- ranger/container/fsobject.py | 2 +- ranger/core/actions.py | 4 ++-- ranger/gui/widgets/browsercolumn.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ranger/container/fsobject.py b/ranger/container/fsobject.py index fb3356a4..e5e0983e 100644 --- a/ranger/container/fsobject.py +++ b/ranger/container/fsobject.py @@ -82,7 +82,7 @@ class FileSystemObject(FileManagerAware, SettingsAware): basename_is_rel = False - # the line mode may be "filename", "permissions" or "title" + # the line mode may be "filename", "permissions" or "papertitle" _linemode = "filename" def __init__(self, path, preload=None, path_is_abs=False, basename_is_rel=False): diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 26223b5f..3d74e03a 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -155,13 +155,13 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): """ Change what is displayed as a filename. - - "mode" may be: "filename", "permissions", "title", the mode "normal" + - "mode" may be: "filename", "permissions", "papertitle", the mode "normal" is mapped to "filename". - "directory" specifies the directory. None means the current directory - "depth" specifies the recursion depth """ - assert mode in ("normal", "filename", "permissions", "title") + assert mode in ("normal", "filename", "permissions", "papertitle") if mode == "normal": mode = "filename" diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index c96a2d73..137c30a4 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -261,7 +261,7 @@ class BrowserColumn(Pager): # Deal with the line mode use_linemode = drawn._linemode - if use_linemode == "title": + if use_linemode == "papertitle": paperinfo = self.fm.papermanager.get_paper_info(drawn.path) if paperinfo.title: if paperinfo.year: -- cgit 1.4.1-2-gfad0