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

helm-swoop-dwim?

Open dithomasrc opened this issue 9 years ago • 4 comments

I love that I can search for symbol-at-point, but sometimes (most of the time) Id like to be able to type a new string even if my cursor is on a symbol. Is there a way to automagically delete the entered symbol by typing a new string? I know C-k will kill the symbol, but Id like it automatically killed by typing a string.

dithomasrc avatar Jun 30 '15 18:06 dithomasrc

I would love this too!

ReneFroger avatar Jun 30 '15 20:06 ReneFroger

+1

Dickby avatar Jul 01 '15 17:07 Dickby

If more frequently you just type the new string do the opposite, disable the pre-input and yank thing-at-point with C-w when needed. (setq helm-swoop-pre-input-function #'ignore)

sewkokot avatar Jul 07 '15 09:07 sewkokot

Do you mean something like helm-grep-do-ag? AFIAK, helm-grep-do-ag will search symbol-at-point directly while no input but not treat it as preinput.

cireu avatar Aug 14 '19 07:08 cireu