| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2016-04-21 | vis: add infrastructure to register custom :-commands | Marc André Tanner | 1 | -1/+5 | |
| 2016-04-21 | vis: do not lazy allocate :-commands | Marc André Tanner | 1 | -9/+11 | |
| The built in commands should always be available. | |||||
| 2016-04-20 | vis: handle termination from within win_open event gracefully | Marc André Tanner | 1 | -9/+10 | |
| 2016-04-17 | sam: except for visual mode, apply :w to whole file | Marc André Tanner | 1 | -16/+57 | |
| Also in visual mode, warn if :w is not forced by ! because the file will be reduced to the active selection. | |||||
| 2016-04-13 | sam: improve ^ matching start of line | Marc André Tanner | 1 | -4/+10 | |
| There are some nasty differences between the meaning of ^ in Plan 9's regexp library and POSIX when using REG_NEWLINE. The former only matches at the beginning of a line wheras the latter matches the zero-length string immediately after a newline character \n. As a result this also matches after the very last newline at the end of the file. This is undesired behavior for a command like :x/^/c/#/ Hence we try to filter out this last match. Close #264 | |||||
| 2016-04-13 | Use view_cursors_new_force where appropriate | Marc André Tanner | 1 | -14/+2 | |
| Close #263 | |||||
| 2016-04-11 | sam.c: fix some typos in comment | Steven Noonan | 1 | -2/+2 | |
| Signed-off-by: Steven Noonan <steven@uplinklabs.net> | |||||
| 2016-04-08 | sam: change default address of < and | commands | Marc André Tanner | 1 | -11/+16 | |
| If no address is provided these commands no longer apply to the whole line, but instead will insert the output of the external program at the current cursor location. | |||||
| 2016-04-06 | sam: include limits.h for PATH_MAX | Marc André Tanner | 1 | -0/+1 | |
| Close #220 | |||||
| 2016-04-05 | vis: remove left over from :sam command | Marc André Tanner | 1 | -4/+4 | |
| 2016-04-05 | vis: fix coverity scan warnings | Marc André Tanner | 1 | -1/+1 | |
| 2016-04-05 | sam: cosmetic changes | Marc André Tanner | 1 | -2/+2 | |
| 2016-04-05 | sam: improve group handling, do not loop infinitely | Marc André Tanner | 1 | -2/+4 | |
| 2016-04-05 | sam: stop executing once a command fails | Marc André Tanner | 1 | -2/+2 | |
| 2016-04-05 | sam: some commands should only be executed once not for every selection | Marc André Tanner | 1 | -21/+24 | |
| This should fix a segfault when using :q while multiple selections are active. | |||||
| 2016-04-04 | sam: fix x command with default pattern | Marc André Tanner | 1 | -8/+15 | |
| The end range should still be respected, previously it would continue looping for all lines until the end of file. | |||||
| 2016-04-04 | sam: y and Y commands require a regexp pattern | Marc André Tanner | 1 | -2/+4 | |
| 2016-04-04 | sam: use better default addresses for <, >, | and r commands | Marc André Tanner | 1 | -25/+21 | |
| 2016-04-04 | sam: fix special handling of single line numbers | Marc André Tanner | 1 | -6/+17 | |
| If only line numbers are given (either in absolute or relative form) we treat it as motion instead of a range specifier. That is :nn moves to line nn, but does not select it. This should however not affect other range specifiers such as :n,m | |||||
| 2016-04-04 | sam: fixup bf52c0cb95b76b4ae17f138c9d98552c38185f46 | Marc André Tanner | 1 | -1/+1 | |
| For commands like :q the view might already have been freed | |||||
| 2016-04-04 | sam: add missing include for strncasecmp(3) | David B. Lamkins | 1 | -0/+1 | |
| 2016-04-03 | sam: focus first cursor after a x, y, g, v command | Marc André Tanner | 1 | -0/+4 | |
| 2016-04-03 | sam: implement cd (change directory) command | Marc André Tanner | 1 | -0/+10 | |
| 2016-04-03 | sam: support % as address denoting the whole file | Marc André Tanner | 1 | -3/+4 | |
| 2016-04-03 | sam: implement ! command | Marc André Tanner | 1 | -0/+7 | |
| 2016-04-03 | vis: change vis_pipe API and cleanup related code | Marc André Tanner | 1 | -25/+20 | |
| 2016-04-03 | sam: unify vi(m) and sam command line | Marc André Tanner | 1 | -85/+153 | |
| The following vi commands have been dropped: - saveas - xit - ! The following commands are only recognized in their short form: - e (edit) - q (quit) - s (substitute) - w (write) - r (read) | |||||
| 2016-04-03 | sam: restructure code to avoid useless goto | Marc André Tanner | 1 | -15/+6 | |
| 2016-04-03 | sam: implement s (subtitute) command in terms of sed(1) | Marc André Tanner | 1 | -3/+13 | |
| Eventually this should be rewritten as an internal command. | |||||
| 2016-04-03 | sam: cleanup command argv passing/handling | Marc André Tanner | 1 | -60/+52 | |
| 2016-04-03 | sam: simplify and fix grouping | Marc André Tanner | 1 | -37/+26 | |
| The following should now work: :sam x/^static/ .,+/^\}/ { i/<</ a/>>/ } | |||||
| 2016-04-03 | sam: attempt to make x/y commands more robust | Marc André Tanner | 1 | -4/+8 | |
| These commands can be followed by an address which changes the range to which the sub command applies. The looping construct should then continue at the position of the last change within the original range. A previously problemeatic example: :sam x/^static/ .,+/^\}/ c/replaced | |||||
| 2016-04-03 | sam: implement > command | Marc André Tanner | 1 | -6/+24 | |
| 2016-04-03 | sam: implement r (read) command in terms of < cat | Marc André Tanner | 1 | -1/+13 | |
| It replaces current range with the file content. However in the common case the range is actually defaults to the whole file which is probably not what is expected. | |||||
| 2016-04-03 | sam: implement < command in terms of | with an empty range | Marc André Tanner | 1 | -1/+13 | |
| 2016-04-03 | sam: implement | (filter) command | Marc André Tanner | 1 | -4/+81 | |
| 2016-04-03 | sam: implement w (write) command | Marc André Tanner | 1 | -4/+47 | |
| 2016-04-03 | sam: add infrastructure to support multi letter commands | Marc André Tanner | 1 | -48/+52 | |
| 2016-04-03 | sam: fix escape handling in regex parsing | Marc André Tanner | 1 | -0/+4 | |
| 2016-04-03 | sam: more flexible parsing | Marc André Tanner | 1 | -22/+124 | |
| Add infrastructure to handle commands which take file names, shell commands or general white space delimited parameters as arguments. | |||||
| 2016-04-03 | sam: treat single line numbers as motions not ranges | Marc André Tanner | 1 | -2/+9 | |
| That is something like :sam +5 or :sam 10 will move to the start of the selected line instead of selecting the whole line. TODO: due to the current implementation it will also affect :sam x/pattern/-10+10 | |||||
| 2016-04-03 | sam: remove old cursor/selection before executing command | Marc André Tanner | 1 | -1/+12 | |
| Because duplicated cursors are no longer allowed we have to remove the old cursors before, not after executing the sam command. Otherwise commands like g/foo/ which re-create the same selection fail. | |||||
| 2016-04-03 | sam: fix default regexp handling i.e. ':sam x' | Marc André Tanner | 1 | -1/+1 | |
| 2016-04-03 | sam: adapt to changes in multiple cursors API | Marc André Tanner | 1 | -10/+7 | |
| 2016-04-03 | sam: fix negative relative line number placement | Marc André Tanner | 1 | -7/+11 | |
| This should fix -0+,+0- | |||||
| 2016-04-03 | sam: change print command behavior when given an empty range | Marc André Tanner | 1 | -6/+23 | |
| Only create a selection (and switch to visual mode) if at least one print command was given a non-empty range. Also reject invalid ranges. This allows cursor movements with thinks like #10 | |||||
| 2016-04-03 | sam: fix empty regexp matches | Marc André Tanner | 1 | -6/+13 | |
| This fixes x/^.*$/i/FOO | |||||
| 2016-04-03 | sam: fix regex parsing | Marc André Tanner | 1 | -32/+5 | |
| This fixes y/\n/i/FOO | |||||
| 2016-04-03 | sam: fix parsing of , compound address | Marc André Tanner | 1 | -5/+2 | |
| In a command like ,x/pattern the comma should default to the whole file. | |||||
| 2016-04-03 | sam: do not segfault when given a NULL pointer to parse | Marc André Tanner | 1 | -0/+2 | |
