summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/colorschemes/default.py2
-rw-r--r--ranger/defaults/keys.py14
-rw-r--r--ranger/gui/colorscheme.py2
-rw-r--r--ranger/gui/defaultui.py22
-rw-r--r--ranger/gui/widgets/taskview.py (renamed from ranger/gui/widgets/process_manager.py)35
5 files changed, 28 insertions, 47 deletions
diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py
index 367445cb..c92e1635 100644
--- a/ranger/colorschemes/default.py
+++ b/ranger/colorschemes/default.py
@@ -90,7 +90,7 @@ class Default(ColorScheme):
 			if context.highlight:
 				attr |= reverse
 
-		if context.in_pman:
+		if context.in_taskview:
 			if context.title:
 				fg = blue
 
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 652e7c42..7d1db7d2 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -169,7 +169,7 @@ def initialize_commands(command_list):
 	bind('h', KEY_LEFT, KEY_BACKSPACE, DEL, lambda arg: \
 			arg.fm.move_left(arg.n or 1))
 
-	bind('w', lambda arg: arg.fm.ui.open_pman())
+	bind('w', lambda arg: arg.fm.ui.open_taskview())
 
 	command_list.rebuild_paths()
 
@@ -210,8 +210,8 @@ def initialize_console_commands(command_list):
 
 	command_list.rebuild_paths()
 
-def initialize_process_manager_commands(command_list):
-	"""Initialize the commands for the process manager widget"""
+def initialize_taskview_commands(command_list):
+	"""Initialize the commands for the TaskView widget"""
 
 	system_functions(command_list)
 	bind, hint = make_abbreviations(command_list)
@@ -220,12 +220,12 @@ def initialize_process_manager_commands(command_list):
 	bind('k', KEY_UP, nwrap.move(relative=-1))
 	bind('gg', nwrap.move(absolute=0))
 	bind('G', nwrap.move(absolute=-1))
-	bind('K', wdg.process_move(0))
-	bind('J', wdg.process_move(-1))
+	bind('K', wdg.task_move(0))
+	bind('J', wdg.task_move(-1))
 
