You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just so I understand correctly, are you suggesting having AcceptSuggestion be also triggered when you hit the End Key? If so you can bind AcceptSuggestion to End key to get this behavior. Set-PSReadLineKeyHandler -Chord Enter -Function ValidateAndAcceptLine
This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.
microsoft-github-policy-service commented on Jul 17, 2023
This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.
I believe the ask is to make End key complete the suggestion in addition to its current behavior -- when the cursor is not at the end of the current text, End moves the cursor to the end of the text; when the cursor is at the end, End accepts the current inline suggestion.
Activity
StevenBucher98 commentedon Jul 10, 2023
Just so I understand correctly, are you suggesting having
AcceptSuggestionbe also triggered when you hit theEndKey? If so you can bindAcceptSuggestiontoEndkey to get this behavior.Set-PSReadLineKeyHandler -Chord Enter -Function ValidateAndAcceptLinemicrosoft-github-policy-service commentedon Jul 17, 2023
This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.
microsoft-github-policy-service commentedon Jul 17, 2023
This issue is closed because it has been marked as requiring author feedback but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.
daxian-dbw commentedon Jul 17, 2023
I believe the ask is to make
Endkey complete the suggestion in addition to its current behavior -- when the cursor is not at the end of the current text,Endmoves the cursor to the end of the text; when the cursor is at the end,Endaccepts the current inline suggestion.terlar commentedon Jul 24, 2023
Sorry, I completely missed that this ticket had replies and then I was travelling.
Yes, that interpretation is correct, basically how we have this same behavior for
ForwardCharand many other operations to move forward.I do already have a workaround:
However, I do think it should be the default behavior, hence me opening this issue.
daxian-dbw commentedon Jul 24, 2023
Close as a duplicate of #3705