| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2016-11-22 | vis-lua: also emit save events when writing to stdout | Marc André Tanner | 1 | -0/+6 | |
| The path argument will be nil. | |||||
| 2016-11-22 | vis-lua: introduce pre-save hook | Marc André Tanner | 8 | -0/+32 | |
| The first argument is the file object while the second argument denotes the full path to which it will be written. Path might be `nil` if the file is going to be written to stdout. The Lua function is expected to return a boolean value indicating whether the write operation should proceed or be aborted. | |||||
| 2016-11-22 | vis-lua: pass path as second argument to file_save_post event hook | Marc André Tanner | 6 | -11/+17 | |
| The passed path can be different from file.name for instance when opening a file `a` and then doing `:w b` where file.name will be the former and path the latter. | |||||
| 2016-11-21 | vis-lua: rename file_save event to file_save_post | Marc André Tanner | 8 | -12/+12 | |
| Indicating that the event is triggered *after* a successfull write. | |||||
| 2016-11-21 | test: update | Marc André Tanner | 1 | -5/+12 | |
| 2016-11-21 | sam: change default addresses used for commands in normal mode | Marc André Tanner | 2 | -14/+18 | |
| Except for special commands like `w` and `wq` treat the cursor as an implicit one character selection to which the command is applied. | |||||
| 2016-11-19 | vis: keep track of whether "0 stores line wise data | Marc André Tanner | 1 | -1/+3 | |
| 2016-11-19 | sam: change default address of "s" command to current line | Marc André Tanner | 1 | -1/+1 | |
| 2016-11-19 | test: udpdate | Marc André Tanner | 1 | -7/+5 | |
| 2016-11-19 | vis: make gg and G move to first non-blank character of line | Marc André Tanner | 1 | -5/+15 | |
| 2016-11-19 | vis: reformat motion definition block to avoid overly long lines | Marc André Tanner | 1 | -67/+239 | |
| No functional changes. | |||||
| 2016-11-19 | build: install plan9port on Mac OS X builds | Marc André Tanner | 1 | -0/+6 | |
| Might be enough to get the sam based tests to run. | |||||
| 2016-11-19 | build: disable codecov comments in pull requests | Marc André Tanner | 1 | -0/+2 | |
| Avoid the additional spam for now. | |||||
| 2016-11-19 | Merge branch 'man' of https://github.com/michaelforney/vis | Marc André Tanner | 1 | -3/+3 | |
| 2016-11-18 | Fix date format string in man pages | Michael Forney | 1 | -3/+3 | |
| %m is the decimal month value, not the day of the month. | |||||
| 2016-11-18 | Fix date command in man page installation | Michael Forney | 1 | -3/+3 | |
| With a single $, make will try to expand it as a variable. | |||||
| 2016-11-18 | Update scheme.lua | Luiz de Milon | 1 | -0/+1 | |
| The scheme syntax highlighting wasn't highlighting base functions, this fixes it. | |||||
| 2016-11-17 | Add code coverage badge to the README | Marc André Tanner | 1 | -0/+1 | |
| 2016-11-17 | test: update | Marc André Tanner | 1 | -5/+7 | |
| 2016-11-17 | build: cache external source tarballs on Travis CI | Marc André Tanner | 1 | -0/+7 | |
| 2016-11-17 | build: add automated code coverage via Travis CI and codecov.io | Marc André Tanner | 2 | -11/+31 | |
| 2016-11-17 | bulid: run individual tests directly from .travis.yml | Marc André Tanner | 1 | -1/+5 | |
| 2016-11-16 | ui: work around libtermkey bug when stdin is /dev/null | Marc André Tanner | 1 | -20/+36 | |
| Libtermkey tries to write a terminal initialization sequence even when stdin is not a terminal as is the case when running `vis < /dev/null` or within the Travis CI environment. The broken code is in libtermkey's driver-ti.c function `start_driver`: /* There's no point trying to write() to a pipe */ if(fstat(tk->fd, &statbuf) == -1) return 0; if(S_ISFIFO(statbuf.st_mode)) return 1; Instead they should simply be using isatty(3). As a workaround we catch the resulting EBADF failure and try to re-open /dev/tty as stdin. If this fails too (as is the case in the Mac OS X Travis CI runner) create an abstract termkey instance instead. In this state vis will not be able to consume any input and will instead spin with 100% CPU usage in the mainloop. This is solely done to make the Lua tests, which control vis through other means, work within the Travis CI environment. | |||||
| 2016-11-16 | build: add automated Mac OS X builds via Travis CI | Marc André Tanner | 1 | -3/+37 | |
| 2016-11-16 | vis: treat vis_keys_feed input like a macro replay | Marc André Tanner | 2 | -1/+9 | |
| We need to push keys individually to the input queue such that the state machine can advance and record keys into the operator macro if necessary. Previously feeding the following input: isome text<Escape>. would not work as expected because the complete key stream was pushed to the input queue at the same time during which the operator macro was not yet active. Thus the dot command at the end would have nothing to repeat. | |||||
| 2016-11-16 | sam: use default shell command for <, >, | and ! when applicaple | Marc André Tanner | 3 | -3/+12 | |
| If the shell command is omitted, the last shell command (of any type) is substituted. The most recently used shell command is stored in a new register currently named `!`. | |||||
| 2016-11-16 | sam: support an empty regex as an alias for the most recently used one | Marc André Tanner | 1 | -3/+2 | |
| As in sam if an empty regex // is provided we substitute in the most recently used one. 0/regexp/// Will match the second occurrence in the fie. | |||||
| 2016-11-15 | test: update | Marc André Tanner | 1 | -5/+5 | |
| 2016-11-15 | sam: make `:w` and `:wq` honor their given range | Marc André Tanner | 1 | -17/+27 | |
| As in visual mode write commands have to be forced with ! if the changes are destructive i.e. only parts of the file are written. | |||||
| 2016-11-15 | sam: `e`, `q`, `X`, `Y`, `!` and all vi commands should not take addresses | Marc André Tanner | 1 | -23/+23 | |
| 2016-11-15 | sam: reformat command definition block to avoid overly long names | Marc André Tanner | 1 | -50/+131 | |
| No functional changes. | |||||
| 2016-11-15 | Fix documentation regarding Lua paths in README and manual page | Marc André Tanner | 2 | -5/+6 | |
| Wether `/usr/local/share/vis` or `/usr/share/vis` is used depends on how the configure script was invoked. However, both are never used at the same time. This section should be completely reworked at some point. | |||||
| 2016-11-15 | vis: defer UI initialization and overhaul argument parsing | Marc André Tanner | 5 | -91/+98 | |
| Do not initalize curses UI before it is actually needed. Move vis command line argument parsing logic into main.c. This fixes `vis -v` output and exit status. Fix #351 | |||||
| 2016-11-15 | vis: overhaul and unify event generation code | Marc André Tanner | 3 | -29/+95 | |
| Add another layer of indirection, move actual event generation code to a dedicated function. | |||||
| 2016-11-15 | vis: generalize special stdin handling | Marc André Tanner | 5 | -8/+21 | |
| In preparation to move argument parsing code out of vis.c. | |||||
| 2016-11-15 | vis: move initial theme loading code to lua | Marc André Tanner | 4 | -19/+2 | |
| 2016-11-14 | vis-lua: add vis.ui.colors denoting the number of available colors | Marc André Tanner | 4 | -0/+34 | |
| 2016-11-14 | ui: remove unused function | Marc André Tanner | 2 | -11/+0 | |
| 2016-11-13 | build: do not clutter source tree with AppVeyor configuration file | Marc André Tanner | 1 | -0/+0 | |
| 2016-11-13 | test: update | Marc André Tanner | 1 | -5/+5 | |
| 2016-11-11 | lexers/fstab: add systemd-specific mount options | Christian Hesse | 1 | -0/+9 | |
| 2016-11-11 | test: adapt tests to changes in the Lua API | Marc André Tanner | 1 | -5/+5 | |
| 2016-11-11 | vis: cleanup `:set option` argument parsing logic | Marc André Tanner | 1 | -15/+5 | |
| No longer accept "no" prefix for boolean options. Reject too many option values (use proper quoting to specify values containing spaces). | |||||
| 2016-11-11 | vis: add `:set shell` option | Marc André Tanner | 3 | -0/+21 | |
| 2016-11-11 | vis: attempt to use the default shell of the user to execute external commands | Marc André Tanner | 2 | -2/+12 | |
| We first try $SHELL and then fall back to the shell field of the password file entry (/etc/passwd). | |||||
| 2016-11-11 | sam: fix range for line zero | Marc André Tanner | 1 | -0/+2 | |
| :0 < echo "Should be inserted at the start of the file" :1 < echo "Should replace the first line" | |||||
| 2016-11-10 | vis: fix compilation with Lua support disabled | Marc André Tanner | 1 | -1/+1 | |
| 2016-11-10 | vis: change default status bar indication for Windows style line endings | Marc André Tanner | 2 | -4/+4 | |
| 2016-11-10 | vis-lua: change misnamed attribute values of `file.newlines` | Marc André Tanner | 5 | -14/+14 | |
| Also rename underlying C code. | |||||
| 2016-11-10 | vis: split `:set show <option>` into separate options | Marc André Tanner | 3 | -36/+34 | |
| It was the only command option which needed `=` to assign a value to. This unifies the argument parsing logic and adds the possibility to specify a per-option help text. You might want to adapt your visrc.lua configuration accordingly. | |||||
