aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/qreg-commands.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-18 16:37:13 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-18 16:37:13 +0300
commit2c236869333dd20b77109fe7e9bb4ace30c0f774 (patch)
tree37551e37d3922c4f65f4c9d31abc7168294a0472 /src/qreg-commands.c
parentcf7e3bc51731ea4be786ec163532a63d7f93af87 (diff)
downloadsciteco-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/qreg-commands.c')
-rw-r--r--src/qreg-commands.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/qreg-commands.c b/src/qreg-commands.c
index 1d2766f..a1da5f9 100644
--- a/src/qreg-commands.c
+++ b/src/qreg-commands.c
@@ -308,7 +308,7 @@ teco_state_queryqreg_got_register(teco_machine_main_t *ctx, teco_qreg_t *qreg,
return &teco_state_start;
}
-/*$ Q Qq query
+/*$ "Q" "Qq" ":Qq" query
* Qq -> n -- Query Q-Register existence, its integer or string characters
* -Qq -> -n
* <position>Qq -> code
@@ -446,7 +446,7 @@ teco_state_setqregstring_nobuilding_done(teco_machine_main_t *ctx,
return &teco_state_start;
}
-/*$ ^Uq
+/*$ "^Uq" ":^Uq" "set string" append
* [c1,c2,...]^Uq[string]$ -- Set or append to Q-Register string without string building
* [c1,c2,...]:^Uq[string]$
*
@@ -516,7 +516,7 @@ teco_state_setqregstring_building_done(teco_machine_main_t *ctx, const teco_stri
return teco_state_setqregstring_nobuilding_done(ctx, str, error);
}
-/*$ EU EUq
+/*$ "EU" "EUq" ":EUq"
* [c1,c2,...]EUq[string]$ -- Set or append to Q-Register string with string building characters
* [c1,c2,...]:EUq[string]$
*
@@ -564,7 +564,7 @@ teco_state_getqregstring_got_register(teco_machine_main_t *ctx, teco_qreg_t *qre
return &teco_state_start;
}
-/*$ G Gq get
+/*$ G Gq get paste
* Gq -- Insert Q-Register string
*
* Inserts the string of Q-Register <q> into the buffer
@@ -603,7 +603,7 @@ teco_state_setqreginteger_got_register(teco_machine_main_t *ctx, teco_qreg_t *qr
return &teco_state_start;
}
-/*$ U Uq
+/*$ "U" "Uq" ":Uq" set
* nUq -- Set Q-Register integer
* -Uq
* [n]:Uq -> Success|Failure
@@ -687,7 +687,7 @@ teco_state_macro_got_register(teco_machine_main_t *ctx, teco_qreg_t *qreg,
return &teco_state_start;
}
-/*$ M Mq eval
+/*$ "M" "Mq" ":Mq" call eval macro
* Mq -- Execute macro
* :Mq
*
@@ -738,7 +738,7 @@ teco_state_indirect_done(teco_machine_main_t *ctx, const teco_string_t *str, GEr
return &teco_state_start;
}
-/*$ EI indirect
+/*$ "EI" ":EI" indirect include
* EIfile$ -- Execute from indirect command file
* :EIfile$
*
@@ -850,7 +850,7 @@ teco_state_copytoqreg_got_register(teco_machine_main_t *ctx, teco_qreg_t *qreg,
return &teco_state_start;
}
-/*$ X Xq
+/*$ "X" "Xq" ":Xq" "@Xq" ":@Xq" copy extract
* [lines]Xq -- Copy into or append or cut to Q-Register
* -Xq
* from,toXq