Skip to content
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

fix: insert not replace for insert at cursor #1118

Merged
merged 3 commits into from
Sep 20, 2023
Merged

fix: insert not replace for insert at cursor #1118

merged 3 commits into from
Sep 20, 2023

Conversation

abeatrix
Copy link
Contributor

Reported by @toolmantim, current insert at cursor button uses replace instead of insert

fix: Use insert instead of replace for insert at cursor button

  • Change edit.replace to edit.insert for code block insertion button
  • Insert completion text at selection start instead of replacing by range

Test plan

  • start cody from this branch
  • use the insert at cursor button on code block

Before

current selection will be replaced by code block insertion on button click

After

code block will be inserted at the start of the current cursor, and current selection will not be replaced

insert-fix

@abeatrix abeatrix requested review from toolmantim and a team September 19, 2023 22:57
@abeatrix abeatrix merged commit cdc3fde into main Sep 20, 2023
10 checks passed
@abeatrix abeatrix deleted the bee/fix-insert branch September 20, 2023 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants