summary refs log tree commit diff stats
path: root/doc/cheatsheet.svg
diff options
context:
space:
mode:
Diffstat (limited to 'doc/cheatsheet.svg')
-rw-r--r--doc/cheatsheet.svg94
1 files changed, 94 insertions, 0 deletions
diff --git a/doc/cheatsheet.svg b/doc/cheatsheet.svg
index 157d42d8..352ed33e 100644
--- a/doc/cheatsheet.svg
+++ b/doc/cheatsheet.svg
@@ -4528,5 +4528,99 @@
          style="font-size:15px"><tspan
    style="font-weight:bold"
    id="tspan5683">#ranger</tspan> on irc.freenode.net</tspan></text>
+    <rect
+       style="fill:#e6e6e6;fill-opacity:1;stroke:#000000;stroke-width:0.99999994;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect5634-3"
+       width="689"
+       height="173.99998"
+       x="430.5"
+       y="872.86224"
+       rx="2.1094199e-15"
+       ry="1.0269601e-15" />
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:125%;font-family:Sans;-inkscape-font-specification:'Sans, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       x="434.37744"
+       y="886.85925"
+       id="text5541-2"
+       sodipodi:linespacing="125%"><tspan
+         sodipodi:role="line"
+         x="434.37744"
+         y="886.85925"
+         style="font-weight:normal;font-size:12.5px"
+         id="tspan4932"><tspan
+   id="tspan4923"
+   style="font-weight:bold;font-size:12.5px">Commands</tspan> can be typed in by pressing : or added to ~/.config/ranger/rc.conf to apply then whenever</tspan><tspan
+         sodipodi:role="line"
+         x="434.37744"
+         y="902.48425"
+         style="font-weight:normal;font-size:12.5px"
+         id="tspan4931">ranger starts. All commands are listed in the man page. Some important ones:</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10px;line-height:125%;font-family:Sans;-inkscape-font-specification:'Sans, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       x="434.66431"
+       y="918.36206"
+       id="text5776-0"
+       sodipodi:linespacing="125%"><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="918.36206"
+         style="font-weight:bold;font-size:12.5px"
+         id="tspan5864-8">:shell [&lt;flags&gt;] &lt;command&gt;<tspan
+   style="font-weight:normal"
+   id="tspan4899"> calls the given &lt;command&gt; with the shell specified in the environment</tspan></tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="933.98706"
+         style="font-weight:normal;font-size:12.5px"
+         id="tspan4907">variable $SHELL. &lt;flags&gt; can be &quot;-f&quot; to fork the process or &quot;-p&quot; to pipe the output to a pager. Macros like</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="949.61206"
+         style="font-weight:normal;font-size:12.5px"
+         id="tspan4905">%f and %s are especially useful here. Example: &quot;:shell -f inkscape %f&quot; or &quot;:shell sudo cp %c ./&quot;</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="965.23706"
+         style="font-size:12.5px"
+         id="tspan4895"><tspan
+   style="font-weight:bold"
+   id="tspan4897">:alias &lt;new&gt; &lt;old&gt;</tspan> creates the command &lt;new&gt; that calls &lt;old&gt;. The neat thing is that you can pass</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="980.86206"
+         style="font-size:12.5px"
+         id="tspan4935">arguments to the next command. Example: &quot;:alias <tspan
+   style="fill:#ff0000"
+   id="tspan5100">touch</tspan><tspan
+   style="fill:#0000ff"
+   id="tspan5108"> shell touch</tspan>&quot; will allow you to type &quot;:<tspan
+   style="fill:#ff0000"
+   id="tspan5114">touch</tspan> FILE&quot;,</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="996.48706"
+         style="font-size:12.5px"
+         id="tspan5116">which will be translated to &quot;:<tspan
+   style="fill:#0000ff"
+   id="tspan5118">shell touch</tspan> FILE&quot;.</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="1012.1121"
+         style="font-size:12.5px"
+         id="tspan4915"><tspan
+   style="font-weight:bold"
+   id="tspan4933">:map &lt;key&gt; &lt;command&gt;</tspan> makes the &lt;key&gt; run &lt;command&gt; when pressed. This is the typical way to</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="1027.7371"
+         style="font-size:12.5px"
+         id="tspan4917">define key bindings in rc.conf. There is also &quot;pmap&quot; to define keys in the pager and &quot;unmap&quot; and &quot;punmap&quot;</tspan><tspan
+         sodipodi:role="line"
+         x="434.66431"
+         y="1043.3621"
+         style="font-size:12.5px"
+         id="tspan4924">to remove key bindings.</tspan></text>
   </g>
 </svg>
href='#n316'>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