about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'victorbnl-viewnior-config' HEAD mastertoonn2022-06-151-0/+2
|\
| * Add viewnior in rifle configVictor B2022-03-051-0/+2
| |
* | Merge branch 'jmcantrell-master'toonn2022-06-141-1/+1
|\ \
| * | browsercolumn: Only add the separator when neededJeremy Cantrell2022-06-131-2/+2
| | | | | | | | | | | | | | | | | | When predisplay_right is empty (which is the case when vcs_aware is off), the separator should be omitted. This fixes the error introduced by my last commit.
* | | Revert "Merge branch 'jmcantrell-master'"toonn2022-06-141-1/+1
|/ / | | | | | | | | This reverts commit ff909fab98f5941d9e59c983fed787256c35e12d, reversing changes made to fb449326663baa91f5ce91b996778cfd5501030e.
* | Merge branch 'pylint'toonn2022-06-131-1/+3
|\ \
| * | GHActions: Refrain from installing PyLint for teststoonn2022-06-131-1/+3
|/ / | | | | | | | | | | Not all versions of Python we test with support installing the PyLint version we need and the tests don't require PyLint anyway, so no need to install any version of PyLint at all.
* | Merge branch 'jmcantrell-master'toonn2022-06-121-1/+1
|\ \
| * | browsercolumn: Fix separator depthJeremy Cantrell2022-06-111-1/+1
|/ / | | | | | | | | It looks like the separator is being unexpectedly flattened by the list concatenation.
* | Merge branch 'pylint'toonn2022-06-102-1/+3
|\ \
| * | GHActions: Rerun PyLint when requirements.txt changestoonn2022-06-101-0/+2
| | |
| * | pylint: Pin to 2.13.9toonn2022-06-101-1/+1
|/ / | | | | | | | | | | As of 2.14.0 PyLint dropped the python3 port checker. This means many of the features we want to disable, because we need syntax compatible with Python 2 are gone and we can no longer disable the checks.
* | Merge branch 'line-number-width'toonn2022-06-101-10/+31
|\ \
| * | browsercolumn: Use number of items for widthtoonn2022-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The width of the widest line number, which is often the last one visible in the list is not always the same thing as the width of the item that would be at the very bottom of the screen. When a directory contains fewer items than lines are available for display, the former can have fewer digits.
| * | browsercolumn: Take into account one_indexed settingtoonn2022-05-271-2/+5
| | | | | | | | | | | | | | | Line number width calculation was ignoring the one_indexed setting. This meant recalculating the width one line too late.
| * | browsercolumn: Lowercase line_numbers in keytoonn2022-05-271-1/+1
| | | | | | | | | | | | | | | | | | The `line_numbers` setting is a string but case shouldn't matter, especially for caching, this is handled in branches already but the caching key was overlooked.
| * | browsercolumn: Refactor linum_text_lentoonn2022-05-271-4/+10
| | | | | | | | | | | | | | | | | | The calculation isn't difficult but the lines were long and there's several branches involved. Giving `len(str())` a name and introducing names for intermediate results should make it easier to comprehend
| * | browsercolumn: Fix relative line number widthtoonn2022-05-261-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | For relative line numbers the width that actually matters is the width for all the displayed line numbers. The width of the largest index of the displayed files doesn't matter. Only the width of the relative indices and the width of the currently highlighted item's index, unless `relative_current_zero` is enabled.
| * | browsercolumn: Include linum_text_len in keytoonn2022-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The width of an item needs to be recalculated if the width of the line numbers changes. This happens every time we get to another order of magnitude (an additional digit). This is based on [review comments](https://github.com/ranger/ranger/pull/2346#issuecomment-1062257526) from markus-bauer. The solution opted for here is basically their second bullet point. I tried the third bullet point first, replacing `line_numbers` by `linum_text_len` in the key but this requires recalculating `linum_text_len` to be zero when line numbers are disabled, which feels like a somewhat clunky overloading while we have a perfectly usable boolean flag available. Closes #2346 Co-authored-by: markus-bauer <mail.markus.bauer@gmail.com>
| * | browsercolumn: Remove off-by-one trailing spacetoonn2022-05-261-4/+5
| | | | | | | | | | | | | | | | | | The file size was always followed by a space in case it needed to be separated from other trailing information but this should only happen if anything actually follows it.
| * | browsercolumn: Accept line_numbers case insensitivelytoonn2022-05-261-3/+6
| | |
| * | browsercolumn: Fix off-by-one in line number widthtoonn2022-05-261-1/+1
|/ / | | | | | | | | | | | | The status bar wasn't taken into account when calculating the width of the visible line numbers. This meant the width would change right before a number with an extra digit appeared or one later than when it disappeared.
* | Merge branch 'pylint'toonn2022-05-264-6/+17
|\ \
| * | test_py2_compat: Ignore error message positionstoonn2022-05-261-0/+6
| | |
| * | runner: Initialize variables outside of try-excepttoonn2022-05-261-2/+4
| | |
| * | accumulator: Make get_list an abstract methodtoonn2022-05-261-2/+4
| | | | | | | | | | | | | | | | | | Implementations need the `self` parameter and PyLint complains when the number of arguments changes. Since it's never used without reimplementation, `@abstractmethod` is appropriate.
| * | colorscheme: Make use an abstract methodtoonn2022-05-261-2/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | The `use` method has always been decorated as being a `@staticmethod`. Many colorschemes use fields to store certain properties, these then need to be accessed using `self`. This isn't possible with a static method so they override it with a regular method. This is fine as far as Python is concerned but PyLint doesn't like the `self` parameters adding an argument to the method. All colorschemes should actually implement the `use` method anyway so making it an `@abstractmethod` seems appropriate and allows us to include the `self` argument.
* | Merge remote-tracking branch 'ferdinandyb/ipynb_preview'toonn2022-04-012-1/+10
|\ \
| * | better textual preview for jupyter notebooksBence Ferdinandy2021-12-292-1/+10
| | |
* | | Merge branch 'SuperNici-drawioPreview'toonn2022-03-184-13/+27
|\ \ \
| * | | doc: Add draw.io dependency to man pagetoonn2022-03-182-0/+8
| | | |
| * | | README: Add draw.io dependencytoonn2022-03-181-0/+2
| | | |
| * | | scope: Fix draw.io width and enable by defaulttoonn2022-03-181-4/+4
| | | |
| * | | scope: Move draw.io preview to handle_imagetoonn2022-03-181-18/+17
| | | |
| * | | Makefile: Drop README.md from man page requisitestoonn2022-03-182-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I believe at some point I added the `README.md` to the prerequisites for the man pages so we wouldn't forget to update them whenever the README was touched. This hasn't worked very well and it often makes particularly the rifle man page regenerate when not needed.
| * | | doc: Split lines in man pagetoonn2022-03-181-2/+4
| | | |
| * | | doc: Add openscad dependency to man pagetoonn2022-03-181-0/+4
| | | |
| * | | doc: Fix manpage for name filter_stack filtertoonn2022-03-182-5/+5
| | | | | | | | | | | | | | | | Fixes #2548
| * | | fix indentNici2022-02-131-1/+1
| | | |
| * | | add drawio Image-PreviewNici2022-02-131-1/+6
| | | |
* | | | Merge branch 'openscad-doc'toonn2022-03-183-7/+17
|\ \ \ \ | |_|_|/ |/| | |
| * | | Makefile: Drop README.md from man page requisitestoonn2022-03-182-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I believe at some point I added the `README.md` to the prerequisites for the man pages so we wouldn't forget to update them whenever the README was touched. This hasn't worked very well and it often makes particularly the rifle man page regenerate when not needed.
| * | | doc: Split lines in man pagetoonn2022-03-181-2/+4
| | | |
| * | | doc: Add openscad dependency to man pagetoonn2022-03-181-0/+4
|/ / /
* | | Merge branch 'doc-filterstack'toonn2022-02-272-5/+5
|\ \ \ | |/ / |/| |
| * | doc: Fix manpage for name filter_stack filtertoonn2022-02-272-5/+5
|/ / | | | | | | Fixes #2548
* | Merge branch 'pylint'toonn2022-02-0519-14/+66
|\ \
| * | Actions: Pytests no longer compatible with Python <3.6toonn2022-02-052-3/+3
| | | | | | | | | | | | | | | We need to test f-strings now and it's a bother making that compatible with Python 2.
| * | vcs: Switch from deprecated isSet to is_settoonn2022-02-051-3/+3
| | |
| * | test_py2_compat: Test f-string detectiontoonn2022-02-051-0/+25
| | |
='/danisanti/profani-tty/blame/src/log.c?id=0fe70ce7d381ceb2b38cbb5ac9a99cbad95dec91'>^
6bad38c2 ^
2bbac1c8 ^
6d329343 ^
291c6bc3 ^
a4a23fdf ^
d6e92f62 ^
a4a23fdf ^


291c6bc3 ^
2bbac1c8 ^


c90c83f7 ^









0030ae58 ^
c90c83f7 ^
0030ae58 ^

c90c83f7 ^


291c6bc3 ^


c3418a29 ^
4b73f3d7 ^
291c6bc3 ^

4b73f3d7 ^
291c6bc3 ^




4b73f3d7 ^
291c6bc3 ^


28ec3334 ^
291c6bc3 ^

bf1cf044 ^





22b92c75 ^
bf1cf044 ^



8c5866ff ^

8c5866ff ^
22b92c75 ^
8c5866ff ^



8944a3b5 ^




































































bf1cf044 ^
25b274b8 ^
bf1cf044 ^


25b274b8 ^

bf1cf044 ^


25b274b8 ^

bf1cf044 ^












bb3f1b09 ^
2fc588be ^






bf1cf044 ^
2fc588be ^




bf1cf044 ^
2fc588be ^



bf1cf044 ^

bf1cf044 ^




8c5866ff ^






















bb3f1b09 ^
2fc588be ^





8c5866ff ^
2fc588be ^




8c5866ff ^






bf1cf044 ^
186cac34 ^
bf1cf044 ^
186cac34 ^
bf1cf044 ^













bf1cf044 ^
186cac34 ^

bf1cf044 ^


186cac34 ^

bf1cf044 ^
d6e92f62 ^
bf1cf044 ^







186cac34 ^
bf1cf044 ^

186cac34 ^
bf1cf044 ^

186cac34 ^


bf1cf044 ^





22b92c75 ^

bf1cf044 ^



8944a3b5 ^
bf1cf044 ^












8c5866ff ^














bf1cf044 ^

























25b274b8 ^
bf1cf044 ^
bf1cf044 ^














0b4c4649 ^
bf1cf044 ^
28ec3334 ^
bf1cf044 ^
















25b274b8 ^
bf1cf044 ^





0b4c4649 ^
8c5866ff ^




























ce3b99f5 ^
8c5866ff ^






0b4c4649 ^






28ec3334 ^
0b4c4649 ^




c58aca56 ^
c3418a29 ^
c58aca56 ^


c3418a29 ^




c58aca56 ^
28ec3334 ^
c58aca56 ^



6dbea7e1 ^

















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