aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-10-10text: mark text_bytes_alloc0 argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_byte(s)_get argument as constMarc André Tanner2-4/+4
2020-10-10text: mark text_iterator_get argument as constMarc André Tanner2-4/+4
2020-10-10text: mark text_state argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_modified argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_stat argument as constMarc André Tanner2-2/+2
2020-10-10text: introduce text_iterator_textMarc André Tanner2-3/+11
2020-10-10text: introduce text_iterator_has_{next,prev}Marc André Tanner2-4/+14
Abstract away access to `it->piece` inorder to enable different implementations/backends.
2020-10-10text: add namespace prefix to block type constantsMarc André Tanner1-10/+10
2020-10-10text: avoid direct access to txt->blocks in I/O related codeMarc André Tanner1-3/+10
2020-10-10text: introduce text_savedMarc André Tanner1-10/+11
Utiltiy function to update book keeping data after a successful save, takes an optional struct stat of the new file.
2020-10-10text: use public text_stat interface where possibleMarc André Tanner1-3/+4
2020-10-10text: introduce block_loadMarc André Tanner1-24/+36
2020-10-10text: store blocks in arrayMarc André Tanner1-31/+35
Make block manipulation routines independent of core text data structure, enabling re-usage in different implementations.
2020-10-10text: simplify reading of initial file contentMarc André Tanner1-6/+7
Avoid unnecessary copy and system calls in block_read.
2020-10-10vis: add vis-selection-new-match-allEvan Gates3-10/+32
Add new vis-selection-new-match-all command, default keybinding <C-a> in visual mode. Refactor selections_next_match to find all matches if arg.b is true. This does not affect existing configs as arg.b defaults to false.
2020-10-10vis: refactor selections_match_nextEvan Gates1-35/+8
A lot of code from selections_match_next was duplicated in selections_match_next_literal. Use the new text_object_find_next/prev functions to combine the two match_next functions into one.
2020-10-10text: add text_object_find_next/prevEvan Gates2-0/+17
Add two new text-object functions to search forwards/backwards for a string literal (not a regex) with the same signature as text_object_word_find_next/prev. This allows them to be used interchangeably with the word based variant through function pointers.
2020-10-06filetype: and Node.js module extensionsBen Hormann1-1/+1
Node.js uses .mjs and .cjs extensions, both are regular javascript.
2020-09-29test: add array.c source dependency for core text data structureMarc André Tanner2-2/+2
2020-09-20test: updateMarc André Tanner1-5/+9
2020-09-20test/vim: set an UTF-8 localeMarc André Tanner1-0/+1
This is consistent with the vis and sam specific tests which already use the same value. See also ee0edf4e662c588075b53185987183343f27621c and 2751b370cfa2be7ca21620f807ac3e04ce653c28.
2020-09-20Merge branch 'ts' of https://github.com/erf/vis into masterMarc André Tanner1-1/+1
2020-09-20Merge branch 'emg-add-ignorecase' of https://github.com/deepcube/vis into masterMarc André Tanner6-2/+16
2020-09-20Merge branch 'routeros' of https://github.com/eworm-de/vis into masterMarc André Tanner2-0/+122
2020-09-20Merge branch 'filetype' of https://github.com/eworm-de/vis into masterMarc André Tanner1-1/+2
2020-09-20Merge branch 'csi_event' of https://github.com/ezdiy/vis into masterMarc André Tanner7-0/+42
2020-09-19lexers: add .ts as a javascript (until typescript gets its own)Erlend Fagerheim1-1/+1
2020-09-19Add ignorecase optionEvan Gates6-2/+16
Add a global ignorecase boolean option. When set add REG_ICASE to cflags when calling text_regex_compile().
2020-09-18lexers: add Mikrotik RouterOS script lexerChristian Hesse2-0/+122
Add a lexer for Mikrotik RouterOS scripts. https://wiki.mikrotik.com/wiki/Manual:Scripting
2020-09-17filetype: do not match text/plain too earlyChristian Hesse1-1/+2
This covers other detection, so make sure to match it in last resort only.
2020-09-17filetype: use scheme lexer for racket filesMarc André Tanner1-1/+1
Close #868
2020-09-17text: improve text_line_down on the last line of the fileMarc André Tanner1-0/+2
Fix #873
2020-09-17vis-lua: provide vis.mark propertyMarc André Tanner1-0/+17
2020-09-17vis-lua: use utility function to translate mark namesMarc André Tanner1-9/+7
2020-09-17vis: provide reverse mapping function for mark namesMarc André Tanner2-1/+12
2020-09-17vis-lua: provide vis.register propertyMarc André Tanner1-0/+17
2020-09-17vis-lua: use utility function to translate register namesMarc André Tanner1-9/+7
2020-09-17vis: provide reverse mapping function for register namesMarc André Tanner2-4/+22
2020-09-17vis-lua: fix mark_names Lua doc indentationMarc André Tanner1-3/+3
2020-09-17Pass up terminal CSI as events to Lua.Ez Diy7-0/+42
2020-08-31text: improve and simplify inner word text objectMarc André Tanner1-21/+14
Previously words ending in special symbols would wrongly be included in range.
2020-08-31test/vim: add test for word text objects with symbolsMarc André Tanner2-0/+33
2020-08-29vis: improve C-n behavior in visual modeMarc André Tanner1-3/+9
Determine the matching behavior based on the first (not primary) selection. Fix #864
2020-08-29vis: implement C-n in normal mode with a mapping to viwMarc André Tanner2-21/+1
2020-08-29text: make inner text objects work on single delimiting symbolsMarc André Tanner1-4/+10
See #864
2020-08-29text: provide save function taking a directory descriptorMarc André Tanner3-12/+44
The standard does not specify mkstempat(3). We currently implement it in a non thread safe manner, by temporarily changing the process working directory before invoking mkstemp(3).
2020-08-29text: provide load function taking a directory descriptorMarc André Tanner2-1/+11
2020-08-29text: move misplaced text_save documentation snippetMarc André Tanner1-4/+4
2020-08-14vis-lua: fix redraw method name in API documentationMarc André Tanner1-1/+1