aboutsummaryrefslogtreecommitdiff
path: root/vis.c
AgeCommit message (Collapse)AuthorFilesLines
2014-12-18Macro supportMarc André Tanner1-30/+68
At some point this should be optimized further at the moment there is some 20 byte overhead for each entered key.
2014-12-18Support longer key bindingsMarc André Tanner1-26/+42
2014-11-01Improve usage as a filterMarc André Tanner1-2/+6
When used as in echo Hello World | vis | cat prevent intermediate writes to stdout, only save to stdout when also quiting the editor.
2014-10-27Also join lines if cursor is at beginning of a lineMarc André Tanner1-2/+3
2014-10-27Also join lines if cursor is on newline (after text)Marc André Tanner1-1/+1
2014-10-27Fix segfault when joining linesMarc André Tanner1-1/+1
2014-10-25Accept spaces between range and commandMarc André Tanner1-0/+1
2014-10-25Set correct default range for commandsMarc André Tanner1-3/+6
2014-10-25Support partial writesMarc André Tanner1-1/+1
2014-10-25Support partial savesMarc André Tanner1-1/+1
2014-10-25Change return type of text_saveMarc André Tanner1-1/+1
2014-10-25Fix mode switching bugsMarc André Tanner1-4/+7
2014-10-25Recognize some basic file rangesMarc André Tanner1-7/+88
2014-10-25Add Filerange argument to all commandsMarc André Tanner1-37/+38
2014-10-24Make command prompt available in visual modesMarc André Tanner1-9/+17
2014-10-24Add option to execute commands on startup via +{cmd}Marc André Tanner1-23/+39
The following should work: vis +10 vis +/pattern vis +?pattern vis +'set tabwidth 2'
2014-10-23Use pselect instead of selectMarc André Tanner1-2/+7
2014-10-23Move feature test macros to config.mkMarc André Tanner1-4/+0
2014-10-21Read text to edit from stdin if it isn't a terminalMarc André Tanner1-10/+15
This allows usage as a filter without specifying "-" as file name.
2014-10-19Only cast once in op_case_changeMarc André Tanner1-8/+7
2014-10-19Toggle case operatorStephen Paul Weber1-1/+5
In vim, :set tildeop to get this behaviour
2014-10-18Place cursor after inserted text when pasting a registerale rimoldi1-1/+3
2014-10-17Make editor usable as a filter: echo foo | vis - | catMarc André Tanner1-10/+16
The terminal output is by default redirected to stderr, making stdout available for communications purposes. If a file is "opened" from stdin (i.e. vis is given '-' as argument) and a subsequent write without a filename is performed as in ":wq" the output is written to stdout.
2014-10-17Make running flag volatileMarc André Tanner1-1/+1
2014-10-17Read stdin when given - as filenameMarc André Tanner1-4/+19
2014-10-17Factor out editor main loopMarc André Tanner1-27/+30
2014-09-30Make text objects available in visual modeMarc André Tanner1-18/+27
2014-09-30Clean up visual mode handlingMarc André Tanner1-3/+4
2014-09-30Allow to supend the editor via CTRL-ZMarc André Tanner1-0/+8
2014-09-30Promote join to an operatorMarc André Tanner1-15/+31
Make 'J' work on a selection in visual mode.
2014-09-28Make '.' repeat last insertionMarc André Tanner1-0/+10
2014-09-27Improve cursor placement after shiftingMarc André Tanner1-2/+5
This is still not entirely correct if multiple lines are involved and the cursor is at the end of the selection.
2014-09-27Implement 'zt', 'zz', 'zb'Marc André Tanner1-1/+7
In particular 'zb' might not work if there are wrapped lines involved.
2014-09-27Implement '#'Marc André Tanner1-9/+29
2014-09-27Make '*' more usefulMarc André Tanner1-7/+12
2014-09-27Add text objects for word (lowercase) variantMarc André Tanner1-1/+3
2014-09-27Factor out common user info messageMarc André Tanner1-9/+8
2014-09-27Implement :bdeleteMarc André Tanner1-0/+21
2014-09-27'g_' should be inclusiveMarc André Tanner1-1/+1
2014-09-25Realign a few code blocks, no functional changesMarc André Tanner1-39/+39
2014-09-25Add infrastructure for word (lowercase) motionsMarc André Tanner1-0/+8
This unfortunately doesn't work as is which is why it is not actually hooked up to key bindings.
2014-09-25Perform some renames in preparation for different word typesMarc André Tanner1-11/+11
2014-09-25Exit command prompt if last character is deletedMarc André Tanner1-0/+11
2014-09-25Do not warn if no command is givenMarc André Tanner1-1/+1
2014-09-25Implement '*'Marc André Tanner1-0/+25
This still has a couple of problems: - it uses the regular expression search (because 'n' and 'N' should operate on the same search term) - the word should be deliminited not only by spaces but also by special symbols. this should be fixed once the word/WORD distinction gets implemented
2014-09-25Make '$' move to the last character of a lineMarc André Tanner1-0/+2
It is an inclusive movement, thus 'd$' works as expected.
2014-09-25Revert "Change semantics of text_line_end"Marc André Tanner1-3/+3
This reverts commit 3a24e6a5562e4b1ea456fbe36607bd8a9c92744d.
2014-09-24Fix cursor position after 'p'Marc André Tanner1-2/+2
2014-09-24Implement window related keys (CTRL-W ...) in terms of ':'-commandsMarc André Tanner1-14/+5
2014-09-24'f' and 't' should be inclusiveMarc André Tanner1-2/+2