From c0d63e78e20428d27715e7afcb56e6711cfd9556 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 5 Oct 2011 13:43:41 +0200 Subject: Makefile: added "make todo" and added some notes in code --- Makefile | 5 ++++- ranger/api/commands.py | 1 + ranger/ext/command_parser.py | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6c5ed88c..30a92220 100644 --- a/Makefile +++ b/Makefile @@ -75,4 +75,7 @@ cleandoc: snapshot: git archive --prefix='$(NAME)-$(VERSION)/' --format=tar HEAD | gzip > $(SNAPSHOT_NAME) -.PHONY: default options compile clean doc cleandoc snapshot install man +todo: + @grep --color -Ion '\(TODO\|XXX\).*' -r ranger + +.PHONY: default options compile clean doc cleandoc snapshot install man todo diff --git a/ranger/api/commands.py b/ranger/api/commands.py index 093e93da..ca8b5fad 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -141,6 +141,7 @@ class Command(FileManagerAware): def tabinsert(self, word): return ''.join([self._tabinsert_left, word, self._tabinsert_right]) + # XXX: Lazy properties? Not so smart? self.line can change after all! @lazy_property def _tabinsert_left(self): try: diff --git a/ranger/ext/command_parser.py b/ranger/ext/command_parser.py index 3b65067c..8bb72c76 100644 --- a/ranger/ext/command_parser.py +++ b/ranger/ext/command_parser.py @@ -16,6 +16,7 @@ import re SETTINGS_RE = re.compile(r'^([^\s]+?)=(.*)$') +# TODO: complete the merge of this into api/commands class LazyParser(object): """Parse commands and extract information""" def __init__(self, line): -- cgit 1.4.1-2-gfad0