summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-05 13:43:41 +0200
committerhut <hut@lavabit.com>2011-10-05 13:44:09 +0200
commitc0d63e78e20428d27715e7afcb56e6711cfd9556 (patch)
tree2fd85930a1478a0a477482f57b6fc0671b767ef6
parent3da2e57f2f10b95d136da88e2a42bfd90d40b0f4 (diff)
downloadranger-c0d63e78e20428d27715e7afcb56e6711cfd9556.tar.gz
Makefile: added "make todo" and added some notes in code
-rw-r--r--Makefile5
-rw-r--r--ranger/api/commands.py1
-rw-r--r--ranger/ext/command_parser.py1
3 files changed, 6 insertions, 1 deletions
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):