summary refs log tree commit diff stats
path: root/ranger/config
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2015-02-22 01:33:57 +0100
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2015-02-22 01:42:15 +0100
commit19ee5a7427059c8f570cc050acca1e1e6305bd8c (patch)
treec72062b9b5f82e2d6a09cbcb47510505fe6fc18b /ranger/config
parenta3cd6b0cf3e6b05e7058544b8503872ff7ac2881 (diff)
downloadranger-19ee5a7427059c8f570cc050acca1e1e6305bd8c.tar.gz
linemode refactoring; custom linemodes possible
Diffstat (limited to 'ranger/config')
-rw-r--r--ranger/config/commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 55f6442b..6e2ba26d 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -390,7 +390,7 @@ class setintag(setlocal):
 class default_linemode(Command):
     def execute(self):
         import re
-        from ranger.container.fsobject import POSSIBLE_LINEMODES
+        from ranger.core.linemode import REGISTERED_LINEMODES
 
         if len(self.args) < 2:
             self.fm.notify("Usage: default_linemode [path=<regexp> | tag=<tag(s)>] <linemode>", bad=True)
@@ -410,9 +410,9 @@ class default_linemode(Command):
 
         # Extract and validate the line mode from the command line
         linemode = self.rest(1)
-        if linemode not in POSSIBLE_LINEMODES:
+        if linemode not in REGISTERED_LINEMODES:
             self.fm.notify("Invalid linemode: %s; should be %s" %
-                    (linemode, "/".join(POSSIBLE_LINEMODES)), bad=True)
+                    (linemode, "/".join(REGISTERED_LINEMODES)), bad=True)
 
         # Add the prepared entry to the fm.default_linemodes
         entry = [method, argument, linemode]