From 78745eb618982f129e8ee1b731cb4442c32432a8 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 24 Jun 2026 22:19:52 -0400 Subject: change search result symbols for show index & text --- org/spine_search_cgi.org | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'org/spine_search_cgi.org') diff --git a/org/spine_search_cgi.org b/org/spine_search_cgi.org index b298da2..e160c2b 100644 --- a/org/spine_search_cgi.org +++ b/org/spine_search_cgi.org @@ -654,17 +654,21 @@ auto rgx = regex_canned_search; string _matched_objects_text = ""; string _url = canned_url; string _url_new = ""; +string _symbol = ""; string _matches_show_text = "&rt=txt"; string _matches_show_index = "&rt=idx"; string _fn = "&fn=" ~ fn; _url_new = _url; if (_url_new.match(rgx.results_type_index)) { _url_new = _url_new.replace(rgx.results_type_index, _matches_show_text); + _symbol = "▶"; } else if (_url.match(rgx.results_type_text)) { _url_new = _url_new.replace(rgx.results_type_text, _matches_show_index); + _symbol = "▼"; } else { if (!(_url.match(rgx.results_type))) { _url_new = _url ~ _matches_show_text; + _symbol = "▶"; } } if (!(_url_new.match(rgx.fn))) { @@ -675,11 +679,14 @@ _matched_objects_text = ~ "" - ~ "፠" + ~ _symbol ~ ""; return _matched_objects_text; #+END_SRC +▶ ▼ +፠ + **** previous_next () {} #+NAME: spine_search_previous_next @@ -941,9 +948,10 @@ return tip; match [ results: - ፨ (index) - ⚏ (text / grep) - ]  [ limit: + [ + ▶ index ፨ ]  [ + ▼ text / grep ⚏ ] + ]   [ limit: 1,000 2,500 ] -- cgit v1.2.3