summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* just call try_cmd recursively here, no reason not tojluehrs22008-05-261-2/+1
|
* big refactor - make try_num recursive and add support for arithmetic ↵jluehrs22008-05-261-21/+41
| | | | expressions (still not entirely working)
* make ->num always return a number (0 instead of undef) and add ->has_num to ↵jluehrs22008-05-251-11/+15
| | | | test for undef (this should simplify the arithmetic code)
* get rid of one more direct data member accessjluehrs22008-05-241-2/+7
|
* clean up handling of the num accessor a bitjluehrs22008-05-241-20/+11
|
* get rid of current_num, make the handling of num a bit simpler and more like ↵jluehrs22008-05-241-14/+10
| | | | the behavior of te
* make ret into an accessorjluehrs22008-05-241-6/+14
|
* big refactor of execute to make it more precise and easier to expandjluehrs22008-05-241-152/+140
|
* don't clear the current command during reset, since we always set it ↵jluehrs22008-05-241-1/+0
| | | | explicitly at the beginning of execute(), and we call reset after each command
* add a simple test for executing multiple commands in a single execute() calljluehrs22008-05-241-0/+10
|
* fix some test errorsjluehrs22008-05-241-4/+4
|
* need to wrap the = command in ->cmd()jluehrs22008-05-241-2/+5
|
* add a test for the = commandjluehrs22008-05-241-0/+28
|
* make indexing off the ends of the buffer do the right thingjluehrs22008-05-241-2/+2
|
* oops, forgot one has_rangejluehrs22008-05-241-1/+1
|
* refactor the delete method of the buffer a bitjluehrs22008-05-242-17/+7
|
* expand the printing test a bitjluehrs22008-05-241-1/+6
|
* add a test for the t commandjluehrs22008-05-241-0/+27
|
* make passing 0 in as the end position to buffer work properlyjluehrs22008-05-241-2/+3
|
* make the argument to t a maximum on the number of lines printed, not have to ↵jluehrs22008-05-241-2/+2
| | | | be exact
* fix t with rangesjluehrs22008-05-241-1/+1
|
* implement =jluehrs22008-05-241-0/+4
|
* unnecessary parenthesesjluehrs22008-05-221-1/+1
|
* add dep on Class::Accessor::Fastjluehrs22008-05-221-0/+2
|
* formattingjluehrs22008-05-221-5/+5
|
* get rid of naming conflictsjluehrs22008-05-221-16/+16
|
* missing semicolonjluehrs22008-05-221-1/+1
|
* use accessors rather than accessing data members directlyjluehrs22008-05-222-46/+52
|
* fix up the makefilejluehrs22008-05-221-2/+13
|
* add a simple irc evalbot for teco... needs to be expanded quite a bit to ↵jluehrs22008-05-221-0/+26
| | | | deal with things like escape/control characters, security, etc
* make execute return anything that would be printed to stdout, rather than ↵jluehrs22008-05-223-3/+11
| | | | printing it directly
* implement the l commandjluehrs22008-05-221-0/+9
|
* make get_line_offset return just the offset (rather than a range) if called ↵jluehrs22008-05-221-2/+4
| | | | in scalar context
* allow passing in two arguments to buffer->delete in order to delete a range ↵jluehrs22008-05-221-1/+10
| | | | of characters rather than defaulting to offset from the current position
* handle context correctly for ->numjluehrs22008-05-221-2/+2
|
* implement the k commandjluehrs22008-05-221-0/+15
|
* refactor getting buffer offsets by line into a method on the buffer objectjluehrs22008-05-222-15/+20
|
* multi-character numbers need to subtract subsequent digits if we are in the ↵jluehrs22008-05-221-0/+1
| | | | middle of a negated number
* add explanations for testsjluehrs22008-05-226-35/+58
|
* wrong number of testsjluehrs22008-05-221-1/+1
|
* add error handling for the delete commandjluehrs22008-05-221-1/+3
|
* add a test for special buffer positionsjluehrs22008-05-221-0/+27
|
* add a test for deletion commandsjluehrs22008-05-221-0/+22
|
* add a test for insertion commandsjluehrs22008-05-221-0/+19
|
* refactor the error handling testjluehrs22008-05-221-5/+15
|
* throw an error rather than returning silently if we try to move outside of ↵jluehrs22008-05-221-1/+1
| | | | the buffer
* ? is just part of the outputjluehrs22008-05-221-2/+2
|
* add a test for error handlingjluehrs22008-05-221-0/+13
|
* use the error message that te uses for ^Cjluehrs22008-05-221-1/+1
|
* format errors the way actual teco doesjluehrs22008-05-221-1/+1
|