-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-select the pre-input so that it can be clear immediately by any new input #118
Comments
I achieved it by adding following hook: (defun my-minibuffer-setup-hook () |
This ought to be the default behaviour of all such helm input buffers. I would suggest reopening. |
OK. |
@rileyrg You'd better open a feature request in helm's issue tracking system to achieve this goal. Because |
I guess he want a flex placeholder for minibuffer. |
Thanks. Anyway, any change with breakage hard to merge to master. |
I'm not sure how this is going but in any ui that opens with a preselect
it should be "selected" meaning any typing deletes it and starts a new
search. Should I want to append or edit I arrow to remove the region
selection. Eg I would normally use the symbol at point pre select... But if
I type its a new search request without the need to C-x del first. Like the
op it seems the only sensible operation. If there were a configured flag to
enable this that's great.
…On Tue, 24 Dec 2019, 13:53 Naoya Yamashita ***@***.***> wrote:
Thanks. Anyway, any change with breakage hard to merge to master.
If user customization can satisfy your requirements, we would be glad if
you could respond there.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#118?email_source=notifications&email_token=AACYTCZ2ZEXFPTAEZ4NIKELQ2IA5LA5CNFSM4DWWE4X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHTFH7A#issuecomment-568742908>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACYTC5T4IFZR225B45SGITQ2IA5LANCNFSM4DWWE4XQ>
.
|
May this configure helps you? ;; If a symbol or phrase is selected, use it as the initial query.
(setq helm-swoop-pre-input-function
(lambda ()
(if mark-active
(buffer-substring-no-properties (mark) (point))
""))) This pre-input-function fill selected string if mark active. |
Similar to many other softwares (e..g, Chrome), when we initiate word search by Ctrl-F, the pre-input is pre-selected so that we can replace it by simply typing a new keyword, or append new string to it by first pressing right-arrow key. Can we have the same behavior in helm-swoop? Thanks.
The text was updated successfully, but these errors were encountered: