Skip to content

Fuzzy find among projects lines, and use globs to filter filtes #1940

Closed Answered by nenahp
pure-bliss asked this question in Q&A
Discussion options

You must be logged in to vote

Possible to do it interactively with transform-search action:
https://github.com/junegunn/fzf/blob/ba6d1b8772ce5e75ff999dcca21c0fadb689d7bf/CHANGELOG.md#L129

EDIT: fail to sleep again, take it away...

M.grep_project_glob = function()
  local last_gq
  local cmd = 'rg --column --line-number --no-heading --color=always --smart-case'
  local actions = require('fzf-lua.actions')
  require('fzf-lua').fzf_exec(('%s ""'):format(cmd), {
    previewer = 'builtin',
    actions = {
      ['enter'] = actions.file_edit_or_qf,
      ['ctrl-s'] = actions.file_split,
      ['ctrl-v'] = actions.file_vsplit,
      ['ctrl-t'] = actions.file_tabedit,
      ['alt-q'] = actions.file_sel_to_qf,
      ['alt-Q'] = 

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pure-bliss
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants