From fbab5e252f22de37d42cc6c2a014d690a9312565 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 13 Jul 2025 18:35:32 +0300 Subject: implemented 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. --- src/core-commands.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core-commands.c') 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 -- cgit v1.2.3