aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-12-04autoconf preparation: move everything into src/ subdirRobin Haberkorn1-208/+0
2012-12-04refactoring: split qbuffers.cpp|h into a q-registers (qregisters.cpp) and ↵Robin Haberkorn1-1/+2
Buffer ring part (ring.cpp)
2012-12-04search-replace command with default replacement string (FR)Robin Haberkorn1-0/+2
* based on FS command * default replacement string is stored in global register "-"
2012-12-02support Q* (return current buffer's Id) and edit-by-id using <n>EB$Robin Haberkorn1-1/+1
2012-11-22fix current working directory on WindowsRobin Haberkorn1-0/+17
2012-11-22under Windows, look for profile in current directoryRobin Haberkorn1-8/+34
* profile is called "teco.ini" under Windows
2012-11-20on UNIX, look for teco.ini in HOME directory instead of the system's config ↵Robin Haberkorn1-3/+9
directory * on Windows, it might still be a good idea to use the "config" directory (have to test it)
2012-11-20cleanup macro execution functions: common namespace, Execute::file() uses ↵Robin Haberkorn1-4/+5
Execute::macro()
2012-11-20local Q-Register tables; :M commandRobin Haberkorn1-2/+11
* munged files use the same local Q-Registers as commandline * :M calls macro without new set of local registers (local register names refer to the parent macro level) * only .x names accepted at the moment. for string building characters, this will like stay that way (cannot refer to extended/long names)
2012-11-20goto table cleanupRobin Haberkorn1-1/+1
2012-11-20make goto tables local to macro invocation: they are declared on the C++ ↵Robin Haberkorn1-1/+3
callstack since macro invocations result in nested macro_execute() calls otherwise a macro could set labels with program counters which are invalid in other macros/the command line
2012-11-20ED flags making 0-Register hook execution configurableRobin Haberkorn1-0/+4
* teco.ini updated as well
2012-11-20first working draft of syntax highlighting support and related necessary ↵Robin Haberkorn1-7/+1
features
2012-11-18avoid using Scintilla's SAVEPOINT mechanism altogether: fixes some ↵Robin Haberkorn1-22/+1
destructive commands * the only thing gained from (partially) using that mechanism is that no explicit calls to set the dirty-status of a buffer are necessary * however it had many disadvantages: * setting the buffer clean had to be done manually anyway (see previous commits) * when changing Q-Registers without affecting the current document, a flag had to be used to prevent setting the current document dirty * last but not least, it introduced a dependency on the order of the destructive operation and its UNDO token. * the UNDO token could trigger a SAVEPOINTLEFT notification resulting in additional rubout tokens to be pushed on the stack which screws the rubout stack. this can be avoided by clever ordering of the operations * using an explicit ring.dirtify() is therefore much better
2012-11-17use special flag to temporarily disable buffer dirty checks when a ↵Robin Haberkorn1-1/+2
Q-Register is (temporarily) edited without changing the current document
2012-11-16avoid some unnecessary jumps to buffer startRobin Haberkorn1-3/+2
2012-11-16empty Scintilla undo buffer on line termination and after mungingRobin Haberkorn1-0/+3
* also clear goto table after munging
2012-11-16keep a buffer dirty flag and display infos about the current buffer in the ↵Robin Haberkorn1-1/+29
interfaces (including the dirty flag) * was a bit tricky because the Scintilla SAVEPOINTS cannot be (fully) used * when a file is loaded or saved, a Scintilla SAVEPOINT is set * SAVEPOINTLEFT notifications are used to set a buffer dirty * SAVEPOINTREACHED notifications are useless since Scintilla does not consider the saves themselves to be undoable * GTK interface displays infos in window title bar * NCURSES interface has also been updated and cleaned up a bit. Infos are displayed in a new info line. * NCURSES: fixed popup display after terminal resizing
2012-11-15support stdio for curses interfaceRobin Haberkorn1-0/+24
* ./sciteco commandline help works now * messages issued during batch-mode macro processing are written to stdout/stderr * output can be redirected
2012-11-15changed default colors and moved stuff into user interfaceRobin Haberkorn1-11/+15
* hardcoding the colors is only preliminary * focus must be set in interface
2012-11-15cleaned up command line updating: the interface is responsible for drawing ↵Robin Haberkorn1-2/+1
the "*" (if it wants to)
2012-11-15make it possible for interface classes to define a get_options() method to ↵Robin Haberkorn1-2/+7
add an options group to the help menu
2012-11-15added Interface class to ease porting SciTECO to other platforms (toolkits)Robin Haberkorn1-168/+19
* will support Scintilla with Scinterm/NCurses * changes are in such a way that the generated machine code should have almost no overhead compared to the previous implementation (at least when compiled with optimizations)
2012-11-13support differen EOL modesRobin Haberkorn1-8/+17
* only <CR> was inserted into the command stream for Enter, which Scintilla always interpreted as <CR> * instead of interpreting the <CR> in the Insert command based on the EOL-Mode, always insert the current EOL into the command stream when Enter is pressed * inserting <CR> and <LF> independant of the EOL mode is still possible by using <CTRL/N> and <CTRL/K> respectively
2012-11-12allow munged macros to quit and echo messages on stdout/stderrRobin Haberkorn1-2/+21
* makes it possible to write standalone scripts * message echoing is only a preliminary way of stdio
2012-11-11<x,y>Xq command, automatic profile munging, explicit munging, commandline ↵Robin Haberkorn1-1/+57
option processing, unhandled commandline options in default buffer
2012-11-11use DEBUG macroRobin Haberkorn1-0/+2
2012-11-11Q-Register table and EQx commandRobin Haberkorn1-0/+1
2012-11-10filename autocompletion using <CTRL/T> and <TAB>Robin Haberkorn1-0/+5
* <TAB> autocompletion only in specified states * GtkInfoPopup widget to display possible completions, written using Gob2
2012-11-08added buffer ring and preliminary EB...$ implementationRobin Haberkorn1-5/+7
* undoing supported * does not yet support globbing
2012-11-07fixed "-" processing and improved C command, added R commandRobin Haberkorn1-3/+3
2012-11-06initial commit of SciTECO based on THECORobin Haberkorn1-0/+159