summary refs log tree commit diff stats
path: root/ranger/fsobject/directory.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-01 22:12:57 +0200
committerhut <hut@lavabit.com>2010-10-01 22:12:57 +0200
commit9e7c69a8879e63a0a661127d9d6aa21e0ef594a9 (patch)
treecec9ca6143cb99148bfdcf9cbc941ea656d47afb /ranger/fsobject/directory.py
parent2d98e85fddaefbc6074336d7d90925f7f7f936b0 (diff)
downloadranger-9e7c69a8879e63a0a661127d9d6aa21e0ef594a9.tar.gz
fsobject.directory: added numerical sort
Diffstat (limited to 'ranger/fsobject/directory.py')
-rw-r--r--ranger/fsobject/directory.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py
index 9bdb4caa..ab12734f 100644
--- a/ranger/fsobject/directory.py
+++ b/ranger/fsobject/directory.py
@@ -15,6 +15,7 @@
 
 import os.path
 import stat
+import re
 from stat import S_ISLNK, S_ISDIR
 from os import stat as os_stat, lstat as os_lstat
 from os.path import join, isdir, basename
@@ -39,6 +40,18 @@ def sort_by_directory(path):
 	"""returns 0 if path is a directory, otherwise 1 (for sorting)"""
 	return 1 - path.is_directory
 
+def sort_by_number(path):
+	try:
+		return float(re.search(r'\d+', path.basename).group(0))
+	except:
+		return path.basename
+
+def sort_by_number_icase(path):
+	try:
+		return float(re.search(r'\d+', path.basename).group(0))
+	except:
+		return path.basename_lower
+
 def accept_file(fname, hidden_filter, name_filter):
 	if hidden_filter:
 		try:
