summaryrefslogtreecommitdiff
path: root/main.c
AgeCommit message (Collapse)Author
2016-04-12Add "[(" and "])" motions for jumping to a parenthese pair's start/endRob Pilling
2016-04-12Add "[{" and "]}" motions to jump to a block's start/endRob Pilling
2016-04-11main.c: correct name of function, cursor>windowJosh Wainwright
"open-file-under-cursor-new-cursor" should be "open-file-under-cursor-new-window"
2016-04-05vis: fix coverity scan warningsMarc André Tanner
2016-04-05vis: let <C-l> remove all but the count cursor columnMarc André Tanner
2016-04-04vis: let <C-c> remove the count cursor columnMarc André Tanner
2016-04-04vis: fix selection column rotationMarc André Tanner
2016-04-04vis: in visual mode allow navigation among cursors using <C-j> and <C-k>Marc André Tanner
2016-04-03sam: unify vi(m) and sam command lineMarc André Tanner
The following vi commands have been dropped: - saveas - xit - ! The following commands are only recognized in their short form: - e (edit) - q (quit) - s (substitute) - w (write) - r (read)
2016-04-03vis: in visual mode let \ trim selectionsMarc André Tanner
2016-03-30vis: implement selection rotationMarc André Tanner
In visual mode + and - will rotate the selection count times to the right or left respectively. If there exists a line containing multiple selections then the rotation happens within each line. Otherwise if each line contains at most one selection the rotation is performed among all existing selections.
2016-03-28vis: Ctrl-{j,k} do not create duplicate cursors, instead advance primary oneMarc André Tanner
2016-03-28vis: support right alignment of selections in visual mode with <S-Tab>Marc André Tanner
2016-03-28vis: support count for {Meta-Ctrl,Ctrl}-{j,k}Marc André Tanner
Create count new cursors on the lines above/below.
2016-03-28vis: fix changing of primary cursor via Ctrl-{u,d}Marc André Tanner
2016-03-28vis: let Meta-Ctrl-{j,k} create new cursorMarc André Tanner
on the line above/below the first/last existing cursor.
2016-03-28vis: align selections with <Tab> in visual modeMarc André Tanner
2016-03-28vis: support column based alignmentMarc André Tanner
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: change cursor creation API to take an initial positionMarc André Tanner
2016-03-15vis: add support for command register ":Marc André Tanner
2016-03-12vis: overhaul search related code, support "/ registerMarc André Tanner
2016-03-11vis: respect count for <C-d> and <C-u>Marc André Tanner
2016-03-10view: add query function for multiple cursorsMarc André Tanner
2016-03-10vis: let <C-u> and <C-d> in visual mode move to prev/next cursorMarc André Tanner
We do currently not enforce a strict ordering among cursors. Hence these key bindings can move you to an arbitray position. In practice it somewhat works because most of the time cursors are created in "top-down" i.e from the start of the file towards the end.
2016-03-10view: clean up API functions related to primary cursor handlingMarc André Tanner
The currently visible display port is always adjusted in a way that the primary cursor is visible.
2016-02-25vis: use standard registers for macro recordingsMarc André Tanner
Also support upper case register to append to an existing macro.
2016-02-23Make f, F, t, T motion work when replaying a macroMarc André Tanner
2016-02-22remove unused function cmd()Christian Hesse
2016-02-18vis: fix possible undefined zero allocationMarc André Tanner
2016-02-18vis: add insfrastructure to support global key mappingsMarc André Tanner
Except for insert/replace mode keys get translated before any key bindings are evaluated. This is useful for non-english/latin keyboard layouts.
2016-02-15Add text object to cover lines with same indentation levelMarc André Tanner
By default it is mapped to i<Tab> and a<Tab> however there is currently no difference between the inner and regular version.
2016-02-13vis: in insert mode <S-Tab> aligns all cursors by inserting spacesMarc André Tanner
2016-02-13Convert call sites of text_line_char_{get,set} to text_line_width_{get,set}Marc André Tanner
2016-02-12vis: fix printf format string used in number_increment_decrementMarc André Tanner
The field width specifier '*' expects an int. be fine here since we are expecting a small positive number and the result is
2016-02-12Mark some tables as constMarc André Tanner
This allows them to be placed into the read only ELF section.
2016-02-11vis: implement gn and gN text objectsMarc André Tanner
The behaviour when no match is found is not yet optimal.
2016-02-10vis: implement yank register "0Marc André Tanner
2016-02-10vis: implement gf and <C-w>gf to open filename under cursorMarc André Tanner
Based on a patch by Silvan Jegen.
2016-02-07vis: implement number increment <C-a> and decrement <C-x> functionalityMarc André Tanner
The default key bindings are not changed for now, because <C-a> conflicts with multiple cursor alignment.
2016-01-30Implement "A - "Z registersMarc André Tanner
2016-01-30Implement system clipboard registers "* and "+Marc André Tanner
Both registers are currently treated identically. The actual system integration is performed by two shell scripts vis-copy and vis-paste.
2016-01-30Implement blackhole register "_Marc André Tanner
2016-01-30Cleanup register implementationMarc André Tanner
2016-01-28vis: implement nn%Marc André Tanner
Moves to the given percentage of the file in bytes (not lines). This is useful when dealing with huge files because it is a constant time operation. Performance could still be improved by adapting the display code not to rely on line numbers at all.
2016-01-28vis: clean up count handlingMarc André Tanner
There are cases where zero can also be a legitimate count.
2016-01-27vis: apply insert register <C-r> to all cursorsMarc André Tanner
Note that cursors currently have only one default register.
2016-01-20vis: make <End> in insert/replace mode move to the end of lineMarc André Tanner
The behaviour of <End> vs $ in various modes may still be inconsistent, but at least it can now be configured via key bindings.
2016-01-19vis: fix default command prompt in visual modeMarc André Tanner
2016-01-19vis: improve selection restore `gv`Marc André Tanner
2016-01-18vis: simplify code by using text_bytes_alloc0Marc André Tanner