aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-02-03fix {, }, (, ) movementsMarkus Teich1-70/+44
- split the functions, so the algorithms are more clear - paragraph movements work backwards - paragraph movements work consistently with \r\n line breaks always placing the cursor on the first character of the first empty line before/after the paragraph - sentence movements now work better at BOF/EOF - save a few lines of code
2016-02-01Change vis-{copy,paste} to use X clipboard xsel -bMarc André Tanner2-2/+2
2016-02-01Improve cursor position after :substitute commandMarc André Tanner1-5/+5
2016-01-31Rename stderr field to errMarkus Teich1-10/+10
The name `stderr` was confused by the compiler with the following defines: $ grep -r "define stderr" ./dependency/install/usr/include/stdio.h:#define stderr (stderr) ./dependency/sources/musl-1.1.12/include/stdio.h:#define stderr (stderr)
2016-01-30Implement "A - "Z registersMarc André Tanner5-2/+20
2016-01-30Implement system clipboard registers "* and "+Marc André Tanner12-11/+104
Both registers are currently treated identically. The actual system integration is performed by two shell scripts vis-copy and vis-paste.
2016-01-30Implement blackhole register "_Marc André Tanner5-10/+41
2016-01-30Cleanup register implementationMarc André Tanner7-21/+29
2016-01-30Improve Lua error reportingMarc André Tanner7-10/+70
Display Lua errors in a dedicated window/file. A typo or missing dependency (e.g. lpeg) in visrc.lua will no longer silently fail without any indication. The Lua integration in view.h is not yet converted.
2016-01-29vis: implement new pipe/write out command :| or :w !Marc André Tanner1-1/+52
2016-01-29vis: factor out filter command implementationMarc André Tanner2-50/+97
2016-01-28vis: factor out common code to create internal fileMarc André Tanner1-6/+11
2016-01-28lexer: snyc with upstream scintillua 3.6.3-1Marc André Tanner6-8/+292
2016-01-28vis: implement nn%Marc André Tanner4-6/+25
Moves to the given percentage of the file in bytes (not lines). This is useful when dealing with huge files because it is a constant time operation. Performance could still be improved by adapting the display code not to rely on line numbers at all.
2016-01-28vis: clean up count handlingMarc André Tanner4-23/+32
There are cases where zero can also be a legitimate count.
2016-01-27text-motion: change text_bracket_match APIMarc André Tanner4-7/+7
2016-01-27vis: let % move to next special char if not already thereMarc André Tanner1-1/+22
2016-01-27vis: apply insert register <C-r> to all cursorsMarc André Tanner1-5/+2
Note that cursors currently have only one default register.
2016-01-27vis: remove unused struct Mode member 'is_user'Marc André Tanner2-8/+1
2016-01-20vis: make <End> in insert/replace mode move to the end of lineMarc André Tanner2-1/+8
The behaviour of <End> vs $ in various modes may still be inconsistent, but at least it can now be configured via key bindings.
2016-01-20vis: further improve selection restore codeMarc André Tanner1-0/+6
This is still not 100% correct for all possible cases, but should work for those currently used by vis e.g. the shift left operator.
2016-01-20Fix to/till movementsMarkus Teich2-7/+12
Some corner cases allowed to move between lines with the to/till movements. The change in find_prev serves two purposes. When searching for a string which the cursor is already above the match, this match is returned (pos += len). Secondly there was a failure when searching for strings with len == 1 which lead to `matched == 0` which was always true, even if the string was not found, therefore leading to a wrong return value.
2016-01-19Add usage example for file open dialog to READMESilvan Jegen1-2/+10
2016-01-19vis: fix # and * motions to only match wordsMarc André Tanner1-9/+12
Word matching is currently implemented by using the \< and \> anchors of the regex(3) library part of libc. Another option would have been to use the text_object_word_find_{next,prev} functions from text-objects.c. The used search term is currently not added to the search history. Based on a patch by Markus Teich.
2016-01-19vis: switch to normal mode if a :-command was successful in visual modeMarc André Tanner1-2/+8
2016-01-19vis: fix default command prompt in visual modeMarc André Tanner1-1/+1
2016-01-19vis: improve :-command argument tokenizingMarc André Tanner1-3/+11
Should now handle trailing white spaces.
2016-01-19vis: keep selection in visual mode after shift operatorsMarc André Tanner1-0/+2
2016-01-19vis: improve selection restore `gv`Marc André Tanner2-2/+19
2016-01-19vis: improve cursor placement after shift operatorsMarc André Tanner1-3/+10
2016-01-18vis: do not move cursor when entering visual line modeMarc André Tanner1-1/+1
Switching to character wise visual mode is still different than in vim because we do not distinguish between line wise and charwise selections. Close #149
2016-01-18vis: tweak count handling of till motions 't' and 'T'Marc André Tanner1-2/+4
The behaviour when already in front of a match is deliberately different from vim. Based on a patch from Markus Teich.
2016-01-18vis: fix segfault upon :qallMarc André Tanner1-4/+6
2016-01-18text-regex: remove unused struct memberMarc André Tanner1-2/+0
2016-01-18vis: simplify code by using text_bytes_alloc0Marc André Tanner1-4/+1
2016-01-18Fix default $VIS_PATH in man pageMarc André Tanner1-5/+10
2016-01-17ui: display current line number instead of relative 0Marc André Tanner1-3/+5
2016-01-17vis: make Y only yank from the current position to the end of lineMarc André Tanner1-1/+1
2016-01-17theme: change solarized theme to use the 256 degenerated colorsMarc André Tanner1-16/+16
2016-01-17ui: support color definitions in terms of the 256 color paletteMarc André Tanner1-0/+3
2016-01-17vis: make :e an alias for :editMarc André Tanner1-1/+1
2016-01-17vis: let ~ have an immediate effect in normal modeMarc André Tanner1-0/+1
Similar to vim with the notildeop setting.
2016-01-16view: remove special cursor handling at end of visible areaMarc André Tanner1-2/+0
Close #148
2016-01-16vis: move selected prompt entry to end of the fileMarc André Tanner2-2/+8
Close #70
2016-01-16vis: make o and O work in promptMarc André Tanner1-2/+2
2016-01-15vis: sentence motions are not linewiseMarc André Tanner1-2/+2
Close #141
2016-01-14vis: use different default register when editing a prompt fileMarc André Tanner1-3/+3
2016-01-14vis: move prompt handling to separate fileMarc André Tanner4-175/+183
2016-01-14vis: more cleanupsMarc André Tanner3-8/+6
2016-01-14vis: s/moves/vis_motions/gMarc André Tanner3-7/+4