summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-28vis: implement = operator in terms of fmt(1)Marc André Tanner
2015-11-28vis: add cmd argument to VIS_OP_FILTERMarc André Tanner
2015-11-28view: preserve column position when moving across linesMarc André Tanner
2015-11-28view: remove special treatment of tabs in cell matrixMarc André Tanner
2015-11-27vis: improve cursor alignment command <C-a>Marc André Tanner
2015-11-27vis: improve creation of new cursors on line above/belowMarc André Tanner
Use view cell matrix data to create the cursors on more appropriate positions. Closes #108
2015-11-27vis: implement filter operator !Marc André Tanner
It currently works by switching to visual mode and then opening the command prompt with a default range which refers to the currently active selection.
2015-11-27vis: change semantics of operator implementation return valueMarc André Tanner
The return value of operator implementations denoting the new cursor position is interpreted in the following way: - EPOS dispose the cursor - [0, text_size] place the cursor accordingly - otherwise i.e. > text_size keep the cursor position unchanged The newly introduced last case is useful for operators which are called from visual mode, but do not want to change the current selection.
2015-11-27vis: close correct file descriptor upon failure in filter commandMarc André Tanner
2015-11-23vis: fix compiler warnings related to `ga` implementationMarc André Tanner
2015-11-23vis: use file open dialog for all directoriesMarc André Tanner
2015-11-23vis: implement gaMarc André Tanner
2015-11-23Cast argument to ctype.h is* functions to unsigned charMarc André Tanner
The signedness of char is implemenation defined, calling the is* type of functions with negative values leads to undefined behaviour.
2015-11-23vis: improve replacement of combining charactersMarc André Tanner
2015-11-23view: fix cell placement of combining charactersMarc André Tanner
They now belong to the cell holding the corresponding regular (i.e. non-combining) character. This also means that at least in theory a cell could hold arbitrary amounts of data, in practice it is limited to 16 bytes.
2015-11-23text: introduce functions to iterate over graphemesMarc André Tanner
They currently consider any character for which wcwidth(3) return 0 as a combining character.
2015-11-20buffer: tweak memory allocation strategyMarc André Tanner
Do not simply double the requested size. Instead take the maximum of - the requested size - double the current buffer size This will use less memory for large register operations (e.g. deleting the whole file).
2015-11-20text: get modification time after replacing file content in placeMarc André Tanner
At the start of text_save_range we stat(2) the file to check whether we have currently mmap(2)-ed it. Then we proceed to write the new file content which changes modification time. Hence we have to stat(2) again to retrieve it. This should fix spurious warnings about file changes outside the editor when editing e.g. symlinked files.
2015-11-19vis: improve <C-p> in visual modeMarc André Tanner
Make sure that the (new) primary cursor is visible after removing the last matched selection.
2015-11-19vis: fix <C-n> in visual mode for partial matchesMarc André Tanner
We need to properly skip partial matches (i.e. not whole words). Closes #118
2015-11-19buffer: add some comments to clarify allocation strategyMarc André Tanner
Closes #116
2015-11-17vis: put in visual mode should replace the current selectionMarc André Tanner
There are some combinations (e.g. line wise selection / character wise register content) which should probably be improved further. Also since vis currently neither supports the numbered registers "0 - "9 nor the small delete register "- the deleted text is not stored in any register. Notice that we can't call op_delete in the implementation because it would overwrite the register content we want to paste. Closes #113
2015-11-17ui: improve fallback code in case of unknown termMarc André Tanner
If the current $TERM value indicates 256 color support fall back to xterm-256color otherwise try xterm. Improves upon 43605fded457cec954600b688d54242341eedc7c Closes #105
2015-11-14view: increase range to consider for syntax highlightingDavid B. Lamkins
Increase the number of bytes to consider for syntax highligthing before the visisble area. This should improve the handling of long block comments. Closes #110
2015-11-13lexer: improve pure lexerDavid B. Lamkins
Closes #109
2015-11-11ui: fall back to xterm-256color if term initialization failsMarc André Tanner
This improves behaviour for unknwown/unrecognized terminals as is the case for self contained binaries built with "make standalone" which only includes a fixed set of terminal descriptions. Of course the terminal capabilities won't match, which will likely cause some display issues.
2015-11-11lexer: add lexer for pureDavid B. Lamkins
Ref: http://purelang.bitbucket.org/ Closes #106
2015-11-10build: do not clutter dependency/install with manual pagesMarc André Tanner
2015-11-10Update .gitignoreMarc André Tanner
Closes #104
2015-11-10lexer: fix some more color specificationsMarc André Tanner
2015-11-10build: try to fix make standalone for multiarch systemsMarc André Tanner
Force ncurses libdir to be /usr/lib not /usr/lib64.
2015-11-10lexers: fix color specification in diff lexerDavid B. Lamkins
Closes #102
2015-11-09view: improve window redrawing for shared files/split windowsMarc André Tanner
When a file was being displayed in multiple windows changes in one could confuse the other.
2015-11-09view: correctly redraw window contentMarc André Tanner
If a change occured on the very first shown character, it was not properly reflected in the view.
2015-11-08ui: warn if theme loading failedMarc André Tanner
2015-11-08Clarify build dependencies in READMEMarc André Tanner
2015-11-08Fix warnings found by static analyzerMarc André Tanner
2015-11-08Mention make local in READMEMarc André Tanner
2015-11-08Update year numbers in Copyright clauseMarc André Tanner
2015-11-08Remove trailing white space from source filesMarc André Tanner
2015-11-08Mention new source files in READMEMarc André Tanner
2015-11-08Delete now obsolete syntax.hMarc André Tanner
2015-11-08vis: map <F1> to :helpMarc André Tanner
2015-11-08vis: reindent config.def.h (no functional changes)Marc André Tanner
2015-11-08Tweak manual pageMarc André Tanner
2015-11-08view: do not highlight matching symbols if selection is activeMarc André Tanner
2015-11-08ui: try to make sure that selected text is still visibleMarc André Tanner
2015-11-08theme: updated low color themeMarc André Tanner
2015-11-08theme: add default low color themeMarc André Tanner
The theme was contributed by David B. Lamkins
2015-11-08ui: load syntax theme based on the number of supported colorsMarc André Tanner
The theme to use can be overriden via the $VIS_THEME environment variable. $ VIS_THEME=solarized vis