From c310c7d875c8aa871180de130e820ed19a2489f5 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 12 Dec 2014 16:39:46 +0100 Subject: implemented automatic EOL translation support * activated via bit 4 of the ED flag (enabled by default) * automatic EOL guessing on file loading and translation to LFs. * works with files that have inconsistent EOL sequences. * automatic translation to original EOL sequences on file saving * works with inconsistent EOL sequences in the buffer. This should usually not happen if the file was read in with automatic EOL translation enabled. * also works with the EC and EG commands * performance is OK, depending on the file being translated. When reading files with UNIX EOLs, the overhead is minimal typically-sized files. For DOS EOLs the overhead is larger but still acceptable. * Return (line feed) is now an immediate editing command. This centralizes EOL sequence insertion. Later, other features like auto-indent could be added to the editing command. * get_eol() has been moved to main.cpp (now called get_eol_seq() * Warn if file ownership could not be preserved when saving files. * IOView has been almost completely rewritten based on GIOChannels. The EOL translation code is also in IOView. --- TODO | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index f884e0a..d7e4bea 100644 --- a/TODO +++ b/TODO @@ -10,6 +10,13 @@ Known Bugs: throwing exceptions is unsafe from C-linkage callbacks. Features: + * Support loading from stdin (--stdin) and writing to + the current buffer to stdout on exit (--stdout). + This will make it easy to write command line filters, + This also means we need something like --ed to set the + ED flags before everything else and --quiet. + Command line arguments should then also be handled + differently. * The C/C++ lexer supports preprocessor evaluation. This is currently always enabled but there are no defines. Could be added as a global reg to set up defines easily. @@ -52,8 +59,7 @@ Features: * Add special Q-Register for dot: Would simplify inserting dot with string building and saving/restoring dot on the QReg stack - * automatic EOL detection of buffers; easy EOL setting - :EL command could also convert all EOLs in the current + * :EL command could also be used to convert all EOLs in the current buffer. * command to change the current working directory. This will influence tab-completion and relative file names. -- cgit v1.2.3