Maxime Coste
f88d1dbe06
Window: basic binding of bufffer undo feature
2011-09-06 18:52:52 +00:00
Maxime Coste
1e87fe17c6
Buffer: Undo/Redo implementation
...
Currently only a linear undo, i.e. if you undo and then make some new
changes, previous undoed changes are lost. Final undo system should
support an undo tree, with timestamped modifications.
2011-09-06 18:49:32 +00:00
Maxime Coste
f58cbf0b98
utils: Add reversed template helper for container iteration
...
this permits to use range-based for loops to iterate on reversed
containers. Should work on any container implementing rbegin and rend.
2011-09-06 18:33:35 +00:00
Maxime Coste
3f51feaaef
Buffer: accept initial content in constructor
2011-09-06 18:33:18 +00:00
Maxime Coste
6668151c78
LineAndColumn: segregate into WindowCoord and BufferCoord
...
Having the same type to specify coordinates in window space or buffer
space is error prone, now the compiler will tell if we use one for
another.
2011-09-05 19:06:31 +00:00
Maxime Coste
d5012c9379
window: support scrolling
2011-09-05 18:55:31 +00:00
Maxime Coste
04c7ce8f01
window: cursor position is now stored in window coordinate
...
It was stored in buffer coordinates. Conversion methods added
2011-09-05 18:54:17 +00:00
Maxime Coste
2224118de2
insert: print '-- INSERT --' in status line
2011-09-02 18:45:57 +00:00
Maxime Coste
61b37a6057
RegexSelector: search the entire buffer instead of the current line
2011-09-02 18:38:10 +00:00
Maxime Coste
39f12a1766
add const BufferIterator::Buffer& buffer() method
2011-09-02 18:35:22 +00:00
Maxime Coste
19123186d7
better exception handling in edit and write_buffer
2011-09-02 18:02:29 +00:00
Maxime Coste
11d82b11b3
create_buffer_from_file: throw file_not_found instead of open_file_error when ENOENT
2011-09-02 18:01:20 +00:00
Maxime Coste
955744e5d0
prompt: correctly handle backspace when empty
2011-09-02 17:07:35 +00:00
Maxime Coste
053b2e233e
main: catch all exceptions, close ncurses and rethrow
2011-09-02 17:05:44 +00:00
Maxime Coste
f1631de4e0
add basic gitignore
2011-09-02 16:53:34 +00:00
Maxime Coste
535285d9e6
Initial commit
2011-09-02 16:51:20 +00:00