aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-10-10text: rename internal text_iterator_initMarc André Tanner1-4/+4
This is in preparation for a public function of the same name.
2020-10-10text: mark return value of text_iterator_text as constMarc André Tanner2-5/+5
2020-10-10text: make text_snapshot return whether it succeededMarc André Tanner2-2/+3
Currently this can't fail, but one can imagine implementations which do.
2020-10-10array: mark array_peek argument as constMarc André Tanner2-2/+2
2020-10-10array: mark array_capacity argument as constMarc André Tanner2-2/+2
2020-10-10array: mark array_init_from argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_delete_range range argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_save_write_range range argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_mmaped argument as constMarc André Tanner2-2/+2
2020-10-10array: mark array_get_ptr argument as constMarc André Tanner2-2/+2
2020-10-10array: mark array_get argument as constMarc André Tanner2-2/+2
2020-10-10array: mark array_length argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_write{,_range} argument as constMarc André Tanner2-4/+4
2020-10-10text: mark text_size argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_mark_get argument as constMarc André Tanner2-2/+2
2020-10-10text: mark text_iterator_byte_get argument as constMarc André Tanner2-2/+2
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-20test: updateMarc André Tanner1-5/+9
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