summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-05 18:16:06 +0200
committerhut <hut@lavabit.com>2011-10-05 18:16:06 +0200
commit506fbaa36f58c93230f1dee7631d336ccc6ca223 (patch)
tree1d5e1af6024c83f3080708cee7a0af74c91a56bb /ranger
parent240394a494b0bbb854687a34941bf90a5ccd5b4d (diff)
downloadranger-506fbaa36f58c93230f1dee7631d336ccc6ca223.tar.gz
removed doc/TODO; use "make todo"
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/actions.py1
-rw-r--r--ranger/fsobject/directory.py3
-rw-r--r--ranger/gui/ui.py2
-rw-r--r--ranger/gui/widgets/pager.py1
-rw-r--r--ranger/gui/widgets/titlebar.py1
5 files changed, 8 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 42f2699d..87961cc5 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -851,6 +851,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 		self.loader.add(obj)
 
 	def delete(self):
+		# XXX: warn when deleting mount points/unseen marked files?
 		self.notify("Deleting!")
 		selected = self.env.get_selection()
 		self.env.copy -= set(selected)
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 6b0666e0..f5803032 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -146,6 +146,8 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware):
 			del self.marked_items[:]
 			self._clear_marked_items()
 
+	# XXX: Is it really necessary to have the marked items in a list?
+	# Can't we just recalculate them with [f for f in self.files if f.marked]?
 	def _gc_marked_items(self):
 		for item in list(self.marked_items):
 			if item.path not in self.filenames:
@@ -166,6 +168,7 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware):
 		else:
 			return []
 
+	# XXX: Check for possible race conditions
 	def load_bit_by_bit(self):
 		"""
 		Returns a generator which load a part of the directory
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index c5dfa5ad..9d36628f 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -44,6 +44,8 @@ def _setup_mouse(signal):
 	else:
 		curses.mousemask(0)
 
+# TODO: progress bar
+# TODO: branch view
 class UI(DisplayableContainer):
 	is_set_up = False
 	load_mode = False
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py
index a95d3254..23b18a99 100644
--- a/ranger/gui/widgets/pager.py
+++ b/ranger/gui/widgets/pager.py
@@ -22,6 +22,7 @@ from . import Widget
 from ranger.gui import ansi
 from ranger.ext.direction import Direction
 
+# TODO: Scrolling in embedded pager
 class Pager(Widget):
 	source = None
 	source_is_stream = False
diff --git a/ranger/gui/widgets/titlebar.py b/ranger/gui/widgets/titlebar.py
index c1994b5b..9f97bbbe 100644
--- a/ranger/gui/widgets/titlebar.py
+++ b/ranger/gui/widgets/titlebar.py
@@ -131,6 +131,7 @@ class TitleBar(Widget):
 			bar.add(self.env.cf.basename, 'file')
 
 	def _get_right_part(self, bar):
+		# TODO: fix that pressed keys are cut off when chaining CTRL keys
 		kb = str(self.env.keybuffer)
 		self.old_keybuffer = kb
 		bar.addright(kb, 'keybuffer', fixed=True)
='#n299'>299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380