Skip to content

live grep AND operator #1669

Answered by rieje
rieje asked this question in Q&A
Jan 5, 2025 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

glob_separator = "" solved the issue for me, though it doesn't sound like it would work or make sense in the context of the following code. It's because rg_glob_fn requires the query to contain glob_separator. Not sure what to think of this since it works but what it implements was not the intention of the rg_glob_fn. The final code:

grep = {
  -- for convenience, regex for query is rebuilt using rules inspired by
  -- https://oremacs.com/swiper/#ivy--regex-plus:
  -- 1) single spaces are replaced with `.*` (consecutive spaces are not
  --    affected)
  -- 2) to include literal spaces, use an extra space (e,g, 'word1  word2'
  --    for 'word1 word2')
  rg_glob = true,
  glob_separator =…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ibhagwan
Comment options

@rieje
Comment options

@ibhagwan
Comment options

@rieje
Comment options

Answer selected by rieje
@ibhagwan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants