A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/radian-software/selectrum/issues/448 below:

completion-boundaries support · Issue #448 · radian-software/selectrum · GitHub

See comment by @minad:

I tried your checko example from above again and it would actually nice if there would be some limited support for completion boundaries in Selectrum.

(defun grep-test (string pred action)
  (if (eq (car-safe action) 'boundaries)
      (cons 'boundaries
            (cons
             (if-let (pos (seq-position string ?#))
                 (1+ pos)
               (length string)) 0))
    (complete-with-action action '(alpha beta gamma) "" pred)))

If you enter grep#filter, then "grep" is ignored by completion and "filter" is used for completion. This allows also to TAB cycle through the results in default completion which is an improvement over the status quo in consult-grep.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4