aboutsummaryrefslogtreecommitdiff
path: root/vis.h
AgeCommit message (Collapse)AuthorFilesLines
2016-01-13Implement command/search prompt history as a regular fileMarc André Tanner1-11/+1
2016-01-13vis: add infrastructure to support per window key bindingsMarc André Tanner1-0/+2
2016-01-13vis: cleanup key binding definitionsMarc André Tanner1-10/+2
This removes the tree based mode structures and instead merges all keybindings in flat modes which uses some more memory but will allow (per mode) run-time configurable key bindings. Make sure to update/remove config.h.
2015-12-26vis: refactor Lua integrationMarc André Tanner1-1/+11
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-20vis: fix forceful redraw <C-l>Marc André Tanner1-0/+1
2015-11-28vis: add namespace prefix for MARK_SELECTION_{START,END}Marc André Tanner1-2/+2
2015-11-28vis: improve switching to prompt modeMarc André Tanner1-1/+1
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-28vis: add cmd argument to VIS_OP_FILTERMarc André Tanner1-1/+5
2015-11-27vis: implement filter operator !Marc André Tanner1-0/+1
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-08Fix warnings found by static analyzerMarc André Tanner1-1/+1
2015-11-08Delete now obsolete syntax.hMarc André Tanner1-1/+0
2015-11-08vis: implement :set themeMarc André Tanner1-0/+2
2015-11-08vis: remove regex based syntax highlightingMarc André Tanner1-8/+0
2015-11-07vis: shadow default register while in prompt modeMarc André Tanner1-0/+1
Editing operation in prompt mode should not affect the default register.
2015-11-07vis: prefix enum VisMotion values with VIS_Marc André Tanner1-65/+65
2015-11-07vis: tweak enum VisTextObject namesMarc André Tanner1-26/+26
2015-11-07vis: prefix enum VisOperator values with VIS_Marc André Tanner1-18/+18
2015-11-07vis: API documentation and cleanupMarc André Tanner1-76/+132
2015-11-07vis: introduce vis_cancel APIMarc André Tanner1-0/+1
2015-11-07vis: move operators to separate fileMarc André Tanner1-0/+1
2015-11-07vis: move motions to separate fileMarc André Tanner1-0/+1
2015-11-07vis: move :-commands into their own fileMarc André Tanner1-0/+1
2015-11-03vis: add vis_keys_inject to place keys into the input queueMarc André Tanner1-0/+1
This function can only be used from within key handlers. The position argument has to point to a valid key from within the same input buffer after which the new input will be inserted.
2015-11-02vis: improve dot commandMarc André Tanner1-2/+4
Use an implicit macro to make changes in insert/replace mode repeatable.
2015-10-27vis: make Vis an opaque type, hide implementaton detailsMarc André Tanner1-87/+4
2015-10-27vis: introduce vis_macro_recording APIMarc André Tanner1-0/+1
2015-10-27vis: introduce vis_prompt_enter APIMarc André Tanner1-5/+3
This is a really bad API/abtraction but at least it allows us to hide some implementation details.
2015-10-27vis: clean up tab/newline insertion codeMarc André Tanner1-2/+2
2015-10-27vis: introduce pseudo operators for putMarc André Tanner1-13/+9
In principle put is not really an operator, however it still should be repeatable and respect count.
2015-10-26vis: introduce explicit operators for cursor creationMarc André Tanner1-1/+2
2015-10-26vis: introduce explicit operators for case changesMarc André Tanner1-2/+5
2015-10-26vis: move key handling functions to main.cMarc André Tanner1-34/+34
2015-10-26vis: merge editor.c into vis.cMarc André Tanner1-6/+234
2015-10-25vis: introduce vis_key_next APIMarc André Tanner1-0/+1
2015-10-25vis: introduce vis_register_{get,set} APIMarc André Tanner1-0/+8
2015-10-25vis: introduce vis_count_{get,set} APIMarc André Tanner1-0/+3
2015-10-25vis: introduce vis_motion_type APIMarc André Tanner1-0/+7
2015-10-25vis: clean up mark handlingMarc André Tanner1-0/+7
2015-10-25vis: convert jumplist navigation to proper motionsMarc André Tanner1-0/+2
2015-10-25vis: convert changelist navigation to proper motionsMarc André Tanner1-0/+2
2015-10-25vis: introduce vis_repeat APIMarc André Tanner1-0/+2
2015-10-25vis: introduce macro APIMarc André Tanner1-0/+10
2015-10-25vis: introduce vis_keys APIMarc André Tanner1-0/+2
2015-10-25vis: introduce vis_cmd APIMarc André Tanner1-0/+2
2015-10-25vis: introduce vis_textobject APIMarc André Tanner1-0/+31
2015-10-25vis: introduce vis_motion APIMarc André Tanner1-0/+60
2015-10-23vis: introduce vis_mode_switch APIMarc André Tanner1-0/+2
2015-10-23vis: introduce vis_operator APIMarc André Tanner1-0/+2
2015-10-23vis: begin librarization of core vis primitivesMarc André Tanner1-0/+48
2014-09-09Rename vis.[ch] to editor.[ch] and main.c to vis.cMarc André Tanner1-166/+0