| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2016-05-22 | Add a newline at the end of the file | Silvan Jegen | 1 | -1/+1 | |
| This is encouraged by the ISO C99 standard. | |||||
| 2016-05-22 | Remove unneeded header import | Silvan Jegen | 1 | -1/+0 | |
| 2016-05-22 | vis: refactor status line handling | Marc André Tanner | 1 | -8/+10 | |
| Make window status bar content configurable via Lua. | |||||
| 2016-05-22 | vis: add function to change window statusbar content | Marc André Tanner | 1 | -0/+4 | |
| 2016-05-22 | vis: add functions to query window size | Marc André Tanner | 1 | -0/+8 | |
| 2016-05-22 | vis: consider :set horizon setting when syntax highlighting | Marc André Tanner | 1 | -1/+2 | |
| 2016-05-22 | vis: move syntax highlighting to pure Lua code | Marc André Tanner | 1 | -2/+27 | |
| 2016-05-18 | vis: add an interactive mode to vis_pipe{,_collect}(...) | Marc André Tanner | 1 | -10/+8 | |
| 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-18 | vis: introduce vis_pipe_collect utility function | Marc André Tanner | 1 | -0/+19 | |
| 2016-05-10 | Revert "vis: clean up interaction between vis and ui" | Marc André Tanner | 1 | -10/+4 | |
| This caused issues on OpenBSD where it crashed the terminal. Also on Mac OS X suspend via ^Z (Ctrl-Z) was missing a \r i.e. the shell prompt was not properly redrawn. While in principle user interfaces should not have to depend on libtermkey, in practice this won't be an issue unless we are adding a non-terminal based UI (which won't happen anytime soon). This reverts commit 8f92b98848f9366e78c7aa824615bade83971513. Close #311 | |||||
| 2016-05-10 | vis: improve cursor placement at EOF with enabled auto indent | Marc André Tanner | 1 | -1/+1 | |
| Close #314 | |||||
| 2016-05-08 | Fix autoindent when using O | Richard Burke | 1 | -0/+4 | |
| 2016-05-04 | vis: enable large file optimizations for files with long lines | Marc André Tanner | 1 | -19/+0 | |
| 2016-05-04 | vis: clean up interaction between vis and ui | Marc André Tanner | 1 | -4/+10 | |
| A concrete user interface implementation should not have to depend on libtermkey. Therefore the vis core now uses an independent instance to parse keys. | |||||
| 2016-05-04 | vis: make j and k a linewise inclusive motion | Marc André Tanner | 1 | -1/+2 | |
| They behave like an inclusive motion, but only if they are also linewise (which they are by default). This should make `yjp` and `ykp` yank both the current and the next/previous line when the cursor is at the start of a line. See also 532f52e9e52b98dc5749396f7353295418e0227a and #237 | |||||
| 2016-05-01 | vis: delay start event until we are fully initialized | Marc André Tanner | 1 | -7/+5 | |
| 2016-05-01 | vis: further cleanup input handling, introduce vis_keys_feed API | Marc André Tanner | 1 | -14/+20 | |
| 2016-05-01 | vis: cleanup input handling, improve macro replay | Marc André Tanner | 1 | -34/+37 | |
| 2016-04-29 | vis: do not crash when processing :-commands and no window is active | Marc André Tanner | 1 | -1/+3 | |
| 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-28 | vis: unmap all mapped prefixes if a new mapping is forced | Marc André Tanner | 1 | -2/+2 | |
| Close #271 | |||||
| 2016-04-21 | vis: add infrastructure to register custom :-commands | Marc André Tanner | 1 | -0/+1 | |
| 2016-04-21 | vis: do not lazy allocate :-commands | Marc André Tanner | 1 | -0/+2 | |
| The built in commands should always be available. | |||||
| 2016-04-20 | vis-lua: trigger start event after ui has been initialized | Marc André Tanner | 1 | -1/+3 | |
| 2016-04-20 | vis: handle termination from within win_open event gracefully | Marc André Tanner | 1 | -3/+2 | |
| 2016-04-18 | vis: use internal file to show lua errors | Marc André Tanner | 1 | -0/+3 | |
| This means no event handlers are run for it, hence there is no chance for recursive errors. | |||||
| 2016-04-18 | vis: do not run event handlers for internal files | Marc André Tanner | 1 | -3/+3 | |
| Should have been part of f50465312dbb7e8fcb2409aa691d1aea7a43c466. | |||||
| 2016-04-17 | vis: remove mapping from ' ' to <Space> | Marc André Tanner | 1 | -1/+1 | |
| This reverts part of bd1d849b2033b04a372542c59d458d4f8279c937 just use a literal space within your key mappings. Close #280 | |||||
| 2016-04-15 | vis: calculate auto indent for all cursors individually | Marc André Tanner | 1 | -6/+9 | |
| 2016-04-15 | vis: do not run registered event handlers for internal files | Marc André Tanner | 1 | -1/+1 | |
| This fixes interactive :-commands when the user has configured to set custom options vis:command(...) via the Lua win_open event handler. The problem was that the creation of the window for the command prompt would itself trigger an execution of a :-command. Upon successful completion the editor would switch to normal mode. Therefore the interactively entered command would not be applied to the correct range. | |||||
| 2016-04-14 | vis: allow mapping of <Space> | Marc André Tanner | 1 | -1/+1 | |
| One should generally use <Space> in mappings: :map! normal <Space> h except for insert/replace mode where a literal space has to be used: :map! insert " " foo | |||||
| 2016-04-13 | vis: stop repeated motions as soon as resulting position remains the same | Marc André Tanner | 1 | -1/+2 | |
| This improves responsiveness of {count}j for files with less than count lines. For huge files this will still be slow because the code tries to restore cursor position on every line before moving on to the next. Also moving up will generally be slower than downwards. Use {count}% (fastest) or or :count (slower) instead. Close #267 | |||||
| 2016-04-08 | vis: let :e recreate a window at the same location as the old one | Marc André Tanner | 1 | -0/+29 | |
| Close #224 | |||||
| 2016-04-08 | vis: cleanup window focusing code | Marc André Tanner | 1 | -8/+13 | |
| 2016-04-06 | vis: fix vi filter operators ! and = | Marc André Tanner | 1 | -4/+2 | |
| 2016-04-03 | vis: change vis_pipe API and cleanup related code | Marc André Tanner | 1 | -5/+5 | |
| 2016-04-03 | sam: unify vi(m) and sam command line | Marc André Tanner | 1 | -1/+187 | |
| 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-03-30 | array: allow arbitrarily sized array elements | Marc André Tanner | 1 | -0/+2 | |
| There exist two typical ways to use an array: 1) to hold pointers to externally allocated memory regions Use array_init(...) for initialization, an element has the size of a pointer. Use the functions suffixed with `_ptr' to manage your pointers. The cleanup function array_release_full must only be used with this type of array. 2) to hold arbitrary sized objects Use array_init_sized(...) to specify the size of a single element. Use the regular (i.e. without the `_ptr' suffix) functions to manage your objects. array_get will return a pointer to the object stored within the array. | |||||
| 2016-03-28 | vis: cleanup usage of vis_cursors_count | Marc André Tanner | 1 | -1/+1 | |
| 2016-03-25 | vis: remove __DATE__ and __TIME__ references to aid with reproducible builds | Marc André Tanner | 1 | -1/+1 | |
| 2016-03-23 | Remove identically replicated copyright comments from source files | Marc André Tanner | 1 | -15/+0 | |
| 2016-03-15 | vis: do properly replay ": and "/ registers | Marc André Tanner | 1 | -0/+7 | |
| This makes @: (and @/) work. | |||||
| 2016-03-15 | vis: slightly cleanup register related code | Marc André Tanner | 1 | -1/+1 | |
| 2016-03-13 | vis: convert gn and gN text objects to use "/ register content | Marc André Tanner | 1 | -3/+0 | |
| 2016-03-12 | vis: overhaul search related code, support "/ register | Marc André Tanner | 1 | -0/+14 | |
| 2016-02-25 | vis: use standard registers for macro recordings | Marc André Tanner | 1 | -11/+13 | |
| Also support upper case register to append to an existing macro. | |||||
| 2016-02-21 | Cleanup new line insertion code | Marc André Tanner | 1 | -10/+1 | |
| 2016-02-18 | Add infrastructure to register custom text object functions | Marc André Tanner | 1 | -2/+5 | |
| 2016-02-18 | Add infrastructure to add custom motion functions | Marc André Tanner | 1 | -0/+3 | |
| A motion function can be registered with vis_motion_register(...) the returned id (if non negative) can then be used as an argument to vis_motion(...) | |||||
| 2016-02-18 | vis: add insfrastructure to support global key mappings | Marc André Tanner | 1 | -0/+12 | |
| Except for insert/replace mode keys get translated before any key bindings are evaluated. This is useful for non-english/latin keyboard layouts. | |||||
| 2016-02-13 | Convert call sites of text_line_char_{get,set} to text_line_width_{get,set} | Marc André Tanner | 1 | -3/+2 | |
