diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-18 16:37:13 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-18 16:37:13 +0300 |
commit | 2c236869333dd20b77109fe7e9bb4ace30c0f774 (patch) | |
tree | 37551e37d3922c4f65f4c9d31abc7168294a0472 /src/core-commands.c | |
parent | cf7e3bc51731ea4be786ec163532a63d7f93af87 (diff) | |
download | sciteco-2c236869333dd20b77109fe7e9bb4ace30c0f774.tar.gz |
revised command topics
* Added some keywords.
* Consistently added command variants with all modifiers.
In principle including modifiers in the topics is unnecessary -
you can always strip the modifiers and look up the raw command.
However, looking up a command with modifiers can speed up the process
(compare looking up ?S<TAB> vs ?::S<TAB>
* The `@` modifier is listed only for commands without string arguments.
Diffstat (limited to 'src/core-commands.c')
-rw-r--r-- | src/core-commands.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core-commands.c b/src/core-commands.c index 287a9a3..7222a9f 100644 --- a/src/core-commands.c +++ b/src/core-commands.c @@ -377,7 +377,7 @@ teco_state_start_loop_close(teco_machine_main_t *ctx, GError **error) } } -/*$ ";" break +/*$ ";" ":;" break * [bool]; -- Conditionally break from loop * [bool]:; * @@ -905,7 +905,7 @@ TECO_DEFINE_STATE_COMMAND(teco_state_start, .keymacro_mask = TECO_KEYMACRO_MASK_START | TECO_KEYMACRO_MASK_CASEINSENSITIVE ); -/*$ F< +/*$ "F<" ":F<" * F< -- Go to loop start or jump to beginning of macro * :F< * @@ -946,7 +946,7 @@ teco_state_fcommand_loop_start(teco_machine_main_t *ctx, GError **error) ctx->macro_pc = lctx->pc; } -/*$ F> continue +/*$ "F>" ":F>" continue * F> -- Go to loop end or return from macro * :F> * @@ -1382,7 +1382,7 @@ teco_state_control_radix(teco_machine_main_t *ctx, GError **error) } } -/*$ ^E glyphs2bytes bytes2glyphs +/*$ "^E" ":^E" glyphs2bytes bytes2glyphs * glyphs^E -> bytes -- Translate between glyph and byte indexes * bytes:^E -> glyphs * ^E -> bytes @@ -1543,7 +1543,7 @@ teco_ranges_cleanup(void) g_free(teco_ranges); } -/*$ ^B date time timestamp +/*$ "^B" ":^B" "::^B" date time timestamp * ^B -> (((year-1900)*16 + month)*32 + day) -- Retrieve date, time or timestamp * :^B -> seconds * ::^B -> timestamp @@ -2241,7 +2241,7 @@ teco_state_ecommand_properties(teco_machine_main_t *ctx, GError **error) } } -/*$ EL eol +/*$ "EL" ":EL" EOL * 0EL -- Set or get End of Line mode * 13,10:EL * 1EL @@ -2404,7 +2404,7 @@ teco_codepage2str(guint codepage) return NULL; } -/*$ EE encoding codepage charset +/*$ "EE" ":EE" encoding codepage charset * codepageEE -- Edit current document's encoding (codepage/charset) * EE -> codepage * codepage:EE @@ -2598,7 +2598,7 @@ teco_state_ecommand_encoding(teco_machine_main_t *ctx, GError **error) teco_interface_ssm(SCI_GOTOPOS, teco_interface_glyphs2bytes(dot_glyphs), 0); } -/*$ EX exit +/*$ "EX" ":EX" exit * [bool]EX -- Exit program * -EX * :EX |