diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-11-19 14:33:30 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-11-23 02:31:29 +0300 |
commit | 07b52f78680858683acb4e40b158f8926285cae4 (patch) | |
tree | 9cd329e6c671d909bb4d14c9f61a6d4c97331d83 /src/search.h | |
parent | 9610dceb6527fcf43e0997c53e8dcf7186721e1a (diff) | |
download | sciteco-07b52f78680858683acb4e40b158f8926285cae4.tar.gz |
implemented search mode flag (^X): allow case-sensitive searches (closes #17)
* Usually you will only want -^X for enabling case sensitive searches
and 0^X for case-insensitive searches (which is also the default).
* An open question is what happens if the user sets -^X and then calls
a macro. The search mode flag should probably be stacked away along
with the search-string. This means we'd need a ^X special Q-Reg as well,
so you can write [^X[_ 0^X S...$ ]_]^X.
Alternatively, the search mode flag should be a property of the
macro frame, along with the radix.
Diffstat (limited to 'src/search.h')
-rw-r--r-- | src/search.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/search.h b/src/search.h index 3eacb6d..40ab4d8 100644 --- a/src/search.h +++ b/src/search.h @@ -16,8 +16,12 @@ */ #pragma once +#include <glib.h> + #include "parser.h" +void teco_state_control_search_mode(teco_machine_main_t *ctx, GError **error); + TECO_DECLARE_STATE(teco_state_search); TECO_DECLARE_STATE(teco_state_search_all); TECO_DECLARE_STATE(teco_state_search_kill); |