aboutsummaryrefslogtreecommitdiff
path: root/vis-operators.c
AgeCommit message (Collapse)AuthorFilesLines
2016-04-13Use view_cursors_new_force where appropriateMarc André Tanner1-1/+1
Close #263
2016-04-09vis: make sure linewise put operations insert necessary new linesMarc André Tanner1-0/+2
Given the following text with no trailing new line at the end of line2, where # denotes the cursor position: line1 of text line2 #f text the command yykp should produce line1 of text #ine2 of text line2 of text where previously it would wrongly result in line1 of text #ine1 of textline2 of text
2016-03-28view: change cursor creation API to take an initial positionMarc André Tanner1-9/+6
2016-03-12register: rename register put related functionsMarc André Tanner1-3/+3
2016-02-21vis: only move to start of yanked range if it is not line wiseMarc André Tanner1-1/+1
Otherwise this completely breaks the common case of yanking a whole line with yy. This also means that the beavior in visual line mode is different than in vim. Partially reverts ff57c0b8598a60617983ebe25d34c79a9c6bc511.
2016-02-21vis: insert missing new line when putting at the end of fileMarc André Tanner1-0/+3
Something like ifoo<Escape>yyp should produce foo foo not foofoo as was the case before.
2016-02-18vis: move cursor to start of yanked rangeMarc André Tanner1-1/+1
Close #176
2016-02-12Mark some tables as constMarc André Tanner1-2/+2
This allows them to be placed into the read only ELF section.
2016-02-10vis: implement yank register "0Marc André Tanner1-0/+2
2016-01-30Implement system clipboard registers "* and "+Marc André Tanner1-3/+3
Both registers are currently treated identically. The actual system integration is performed by two shell scripts vis-copy and vis-paste.
2016-01-30Cleanup register implementationMarc André Tanner1-2/+5
2016-01-19vis: improve cursor placement after shift operatorsMarc André Tanner1-3/+10
2016-01-14vis: s/ops/vis_operators/gMarc André Tanner1-3/+3
2016-01-14vis: move vis_operator(..) to corresponding fileMarc André Tanner1-0/+63
2016-01-14vis: inline expand_tabMarc André Tanner1-2/+4
2015-11-28vis: add cmd argument to VIS_OP_FILTERMarc André Tanner1-1/+2
2015-11-27vis: implement filter operator !Marc André Tanner1-0/+6
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-17vis: put in visual mode should replace the current selectionMarc André Tanner1-2/+8
There are some combinations (e.g. line wise selection / character wise register content) which should probably be improved further. Also since vis currently neither supports the numbered registers "0 - "9 nor the small delete register "- the deleted text is not stored in any register. Notice that we can't call op_delete in the implementation because it would overwrite the register content we want to paste. Closes #113
2015-11-07vis: prefix enum VisOperator values with VIS_Marc André Tanner1-40/+27
2015-11-07vis: move operators to separate fileMarc André Tanner1-0/+226