helm-swoop icon indicating copy to clipboard operation
helm-swoop copied to clipboard

Could you please implement this feature?

Open yinhang-e5b0b9e888aa opened this issue 10 years ago • 3 comments

Hi,

It might be more convenient if I can input search string after opening swoop, instead of using the symbol under the cursor, like helm-occur did.

Especially while parsing large files, if currently the cursor is at above whitespace, swoop tries to copy the whole buffer to mini buffer, which lags a lot.

P.S. Could you improve the performance of handling large files, such as 50MB .

Thanks.

yinhang-e5b0b9e888aa avatar May 19 '15 06:05 yinhang-e5b0b9e888aa

You can disable pre-input with:

;; disable pre-input
(setq helm-swoop-pre-input-function
      (lambda () ""))

So, helm-swoop won't automatically use symbol at point. But originally, you can always erase the symbol in your Helm prompt.

About handling large file. you can disable color to improve performance:

(setq helm-swoop-speed-or-color nil)

But I agree there should be an option to not copy the whole buffer into Helm Swoop buffer.

tuhdo avatar May 19 '15 06:05 tuhdo

But I agree there should be an option to not copy the whole buffer into Helm Swoop buffer.

:+1:

Most of the time I'll search and not realize how huge the file was. I thought that it was a problem with C++ mode but it just happened with a very large JSON file as well & it only happens when using helm swoop.

For now I've thrown in a check for file size before performing helm swoop & falling back to the default C-s search.

ghost avatar Jun 09 '15 01:06 ghost

you should also be able to reduce helm-swoop-candidate-number-limit and it will improve performance.

CeleritasCelery avatar Jun 08 '18 06:06 CeleritasCelery