about summary refs log tree commit diff stats
path: root/024jump.cc
Commit message (Collapse)AuthorAgeFilesLines
* 3380Kartik K. Agaram2016-09-171-5/+5
| | | | | One more place we were missing expanding type abbreviations: inside container definitions.
* 3120Kartik K. Agaram2016-07-211-3/+3
| | | | | | | | Always show instruction before any transforms in error messages. This is likely going to make some errors unclear because they *need* to show the original instruction. But if we don't have tests for those situations did they ever really work?
* 2990Kartik K. Agaram2016-05-201-8/+8
| | | | | | | | | | Standardize quotes around reagents in error messages. I'm still sure there's issues. For example, the messages when type-checking 'copy'. I'm not putting quotes around them because in layer 60 I end up creating dilated reagents, and then it's a bit much to have quotes and (two kinds of) brackets. But I'm sure I'm doing that somewhere..
* 2881 - disallow recipe literals in conditional jumpsKartik K. Agaram2016-04-281-3/+5
| | | | | | | If you accidentally use a recipe name in an ingredient you usually get an error because types don't match. But jumps need to be flexible enough to support both addresses and booleans, so they were accepting recipe literals as well. Now a useful error results.
* 2803Kartik K. Agaram2016-03-211-16/+16
| | | | | Show more thorough information about instructions in the trace, but keep the original form in error messages.
* 2735 - define recipes using 'def'Kartik K. Agaram2016-03-081-6/+6
| | | | | | | | | | | | I'm dropping all mention of 'recipe' terminology from the Readme. That way I hope to avoid further bike-shedding discussions while I very slowly decide on the right terminology with my students. I could be smarter in my error messages and use 'recipe' when code uses it and 'function' otherwise. But what about other words like ingredient? It would all add complexity that I'm not yet sure is worthwhile. But I do want separate experiences for veteran programmers reading about Mu on github and for people learning programming using Mu.
* 2712Kartik K. Agaram2016-02-261-8/+8
|
* 2685Kartik K. Agaram2016-02-191-3/+3
| | | | | | | | | | | | | | | | Stack of plans for cleaning up replace_type_ingredients() and a couple of other things, from main problem to subproblems: include type names in the type_tree rather than in the separate properties vector make type_tree and string_tree real cons cells, with separate leaf nodes redo the vocabulary for dumping various objects: do we really need to_string and debug_string? can we have a version with *all* information? can we have to_string not call debug_string? This commit nibbles at the edges of the final task, switching from member method syntax to global function like almost everything else. I'm mostly using methods just for STL in this project.
* 2377 - stop using operator[] in mapKartik K. Agaram2015-11-061-12/+12
| | | | | | | | | | | | | | | | I'm still seeing all sorts of failures in turning on layer 11 of edit/, so I'm backing away and nailing down every culprit I run into. First up: stop accidentally inserting empty objects into maps during lookups. Commands run: $ sed -i 's/\(Recipe_ordinal\|Recipe\|Type_ordinal\|Type\|Memory\)\[\([^]]*\)\] = \(.*\);/put(\1, \2, \3);/' 0[1-9]* $ vi 075scenario_console.cc # manually fix up Memory[Memory[CONSOLE]] $ sed -i 's/\(Memory\)\[\([^]]*\)\]/get_or_insert(\1, \2)/' 0[1-9]* $ sed -i 's/\(Recipe_ordinal\|Type_ordinal\)\[\([^]]*\)\]/get(\1, \2)/' 0[1-9]* $ sed -i 's/\(Recipe\|Type\)\[\([^]]*\)\]/get(\1, \2)/' 0[1-9]* Now mu dies pretty quickly because of all the places I try to lookup a missing value.
* 2313Kartik K. Agaram2015-10-291-5/+5
|
* 2258 - separate warnings from errorsKartik K. Agaram2015-10-061-8/+8
| | | | | | | At the lowest level I'm reluctantly starting to see the need for errors that stop the program in its tracks. Only way to avoid memory corruption and security issues. But beyond that core I still want to be as lenient as possible at higher levels of abstraction.
* 2226 - standardize warning formatKartik K. Agaram2015-10-011-8/+8
| | | | | | | | Always show recipe name where error occurred. But don't show internal 'interactive' name for sandboxes, that's just confusing. What started out as warnings are now ossifying into errors that halt all execution. Is this how things went with C and Unix as well?
* 2223Kartik K. Agaram2015-09-301-19/+31
|
* 2214Kartik K. Agaram2015-09-281-0/+141
--------------------- .SH OPTIONS .TP --version Print the version and exit. .TP -h, --help Print a list of options and exit. .TP -d, --debug Activate the debug mode: Whenever an error occurs, ranger will exit and print a full backtrace. The default behaviour is to merely print the name of the exception in the statusbar/log and to try to keep running. .TP -c, --clean Activate the clean mode: Ranger will not access or create any configuration files nor will it leave any traces on your system. This is useful when your configuration is broken, when you want to avoid clutter, etc. .TP --fail-unless-cd Return the exit code 1 if ranger is used to run a file, for example with `ranger --fail-unless-cd filename`. This can be useful for scripts. .TP -r \fIdir\fR, --confdir=\fIdir\fR Define a different configuration directory. The default is $XDG_CONFIG_HOME/ranger (which defaults to ~/.config/ranger) .TP -m \fIn\fR, --mode=\fIn\fR When a filename is supplied, make it run in mode \fIn\fR. Check the documentation for more information on modes. .TP -f \fIflags\fR, --flags=\fIflags\fR When a filename is supplied, make it run with the flags \fIflags\fR. Check the documentation for more information on flags. .\"----------------------------------------- .SH USAGE .\"----------------------------------------- .SS General Keybindings Many keybindings take an additional numeric argument. Type \fI5j\fR to move down 5 lines, \fI10<Space>\fR to mark 10 files or \fI3?\fR to read the third chapter of the documentation. .TP h, j, k, l Move left, down, up, right .TP ^D or J, ^U or K Move a half page down, up .TP H, L Move back and forward in the history .TP gg Move to the top .TP G Move to the bottom .TP ^R Reload everything .TP ^L Redraw the screen .TP S Open a shell in the current directory .TP yy Yank the selection. (mark the files as copied) .TP dd Cut the selection .TP pp Paste the copied/cut files. By default, this will not overwrite existing files. To overwrite them, use \fBpo\fR. .TP m\fIX\fR Create a bookmark with the name \fIX\fR .TP `\fIX\fR Move to the bookmark with the name \fIX\fR .TP n, N Find the next file, the previous file. You can define what to look for by typing c\fIX\fR. If nothing is specified, pressing n will get you to the newest file in the directory. .TP o\fIX\fR Change the sort method (like in mutt) .TP z\fIX\fR Change settings .TP f Quickly navigate by entering a part of the filename .TP Space Mark a file .TP v, V Toggle the mark-status of all files, unmark all files .TP / Open the search console .TP : Open the command console .TP ? Opens the help screen with more keybindings and documentation .\"----------------------------------------- .SS Keybindings for using Tabs Tabs are used to work in different directories in the same Ranger instance. .TP g\fIN\fR Open a tab. N has to be a number from 0 to 9. If the tab doesn't exist yet, it will be created. .TP gn, ^N Create a new tab. .TP gt, gT Go to the next or previous tab. You can also use TAB and SHIFT+TAB. .TP gc, ^W Close the current tab. The last tab cannot be closed. .P .\"----------------------------------------- .SS Mouse Usage .TP Left Mouse Button Click on something and you'll move there. To run a file, "enter" it, like a directory, by clicking on the preview. .TP Right Mouse Button Enter a directory .TP Scroll Wheel Scroll .\"----------------------------------------- .SS Commands .TP :delete Destroy all files in the selection with a roundhouse kick. Ranger will ask for a confirmation if you attempt to delete multiple (marked) files or non-empty directories. .TP :rename \fInewname\fR Rename the current file. Also try the keybinding A for appending something to a file name. .TP :quit Quit ranger. The current directory will be bookmarked as ' so you can re-enter it by typing `` or '' the next time you start ranger. .\"----------------------------------------- .SH TIPS .SS Change the directory after exit A script like this in your bashrc would make you change the directory of your parent shell after exiting ranger: .nf ranger() { command ranger --fail-unless-cd $@ && cd "$(grep \\^\\' ~/.config/ranger/bookmarks | cut -b3-)" } .\"----------------------------------------- .SH CONFIGURATION The files in .B ranger/defaults/ can be copied into your configuration directory (by default, this is ~/.config/ranger) and customized according to your wishes. Most files don't have to be copied completely though: Just define those settings you want to add or change and they will override the defauls. Colorschemes can be placed in ~/.config/ranger/colorschemes. .P All configuration is done in Python. Each configuration file should contain sufficient documentation. .\"----------------------------------------- .SH COPYRIGHT Copyright \(co 2009, 2010 Roman Zimbelmann .P This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .\"----------------------------------------- .SH SEE ALSO The project page: .RB < http://savannah.nongnu.org/projects/ranger > .P The mailing list: .RB < http://savannah.nongnu.org/mail/?group=ranger > .\"----------------------------------------- .SH BUGS Please report them here and include as much relevant information as possible: .P .RB < http://savannah.nongnu.org/bugs/?group=ranger >