aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-04-18vis-lua: strip relative paths from package.{path,cpath}Marc André Tanner1-0/+41
Allthough the default paths should take precedence we do not want to execute arbitrary code from the current working directory.
2016-04-18vis-lua: cleanup lua package.path handlingMarc André Tanner1-43/+29
2016-04-18vis: use internal file to show lua errorsMarc André Tanner3-6/+9
This means no event handlers are run for it, hence there is no chance for recursive errors.
2016-04-18vis: do not run event handlers for internal filesMarc André Tanner1-3/+3
Should have been part of f50465312dbb7e8fcb2409aa691d1aea7a43c466.
2016-04-18text: when saving also fsync(2) the destination directory after rename(2)Marc André Tanner1-1/+17
2016-04-17Mention #vis-editor IRC channel in READMEMarc André Tanner1-0/+3
Close #270
2016-04-17Mention slmenu(1) in READMEMarc André Tanner1-1/+3
2016-04-17vis: indicate primary cursor by using a different color instead of blinkingMarc André Tanner3-6/+3
Blinking caused more problems (#251, #202) than it solved. Blank cells were especially problematic.
2016-04-17vis: remove mapping from ' ' to <Space>Marc André Tanner1-1/+1
This reverts part of bd1d849b2033b04a372542c59d458d4f8279c937 just use a literal space within your key mappings. Close #280
2016-04-17sam: except for visual mode, apply :w to whole fileMarc André Tanner1-16/+57
Also in visual mode, warn if :w is not forced by ! because the file will be reduced to the active selection.
2016-04-17text: add infrastructure to save non-contiguous rangesMarc André Tanner2-113/+199
2016-04-16vis-lua: add vis.mode propertyMarc André Tanner2-0/+6
2016-04-16vis-lua: update API documentaiton in READMEMarc André Tanner1-1/+3
2016-04-16vis-lua: add cursor.selection propertyMarc André Tanner2-0/+17
2016-04-16vis-lua: add window.cursors[] arrayMarc André Tanner2-0/+39
2016-04-16vis-lua: add window.cursors_iterator functionMarc André Tanner2-0/+25
2016-04-16vis-lua: add cursor.number propertyMarc André Tanner2-0/+6
2016-04-15vis-lua: change cursor object implementationMarc André Tanner2-22/+15
2016-04-15view: add view_cursors_place(cursor, line, col) functionMarc André Tanner2-0/+8
2016-04-15view: add view_cursors_col functionMarc André Tanner2-0/+7
2016-04-15view: add view_cursors_line functionMarc André Tanner2-0/+7
2016-04-15vis-lua: add file.size to return file size in bytesMarc André Tanner2-0/+6
2016-04-15vis-lua: add file.newlines to detect type of new linesMarc André Tanner2-0/+17
2016-04-15vis: calculate auto indent for all cursors individuallyMarc André Tanner1-6/+9
2016-04-15vis: fix wrong usage message for :unmap commandMarc André Tanner1-1/+1
2016-04-15vis: improve handling of ~ and environment variables when opening filesMarc André Tanner2-2/+6
2016-04-15vis: do not run registered event handlers for internal filesMarc André Tanner1-1/+1
This fixes interactive :-commands when the user has configured to set custom options vis:command(...) via the Lua win_open event handler. The problem was that the creation of the window for the command prompt would itself trigger an execution of a :-command. Upon successful completion the editor would switch to normal mode. Therefore the interactively entered command would not be applied to the correct range.
2016-04-14vis: allow mapping of <Space>Marc André Tanner3-6/+6
One should generally use <Space> in mappings: :map! normal <Space> h except for insert/replace mode where a literal space has to be used: :map! insert " " foo
2016-04-14vis: add #defines to ease overriding of utility namesMarc André Tanner2-3/+11
This should ease packaging for systems with an existing vis(1) binary.
2016-04-14Merge branch 'package-smgl' of https://github.com/vaygr/visMarc André Tanner1-0/+1
2016-04-13vis: stop repeated motions as soon as resulting position remains the sameMarc André Tanner1-1/+2
This improves responsiveness of {count}j for files with less than count lines. For huge files this will still be slow because the code tries to restore cursor position on every line before moving on to the next. Also moving up will generally be slower than downwards. Use {count}% (fastest) or or :count (slower) instead. Close #267
2016-04-13sam: improve ^ matching start of lineMarc André Tanner1-4/+10
There are some nasty differences between the meaning of ^ in Plan 9's regexp library and POSIX when using REG_NEWLINE. The former only matches at the beginning of a line wheras the latter matches the zero-length string immediately after a newline character \n. As a result this also matches after the very last newline at the end of the file. This is undesired behavior for a command like :x/^/c/#/ Hence we try to filter out this last match. Close #264
2016-04-13Use view_cursors_new_force where appropriateMarc André Tanner2-15/+3
Close #263
2016-04-13view: add view_cursors_new_force functionMarc André Tanner2-4/+17
To create a cursor even if there already exists one at the same position. Should only be used if all but one of the cursors will later be removed.
2016-04-13vis: make = operator an alias for gq, both currently use fmt(1)Marc André Tanner2-2/+4
2016-04-13text-motion: simplify implementation of [{, ]}, [( and ]) motionsMarc André Tanner1-21/+8
2016-04-12Add "[(" and "])" motions for jumping to a parenthese pair's start/endRob Pilling7-0/+30
2016-04-12Add "[{" and "]}" motions to jump to a block's start/endRob Pilling7-0/+48
2016-04-12Merge branch 'fixups' of https://github.com/tycho/visMarc André Tanner4-10/+10
2016-04-12README.md: add coverity scan build status badgeMarc André Tanner1-2/+2
2016-04-11added link to new SMGL package for visVlad Glagolev1-0/+1
2016-04-11text-motions: fix misspelled function name "is_word_boundry"Steven Noonan3-8/+8
Should be "is_word_boundary" Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2016-04-11sam.c: fix some typos in commentSteven Noonan1-2/+2
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2016-04-11README.md: add travis-ci build status badgeSteven Noonan1-0/+3
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2016-04-11Update developer overview section in READMEMarc André Tanner1-16/+21
2016-04-11build: also probe for lua as lua-{5.2,5.3}Marc André Tanner1-1/+1
This should let configure pick up the lua libraries on FreeBSD 10.
2016-04-11main.c: correct name of function, cursor>windowJosh Wainwright1-1/+1
"open-file-under-cursor-new-cursor" should be "open-file-under-cursor-new-window"
2016-04-10Merge branch 'master' of https://github.com/erig0/visMarc André Tanner1-0/+1
2016-04-09README.md: Add pkgsrc to the distribution packages listEric Garver1-0/+1
2016-04-09[README] unmap requires <mode>Josh Wainwright1-1/+1