summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-09-14All *_free(...) functions should accept a NULL argumentMarc André Tanner
2014-09-14Fix clang static analyzer warningsMarc André Tanner
2014-09-13Rename OP_PASTE to OP_PUTMarc André Tanner
2014-09-13Introduce some helper functions dealing with FilerangeMarc André Tanner
2014-09-13Rename text_insert_raw to text_insertMarc André Tanner
2014-09-13Introduce and use EPOS instead of (size_t)-1Marc André Tanner
2014-09-13Make window_selection_get to return the correct rangeMarc André Tanner
This makes the operator operate on the correct file range if executed from visual mode. The problem is that if the cursor is visible the selection seems larger than it actually is. The cell under the cursor is actually not part of the selection eventhough it is visually indistinguishable from it. The somewhat hacky way around this is to hide the cursor once selection is active and show it again once the selection is cleared. This will probably cause a headache if the cursor needs to be visible while a selection is active like for example in the command prompt.
2014-09-13Add a READMEMarc André Tanner
This is for now just a mail originally sent to the suckless mailing list.
2014-09-13Fix 'G' movement to end of fileMarc André Tanner
action.count is 1 by default. notice that this breaks 1G which should move to the first line / start of file.
2014-09-13Add movements 'H', 'M', 'L'Marc André Tanner
H moves to the n-th window line from top M moves to the middle window line L moves to the n-th window line from bottom
2014-09-13In normal mode 'r' should also replace new linesMarc André Tanner
2014-09-12Cleanup editor.hMarc André Tanner
2014-09-12Display a few error messages where appropriateMarc André Tanner
2014-09-12Use the new global keypress hook to hide user messagesMarc André Tanner
2014-09-12Add a global keypress hook before any keybindings are checkedMarc André Tanner
If the registered function returns false, completely ignore the key.
2014-09-12Add facility to display a message to the userMarc André Tanner
2014-09-12Add some more API commentsMarc André Tanner
2014-09-12Make sure that the state is consistent after an undo operationMarc André Tanner
When performing an undo operation, further changes should not be accounted to the then active action. Therefore take a snapshot which resets txt->current_action to NULL.
2014-09-12Remove outdated commentsMarc André Tanner
2014-09-12Fix loading of not yet existing filesMarc André Tanner
2014-09-12Introduce text_filename_setMarc André Tanner
This can be used to associate a given filename to a currently unnamed text.
2014-09-12Rename text_filename to text_filename_getMarc André Tanner
2014-09-12Restore cursor position after an undo/redoMarc André Tanner
2014-09-12Name modes more consistentlyMarc André Tanner
2014-09-12Take snapshot when leaving insert/replace modeMarc André Tanner
Make sure we are able to restore text to whatever state was when we left insert / replace mode after an editing operation.
2014-09-12Make normal mode command 'x' undoableMarc André Tanner
2014-09-11Be stricter on what commands to accept at the ':'- promptMarc André Tanner
2014-09-11Fix bug when moving to characters with display width > 1Marc André Tanner
2014-09-11Add :edit commandMarc André Tanner
2014-09-11Remove Ctrl+c for quit, since we now have a command promptMarc André Tanner
2014-09-11Fix ascii art tree of modesMarc André Tanner
2014-09-11Add normal mode command 'X'Marc André Tanner
2014-09-11Avoid segfault if no previous search has been performedMarc André Tanner
2014-09-11Fix warnings about redefinition of typedefed structsMarc André Tanner
2014-09-11Add/cleanup window commands Ctrl-{n,s,q}Marc André Tanner
2014-09-11Add :qall commandMarc André Tanner
2014-09-11On the prompt Ctrl-{B,E} should move the cursor to the begin/end of the lineMarc André Tanner
2014-09-11In visual mode 'v' should switch to normal modeMarc André Tanner
2014-09-11Add readline Ctrl+U bindingMarc André Tanner
2014-09-10Reindent readline key bindingsMarc André Tanner
2014-09-10Clean up normal mode key bindingsMarc André Tanner
2014-09-10Add normal mode command 's'Marc André Tanner
2014-09-10Add movement 'W'Marc André Tanner
2014-09-10Add normal mode command 'J'Marc André Tanner
2014-09-10Add normal mode commands 'O' and 'o'Marc André Tanner
2014-09-10Make movements to next / previous line availableMarc André Tanner
2014-09-10text-motions: add text_line_prev functionMarc André Tanner
2014-09-10text-motions: fix no match case of text_find_char_{next,prev}Marc André Tanner
These functions should return the original position in case no match was found.
2014-09-10Add normal command 'Y' as a synonym for 'yy'Marc André Tanner
2014-09-10Add normal command 'S' as asynonym for 'cc'Marc André Tanner