aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/search.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/search.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/search.c')
-rw-r--r--src/search.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/search.c b/src/search.c
index d5387da..4724643 100644
--- a/src/search.c
+++ b/src/search.c
@@ -56,7 +56,7 @@ TECO_DEFINE_UNDO_SCALAR(teco_search_parameters_t);
*/
static teco_search_parameters_t teco_search_parameters;
-/*$ ^X search-mode
+/*$ "^X" "search mode"
* mode^X -- Set or get search mode flag
* -^X
* ^X -> mode
@@ -887,7 +887,7 @@ teco_state_search_done(teco_machine_main_t *ctx, const teco_string_t *str, GErro
##__VA_ARGS__ \
)
-/*$ S search pattern compare
+/*$ "S" ":S" "::S" search pattern compare
* [n]S[pattern]$ -- Search for pattern
* -S[pattern]$
* from,toS[pattern]$
@@ -1030,7 +1030,7 @@ teco_state_search_all_done(teco_machine_main_t *ctx, const teco_string_t *str, G
return &teco_state_start;
}
-/*$ N
+/*$ "N" ":N" "search all"
* [n]N[pattern]$ -- Search over buffer-boundaries
* -N[pattern]$
* from,toN[pattern]$
@@ -1137,7 +1137,7 @@ teco_state_search_kill_done(teco_machine_main_t *ctx, const teco_string_t *str,
return &teco_state_start;
}
-/*$ FK
+/*$ "FK" ":FK"
* FK[pattern]$ -- Delete up to occurrence of pattern
* [n]FK[pattern]$
* -FK[pattern]$
@@ -1188,7 +1188,7 @@ teco_state_search_delete_done(teco_machine_main_t *ctx, const teco_string_t *str
return &teco_state_start;
}
-/*$ FD
+/*$ "FD" ":FD" "::FD"
* [n]FD[pattern]$ -- Delete occurrence of pattern
* -FD[pattern]$
* from,toFD[pattern]$
@@ -1249,7 +1249,7 @@ teco_state_replace_done(teco_machine_main_t *ctx, const teco_string_t *str, GErr
: &teco_state_replace_ignore;
}
-/*$ FS
+/*$ "FS" ":FS" "::FS"
* [n]FS[pattern]$[string]$ -- Search and replace
* -FS[pattern]$[string]$
* from,toFS[pattern]$[string]$
@@ -1354,7 +1354,7 @@ teco_state_replace_default_done(teco_machine_main_t *ctx, const teco_string_t *s
: &teco_state_replace_default_ignore;
}
-/*$ FR
+/*$ "FR" ":FR" "::FR" search-replace
* [n]FR[pattern]$[string]$ -- Search and replace with default
* -FR[pattern]$[string]$
* from,toFR[pattern]$[string]$
@@ -1393,7 +1393,7 @@ teco_state_replace_default_all_done(teco_machine_main_t *ctx, const teco_string_
return state;
}
-/*$ FN
+/*$ "FN" ":FN" "::FN" "search-replace all"
* [n]FN[pattern]$[string]$ -- Search and replace with default over buffer-boundaries
* -FN[pattern]$[string]$
* from,toFN[pattern]$[string]$