| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2023-07-18 | Add fullscreen param to vis_pipe_collect() and Lua API vis:pipe() | Jörg Bakker | 1 | -2/+2 | |
| This enables restoring the terminal from a fullscreen command like curses based program. Use cases are e.g. a file picker based on some external program like nnn (https://github.com/jarun/nnn). | |||||
| 2023-06-22 | allow underscore (_) in command names | Randy Palamar | 1 | -1/+1 | |
| fixes #971 | |||||
| 2023-05-28 | fix use after free in cmd_files() | Randy Palamar | 1 | -4/+6 | |
| When the cmd closes the window the window pointer gets freed along the way. We can't use win->next to update the loop variable if sam_execute() has been called. Instead we can store win->next early and use that variable to continue the loop. fixes #1090 | |||||
| 2021-02-11 | sam: simplify trailing match handling for x/y commands | Marc André Tanner | 1 | -6/+2 | |
| Should be no functional change, just a simpler implementation. | |||||
| 2021-02-11 | sam: tweak handling of zero length matches in y commands | Marc André Tanner | 1 | -4/+9 | |
| In sam(1) a command like x/[a-z]+/ y/-?/ matches every character individually, whereas in vis it would produce a zero length match before each character as is correctly the case for the x counter part. | |||||
| 2021-01-25 | sam: produce empty match at the end of looped range | Marc André Tanner | 1 | -2/+2 | |
| In certain cases (e.g. involving negated character classes) the last empty match of an x command would wrongly be skipped. See #925 | |||||
| 2021-01-25 | sam: only skip the last empty match if it follows a newline | Marc André Tanner | 1 | -1/+2 | |
| This further tweaks the hack introduced to ignore the last match of ^ at the end of the file, see 1a158268c7693b00bf43c7e81034816d8d00358c. | |||||
| 2020-12-10 | fix typos in comments | Moesasji | 1 | -2/+2 | |
| 2020-11-13 | sam: simplify boolean expression, start < end implies end > 0 | Marc André Tanner | 1 | -1/+1 | |
| 2020-09-19 | Add ignorecase option | Evan Gates | 1 | -0/+6 | |
| Add a global ignorecase boolean option. When set add REG_ICASE to cflags when calling text_regex_compile(). | |||||
| 2020-08-29 | text: provide save function taking a directory descriptor | Marc André Tanner | 1 | -1/+2 | |
| 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-01 | Update copyright year | Marc André Tanner | 1 | -1/+1 | |
| 2020-04-27 | Avoid use of VLAs | Michael Forney | 1 | -3/+3 | |
| 2020-03-15 | sam: fix X and Y commands which were interchanged | Marc André Tanner | 1 | -2/+2 | |
| Fix #820 | |||||
| 2020-02-29 | sam: fix spurious "file exists" warnings | Marc André Tanner | 1 | -1/+1 | |
| When initially opened with a non-existing file we would not correctly track the file's meta data resulting in spurious warnings upon subsequent writes. It is fixed by also saving the meta data for previously non-existing files with matching paths. | |||||
| 2020-02-23 | sam: warn when attempting to write to an existing file | Marc André Tanner | 1 | -0/+4 | |
| Add ! to override. | |||||
| 2020-02-23 | sam: fix modification time comparision when writing file | Marc André Tanner | 1 | -6/+13 | |
| The modification time should only be compared when dealing with the same file i.e. the following should work without a warning: $ touch foo; sleep 1; touch bar $ vis foo :w bar Also switch from path to inode based file equality testing. | |||||
| 2020-02-22 | sam: re-take range after pre-save hooks are run | alex | 1 | -2/+14 | |
| A vis.events.FILE_SAVE_PRE callback may mutate the file text, making the original range passed to cmd_write incorrect. It is unclear how to realign the range after the callback is done for the cases where an active selection in visual mode is present or an explicit range like :1,2w! was specified. However, this commit resolves the issue for the case where the whole file is expected to be written. | |||||
| 2020-02-12 | sam: support optional count for text commands | Marc André Tanner | 1 | -12/+21 | |
| The text given for the a, i and c commands can be prefixed with an optional count indicating how often the text should be inserted, defaults to 1. | |||||
| 2020-02-12 | sam: move parse_number code, no functional change | Marc André Tanner | 1 | -9/+9 | |
| 2020-01-28 | vis: support an optional exit status in :q and :qall commands | Marc André Tanner | 1 | -2/+2 | |
| This can for example be used to abort git commit messages with :q! 1. | |||||
| 2020-01-27 | vis: pass absolute path to pre/post save events | Marc André Tanner | 1 | -13/+24 | |
| 2020-01-24 | sam: fix ^ anchor behavior in looping commands | Marc André Tanner | 1 | -3/+7 | |
| Previsouly a command like: x/^.*\n/ would only select every second line. Fixes #774 | |||||
| 2020-01-23 | remove redundant layout option abbreviation | Karl Schultheisz | 1 | -1/+1 | |
| No need to explicitly specify "lay" as an abbreviation, since "layout" already makes it available via prefix logic. | |||||
| 2019-05-23 | Add layout option | Karl Schultheisz | 1 | -0/+6 | |
| This introduces a new `set` option for setting the layout to vertical or horizontal, which previously could not be done without creating a new window (via `split` or `vsplit`). Now, `set layout|lay h|v` will control this without creating a new window. | |||||
| 2018-05-30 | vis: add loadmethod option | Marc André Tanner | 1 | -0/+6 | |
| Valid values are `read`, `mmap` or `auto`. | |||||
| 2018-05-30 | sam: always apply | command to existing selections | Marc André Tanner | 1 | -1/+1 | |
| 2018-05-30 | sam: normalize selections after command execution | Marc André Tanner | 1 | -0/+3 | |
| As a trivial example if multiple selections exist running a command like :, should merge them. | |||||
| 2018-05-30 | sam: change nomencalture, use selection where appropriate | Marc André Tanner | 1 | -16/+16 | |
| 2018-05-16 | sam: keep selections after :> command | Marc André Tanner | 1 | -3/+0 | |
| Fix #700 | |||||
| 2018-04-15 | Update year numbers in copyright information | Marc André Tanner | 1 | -1/+1 | |
| 2018-02-19 | sam: fix g/^$/ | Marc André Tanner | 1 | -2/+7 | |
| With POSIX ERE the pattern ^$ matches strings ending with a new line because an empty match is reported after the trailing newline at the very end of the input. This is undesirable for use cases like x g/^$/ d which is supposed to delete all empty lines of a file. As a fix we disregard empty matches at the end of the given range. | |||||
| 2017-07-14 | vis-lua: make selection first class primitives in Lua API | Marc André Tanner | 1 | -3/+3 | |
| 2017-07-10 | vis: implement jump list in terms of marks | Marc André Tanner | 1 | -0/+1 | |
| 2017-07-07 | vis: use marks instead of registers to store selections | Marc André Tanner | 1 | -5/+10 | |
| The key binding remain the same, but the selections are now stored on a per-buffer basis. | |||||
| 2017-06-27 | Merge branch 'show-eof' of https://github.com/p-e-w/vis | Marc André Tanner | 1 | -0/+6 | |
| Conflicts: view.c view.h | |||||
| 2017-06-15 | sam: simplify print command implementation | Marc André Tanner | 1 | -16/+11 | |
| 2017-06-15 | vis: rename uses of Cursor to Selection | Marc André Tanner | 1 | -110/+110 | |
| 2017-06-15 | view: rename view_cursors | Marc André Tanner | 1 | -6/+6 | |
| 2017-06-15 | view: rename view_selection_anchored | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_count | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: rename view_cursors_next | Marc André Tanner | 1 | -4/+4 | |
| 2017-06-15 | view: rename view_cursors_selection_start | Marc André Tanner | 1 | -3/+3 | |
| 2017-06-15 | view: rename view_cursors_selection_clear | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_selection_get | Marc André Tanner | 1 | -6/+6 | |
| 2017-06-15 | view: rename view_cursors_primary_{get,set} | Marc André Tanner | 1 | -4/+4 | |
| 2017-06-15 | view: rename view_cursor_disposed | Marc André Tanner | 1 | -1/+1 | |
| 2017-06-15 | view: rename view_cursors_dispose | Marc André Tanner | 1 | -4/+4 | |
| 2017-06-15 | view: rename view_cursors_new | Marc André Tanner | 1 | -2/+2 | |
| 2017-06-15 | view: remove view_cursors_multiple | Marc André Tanner | 1 | -1/+1 | |
