| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2015-12-31 | Also remove vis-open when uninstalling | Marc André Tanner | 1 | -0/+1 | |
| 2015-12-31 | Add section about Lua API to README | Marc André Tanner | 1 | -0/+39 | |
| 2015-12-31 | vis-lua: implement vis.events.{start,quit} events | Marc André Tanner | 1 | -2/+11 | |
| 2015-12-31 | vis-lua: implement window.cursor.{line, col, pos} | Marc André Tanner | 1 | -0/+57 | |
| These are currently read-only properties. | |||||
| 2015-12-31 | vis-lua: implement vis.lines[..] array | Marc André Tanner | 1 | -14/+90 | |
| This allows access to specific lines of a file, array indicies/line numbers are 1 based. Read access is supported for [1, #lines] while assigning to the 0 element will insert a new line at the beginning of the file. Similarly assigning to lines[#lines+1] will add a new line at the end of the file. The returned lines will not contain any line termination characters. | |||||
| 2015-12-31 | text: let text_pos_by_lineno return EPOS if given a too large line number | Marc André Tanner | 1 | -1/+1 | |
| 2015-12-31 | text: introduce text_newline_insert | Marc André Tanner | 2 | -0/+13 | |
| 2015-12-31 | vis-lua: implement vis.open(filename) | Marc André Tanner | 1 | -0/+12 | |
| 2015-12-31 | vis-lua: rename a few functions | Marc André Tanner | 1 | -35/+50 | |
| 2015-12-31 | vis-lua: remove unnecessary casts | Marc André Tanner | 1 | -8/+8 | |
| 2015-12-29 | #111 command line prompt options defaults | Erlend Fagerheim | 1 | -10/+14 | |
| 2015-12-29 | lexer: add some meta data to newly added lexers | Marc André Tanner | 4 | -3/+6 | |
| 2015-12-29 | vis: fix default lua package.path and support $XDG_CONFIG_HOME | Marc André Tanner | 2 | -14/+23 | |
| The ordered list of paths for startup and lexer files is: - $VIS_PATH/{,lexers} - $XDG_CONFIG_HOME/vis/{,lexers} (defaulting to $HOME/.config/vis/{,lexers}) - /usr/local/share/vis/{,lexers} - /usr/share/vis/{,lexers} - package.path (standard lua search path) | |||||
| 2015-12-29 | Clean up build system | Marc André Tanner | 3 | -47/+41 | |
| 2015-12-29 | view: improve cursor handling at end of file | Marc André Tanner | 1 | -1/+1 | |
| Holding down <Backspace> at the end of the file should not keep the cursor on the middle line of the window. | |||||
| 2015-12-29 | view: fix new line handling at the end of visible area | Marc André Tanner | 1 | -1/+1 | |
| The last new line is added to the cell matrix but failure is reported to indicate that there is no space left for further characters. | |||||
| 2015-12-29 | view: fix view [start,end] range calculation | Marc André Tanner | 1 | -1/+1 | |
| This for example now correctly displays tab characters at the very start of the visible area. | |||||
| 2015-12-28 | Update README | Marc André Tanner | 1 | -287/+272 | |
| 2015-12-26 | vis: move file type detection to visrc.lua | Marc André Tanner | 3 | -120/+128 | |
| 2015-12-26 | vis: change Lua package.path to also include vis base directory | Marc André Tanner | 1 | -8/+12 | |
| 2015-12-26 | vis: refactor Lua integration | Marc André Tanner | 13 | -273/+746 | |
| 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-12-26 | Initialize enum values to the public API ones | Silvan Jegen | 1 | -2/+2 | |
| 2015-12-20 | vis: fix forceful redraw <C-l> | Marc André Tanner | 5 | -1/+13 | |
| 2015-12-20 | Make normal mode 'S' behave like in Vim | Silvan Jegen | 1 | -1/+1 | |
| 2015-12-03 | lexer: add lexer for Faust | David B. Lamkins | 2 | -0/+58 | |
| Faust is a DSP (digital signal processing) programming language. See http://faust.grame.fr/ Closes #125 | |||||
| 2015-12-02 | vis: make <C-w>w an alias for <C-w>j | Marc André Tanner | 1 | -0/+1 | |
| 2015-11-28 | vis: add namespace prefix for MARK_SELECTION_{START,END} | Marc André Tanner | 4 | -12/+12 | |
| 2015-11-28 | vis: do not switch to normal mode when leaving ? and / prompt | Marc André Tanner | 1 | -1/+1 | |
| 2015-11-28 | view: remove ViewEvent infrastructure | Marc André Tanner | 5 | -28/+5 | |
| 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-28 | vis: improve switching to prompt mode | Marc André Tanner | 4 | -14/+26 | |
| A call to vis_prompt_show will now automatically switch to prompt mode. Within the prompt leave/enter handlers the focused window (vis->win) will still point to the document window not the one referring to the prompt. The selection marks '< and '> are now only updated when a visual mode is left. | |||||
| 2015-11-28 | vis: implement = operator in terms of fmt(1) | Marc André Tanner | 2 | -0/+7 | |
| 2015-11-28 | vis: add cmd argument to VIS_OP_FILTER | Marc André Tanner | 4 | -8/+34 | |
| 2015-11-28 | view: preserve column position when moving across lines | Marc André Tanner | 1 | -8/+18 | |
| 2015-11-28 | view: remove special treatment of tabs in cell matrix | Marc André Tanner | 2 | -10/+3 | |
| 2015-11-27 | vis: improve cursor alignment command <C-a> | Marc André Tanner | 3 | -6/+22 | |
| 2015-11-27 | vis: improve creation of new cursors on line above/below | Marc André Tanner | 1 | -6/+6 | |
| Use view cell matrix data to create the cursors on more appropriate positions. Closes #108 | |||||
| 2015-11-27 | vis: implement filter operator ! | Marc André Tanner | 6 | -5/+33 | |
| It currently works by switching to visual mode and then opening the command prompt with a default range which refers to the currently active selection. | |||||
| 2015-11-27 | vis: change semantics of operator implementation return value | Marc André Tanner | 1 | -3/+3 | |
| The return value of operator implementations denoting the new cursor position is interpreted in the following way: - EPOS dispose the cursor - [0, text_size] place the cursor accordingly - otherwise i.e. > text_size keep the cursor position unchanged The newly introduced last case is useful for operators which are called from visual mode, but do not want to change the current selection. | |||||
| 2015-11-27 | vis: close correct file descriptor upon failure in filter command | Marc André Tanner | 1 | -2/+2 | |
| 2015-11-23 | vis: fix compiler warnings related to `ga` implementation | Marc André Tanner | 1 | -1/+2 | |
| 2015-11-23 | vis: use file open dialog for all directories | Marc André Tanner | 2 | -2/+7 | |
| 2015-11-23 | vis: implement ga | Marc André Tanner | 2 | -0/+32 | |
| 2015-11-23 | Cast argument to ctype.h is* functions to unsigned char | Marc André Tanner | 2 | -37/+37 | |
| The signedness of char is implemenation defined, calling the is* type of functions with negative values leads to undefined behaviour. | |||||
| 2015-11-23 | vis: improve replacement of combining characters | Marc André Tanner | 3 | -6/+32 | |
| 2015-11-23 | view: fix cell placement of combining characters | Marc André Tanner | 2 | -9/+20 | |
| They now belong to the cell holding the corresponding regular (i.e. non-combining) character. This also means that at least in theory a cell could hold arbitrary amounts of data, in practice it is limited to 16 bytes. | |||||
| 2015-11-23 | text: introduce functions to iterate over graphemes | Marc André Tanner | 3 | -7/+65 | |
| They currently consider any character for which wcwidth(3) return 0 as a combining character. | |||||
| 2015-11-20 | buffer: tweak memory allocation strategy | Marc André Tanner | 1 | -4/+1 | |
| Do not simply double the requested size. Instead take the maximum of - the requested size - double the current buffer size This will use less memory for large register operations (e.g. deleting the whole file). | |||||
| 2015-11-20 | text: get modification time after replacing file content in place | Marc André Tanner | 1 | -0/+2 | |
| At the start of text_save_range we stat(2) the file to check whether we have currently mmap(2)-ed it. Then we proceed to write the new file content which changes modification time. Hence we have to stat(2) again to retrieve it. This should fix spurious warnings about file changes outside the editor when editing e.g. symlinked files. | |||||
| 2015-11-19 | vis: improve <C-p> in visual mode | Marc André Tanner | 1 | -0/+1 | |
| Make sure that the (new) primary cursor is visible after removing the last matched selection. | |||||
| 2015-11-19 | vis: fix <C-n> in visual mode for partial matches | Marc André Tanner | 1 | -1/+1 | |
| We need to properly skip partial matches (i.e. not whole words). Closes #118 | |||||