-	bind('dd', wdg.process_remove())
+	bind('dd', wdg.task_remove())
 	bind('w', ESC, ctrl('d'), ctrl('c'),
-			lambda arg: arg.fm.ui.close_pman())
+			lambda arg: arg.fm.ui.close_taskview())
 
 	command_list.rebuild_paths()
 
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
index bf8194ea..7db72d0a 100644
--- a/ranger/gui/colorscheme.py
+++ b/ranger/gui/colorscheme.py
@@ -1,6 +1,6 @@
 CONTEXT_KEYS = [ 'reset', 'error',
 		'in_display', 'in_statusbar', 'in_titlebar', 'in_console',
-		'in_notify', 'in_pman',
+		'in_notify', 'in_taskview',
 		'directory', 'file', 'hostname',
 		'executable', 'media', 'link',
 		'video', 'audio', 'image', 'media', 'document', 'container',
diff --git a/ranger/gui/defaultui.py b/ranger/gui/defaultui.py
index 3985b1cc..ccbe2578 100644
--- a/ranger/gui/defaultui.py
+++ b/ranger/gui/defaultui.py
@@ -9,7 +9,7 @@ class DefaultUI(UI):
 		from ranger.gui.widgets.titlebar import TitleBar
 		from ranger.gui.widgets.console import Console
 		from ranger.gui.widgets.statusbar import StatusBar
-		from ranger.gui.widgets.process_manager import ProcessManager
+		from ranger.gui.widgets.taskview import TaskView
 		from ranger.gui.widgets.notify import Notify
 		from ranger.gui.widgets.pager import Pager
 
@@ -23,9 +23,9 @@ class DefaultUI(UI):
 		self.main_column = self.browser.main_column
 
 		# Create the process manager
-		self.pman = ProcessManager(self.win)
-		self.pman.visible = False
-		self.add_child(self.pman)
+		self.taskview = TaskView(self.win)
+		self.taskview.visible = False
+		self.add_child(self.taskview)
 
 		# Create the (initially hidden) notify bar
 		self.notify = Notify(self.win)
@@ -53,7 +53,7 @@ class DefaultUI(UI):
 		notify_hei = min(max(1, y - 4), self.notify.requested_height)
 
 		self.browser.resize(1, 0, y - 1 - notify_hei, x)
-		self.pman.resize(1, 0, y - 1 - notify_hei, x)
+		self.taskview.resize(1, 0, y - 1 - notify_hei, x)
 		self.pager.resize(1, 0, y - 1 - notify_hei, x)
 		self.notify.resize(y - notify_hei, 0, notify_hei, x)
 		self.titlebar.resize(0, 0, 1, x)
@@ -101,15 +101,15 @@ class DefaultUI(UI):
 		self.status.visible = True
 		self.close_pager()
 
-	def open_pman(self):
+	def open_taskview(self):
 		self.browser.visible = False
-		self.pman.visible = True
-		self.pman.focused = True
+		self.taskview.visible = True
+		self.taskview.focused = True
 
-	def close_pman(self):
-		self.pman.visible = False
+	def close_taskview(self):
+		self.taskview.visible = False
 		self.browser.visible = True
-		self.pman.focused = False
+		self.taskview.focused = False
 
 	def scroll(self, relative):
 		if self.browser and self.browser.main_column:
diff --git a/ranger/gui/widgets/process_manager.py b/ranger/gui/widgets/taskview.py
index 08f390b5..a7f90dff 100644
--- a/ranger/gui/widgets/process_manager.py
+++ b/ranger/gui/widgets/taskview.py
@@ -1,5 +1,5 @@
 """
-The process manager allows you to modify what the loader is doing.
+The TaskView allows you to modify what the loader is doing.
 """
 
 import curses
@@ -9,36 +9,17 @@ from ranger.ext.accumulator import Accumulator
 from ranger.container import CommandList
 from collections import deque
 
-class DummyLoadObject(object):
-	def __init__(self, txt):
-		self.get_description = lambda: txt
-		self.load_generator = range(100)
-
-
-class DummyLoader(object):
-	def __init__(self):
-		self.queue = deque()
-		self.queue.append(DummyLoadObject("blub"))
-		self.queue.append(DummyLoadObject("foo"))
-		self.queue.append(DummyLoadObject("asfkljflk"))
-		self.queue.append(DummyLoadObject("g$%GKSERJgsldflj"))
-
-
-class ProcessManager(Widget, Accumulator):
+class TaskView(Widget, Accumulator):
 	def __init__(self, win):
 		Widget.__init__(self, win)
 		Accumulator.__init__(self)
 		self.scroll_begin = 0
 		self.commandlist = CommandList()
-		self.settings.keys.initialize_process_manager_commands( \
-				self.commandlist)
+		self.settings.keys.initialize_taskview_commands(self.commandlist)
 
-		# ---- dummy loader for testing purposes
-		self.loader = DummyLoader()
-	
 	def draw(self):
 		base_clr = deque()
-		base_clr.append('in_pman')
+		base_clr.append('in_taskview')
 		lst = self.get_list()
 
 		if not self.pointer_is_synced():
@@ -47,7 +28,7 @@ class ProcessManager(Widget, Accumulator):
 		if self.hei <= 0:
 			return
 
-		self.addstr(0, 0, "Process Manager")
+		self.addstr(0, 0, "Task View")
 		self.color_at(0, 0, self.wid, base_clr, 'title')
 
 		if lst:
@@ -70,18 +51,18 @@ class ProcessManager(Widget, Accumulator):
 
 		else:
 			if self.hei > 1:
-				self.addstr(1, 0, "No processes running")
+				self.addstr(1, 0, "No task in the queue.")
 				self.color_at(1, 0, self.wid, base_clr, 'error')
 
 		self.color_reset()
 
-	def process_remove(self, i=None):
+	def task_remove(self, i=None):
 		if i is None:
 			i = self.pointer
 
 		self.fm.loader.remove(index=i)
 	
-	def process_move(self, absolute, i=None):
+	def task_move(self, absolute, i=None):
 		if i is None:
 			i = self.pointer
 
2016-01-05 00:06:50 +0000 committer James Booth <boothj5@gmail.com> 2016-01-05 00:06:50 +0000 Added roster struct, create and destroy roster on connect/disconnect' href='/danisanti/profani-tty/commit/src/roster_list.c?id=055a5f71ce38c87ea1c97d475fd870ee25148ea9'>055a5f71 ^
107fdd35 ^


b0176d05 ^
107fdd35 ^







055a5f71 ^
107fdd35 ^





dd11334b ^
107fdd35 ^
055a5f71 ^

b0176d05 ^
055a5f71 ^
b0176d05 ^


107fdd35 ^

dd11334b ^

c3d2a7e9 ^
055a5f71 ^

c3d2a7e9 ^


6f3750c6 ^

c3d2a7e9 ^


















107fdd35 ^
dd11334b ^
107fdd35 ^
055a5f71 ^

b0176d05 ^
107fdd35 ^









055a5f71 ^
107fdd35 ^









055a5f71 ^
107fdd35 ^
055a5f71 ^



107fdd35 ^

3a403046 ^
dd11334b ^
107fdd35 ^
055a5f71 ^

06ce95f6 ^




6f3750c6 ^
3a403046 ^


06ce95f6 ^

107fdd35 ^


dd11334b ^
107fdd35 ^
055a5f71 ^




107fdd35 ^


6f3750c6 ^
107fdd35 ^
6f3750c6 ^
107fdd35 ^


055a5f71 ^
107fdd35 ^


ada6f5a8 ^
c4a1d69a ^




055a5f71 ^

c4a1d69a ^

055a5f71 ^

c4a1d69a ^
055a5f71 ^
c4a1d69a ^



107fdd35 ^


055a5f71 ^
107fdd35 ^


dd11334b ^

107fdd35 ^
055a5f71 ^

b0176d05 ^
db973457 ^
107fdd35 ^
db973457 ^

107fdd35 ^
db973457 ^

6f3750c6 ^
db973457 ^

107fdd35 ^
db973457 ^
db973457 ^
107fdd35 ^
c4a1d69a ^







055a5f71 ^


c4a1d69a ^


055a5f71 ^

c4a1d69a ^


107fdd35 ^
c4a1d69a ^






055a5f71 ^

c4a1d69a ^

055a5f71 ^

c4a1d69a ^
055a5f71 ^
c4a1d69a ^







107fdd35 ^


dd11334b ^

107fdd35 ^
055a5f71 ^

b0176d05 ^
6f3750c6 ^
db973457 ^

107fdd35 ^
055a5f71 ^
107fdd35 ^
db973457 ^
c4a1d69a ^


055a5f71 ^


c4a1d69a ^
055a5f71 ^

c4a1d69a ^


107fdd35 ^

055a5f71 ^

db973457 ^


107fdd35 ^

dd11334b ^

107fdd35 ^
055a5f71 ^

b819ea37 ^
055a5f71 ^
b819ea37 ^


107fdd35 ^

dd11334b ^

15d0f679 ^
055a5f71 ^

15d0f679 ^




055a5f71 ^
15d0f679 ^


8e8852fa ^
15d0f679 ^


a1d14c45 ^
15d0f679 ^


dd11334b ^
e816b124 ^
8e8852fa ^
055a5f71 ^

8e8852fa ^




2260e3bd ^




8e8852fa ^

055a5f71 ^
107fdd35 ^
2260e3bd ^
107fdd35 ^

a1d14c45 ^
107fdd35 ^


dd11334b ^
ed228ebb ^
0f2035e4 ^
055a5f71 ^

0f2035e4 ^




055a5f71 ^
0f2035e4 ^
e113fd2b ^
8e8852fa ^
0f2035e4 ^

a1d14c45 ^
0f2035e4 ^


107fdd35 ^


055a5f71 ^

107fdd35 ^



055a5f71 ^
107fdd35 ^









dd11334b ^

107fdd35 ^
055a5f71 ^


107fdd35 ^

dd11334b ^

107fdd35 ^
055a5f71 ^


107fdd35 ^

dd11334b ^
e816b124 ^
8e8852fa ^
055a5f71 ^

8e8852fa ^




2260e3bd ^




4e429fe7 ^

055a5f71 ^
107fdd35 ^

20922734 ^

2260e3bd ^
107fdd35 ^
20922734 ^







107fdd35 ^


a1d14c45 ^
107fdd35 ^


dd11334b ^
107fdd35 ^

055a5f71 ^


107fdd35 ^

dd11334b ^

107fdd35 ^
055a5f71 ^


107fdd35 ^

dd11334b ^

107fdd35 ^
055a5f71 ^


107fdd35 ^

dd11334b ^

107fdd35 ^





















dd11334b ^
107fdd35 ^
055a5f71 ^

107fdd35 ^
6f3750c6 ^
055a5f71 ^

107fdd35 ^

6f3750c6 ^
055a5f71 ^

107fdd35 ^




dd11334b ^
107fdd35 ^
055a5f71 ^

6f3750c6 ^
055a5f71 ^

107fdd35 ^
055a5f71 ^

107fdd35 ^


dd11334b ^
8e8852fa ^
107fdd35 ^



ca3f7412 ^

107fdd35 ^
ca3f7412 ^
107fdd35 ^
ca3f7412 ^

107fdd35 ^
ca3f7412 ^
107fdd35 ^

ca3f7412 ^
107fdd35 ^


8e8852fa ^







































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668