aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
AgeCommit message (Collapse)AuthorFilesLines
2015-08-15Improve shell highlightingDmitry Bogatov1-1/+7
* lower case variables names are now recognized * special variables ($?, $*, etc) are treated specially * non-sense, like ${foo is not treated as variable reference anymore
2015-08-06Add APL syntax highlighting.David B. Lamkins1-0/+35
2015-08-06vis: implement gv to restore last selectionMarc André Tanner1-0/+1
2015-08-06vis: implement al and il text objectsMarc André Tanner1-0/+2
2015-08-06vis: implement gp and gP add count support to put operationsMarc André Tanner1-2/+4
2015-08-02vis: use I and A instead of CTRL-O for new cursors in visual modeMarc André Tanner1-1/+2
I and A creates a new cursor at start/end of every selected line.
2015-08-02vis: add text objects `af` and `if`Marc André Tanner1-0/+2
They try to match C-like function definitions. The inner variant only contains the function body.
2015-08-02vis: add motions [[, [], ][, ]]Marc André Tanner1-0/+4
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-01vis: support `ae` and `ie` text objectsMarc André Tanner1-0/+2
2015-07-31vis: cleanup handling of charwise/linewise motionsMarc André Tanner1-2/+2
Also text objects in visual mode should now work better.
2015-07-28vis: use multiple cursor/selection infrastructureMarc André Tanner1-0/+5
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-28vis: try to align cursors on the same column with CTRL-AMarc André Tanner1-0/+1
2015-07-28vis: CTRL+J and CTRL+K creates a new cursor on the line below/aboveMarc André Tanner1-0/+2
2015-07-28vis: ESC in normal mode clears all cursorsMarc André Tanner1-0/+1
2015-07-28vis: add an operator to create new cursorsMarc André Tanner1-0/+1
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-26vis: add infrastructure to support multiple cursors/selectionsMarc André Tanner1-7/+7
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-21ui: further separate curses related user interface codeMarc André Tanner1-12/+12
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-09ui: abstract curses related special keys awayMarc André Tanner1-6/+6
2015-07-09ui: unify backspace handlingMarc André Tanner1-9/+4
2015-07-03Add :show command to display special symbols for whitespacesMarc André Tanner1-0/+19
Enable/disable by setting to 0/1 respectively: :set show spaces=0 tabs=0 newlines=1
2015-06-30Cleanup insert/replace mode input handlingMarc André Tanner1-1/+1
View should only display the file content, but not modify it.
2015-06-27Make :earlier and :later accept arguments similar to vimMarc André Tanner1-2/+2
Currently the following arguments are accepted: {count} Go to older text state {count} times. {N}s Go to older text state about {N} seconds before. {N}m Go to older text state about {N} minutes before. {N}h Go to older text state about {N} hours before. {N}d Go to older text state about {N} days before
2015-06-27Hook up :-commands & keybindings for earlier/laterRyan Chipman1-0/+4
2015-05-17Implement :r and :r! in terms of filter commandsMarc André Tanner1-1/+1
2015-05-17Filter command :!Marc André Tanner1-0/+1
If no range is given then stdin is passed through which allows interactive usage as in :!ls -1 *.c | slmenu For this to work the command needs to use stderr for its user interface and write any data for vis to stdout.
2015-04-22More renames, no functional changesMarc André Tanner1-12/+12
Win -> View, window_* -> view_*
2015-04-22More renaming vis->win->view instead of vis->win->winMarc André Tanner1-8/+8
2015-04-22Better variable naming (VisText -> File)Marc André Tanner1-4/+4
Therefore vis->win->text->data becomes vis->win->file->text.
2015-04-21Implement ';' and ','Marc André Tanner1-0/+2
This fixes #45
2015-04-15Highlight null directive.noname1-1/+1
2015-04-12Add javascript syntax highlightingJohn W. Trengrove1-0/+27
2015-04-11Recognize g~ as case swap operatorMarc André Tanner1-0/+1
2015-04-11Remove global mode stateMarc André Tanner1-2/+2
Once again show mode in window status bar.
2015-04-11Move structs to editor.h remove global action{,_prev}Marc André Tanner1-5/+5
2015-04-11Eliminate global state for repetition of last modificationMarc André Tanner1-4/+4
2015-04-07Show cursor in visual modeMarc André Tanner1-0/+2
2015-04-07Add basic Lua syntax highlighting supportMarcel Rodrigues1-0/+45
2015-04-05Introduce new struct VisTextMarc André Tanner1-4/+4
This adds yet another layer of indirection and stores vi related stuff which is associated with a given text but shared among all windows displaying it (e.g. marks). This will also help if one wants to keep texts arround which aren't currently displayed.
2015-04-03Preliminary user interface separationMarc André Tanner1-22/+0
In theory only ui-curses.[hc] should depend on curses, however in practice keyboard input is still handled in vis.c. Furthermore the syntax definitions as well as keyboard bindings and selection code in window.c still depends on some curses constants. There is also a slight regression in that the window status bar does not show the current mode name. This and related global state should be eliminated in the future.
2015-04-03Fixed multiline comment regexp.noname1-4/+4
Comments like "/***/" with odd number of asterisks are handled like normal comments now. Previously they were handled like unfinished comments.
2015-03-31Add hack to make CTRL-w CTRL-h workMarc André Tanner1-1/+2
2015-03-30Add additional key mappings for window switchingOdin Dutton1-0/+4
2015-03-24Implement 'o' in visual mode: go to other end of selection.Marcel Rodrigues1-0/+1
2015-03-20Add additional key mappings for window switchingMarc André Tanner1-0/+3
This closes #35 and closes #36.
2015-03-18Cleanup :-command implementationMarc André Tanner1-18/+22
Everything that is a unique prefix should now be allowed for a given command.
2015-02-06Delete key in visual mode should delete selectionMarc André Tanner1-0/+1
This might or might not work depending on terminfo entries etc.
2015-01-18Fix :saveas command definitionMarc André Tanner1-1/+1
2015-01-17Introduce basic PHP syntax highlighting supportJörg Alberto1-0/+43
2015-01-14Remove nano like frontend for nowMarc André Tanner1-71/+0
If time permits I still want to experiment with different editing paradigms and write a proper nano/sandy/sam frontend but at the moment it is just bitrotting and not very useful.
2015-01-14Accept unique prefixes as :commandsMarc André Tanner1-17/+17
The proper way to do this would be to use a trie, however the ugly regexes do the trick for now.