| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2015-10-05 | vis: convert mark handling to new input handling code | Marc André Tanner | 1 | -12/+37 | |
| 2015-10-05 | vis: convert insertion of register from insert mode | Marc André Tanner | 1 | -4/+7 | |
| 2015-10-05 | vis: convert register specification to new input handling code | Marc André Tanner | 1 | -2/+10 | |
| 2015-10-05 | vis: convert macro recording / replay to new input handling code | Marc André Tanner | 1 | -16/+19 | |
| 2015-10-05 | vis: convert insert verbatim to new input handling code | Marc André Tanner | 1 | -18/+19 | |
| 2015-10-05 | vis: convert to/till movements to new input handling | Marc André Tanner | 1 | -7/+5 | |
| 2015-10-05 | vis: adapt r (replace) to new input handling | Marc André Tanner | 1 | -6/+7 | |
| 2015-10-05 | vis: change key binding function prototypes | Marc André Tanner | 1 | -189/+252 | |
| The idea is to work more like a finite state machine. Every function gets an additional argument keys which holds the already read keyboard input. The return value of the functions should point to the first not consumed key. A return value of NULL indicates that more input is needed. The function will be called again from the editor core when more input is available. These changes are mostly mechanical and in many cases not optimal, they will be cleaned up in further commits. | |||||
| 2015-10-05 | vis: rework input handling using libtermkey | Marc André Tanner | 1 | -83/+95 | |
| Key bindings are now specified as symbolic key strings, this will eventually allow run time configurable key mappings. This introduces a bulid time dependency on libtermkey which can be found at: http://www.leonerd.org.uk/code/libtermkey/ | |||||
| 2015-08-09 | vis: fix :edit! command | Marc André Tanner | 1 | -2/+3 | |
| It now correctly re-edits the file (i.e reloads it from disk). | |||||
| 2015-08-09 | vis: fix repeated use of file open dialog | Marc André Tanner | 1 | -1/+1 | |
| 2015-08-09 | vis: cancelling wildcard open causes crash | David B. Lamkins | 1 | -1/+1 | |
| Closes #65 | |||||
| 2015-08-08 | text: rename some functions to improve consistency | Marc André Tanner | 1 | -4/+4 | |
| 2015-08-08 | text: introduce helper function text_delete_range | Marc André Tanner | 1 | -5/+4 | |
| 2015-08-07 | vis: limit to/till movements to current line | Marc André Tanner | 1 | -2/+2 | |
| 2015-08-06 | vis: implement gv to restore last selection | Marc André Tanner | 1 | -0/+8 | |
| 2015-08-06 | vis: implement al and il text objects | Marc André Tanner | 1 | -0/+4 | |
| 2015-08-06 | vis: implement gp and gP add count support to put operations | Marc André Tanner | 1 | -13/+42 | |
| 2015-08-02 | vis: use file open dialog also for :edit | Marc André Tanner | 1 | -1/+1 | |
| 2015-08-02 | vis: use I and A instead of CTRL-O for new cursors in visual mode | Marc André Tanner | 1 | -2/+16 | |
| I and A creates a new cursor at start/end of every selected line. | |||||
| 2015-08-02 | vis: add text objects `af` and `if` | Marc André Tanner | 1 | -0/+4 | |
| They try to match C-like function definitions. The inner variant only contains the function body. | |||||
| 2015-08-02 | vis: add motions [[, [], ][, ]] | Marc André Tanner | 1 | -0/+8 | |
| They behave not like in vim, but instead try to find the start/end of C-like function definitions. The first character stands for the direction [ for backwards, ] for forwards. The second character denotes the start [ or end ] respectively. | |||||
| 2015-08-01 | vis: support `ae` and `ie` text objects | Marc André Tanner | 1 | -0/+4 | |
| 2015-08-01 | view: hide API to free main cursor | Marc André Tanner | 1 | -1/+1 | |
| 2015-07-31 | vis: cleanup handling of charwise/linewise motions | Marc André Tanner | 1 | -80/+55 | |
| Also text objects in visual mode should now work better. | |||||
| 2015-07-28 | vis: fix one more coverity scan warning | Marc André Tanner | 1 | -2/+2 | |
| With the current code this will never cause a NULL dereference since it is checked at the call site. However it makes sense to check it anyway. | |||||
| 2015-07-28 | vis: fix bugs uncovered by coverity scan | Marc André Tanner | 1 | -2/+4 | |
| 2015-07-28 | vis: fix join operator | Marc André Tanner | 1 | -6/+9 | |
| Only skip last line break if range comes from linewise visual mode. | |||||
| 2015-07-28 | vis: pass cursor to operator implementations | Marc André Tanner | 1 | -0/+1 | |
| 2015-07-28 | text-object: introduce utility function text_range_is_linewise | Marc André Tanner | 1 | -1/+1 | |
| 2015-07-28 | vis: use multiple cursor/selection infrastructure | Marc André Tanner | 1 | -0/+61 | |
| This commits introduces the following keybindings, in normal mode: CTRL-N select word the cursor is currently over, switch to visual mode CTRL-P remove least recently added cursor ESC if a selection is active, clear it. Otherwise dispose all but the primary cursor. In visual mode: CTRL-N create new cursor and select next word matching current selection CTRL-X clear (skip) current selection, but select next matching word CTRL-P remove least recently added cursor | |||||
| 2015-07-28 | vis: do not move cursor in multicursor mode after undo/redo | Marc André Tanner | 1 | -2/+6 | |
| 2015-07-28 | vis: try to align cursors on the same column with CTRL-A | Marc André Tanner | 1 | -0/+19 | |
| 2015-07-28 | vis: CTRL+J and CTRL+K creates a new cursor on the line below/above | Marc André Tanner | 1 | -0/+15 | |
| 2015-07-28 | vis: ESC in normal mode clears all cursors | Marc André Tanner | 1 | -3/+12 | |
| 2015-07-28 | vis: add per cursor registers | Marc André Tanner | 1 | -2/+8 | |
| 2015-07-28 | vis: add an operator to create new cursors | Marc André Tanner | 1 | -0/+15 | |
| The operator creates a new cursor at the start of every line covered by the given range. It is currently only available as CTRL+O in visual mode. | |||||
| 2015-07-28 | text: move utility functions to separate file | Marc André Tanner | 1 | -0/+1 | |
| 2015-07-26 | vis: add infrastructure to support multiple cursors/selections | Marc André Tanner | 1 | -111/+106 | |
| This cleans up the existing selection handling code and adds the necessary bits to eventually support multiple cursors/selections. The cursor position is kept track of using marks, which means retrieving the cursor position is no longer a constant time operation. Furthermore the terminal cursor is no longer used, instead the whole window is redrawn after every cursor movement. | |||||
| 2015-07-21 | ui: further separate curses related user interface code | Marc André Tanner | 1 | -2/+2 | |
| By now ui-curses.[hc] are the only files dealing directly with curses related functions. Integration of a proper mainloop is still pending. | |||||
| 2015-07-20 | vis: improve insertion of verbatim characters via CTRL-V in insert mode | Marc André Tanner | 1 | -7/+58 | |
| Recognized formats are: CTRL-V nnn decimal value nnn CTRL-V onnn or CTRL-V Onnn octal value nnn CTRL-V xnn or CTRL-V Xnn hex value nn CTRL-V unnnn Unicode codepoint nnnn CTRL-V Unnnnnnnn Unicode codepoint nnnnnnnn Leading zeros can be omitted, any illegal character for the given format will be ignored and terminates the numerical code. | |||||
| 2015-07-19 | vis: handle file truncation more gracefully | Marc André Tanner | 1 | -0/+35 | |
| If we use the file / virtual memory system as cache (using mmap(2)) and another process truncates the file we are editing, we have a problem. All we can do is catch the resulting SIGBUS, close the corresponding window and print a warning message. To test this use: $ dd if=/dev/zero of=TEST bs=8M count=1 $ vis TEST :! echo TRUNCATE > TEST | |||||
| 2015-07-11 | vis: rename struct member to avoid conflict with standard library | Marc André Tanner | 1 | -2/+2 | |
| Closes #60 | |||||
| 2015-07-10 | vis: add a file open dialog | Marc André Tanner | 1 | -19/+58 | |
| For this to work make sure you have vis-open and slmenu or dmenu somewhere in $PATH. For now the file dialog is shown for :open, :split and :vsplit when the argument is either . (a dot) or looks like a file pattern. For example :open *.[ch] will show a listing of all C source and header files in the current directory. Use a fuzzy search to make your choice. | |||||
| 2015-07-10 | vis: fix detection of file changes outside the editor | Marc André Tanner | 1 | -2/+2 | |
| 2015-07-09 | ui: move terminal state handling code to ui specific file | Marc André Tanner | 1 | -3/+2 | |
| 2015-07-09 | ui: move input handling code to ui specific files | Marc André Tanner | 1 | -28/+1 | |
| 2015-07-09 | vis: improve handling of linewise deletion at end of file | Marc André Tanner | 1 | -3/+6 | |
| dd on the last line now moves the cursor to the start of the preceding line. | |||||
| 2015-07-08 | vis: make J (join) behave like in vim when given a count | Marc André Tanner | 1 | -0/+2 | |
| 2015-07-08 | vis: only read file content from stdin if - was specified | Marc André Tanner | 1 | -1/+1 | |
| This allows to feed keyboard input from a file as in: cat keyboard-input | vis input-file which will be used for testing purposes. | |||||
