aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-03-29ignore README.htmlChristian Hesse1-0/+1
2016-03-29README: add a paragraph about distribution packagesChristian Hesse1-0/+4
We have binary packages for Arch Linux, at least!
2016-03-28Update README section about multiple cursor key bindingsMarc André Tanner1-17/+21
2016-03-28vis: cleanup usage of vis_cursors_countMarc André Tanner3-3/+3
2016-03-28vis: Ctrl-{j,k} do not create duplicate cursors, instead advance primary oneMarc André Tanner1-1/+8
2016-03-28view: prevent creation of duplicated cursorsMarc André Tanner1-2/+8
Fail if there is already a cursor located at the requested position.
2016-03-28vis: support right alignment of selections in visual mode with <S-Tab>Marc André Tanner2-10/+28
2016-03-28vis: support count for {Meta-Ctrl,Ctrl}-{j,k}Marc André Tanner1-23/+26
Create count new cursors on the lines above/below.
2016-03-28vis: fix changing of primary cursor via Ctrl-{u,d}Marc André Tanner1-1/+1
2016-03-28vis: let Meta-Ctrl-{j,k} create new cursorMarc André Tanner2-1/+30
on the line above/below the first/last existing cursor.
2016-03-28vis: align selections with <Tab> in visual modeMarc André Tanner2-2/+6
2016-03-28vis: support column based alignmentMarc André Tanner1-22/+27
That is when multiple cursors are on the same line, the first cursor on every line is aligned, then the second one and so on.
2016-03-28view: add infrastructure to iterate through cursor columnsMarc André Tanner2-0/+61
The number of columns i.e. maximal number of cursors located on the same line can be obtained by view_cursors_column_count. Column addressing is zero based, valid indexes are [0, max-1]. Assuming there is a cursor on every letter: a b c d e f g h i max column would be 3, and the following would iterate over the cursors forming the second column [c, e, h]: for (Cursor *c = view_cursors_column(view, 1); c; c = view_cursors_column_next(c, 1)) ...
2016-03-28view: maintain ordering relation among cursorsMarc André Tanner1-9/+53
This is currently only enforced upon creation i.e. we assume that after creation a cursor can not change its relative ordering with respect to its neighbors. The existing code assumes that when iterating through cursors with: for (Cursor *c = view_cursors(view); c; c = view_cursors_next(c)) ... new cursors created with view_cursors_new do not show up. This assumption is preserved under the following conditions: * it only holds for the most recent view_cursors call As a consequence when doing nested iterations new cursors will be yielded once the inner view_cursors call was performed. * view_cursors_primary_get is not called
2016-03-28view: change cursor creation API to take an initial positionMarc André Tanner4-25/+23
2016-03-26fix linker flagsChristian Hesse1-1/+1
fixes #214
2016-03-25Set version to 0.2Marc André Tanner1-1/+1
2016-03-25vis: remove __DATE__ and __TIME__ references to aid with reproducible buildsMarc André Tanner2-2/+2
2016-03-25vis: do not crash when using vis:command without active windowMarc André Tanner1-1/+8
2016-03-25configure: fix probing of hardening flagsMarc André Tanner1-3/+3
2016-03-24build: use order only dependencies for build folderMarc André Tanner1-10/+11
This prevents unecessary rebuilds when doing consecutive make standalone builds.
2016-03-24build: expose make dependency-local targetMarc André Tanner1-4/+9
Remove more stuff when switching between make local and make standalone.
2016-03-24Mention libutf in LICENSEMarc André Tanner1-0/+3
2016-03-24handle patch as usual sourceChristian Hesse1-4/+8
2016-03-24make sure build directory existsChristian Hesse1-6/+9
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-03-23build: fix make local, improve make standaloneMarc André Tanner1-5/+27
The local target should use the system curses library not a custom build one. Also the two targets are now compatible with each other, meaning that the relevant libraries are correctly rebuilt from scratch against the correct libc.
2016-03-23build: rename package specific targets used for make local/standaloneMarc André Tanner1-27/+27
All targets start with the package name which allows to easily rebuild a package by removing everything matching the shell pattern dependency/build/$package*
2016-03-23visrc: Move filetype detection to separate functionJosh Wainwright1-2/+7
I hadn't noticed the `return;` line when a filetype match is found so couldn't get my additions to this function to work. Moving the detection to a separate function keeps that isolated and indicates that other functions can be called from the same `vis.events.win_open` hook.
2016-03-23do not link lua against ncursesChristian Hesse1-1/+1
2016-03-23fix dependencies for standalone buildChristian Hesse1-1/+1
2016-03-23fix install prefix for standalone buildChristian Hesse1-0/+6
2016-03-23configure: use capital letters for variable namesChristian Hesse1-26/+26
2016-03-23configure: default to cc instead of c99Marc André Tanner1-1/+1
Using -std=c99 in combination with c99 does not make sense. Some versions of Mac OS seem to have a broken wrapper implementing the c99 utility which always generates 32-bit code instead of targeting the native architecture. http://stackoverflow.com/questions/4182413 Also add clang to the list of compilers to try.
2016-03-23Make vis-clipboard executableMarc André Tanner1-0/+0
2016-03-23configure: fix detection of libtermkeyMarc André Tanner1-1/+1
On Cygwin the configure check for libtermkey fails due to unresolved symbols from libcurses. The pkg-config file of libtermkey lacks a reference to its dependencies (either curses or unibilium). Since we depend on curses anyway we can fix this by adding $LDFLAGS_CURSES to the configure check.
2016-03-23configure: use temporary file instead of /dev/null for compiler outputMarc André Tanner1-12/+13
This should fix configure checks on Cygwin whereas before gcc would attempt (and fail) to write to /dev/null.exe
2016-03-23Add missing wordMarc André Tanner1-1/+1
2016-03-23Remove identically replicated copyright comments from source filesMarc André Tanner7-103/+34
2016-03-23vis: use vis-clipboard instead of vis-{copy,paste} scriptsMarc André Tanner5-29/+6
2016-03-23Add vis-clipboard scriptRichard Burke1-0/+104
Originally written for the wed editor by Richard Burke, released under the ISC license for vis.
2016-03-22configure: clear ${C,LD}FLAGS_LUA in error caseMarc André Tanner1-0/+2
2016-03-22configure: exchange _{BSD,DARWIN_C}_SOURCE definesMarc André Tanner1-2/+2
2016-03-21Remove bashisms from configure script.Richard Burke1-4/+7
2016-03-21vis: also lookup Lua support files relative to the binary locationMarc André Tanner5-5/+23
This simplifies deployment of vis on remote systems without root access. The idea is to extract a statically linked binary together with the lexer syntax files into some directory, adjust $PATH to include it and have everything just work. For now this uses /proc/self/exe and thus only works on Linux based systems.
2016-03-21configure: probe for hardening flagsMarc André Tanner1-1/+8
2016-03-21configure: probe for size optimizing flags (disabled for now)Marc André Tanner1-0/+3
2016-03-21build: reorder some variablesMarc André Tanner2-6/+8
2016-03-21build: create empty config.mk if it does not existMarc André Tanner1-0/+3
This should fix `make local` (as used on travis-ci) and `make standalone` in cases where `configure` was not run successfully due to missing dependencies.
2016-03-21configure: make vis depend on config.mkChristian Hesse1-1/+1
We want vis to be rebuilt when configuration changes, so make vis depend on config.mk.
2016-03-21build: add vis subdirectory to $SHAREPREFIXMarc André Tanner1-5/+5