diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-13 18:35:32 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-13 18:35:32 +0300 |
commit | fbab5e252f22de37d42cc6c2a014d690a9312565 (patch) | |
tree | 9552e56a343e5b9e273021ab53c376d773486447 /src/core-commands.c | |
parent | 8c6de6cc718debf44f6056a4c34c4fbb13bc5020 (diff) | |
download | sciteco-fbab5e252f22de37d42cc6c2a014d690a9312565.tar.gz |
implemented <ER> command for reading a file into the current buffer
* This command exists in Video TECO.
In Video TECO it also supports reading multiple files with a glob pattern -- we do not support that
as I am not convinced of its usefulness.
* teco_view_load() has been extended, so it can read into dot without
discarding the existing document.
Diffstat (limited to 'src/core-commands.c')
-rw-r--r-- | src/core-commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core-commands.c b/src/core-commands.c index 0ff2b81..8e31ae3 100644 --- a/src/core-commands.c +++ b/src/core-commands.c @@ -2686,6 +2686,8 @@ teco_state_ecommand_input(teco_machine_main_t *ctx, gunichar chr, GError **error .modifier_at = TRUE, .modifier_colon = 1}, ['W'] = {&teco_state_save_file, .modifier_at = TRUE}, + ['R'] = {&teco_state_read_file, + .modifier_at = TRUE}, /* * Commands |