aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-04-06sam: include limits.h for PATH_MAXMarc André Tanner1-0/+1
Close #220
2016-04-05vis: remove left over from :sam commandMarc André Tanner2-5/+4
2016-04-05vis: fix coverity scan warningsMarc André Tanner2-2/+2
2016-04-05Update README with newer screen castMarc André Tanner1-1/+1
2016-04-05Update README to include latest multiple cursors related key bindingsMarc André Tanner1-2/+7
2016-04-05vis: let <C-l> remove all but the count cursor columnMarc André Tanner2-1/+35
2016-04-05sam: cosmetic changesMarc André Tanner1-2/+2
2016-04-05sam: improve group handling, do not loop infinitelyMarc André Tanner1-2/+4
2016-04-05sam: stop executing once a command failsMarc André Tanner1-2/+2
2016-04-05sam: some commands should only be executed once not for every selectionMarc André Tanner1-21/+24
This should fix a segfault when using :q while multiple selections are active.
2016-04-04vis: let <C-c> remove the count cursor columnMarc André Tanner2-2/+30
2016-04-04vis: fix selection column rotationMarc André Tanner1-5/+8
2016-04-04vis: in visual mode allow navigation among cursors using <C-j> and <C-k>Marc André Tanner2-2/+8
2016-04-04sam: fix x command with default patternMarc André Tanner1-8/+15
The end range should still be respected, previously it would continue looping for all lines until the end of file.
2016-04-04sam: y and Y commands require a regexp patternMarc André Tanner1-2/+4
2016-04-04sam: use better default addresses for <, >, | and r commandsMarc André Tanner1-25/+21
2016-04-04sam: fix special handling of single line numbersMarc André Tanner1-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-04sam: fixup bf52c0cb95b76b4ae17f138c9d98552c38185f46Marc André Tanner1-1/+1
For commands like :q the view might already have been freed
2016-04-04sam: add missing include for strncasecmp(3)David B. Lamkins1-0/+1
2016-04-03Update README to reflect sam(1) integrationMarc André Tanner1-50/+16
2016-04-03sam: focus first cursor after a x, y, g, v commandMarc André Tanner1-0/+4
2016-04-03sam: implement cd (change directory) commandMarc André Tanner1-0/+10
2016-04-03sam: support % as address denoting the whole fileMarc André Tanner1-3/+4
2016-04-03vis: reimplement file open dialogMarc André Tanner1-38/+29
2016-04-03sam: implement ! commandMarc André Tanner1-0/+7
2016-04-03vis: change vis_pipe API and cleanup related codeMarc André Tanner4-66/+41
2016-04-03sam: unify vi(m) and sam command lineMarc André Tanner7-862/+403
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-03build: explicitly list sources filesMarc André Tanner1-1/+6
2016-04-03buffer: add buffer_content0 utility functionMarc André Tanner2-0/+9
2016-04-03sam: restructure code to avoid useless gotoMarc André Tanner1-15/+6
2016-04-03sam: implement s (subtitute) command in terms of sed(1)Marc André Tanner1-3/+13
Eventually this should be rewritten as an internal command.
2016-04-03sam: cleanup command argv passing/handlingMarc André Tanner1-60/+52
2016-04-03sam: simplify and fix groupingMarc André Tanner1-37/+26
The following should now work: :sam x/^static/ .,+/^\}/ { i/<</ a/>>/ }
2016-04-03sam: attempt to make x/y commands more robustMarc André Tanner1-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-03sam: implement > commandMarc André Tanner1-6/+24
2016-04-03sam: implement r (read) command in terms of < catMarc André Tanner1-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-03sam: implement < command in terms of | with an empty rangeMarc André Tanner1-1/+13
2016-04-03sam: implement | (filter) commandMarc André Tanner1-4/+81
2016-04-03sam: implement w (write) commandMarc André Tanner1-4/+47
2016-04-03sam: add infrastructure to support multi letter commandsMarc André Tanner2-48/+53
2016-04-03sam: fix escape handling in regex parsingMarc André Tanner1-0/+4
2016-04-03sam: more flexible parsingMarc André Tanner2-22/+126
Add infrastructure to handle commands which take file names, shell commands or general white space delimited parameters as arguments.
2016-04-03sam: treat single line numbers as motions not rangesMarc André Tanner1-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-03sam: remove old cursor/selection before executing commandMarc André Tanner1-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-03sam: fix default regexp handling i.e. ':sam x'Marc André Tanner1-1/+1
2016-04-03sam: adapt to changes in multiple cursors APIMarc André Tanner1-10/+7
2016-04-03sam: fix negative relative line number placementMarc André Tanner1-7/+11
This should fix -0+,+0-
2016-04-03sam: change print command behavior when given an empty rangeMarc André Tanner1-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-03sam: fix empty regexp matchesMarc André Tanner1-6/+13
This fixes x/^.*$/i/FOO
2016-04-03sam: fix regex parsingMarc André Tanner1-32/+5
This fixes y/\n/i/FOO