-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
prompt add a shortcut c-s
to pick a word under cursor. command search
make histories as completions.
#831
Conversation
Oh, I don't think I have seen this in other text editors but seemed like an interesting idea. But wouldn't a history completion be more useful? Like fish. |
In vim/neovim, we can use |
d1c0fff
to
a40d7e6
Compare
It seemed to only complete the word under the cursor. I doubt I am gonna need it. What is your use case? |
I'm still thinking about this, it seems similar to what you can do with |
My main purpose is for global search. It also reduces the keys inputed on document search. |
a40d7e6
to
7ee9952
Compare
c-s
to pick a word under cursor. command search
make histories as completions.
Can you please update the book for this key as well? Also, can also add a comment there that this will probably be changed to |
Add completions to search Add c-s to pick word under doc cursor to prompt line
7f1a940
to
26eabd6
Compare
Already add it to book |
Sorry for the delay, I will test the PR later today! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good to me. Only left some minor text fix on the doc.
0d718cc
to
719099c
Compare
Co-authored-by: Ivan Tham <pickfire@riseup.net>
helix-term/src/commands.rs
Outdated
true | ||
} | ||
}) | ||
.take(20) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we limit the amount of items? The rendering UI will already limit it to a maximum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may affect performance When completions computed compete_fn with clone is large.
I have changed to 200. Do you think it need to cancel limit?
Like title
ui prompt add a shortcut to pick a word.
Command
search
make histories as completionsThe
global search
currently has no completions because it does't have histories register.