| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2016-04-03 | Support sam's structural regular expression based command language | Marc André Tanner | 1 | -0/+10 | |
| For those not familiar with sam(1) more information can be found at http://sam.cat-v.org/ For now sam commands can be entered from the vis prompt via :sam <cmd> A command behaves differently depending on the mode in which it is issued: - in visual mode it behaves as if an implicit extract x command matching the current selection(s) would be preceding it. That is the command is executed once for each selection. - in normal mode: * if an address for the command was provided it is evaluated starting from the current cursor position(s) i.e. dot is set to the current cursor position. * if no address was supplied to the command then: + if multiple cursors exist, the command is executed once for every cursor with dot set to the current line of the cursor + otherwise if there is only 1 cursor then the command is executed with dot set to the whole file The command syntax was slightly tweaked to accpet more terse commands. - When specifiying text or regular expressions the trailing delimiter can be elided if the meaning is unambigious. - If only an address is provided the print command will be executed. - The print command creates a selection matching its range. - In text entry \t inserts a literal tab character (sam only recognizes \n). Hence the sam command ,x/pattern/ can be abbreviated to x/pattern If a command is successful vis switches to normal mode (and hence removes any selections), otherwise the editor is kept in visual mode. The print command "fails" by definition. | |||||
| 2016-04-01 | vis: cleanup vis_pipe API | Marc André Tanner | 1 | -5/+5 | |
| 2016-03-25 | vis: remove __DATE__ and __TIME__ references to aid with reproducible builds | Marc André Tanner | 1 | -1/+1 | |
| 2016-03-25 | vis: do not crash when using vis:command without active window | Marc André Tanner | 1 | -1/+8 | |
| 2016-03-15 | vis: do not segfault when given a NULL command to process | Marc André Tanner | 1 | -0/+2 | |
| 2016-03-12 | vis: overhaul search related code, support "/ register | Marc André Tanner | 1 | -5/+2 | |
| 2016-02-20 | vis: list layout specifc key mappings in <F1> help output | Marc André Tanner | 1 | -0/+10 | |
| 2016-02-20 | vis: implement :langmap command to set keyboard mappings | Marc André Tanner | 1 | -0/+34 | |
| The mappings affect all non-input (i.e. insert/replace) modes. They are useful for non-latin keyboard layouts, example usage: :langmap ролд hjkl Based on a patch by Dmitriy. Close #161 | |||||
| 2016-02-12 | Mark some tables as const | Marc André Tanner | 1 | -8/+8 | |
| This allows them to be placed into the read only ELF section. | |||||
| 2016-02-10 | vis: tweak <F1> help text list all available key actions | Marc André Tanner | 1 | -3/+12 | |
| 2016-02-07 | vis: export vis_window_closable | Marc André Tanner | 1 | -8/+2 | |
| 2016-02-07 | vis: mark output of pipe command as saved | Marc André Tanner | 1 | -0/+3 | |
| 2016-02-01 | Improve cursor position after :substitute command | Marc André Tanner | 1 | -5/+5 | |
| 2016-01-31 | Rename stderr field to err | Markus Teich | 1 | -10/+10 | |
| The name `stderr` was confused by the compiler with the following defines: $ grep -r "define stderr" ./dependency/install/usr/include/stdio.h:#define stderr (stderr) ./dependency/sources/musl-1.1.12/include/stdio.h:#define stderr (stderr) | |||||
| 2016-01-29 | vis: implement new pipe/write out command :| or :w ! | Marc André Tanner | 1 | -1/+52 | |
| 2016-01-29 | vis: factor out filter command implementation | Marc André Tanner | 1 | -50/+92 | |
| 2016-01-19 | vis: improve :-command argument tokenizing | Marc André Tanner | 1 | -3/+11 | |
| Should now handle trailing white spaces. | |||||
| 2016-01-18 | vis: fix segfault upon :qall | Marc André Tanner | 1 | -4/+6 | |
| 2016-01-17 | vis: make :e an alias for :edit | Marc André Tanner | 1 | -1/+1 | |
| 2016-01-16 | vis: move selected prompt entry to end of the file | Marc André Tanner | 1 | -1/+1 | |
| Close #70 | |||||
| 2016-01-14 | vis: s/VIS_MODE_LAST/VIS_MODE_INVALID/g | Marc André Tanner | 1 | -3/+3 | |
| 2016-01-14 | vis-cmds: resolve conflict with BSD getmode(3) | Marc André Tanner | 1 | -3/+3 | |
| Closes #147 | |||||
| 2016-01-13 | Implement command/search prompt history as a regular file | Marc André Tanner | 1 | -3/+13 | |
| 2016-01-13 | vis: reindent :-command definitions | Marc André Tanner | 1 | -26/+26 | |
| 2016-01-13 | vis: implement :map-window and :unmap-window | Marc André Tanner | 1 | -5/+24 | |
| They allow per window run time configurable key bindings. | |||||
| 2016-01-13 | vis: allow :-commands containing a hyphen | Marc André Tanner | 1 | -1/+1 | |
| 2016-01-13 | vis: implement :map and :unmap | Marc André Tanner | 1 | -0/+77 | |
| Remember that vis' bindings are always recursive. Hence if you do stupid things you will get yourself into an endless loop. | |||||
| 2016-01-13 | vis: cleanup key binding definitions | Marc André Tanner | 1 | -17/+7 | |
| This removes the tree based mode structures and instead merges all keybindings in flat modes which uses some more memory but will allow (per mode) run-time configurable key bindings. Make sure to update/remove config.h. | |||||
| 2016-01-13 | Add -pedantic to debug CFLAGS and fix resulting warnings | Marc André Tanner | 1 | -1/+1 | |
| 2015-12-26 | vis: refactor Lua integration | Marc André Tanner | 1 | -0/+2 | |
| Lua support can now be disabled at compile time using: $ make CONFIG_LUA=0 This commit also adds an initial Lua API and provides a few default hooks. We now also require Lua >= 5.2 due to the uservalue constructs. In principle the same functionality could be implemented using function environments from Lua 5.1. | |||||
| 2015-11-28 | vis: add namespace prefix for MARK_SELECTION_{START,END} | Marc André Tanner | 1 | -4/+4 | |
| 2015-11-28 | view: remove ViewEvent infrastructure | Marc André Tanner | 1 | -1/+1 | |
| The only used event handler was used to update the '< and '> marks which is now taken care of by the leave handler of the visual modes. | |||||
| 2015-11-27 | vis: close correct file descriptor upon failure in filter command | Marc André Tanner | 1 | -2/+2 | |
| 2015-11-23 | vis: use file open dialog for all directories | Marc André Tanner | 1 | -2/+6 | |
| 2015-11-08 | Remove trailing white space from source files | Marc André Tanner | 1 | -5/+5 | |
| 2015-11-08 | vis: implement :set colorcolumn | Marc André Tanner | 1 | -0/+5 | |
| 2015-11-08 | vis: implement :set theme | Marc André Tanner | 1 | -0/+9 | |
| 2015-11-08 | vis: implement :set cursorline | Marc André Tanner | 1 | -0/+11 | |
| 2015-11-08 | vis: experimental support for lua/lpeg based syntax highlighting | Marc André Tanner | 1 | -1/+1 | |
| The lua based lexers are searched in the following order: $VIS_PATH/lexers $HOME/.vis/lexers /usr/share/vis/lexers followed by the standard lua package.path | |||||
| 2015-11-08 | vis: remove regex based syntax highlighting | Marc André Tanner | 1 | -11/+6 | |
| 2015-11-07 | vis: move :-commands into their own file | Marc André Tanner | 1 | -0/+1064 | |
