From 59d1188feb5c037eeffe6ba782ab362d2bb46a2d Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 7 Jun 2025 13:58:39 +0300 Subject: added as a search-and-replace variant of * This is not in Video TECO, but TECO-11 has a search-and-replace variant of . however is a search-over-page-boundary command in TECO-11, which has been repurposed as search-over-buffer-boundary in Video TECO and SciTECO. * and no longer call the edit hook after *every* invocation, but only if the current buffer changes. This is not really relevant with the current default hook from fallback.teco_ini, but might be depending on the use case. * Added testcases both for and . --- 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 d2abe79..4f3ed94 100644 --- a/src/core-commands.c +++ b/src/core-commands.c @@ -1037,6 +1037,8 @@ teco_state_fcommand_input(teco_machine_main_t *ctx, gunichar chr, GError **error .modifier_at = TRUE, .modifier_colon = 2}, ['R'] = {&teco_state_replace_default, .modifier_at = TRUE, .modifier_colon = 2}, + ['N'] = {&teco_state_replace_default_all, + .modifier_at = TRUE, .modifier_colon = 1}, ['G'] = {&teco_state_changedir, .modifier_at = TRUE}, -- cgit v1.2.3