about summary refs log tree commit diff stats
path: root/ranger.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-11-29 20:35:23 +0100
committerhut <hut@lavabit.com>2009-11-29 20:35:23 +0100
commit5805deca6306eb888ebdad64c14119995521c6b8 (patch)
tree8041ac52247c99857e0d21dc4c4332cb97556f0e /ranger.py
parentf027adc08ce0d15717c7694956f23ff637553543 (diff)
downloadranger-5805deca6306eb888ebdad64c14119995521c6b8.tar.gz
random improvements
Diffstat (limited to 'ranger.py')
-rwxr-xr-xranger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger.py b/ranger.py
index d4c4a961..8a2d5967 100755
--- a/ranger.py
+++ b/ranger.py
@@ -21,7 +21,7 @@ from ranger.environment import Environment
 from ranger.command import CommandList
 from ranger.conf import keys, options
 from ranger.gui.defaultui import DefaultUI as UI
-from ranger.conf.colorschemes.snow import Snow as ColorScheme
+from ranger.conf.colorschemes.snow import MyColorScheme
 
 import sys, os, locale
 
@@ -46,7 +46,7 @@ try:
 
 	env = Environment(opt)
 	commandlist = CommandList()
-	colorscheme = ColorScheme()
+	colorscheme = MyColorScheme()
 	keys.initialize_commands(commandlist)
 
 	my_ui = UI(env, commandlist, colorscheme)
h=main&id=0e4a335edc7d4e584924fd6b298156e45d2626c8'>^
2c678a4e ^
















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
                                                                           
 
                               














                                                                             
                                                                               




                   


                                                                              

          
                                                                                          

     
















                                                                                                                                                    
Environment for learning programming using Mu: http://akkartik.name/post/mu

Run it from the `mu` directory:

  ```shell
  $ ./mu edit
  ```

This will load all the `.mu` files in this directory and then run the editor.
Press ctrl-c to quit. Press F4 to save your work (if a lesson/ directory
exists) and to run the contents of the sandbox editor on the right.

You can also run the tests for the environment:

  ```shell
  $ ./mu test edit
  ```

You can also load the files more explicitly by enumerating them all (in order):

  ```shell
  $  ./mu edit/*.mu
  ```

This is handy if you want to play with simpler versions of the editor that are
easier to understand. Stop loading at any layer to run with a subset of
features:

  ```shell
  $ ./mu edit/001*.mu edit/002*.mu  # run a simple editor rather than the full environment
  ```

---

Appendix: keyboard shortcuts

  _moving and scrolling_
  - `ctrl-a` or `home`: move cursor to start of line
  - `ctrl-e` or `end`: move cursor to end of line
  - `ctrl-f` or `page-down`: scroll down by one page
  - `ctrl-b` or `page-up`: scroll up by one page
  - `ctrl-x`: scroll down by one line
  - `ctrl-s`: scroll up by one line
  - `ctrl-t`: scroll until current line is at top of screen

  _modifying text_
  - `ctrl-k`: delete text from cursor to end of line
  - `ctrl-u`: delete text from start of line until just before cursor
  - `ctrl-/`: comment/uncomment current line (using a special leader to ignore real comments https://www.reddit.com/r/vim/comments/4ootmz/_/d4ehmql)