New answers tagged

1

EDIT A very basic code example to achieve fuzzy search using a single grep would be: (defun custom-counsel-function (str) (or (ivy-more-chars) (progn (let ((str (split-string str))) (counsel--async-command (format "rg --max-columns 240 --with-filename --no-heading --line-number --color never '%s' | grep %s" ...


3

C-u M-x occur \"\(#[^\"]+\)\" <RETURN> \1 (this strips the quotes) or C-u M-x occur "#.+\" <RETURN> (this keeps the quotes) occur finds all lines that match the provided regexp. Calling it with the prefix argument (C-u) returns only the matched text, not the complete lines. Using the capture group (\(...\)) lets you ...


Top 50 recent answers are included