aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cmdline.cpp
AgeCommit message (Collapse)AuthorFilesLines
2014-11-09implemented EC command (execute operating system command) in spawn.cppRobin Haberkorn1-0/+1
powerful command for filtering a SciTECO buffer through an external program. It will be described in the sciteco(7) man pages. The implementation uses an asynchronous background process with pipes but is platform independant thanks to glib's g_spawn functions, GIOChannels and event loops. There are however platform differences in how the operating system command is interpreted/parsed.
2014-02-16rewritten command-line completion without Glib's g_complete_ functionsRobin Haberkorn1-40/+60
* they have been marked deprecated in recent libglib versions (since v2.26) * there is no alternative in recent libglib versions, so we simply do it with a little string handling. this works with older and newer libglib versions.
2014-02-15updated Copyright to year 2014Robin Haberkorn1-1/+1
2014-02-15removed most exception specifications: allow bad_allocs to propagateRobin Haberkorn1-1/+1
* specifications resulted in runtime errors (unexpected exception) when bad_alloc ocurred * specs should be used scarcely: only when the errors that may be thrown are all known and for documentary purposes
2014-02-15added support for TECO stack tracingRobin Haberkorn1-1/+4
* when an error is thrown, stack frames are collected on clean up, up to the toplevel macro * the toplevel macro decides how to display the error * now errors in interactive and batch mode are displayed differently * in batch mode, a backtrace is displayed as a sequence of messages * Execute::file() forwards errors correctly * the correct error in the file is displayed in interactive mode * necessary to build the stack trace
2013-03-18make sure a (void*)0 is used as sentinelsRobin Haberkorn1-2/+2
since including glib.h on LLVM-Clang (32-bit) results in NULL being redefined to 0 and compiler warnings being emitted when NULL is used as sentinels
2013-03-16common parent state for all file-name-expecting commands: fixes EM ↵Robin Haberkorn1-3/+1
tab-completions * StateExpectFile adds no functionality (currently), but is useful for checking state types
2013-03-16documented remaining commandsRobin Haberkorn1-0/+7
* flow control and other structures have not been documented this ways. I have not yet decided whether they should be documented in separate sections or use the documentation tool.
2013-02-22resolved enter-key handling by introducing get_eol()Robin Haberkorn1-0/+14
2013-02-22Windows (MinGW) compatibility fixes: suspending impossible and environment ↵Robin Haberkorn1-1/+3
initialization revised * g_get_environ() appears to be broken, at least in Wine and Win2k
2013-02-16fixed commandline replacementsRobin Haberkorn1-15/+16
ensure that undo tokens for first differing characters are actually associated with this character instead of the next. (resulted in strange behaviour on rubout and subsequent replacements)
2013-02-16function key support (keys without printable representation) using keyboard ↵Robin Haberkorn1-0/+17
macros * if enabled, when a function key is pressed it is looked up in Q-Registers ^F... e.g. HOME key corresponds to register ^FHOME * the string if available is inserted as if it was entered by key-presses (later it may be entered as a single input token which may be removed in a single rubout) * only NCurses currently, key names directly correspond to Curses key names * on Curses if function keys are enabled ESCAPE will be inserted after a delay (because function keys are transmitted via escape sequences). A function key macro may be used to define an alternative escape character
2013-02-11properly support <CTL/Z> suspension as immediate commandRobin Haberkorn1-0/+12
see comment: special handling of <CTL/Z> in terminal might be disabled, or commandline input might be in X11 window...
2013-02-11<CTL/U> immediate editing command to rubout current string paramRobin Haberkorn1-0/+9
when not in string-state, <CTL/U> is self inserting (unlike traditional TECO where it would clear your entire commandline)
2013-02-11fixup: word-rubout may rub out nothingRobin Haberkorn1-4/+3
2013-02-11States::is_string() to check whether current state is a string-stateRobin Haberkorn1-7/+8
2013-02-11support <CTRL/W> immediate editing command: depending on context, rub out ↵Robin Haberkorn1-0/+24
words or entire commands * when rubbing out words (in string params), use Scintilla's definition of a word
2013-02-11support <CNTRL/T> immediate editing command only in string parametersRobin Haberkorn1-31/+32
* fixes autocompletion at the beginning of string params * is also available in filename commands and would allow filename completion after string beginning * also did some editing command cleanup
2013-02-08reverse Execute::step() change: no need to pass parameters by referenceRobin Haberkorn1-1/+1
cmdline and cmdline_pos is no longer modified by code executed by step() instead it is modified at the outermost macro level (commandline macro level)
2013-02-08delegate commandline replacements ("}") to the cmdline macro levelRobin Haberkorn1-11/+34
allows commandline editing scripted by macros
2013-02-03first draft of commandline-editing commands ({ and } as in VideoTECO)Robin Haberkorn1-22/+11
* simplified traditional commandline editing. no need to extend cmdline string one character at a time when inserting multiple. instead there's a marker (cmdline_pos) specifying the macro length to execute in a "step" and also the anchor for generating undo tokens * implementation does not yet work in macro calls * while editing the commandline, other buffers/registers may not be edited (need push-down-list and auxiliary q-register)
2013-01-27fixed scintilla symbol autocompletionRobin Haberkorn1-3/+3
do not accidentally overwrite the Scintilla (SCI_...) message symbol set
2013-01-23cleaned up QRegister state interface (can pass register by reference)Robin Haberkorn1-3/+3
2013-01-23implemented special save last commandline command ("*" at beginning of ↵Robin Haberkorn1-1/+24
commandline macro) * only works as part of commandline macro, * at the beginning of other macros, it is treated like an arithmetic asterisk * variables defined in cmdline.cpp are now declared by new cmdline.h
2013-01-22fixed: macro program counter is fixed after error occurred while executing ↵Robin Haberkorn1-0/+2
commandline fixes errors in loops or loop interruptions (may leave program counter somewhere in the loop)
2013-01-19updated copyright (2012-2013)Robin Haberkorn1-1/+1
2012-12-04added copyright notice to every source fileRobin Haberkorn1-0/+17
2012-12-04first working version of autotools based build-systemRobin Haberkorn1-0/+4
2012-12-04autoconf preparation: move everything into src/ subdirRobin Haberkorn1-0/+371