summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/actions.py6
-rw-r--r--ranger/defaults/keys.py6
2 files changed, 7 insertions, 5 deletions
diff --git a/ranger/actions.py b/ranger/actions.py
index 681751e3..08495ce8 100644
--- a/ranger/actions.py
+++ b/ranger/actions.py
@@ -18,8 +18,10 @@ class Actions(EnvironmentAware, SettingsAware):
 				self.env.cf = self.env.pwd.pointed_file
 
 	def interrupt(self):
-		"""Waits a short time.
-		If CTRL+C is pressed while waiting, the program will be exited"""
+		"""
+		Waits a short time.
+		If CTRL+C is pressed while waiting, the program will be exited.
+		"""
 		import time
 		self.env.key_clear()
 		try:
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 9129541e..5586a4a4 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -135,7 +135,7 @@ def initialize_commands(command_list):
 	bind('k', KEY_UP, jk(-1))
 
 	bind('h', KEY_LEFT, KEY_BACKSPACE, DEL, lambda fm, n: \
-			fm.move_left(n))
+			fm.move_left(n or 1))
 
 	command_list.rebuild_paths()
 
@@ -147,10 +147,10 @@ def initialize_console_commands(command_list):
 		command_list.bind(args[-1], *args[:-1])
 
 	def do(method, *args, **kw):
-		return lambda fm: getattr(fm, method)(*args, **kw)
+		return lambda widget: getattr(widget, method)(*args, **kw)
 
 	def do_fm(method, *args, **kw):
-		return lambda con: getattr(con.fm, method)(*args, **kw)
+		return lambda widget: getattr(widget.fm, method)(*args, **kw)
 
 	# movement
 	bind(KEY_UP, do('history_move', -1))
t;andrew@andrewyu.org> 2022-01-24 03:15:42 +0800 again' href='/runxiyu/www/commit/favor.css?id=183be37daa2a3d87ceb0f2a2fc34edea8abeba2f'>183be37 ^
d24870a ^
5b73313 ^


89a9cd0 ^


5b73313 ^








011f855 ^





5b73313 ^





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













































                                        
  



                              









                                
  
           




                                             






















                                             
                           

                                
               
                        
 


                   


                   








                                





                      





                                                       
body {
	background-color: black;
	color: white;
	margin: 3%;
	line-height: 1.25;
	text-align: justify;
	font-family: serif;
}
div, p, h1, h2, h3, h4, h5, h6, ul, ol {
	padding: 2px;
}
h1, h2, h3, h4, h5, h6 {
	font-family: sans-serif;
}
h1 {
	text-align: center;
}
#main {
	margin: auto;
    max-width: 50em;
}
#footer {
	line-height: 1.2;
	font-family: monospace;
	font-size: 80%;
}
a:link {
	color: cyan;
	text-decoration: none;
	font-style: italic;
}
a:visited {
	color: violet;
	text-decoration: none;
	font-style: italic;
}
a:hover {
	color: yellow;
	text-decoration: none;
	font-style: italic;
}
a:active {
	color: lime;
	text-decoration: none;
	font-style: italic;
}
/*
#nav ul {
	list-style-type: none;
	padding: 1em 0;
	text-align: center;
}
#nav ul li {
	font-family: sans-serif;
	display: inline;
	padding: 0 1.5em;
	border: none;
}
#nav ul li a {
	font-weight: bold;
}
*/
.critical {
	color: red;
	display: block;
	border: 2px solid red;
	transition: padding 1s, font-size 1s;
}
#majornote {
	color: lime;
	display: block;
	border: 2px dashed lime;
	transition: all 0.5s;
}
#myproject {
	color: orange;
	display: block;
	border: 2px dashed orange;
	transition: padding 1s, font-size 1s;
}
#campaign {
	color: red;
	display: block;
	border: 2px dashed red;
	transition: padding 1s, font-size 1s;
	animation-name: shake;
	animation-iteration-count: 1;
	animation-duration: 3s;
}
#memes {
	margin: auto;
	text-align: center;
	/* columns: 255 10em; */
}
#randlinks ul {
	columns: 2 20em;
}
.alarm {
	color: red;
}
.alarm p {
	color: red;
}
.alert {
	color: orange;
}
.good {
	color: lime;
}
.annotation {
	border: 2px dashed lime;
}
em {
	color: orange;
}
strong {
	color: red;
}
@keyframes shake {
   0%, 100% {transform: rotate(0deg);} 
   10%, 30%, 50%, 70%, 90% {transform: rotate(-3deg);} 
   20%, 40%, 60%, 80% {transform: rotate(3deg);} 
}