| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2016-11-10 | vis: add help texts for :set option values | Marc André Tanner | 1 | -11/+56 | |
| 2016-11-08 | sam: fix default value handling of +/- addresses | Marc André Tanner | 1 | -3/+6 | |
| We need to distinguish between an explicit given zero and an omitted value which should default to 1. This should fix the following constructs which rounds up/down an existing selection to whole lines -0,+0 and -0+,+0- | |||||
| 2016-11-08 | sam: dispose primary cursor at end of group | Marc André Tanner | 1 | -0/+2 | |
| Something like :{ x/pattern/ } should not leave the original cursor around. | |||||
| 2016-11-04 | sam: y should also loop over empty trailing matches | Marc André Tanner | 1 | -1/+5 | |
| The following x/example/ y/e/ i/-/ should produce `-e-xample-` where before it would wrongly result in `-e-xample`. | |||||
| 2016-11-02 | sam: improve cursor positioning after command execution | Marc André Tanner | 1 | -7/+28 | |
| Previously something like :x/pattern :c/replacement would cause all cursors to disappear because the location they were placed on was deleted beneath them. | |||||
| 2016-11-02 | sam: fix default command handling at end of a group | Marc André Tanner | 1 | -1/+1 | |
| Something like :{ x/pattern/ } should select all occurrences of pattern. | |||||
| 2016-11-02 | sam: ignore white space between commands of a group | Marc André Tanner | 1 | -2/+1 | |
| 2016-11-02 | sam: fix command name parsing | Marc André Tanner | 1 | -2/+2 | |
| Any white space should terminate the command name. In particular multi-line commands as part of a group were not handled correctly. | |||||
| 2016-11-02 | sam: improve escape parsing logic | Marc André Tanner | 1 | -22/+16 | |
| \\ should not be treated specially when parsing regular expressions. | |||||
| 2016-10-05 | sam: show error message on failed write | Christian Hesse | 1 | -2/+4 | |
| 2016-09-30 | sam: simplify :r command implementaion | Marc André Tanner | 1 | -13/+6 | |
| Avoid intermediate shell. | |||||
| 2016-09-29 | sam: consistent argument handling for :r, :w, :e commands | Marc André Tanner | 1 | -23/+17 | |
| :e without any argument can be used to reload the file from disk whereas before a "Filename expected" error would be displayed. | |||||
| 2016-09-27 | sam: allow non-latin command names | Marc André Tanner | 1 | -1/+1 | |
| Close #387 | |||||
| 2016-09-25 | sam: change license header | Marc André Tanner | 1 | -3/+14 | |
| We use an adapted variant of sam's structural regular expression based command language. The initial implementation was partially based upon the following functions from sam / acme: * parse.h / edit.h (struct definitions) * cmd.c / edit.c (functions parsecmd, simpleaddr, compoundaddr) * xec.c / ecmd.c (cmdexec) * address.c / addr.c (address) It turns out the relevant code can be traced back to the initial X11 port of sam which is distributed under an ISC-like license instead of the Lucent Public License Version 1.02 used for Plan 9, plan9port and 9base. http://www.netlib.org/research/ http://www.netlib.org/research/sam.shar Hence we switch to the simpler license variant. Close #238 | |||||
| 2016-09-19 | vis: also list :set options in :help output | Marc André Tanner | 1 | -0/+44 | |
| The help formatting could probably be improved, short single line help texts are still missing. Patches welcome. Close #283 | |||||
| 2016-09-19 | vis: add rudimentary builtin help for :-commands | Marc André Tanner | 1 | -49/+49 | |
| 2016-09-19 | vis: do not invoke file save event for internal files | Marc André Tanner | 1 | -1/+1 | |
| 2016-08-07 | sam: do not change cursor position after :! command | Marc André Tanner | 1 | -1/+1 | |
| Fixes #364 | |||||
| 2016-08-07 | sam: improve quoted argument parsing | Marc André Tanner | 1 | -33/+28 | |
| Handling of unbalanced quotes could probably still be improved. Closes #344 | |||||
| 2016-05-29 | sam: use more suitable error message if no command is given | Marc André Tanner | 1 | -1/+3 | |
| 2016-05-26 | vis: use normalized absolute file names as internal representation | Marc André Tanner | 1 | -4/+2 | |
| Try to display a shorthand version in the status bar, this currently only works for files below the current working directory of the editor process. | |||||
| 2016-05-18 | vis: add an interactive mode to vis_pipe{,_collect}(...) | Marc André Tanner | 1 | -2/+2 | |
| Previously the interactive mode was implicitly enabled by passing an invalid range. However for some use cases (e.g. completion) we need to be able to pipe a given text range to an external process without also redirecting stderr (which is used to draw the slmenu interface on top of vis). | |||||
| 2016-05-14 | vis: allow :commands with a hyphen in the name | Marc André Tanner | 1 | -1/+1 | |
| This fixes the argument parsing for the :{un,}map-window commands. | |||||
| 2016-05-05 | sam: avoid taking snapshots within the filter command implementation | Marc André Tanner | 1 | -18/+1 | |
| This has the effect that multiple filter commands can be undone together. | |||||
| 2016-04-29 | vis: do not crash when processing :-commands and no window is active | Marc André Tanner | 1 | -3/+29 | |
| This is needed to make the vis.event.start Lua callback useful, setting global options should be possible even if no windows exist yet. The :set command options should probably be cleaned up further, some of them apply only to the currently active window while others have a global effect. | |||||
| 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 | |