@@ -76,6 +89,7 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 
 	sort_dict = {
 		'basename': sort_by_basename,
+		'numeric': sort_by_number,
 		'size': lambda path: -path.size,
 		'mtime': lambda path: -(path.stat and path.stat.st_mtime or 1),
 		'type': lambda path: path.mimetype,
@@ -295,6 +309,10 @@ class Directory(FileSystemObject, Accumulator, SettingsAware):
 				sort_func == sort_by_basename:
 			sort_func = sort_by_basename_icase
 
+		if self.settings.sort_case_insensitive and \
+				sort_func == sort_by_number:
+			sort_func = sort_by_number_icase
+
 		self.files.sort(key = sort_func)
 
 		if self.settings.sort_reverse:
f='#n206'>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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module ranger.defaults.keys</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.defaults.html"><font color="#ffffff">defaults</font></a>.keys</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/defaults/keys.py">/home/hut/ranger/ranger/defaults/keys.py</a></font></td></tr></table>
    <p><tt>This&nbsp;is&nbsp;the&nbsp;default&nbsp;key&nbsp;configuration&nbsp;file&nbsp;of&nbsp;ranger.<br>
Syntax&nbsp;for&nbsp;binding&nbsp;keys:&nbsp;map(*keys,&nbsp;fnc)<br>
&nbsp;<br>
keys&nbsp;are&nbsp;one&nbsp;or&nbsp;more&nbsp;key-combinations&nbsp;which&nbsp;are&nbsp;either:<br>
*&nbsp;a&nbsp;string<br>
*&nbsp;an&nbsp;integer&nbsp;which&nbsp;represents&nbsp;an&nbsp;ascii&nbsp;code<br>
*&nbsp;a&nbsp;tuple&nbsp;of&nbsp;integers<br>
&nbsp;<br>
fnc&nbsp;is&nbsp;a&nbsp;function&nbsp;which&nbsp;is&nbsp;called&nbsp;with&nbsp;the&nbsp;CommandArgument&nbsp;object.<br>
&nbsp;<br>
The&nbsp;CommandArgument&nbsp;object&nbsp;has&nbsp;these&nbsp;attributes:<br>
arg.fm:&nbsp;the&nbsp;file&nbsp;manager&nbsp;instance<br>
arg.wdg:&nbsp;the&nbsp;widget&nbsp;or&nbsp;ui&nbsp;instance<br>
arg.n:&nbsp;the&nbsp;number&nbsp;typed&nbsp;before&nbsp;the&nbsp;key&nbsp;combination&nbsp;(if&nbsp;allowed)<br>
arg.keys:&nbsp;the&nbsp;string&nbsp;representation&nbsp;of&nbsp;the&nbsp;used&nbsp;key&nbsp;combination<br>
arg.keybuffer:&nbsp;the&nbsp;keybuffer&nbsp;instance<br>
&nbsp;<br>
Check&nbsp;ranger.keyapi&nbsp;for&nbsp;more&nbsp;information</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ranger.gui.widgets.console_mode.html">ranger.gui.widgets.console_mode</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-baudrate"><strong>baudrate</strong></a>(...)</dt></dl>
 <dl><dt><a name="-beep"><strong>beep</strong></a>(...)</dt></dl>
 <dl><dt><a name="-can_change_color"><strong>can_change_color</strong></a>(...)</dt></dl>
 <dl><dt><a name="-cbreak"><strong>cbreak</strong></a>(...)</dt></dl>
 <dl><dt><a name="-color_content"><strong>color_content</strong></a>(...)</dt></dl>
 <dl><dt><a name="-color_pair"><strong>color_pair</strong></a>(...)</dt></dl>
 <dl><dt><a name="-curs_set"><strong>curs_set</strong></a>(...)</dt></dl>
 <dl><dt><a name="-def_prog_mode"><strong>def_prog_mode</strong></a>(...)</dt></dl>
 <dl><dt><a name="-def_shell_mode"><strong>def_shell_mode</strong></a>(...)</dt></dl>
 <dl><dt><a name="-delay_output"><strong>delay_output</strong></a>(...)</dt></dl>
 <dl><dt><a name="-doupdate"><strong>doupdate</strong></a>(...)</dt></dl>
 <dl><dt><a name="-echo"><strong>echo</strong></a>(...)</dt></dl>
 <dl><dt><a name="-endwin"><strong>endwin</strong></a>(...)</dt></dl>
 <dl><dt><a name="-erasechar"><strong>erasechar</strong></a>(...)</dt></dl>
 <dl><dt><a name="-filter"><strong>filter</strong></a>(...)</dt></dl>
 <dl><dt><a name="-flash"><strong>flash</strong></a>(...)</dt></dl>
 <dl><dt><a name="-flushinp"><strong>flushinp</strong></a>(...)</dt></dl>
 <dl><dt><a name="-getmouse"><strong>getmouse</strong></a>(...)</dt></dl>
 <dl><dt><a name="-getsyx"><strong>getsyx</strong></a>(...)</dt></dl>
 <dl><dt><a name="-getwin"><strong>getwin</strong></a>(...)</dt></dl>
 <dl><dt><a name="-halfdelay"><strong>halfdelay</strong></a>(...)</dt></dl>
 <dl><dt><a name="-has_colors"><strong>has_colors</strong></a>(...)</dt></dl>
 <dl><dt><a name="-has_ic"><strong>has_ic</strong></a>(...)</dt></dl>
 <dl><dt><a name="-has_il"><strong>has_il</strong></a>(...)</dt></dl>
 <dl><dt><a name="-has_key"><strong>has_key</strong></a>(...)</dt></dl>
 <dl><dt><a name="-init_color"><strong>init_color</strong></a>(...)</dt></dl>
 <dl><dt><a name="-init_pair"><strong>init_pair</strong></a>(...)</dt></dl>
 <dl><dt><a name="-initialize_commands"><strong>initialize_commands</strong></a>(map)</dt><dd><tt>Initialize&nbsp;the&nbsp;commands&nbsp;for&nbsp;the&nbsp;main&nbsp;user&nbsp;interface</tt></dd></dl>
 <dl><dt><a name="-initialize_console_commands"><strong>initialize_console_commands</strong></a>(map)</dt><dd><tt>Initialize&nbsp;the&nbsp;commands&nbsp;for&nbsp;the&nbsp;console&nbsp;widget&nbsp;only</tt></dd></dl>
 <dl><dt><a name="-initialize_embedded_pager_commands"><strong>initialize_embedded_pager_commands</strong></a>(map)</dt></dl>
 <dl><dt><a name="-initialize_pager_commands"><strong>initialize_pager_commands</strong></a>(map)</dt></dl>
 <dl><dt><a name="-initialize_taskview_commands"><strong>initialize_taskview_commands</strong></a>(map)</dt><dd><tt>Initialize&nbsp;the&nbsp;commands&nbsp;for&nbsp;the&nbsp;TaskView&nbsp;widget</tt></dd></dl>
 <dl><dt><a name="-intrflush"><strong>intrflush</strong></a>(...)</dt></dl>
 <dl><dt><a name="-is_term_resized"><strong>is_term_resized</strong></a>(...)</dt></dl>
 <dl><dt><a name="-isendwin"><strong>isendwin</strong></a>(...)</dt></dl>
 <dl><dt><a name="-keyname"><strong>keyname</strong></a>(...)</dt></dl>
 <dl><dt><a name="-killchar"><strong>killchar</strong></a>(...)</dt></dl>
 <dl><dt><a name="-longname"><strong>longname</strong></a>(...)</dt></dl>
 <dl><dt><a name="-meta"><strong>meta</strong></a>(...)</dt></dl>
 <dl><dt><a name="-mouseinterval"><strong>mouseinterval</strong></a>(...)</dt></dl>
 <dl><dt><a name="-mousemask"><strong>mousemask</strong></a>(...)</dt></dl>
 <dl><dt><a name="-napms"><strong>napms</strong></a>(...)</dt></dl>
 <dl><dt><a name="-newpad"><strong>newpad</strong></a>(...)</dt></dl>
 <dl><dt><a name="-newwin"><strong>newwin</strong></a>(...)</dt></dl>
 <dl><dt><a name="-nl"><strong>nl</strong></a>(...)</dt></dl>
 <dl><dt><a name="-nocbreak"><strong>nocbreak</strong></a>(...)</dt></dl>
 <dl><dt><a name="-noecho"><strong>noecho</strong></a>(...)</dt></dl>
 <dl><dt><a name="-nonl"><strong>nonl</strong></a>(...)</dt></dl>
 <dl><dt><a name="-noqiflush"><strong>noqiflush</strong></a>(...)</dt></dl>
 <dl><dt><a name="-noraw"><strong>noraw</strong></a>(...)</dt></dl>
 <dl><dt><a name="-pair_content"><strong>pair_content</strong></a>(...)</dt></dl>
 <dl><dt><a name="-pair_number"><strong>pair_number</strong></a>(...)</dt></dl>
 <dl><dt><a name="-putp"><strong>putp</strong></a>(...)</dt></dl>
 <dl><dt><a name="-qiflush"><strong>qiflush</strong></a>(...)</dt></dl>
 <dl><dt><a name="-raw"><strong>raw</strong></a>(...)</dt></dl>
 <dl><dt><a name="-reset_prog_mode"><strong>reset_prog_mode</strong></a>(...)</dt></dl>
 <dl><dt><a name="-reset_shell_mode"><strong>reset_shell_mode</strong></a>(...)</dt></dl>
 <dl><dt><a name="-resetty"><strong>resetty</strong></a>(...)</dt></dl>
 <dl><dt><a name="-resize_term"><strong>resize_term</strong></a>(...)</dt></dl>
 <dl><dt><a name="-resizeterm"><strong>resizeterm</strong></a>(...)</dt></dl>
 <dl><dt><a name="-savetty"><strong>savetty</strong></a>(...)</dt></dl>
 <dl><dt><a name="-setsyx"><strong>setsyx</strong></a>(...)</dt></dl>
 <dl><dt><a name="-setupterm"><strong>setupterm</strong></a>(...)</dt></dl>
 <dl><dt><a name="-termattrs"><strong>termattrs</strong></a>(...)</dt></dl>
 <dl><dt><a name="-termname"><strong>termname</strong></a>(...)</dt></dl>
 <dl><dt><a name="-tigetflag"><strong>tigetflag</strong></a>(...)</dt></dl>
 <dl><dt><a name="-tigetnum"><strong>tigetnum</strong></a>(...)</dt></dl>
 <dl><dt><a name="-tigetstr"><strong>tigetstr</strong></a>(...)</dt></dl>
 <dl><dt><a name="-tparm"><strong>tparm</strong></a>(...)</dt></dl>
 <dl><dt><a name="-typeahead"><strong>typeahead</strong></a>(...)</dt></dl>
 <dl><dt><a name="-ungetch"><strong>ungetch</strong></a>(...)</dt></dl>
 <dl><dt><a name="-ungetmouse"><strong>ungetmouse</strong></a>(...)</dt></dl>
 <dl><dt><a name="-use_default_colors"><strong>use_default_colors</strong></a>(...)</dt></dl>
 <dl><dt><a name="-use_env"><strong>use_env</strong></a>(...)</dt></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>ACK</strong> = 6<br>
<strong>ALLOWED_BOOKMARK_KEYS</strong> = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`'"<br>
<strong>ALL_MOUSE_EVENTS</strong> = 134217727<br>
<strong>A_ALTCHARSET</strong> = 4194304<br>
<strong>A_ATTRIBUTES</strong> = 4294967040<br>
<strong>A_BLINK</strong> = 524288<br>
<strong>A_BOLD</strong> = 2097152<br>
<strong>A_CHARTEXT</strong> = 255<br>
<strong>A_COLOR</strong> = 65280<br>
<strong>A_DIM</strong> = 1048576<br>
<strong>A_HORIZONTAL</strong> = 33554432<br>
<strong>A_INVIS</strong> = 8388608<br>
<strong>A_LEFT</strong> = 67108864<br>
<strong>A_LOW</strong> = 134217728<br>
<strong>A_NORMAL</strong> = 0<br>
<strong>A_PROTECT</strong> = 16777216<br>
<strong>A_REVERSE</strong> = 262144<br>
<strong>A_RIGHT</strong> = 268435456<br>
<strong>A_STANDOUT</strong> = 65536<br>
<strong>A_TOP</strong> = 536870912<br>
<strong>A_UNDERLINE</strong> = 131072<br>
<strong>A_VERTICAL</strong> = 1073741824<br>
<strong>BEL</strong> = 7<br>
<strong>BS</strong> = 8<br>
<strong>BUTTON1_CLICKED</strong> = 4<br>
<strong>BUTTON1_DOUBLE_CLICKED</strong> = 8<br>
<strong>BUTTON1_PRESSED</strong> = 2<br>
<strong>BUTTON1_RELEASED</strong> = 1<br>
<strong>BUTTON1_TRIPLE_CLICKED</strong> = 16<br>
<strong>BUTTON2_CLICKED</strong> = 256<br>
<strong>BUTTON2_DOUBLE_CLICKED</strong> = 512<br>
<strong>BUTTON2_PRESSED</strong> = 128<br>
<strong>BUTTON2_RELEASED</strong> = 64<br>
<strong>BUTTON2_TRIPLE_CLICKED</strong> = 1024<br>
<strong>BUTTON3_CLICKED</strong> = 16384<br>
<strong>BUTTON3_DOUBLE_CLICKED</strong> = 32768<br>
<strong>BUTTON3_PRESSED</strong> = 8192<br>
<strong>BUTTON3_RELEASED</strong> = 4096<br>
<strong>BUTTON3_TRIPLE_CLICKED</strong> = 65536<br>
<strong>BUTTON4_CLICKED</strong> = 1048576<br>
<strong>BUTTON4_DOUBLE_CLICKED</strong> = 2097152<br>
<strong>BUTTON4_PRESSED</strong> = 524288<br>
<strong>BUTTON4_RELEASED</strong> = 262144<br>
<strong>BUTTON4_TRIPLE_CLICKED</strong> = 4194304<br>
<strong>BUTTON_ALT</strong> = 67108864<br>
<strong>BUTTON_CTRL</strong> = 16777216<br>
<strong>BUTTON_SHIFT</strong> = 33554432<br>
<strong>CAN</strong> = 24<br>
<strong>COLOR_BLACK</strong> = 0<br>
<strong>COLOR_BLUE</strong> = 4<br>
<strong>COLOR_CYAN</strong> = 6<br>
<strong>COLOR_GREEN</strong> = 2<br>
<strong>COLOR_MAGENTA</strong> = 5<br>
<strong>COLOR_RED</strong> = 1<br>
<strong>COLOR_WHITE</strong> = 7<br>
<strong>COLOR_YELLOW</strong> = 3<br>
<strong>CR</strong> = 13<br>
<strong>DC1</strong> = 17<br>
<strong>DC2</strong> = 18<br>
<strong>DC3</strong> = 19<br>
<strong>DC4</strong> = 20<br>
<strong>DEL</strong> = 127<br>
<strong>DLE</strong> = 16<br>
<strong>EM</strong> = 25<br>
<strong>ENQ</strong> = 5<br>
<strong>EOT</strong> = 4<br>
<strong>ERR</strong> = -1<br>
<strong>ESC</strong> = 27<br>
<strong>ETB</strong> = 23<br>
<strong>ETX</strong> = 3<br>
<strong>FF</strong> = 12<br>
<strong>FS</strong> = 28<br>
<strong>GS</strong> = 29<br>
<strong>HT</strong> = 9<br>
<strong>KEY_A1</strong> = 348<br>
<strong>KEY_A3</strong> = 349<br>
<strong>KEY_B2</strong> = 350<br>
<strong>KEY_BACKSPACE</strong> = 263<br>
<strong>KEY_BEG</strong> = 354<br>
<strong>KEY_BREAK</strong> = 257<br>
<strong>KEY_BTAB</strong> = 353<br>
<strong>KEY_C1</strong> = 351<br>
<strong>KEY_C3</strong> = 352<br>
<strong>KEY_CANCEL</strong> = 355<br>
<strong>KEY_CATAB</strong> = 342<br>
<strong>KEY_CLEAR</strong> = 333<br>
<strong>KEY_CLOSE</strong> = 356<br>
<strong>KEY_COMMAND</strong> = 357<br>
<strong>KEY_COPY</strong> = 358<br>
<strong>KEY_CREATE</strong> = 359<br>
<strong>KEY_CTAB</strong> = 341<br>
<strong>KEY_DC</strong> = 330<br>
<strong>KEY_DL</strong> = 328<br>
<strong>KEY_DOWN</strong> = 258<br>
<strong>KEY_EIC</strong> = 332<br>
<strong>KEY_END</strong> = 360<br>
<strong>KEY_ENTER</strong> = 343<br>
<strong>KEY_EOL</strong> = 335<br>
<strong>KEY_EOS</strong> = 334<br>
<strong>KEY_EXIT</strong> = 361<br>
<strong>KEY_F0</strong> = 264<br>
<strong>KEY_F1</strong> = 265<br>
<strong>KEY_F10</strong> = 274<br>
<strong>KEY_F11</strong> = 275<br>
<strong>KEY_F12</strong> = 276<br>
<strong>KEY_F13</strong> = 277<br>
<strong>KEY_F14</strong> = 278<br>
<strong>KEY_F15</strong> = 279<br>
<strong>KEY_F16</strong> = 280<br>
<strong>KEY_F17</strong> = 281<br>
<strong>KEY_F18</strong> = 282<br>
<strong>KEY_F19</strong> = 283<br>
<strong>KEY_F2</strong> = 266<br>
<strong>KEY_F20</strong> = 284<br>
<strong>KEY_F21</strong> = 285<br>
<strong>KEY_F22</strong> = 286<br>
<strong>KEY_F23</strong> = 287<br>
<strong>KEY_F24</strong> = 288<br>
<strong>KEY_F25</strong> = 289<br>
<strong>KEY_F26</strong> = 290<br>
<strong>KEY_F27</strong> = 291<br>
<strong>KEY_F28</strong> = 292<br>
<strong>KEY_F29</strong> = 293<br>
<strong>KEY_F3</strong> = 267<br>
<strong>KEY_F30</strong> = 294<br>
<strong>KEY_F31</strong> = 295<br>
<strong>KEY_F32</strong> = 296<br>
<strong>KEY_F33</strong> = 297<br>
<strong>KEY_F34</strong> = 298<br>
<strong>KEY_F35</strong> = 299<br>
<strong>KEY_F36</strong> = 300<br>
<strong>KEY_F37</strong> = 301<br>
<strong>KEY_F38</strong> = 302<br>
<strong>KEY_F39</strong> = 303<br>
<strong>KEY_F4</strong> = 268<br>
<strong>KEY_F40</strong> = 304<br>
<strong>KEY_F41</strong> = 305<br>
<strong>KEY_F42</strong> = 306<br>
<strong>KEY_F43</strong> = 307<br>
<strong>KEY_F44</strong> = 308<br>
<strong>KEY_F45</strong> = 309<br>
<strong>KEY_F46</strong> = 310<br>
<strong>KEY_F47</strong> = 311<br>
<strong>KEY_F48</strong> = 312<br>
<strong>KEY_F49</strong> = 313<br>
<strong>KEY_F5</strong> = 269<br>
<strong>KEY_F50</strong> = 314<br>
<strong>KEY_F51</strong> = 315<br>
<strong>KEY_F52</strong> = 316<br>
<strong>KEY_F53</strong> = 317<br>
<strong>KEY_F54</strong> = 318<br>
<strong>KEY_F55</strong> = 319<br>
<strong>KEY_F56</strong> = 320<br>
<strong>KEY_F57</strong> = 321<br>
<strong>KEY_F58</strong> = 322<br>
<strong>KEY_F59</strong> = 323<br>
<strong>KEY_F6</strong> = 270<br>
<strong>KEY_F60</strong> = 324<br>
<strong>KEY_F61</strong> = 325<br>
<strong>KEY_F62</strong> = 326<br>
<strong>KEY_F63</strong> = 327<br>
<strong>KEY_F7</strong> = 271<br>
<strong>KEY_F8</strong> = 272<br>
<strong>KEY_F9</strong> = 273<br>
<strong>KEY_FIND</strong> = 362<br>
<strong>KEY_HELP</strong> = 363<br>
<strong>KEY_HOME</strong> = 262<br>
<strong>KEY_IC</strong> = 331<br>
<strong>KEY_IL</strong> = 329<br>
<strong>KEY_LEFT</strong> = 260<br>
<strong>KEY_LL</strong> = 347<br>
<strong>KEY_MARK</strong> = 364<br>
<strong>KEY_MAX</strong> = 511<br>
<strong>KEY_MESSAGE</strong> = 365<br>
<strong>KEY_MIN</strong> = 257<br>
<strong>KEY_MOUSE</strong> = 409<br>
<strong>KEY_MOVE</strong> = 366<br>
<strong>KEY_NEXT</strong> = 367<br>
<strong>KEY_NPAGE</strong> = 338<br>
<strong>KEY_OPEN</strong> = 368<br>
<strong>KEY_OPTIONS</strong> = 369<br>
<strong>KEY_PPAGE</strong> = 339<br>
<strong>KEY_PREVIOUS</strong> = 370<br>
<strong>KEY_PRINT</strong> = 346<br>
<strong>KEY_REDO</strong> = 371<br>
<strong>KEY_REFERENCE</strong> = 372<br>
<strong>KEY_REFRESH</strong> = 373<br>
<strong>KEY_REPLACE</strong> = 374<br>
<strong>KEY_RESET</strong> = 345<br>
<strong>KEY_RESIZE</strong> = 410<br>
<strong>KEY_RESTART</strong> = 375<br>
<strong>KEY_RESUME</strong> = 376<br>
<strong>KEY_RIGHT</strong> = 261<br>
<strong>KEY_SAVE</strong> = 377<br>
<strong>KEY_SBEG</strong> = 378<br>
<strong>KEY_SCANCEL</strong> = 379<br>
<strong>KEY_SCOMMAND</strong> = 380<br>
<strong>KEY_SCOPY</strong> = 381<br>
<strong>KEY_SCREATE</strong> = 382<br>
<strong>KEY_SDC</strong> = 383<br>
<strong>KEY_SDL</strong> = 384<br>
<strong>KEY_SELECT</strong> = 385<br>
<strong>KEY_SEND</strong> = 386<br>
<strong>KEY_SEOL</strong> = 387<br>
<strong>KEY_SEXIT</strong> = 388<br>
<strong>KEY_SF</strong> = 336<br>
<strong>KEY_SFIND</strong> = 389<br>
<strong>KEY_SHELP</strong> = 390<br>
<strong>KEY_SHOME</strong> = 391<br>
<strong>KEY_SIC</strong> = 392<br>
<strong>KEY_SLEFT</strong> = 393<br>
<strong>KEY_SMESSAGE</strong> = 394<br>
<strong>KEY_SMOVE</strong> = 395<br>
<strong>KEY_SNEXT</strong> = 396<br>
<strong>KEY_SOPTIONS</strong> = 397<br>
<strong>KEY_SPREVIOUS</strong> = 398<br>
<strong>KEY_SPRINT</strong> = 399<br>
<strong>KEY_SR</strong> = 337<br>
<strong>KEY_SREDO</strong> = 400<br>
<strong>KEY_SREPLACE</strong> = 401<br>
<strong>KEY_SRESET</strong> = 344<br>
<strong>KEY_SRIGHT</strong> = 402<br>
<strong>KEY_SRSUME</strong> = 403<br>
<strong>KEY_SSAVE</strong> = 404<br>
<strong>KEY_SSUSPEND</strong> = 405<br>
<strong>KEY_STAB</strong> = 340<br>
<strong>KEY_SUNDO</strong> = 406<br>
<strong>KEY_SUSPEND</strong> = 407<br>
<strong>KEY_UNDO</strong> = 408<br>
<strong>KEY_UP</strong> = 259<br>
<strong>LF</strong> = 10<br>
<strong>NAK</strong> = 21<br>
<strong>NARG_KEYWORD</strong> = 'narg'<br>
<strong>NL</strong> = 10<br>
<strong>NUL</strong> = 0<br>
<strong>OK</strong> = 0<br>
<strong>RANGERDIR</strong> = '/home/hut/ranger/ranger'<br>
<strong>REPORT_MOUSE_POSITION</strong> = 134217728<br>
<strong>RS</strong> = 30<br>
<strong>SI</strong> = 15<br>
<strong>SO</strong> = 14<br>
<strong>SOH</strong> = 1<br>
<strong>SP</strong> = 32<br>
<strong>STX</strong> = 2<br>
<strong>SUB</strong> = 26<br>
<strong>SYN</strong> = 22<br>
<strong>TAB</strong> = 9<br>
<strong>US</strong> = 31<br>
<strong>VT</strong> = 11<br>
<strong>controlnames</strong> = ['NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'HT', 'LF', 'VT', 'FF', 'CR', 'SO', 'SI', 'DLE', 'DC1', 'DC2', 'DC3', ...]<br>
<strong>fm</strong> = &lt;ranger.api.keys.Wrapper object&gt;<br>
<strong>version</strong> = '2.2'<br>
<strong>wdg</strong> = &lt;ranger.api.keys.Wrapper object&gt;</td></tr></table>
</body></html>