[GH-ISSUE #773] Can't use ctrl-c to copy text in Vim binding mode #403

Open
opened 2026-03-03 00:20:53 +03:00 by kerem · 3 comments
Owner

Originally created by @HineBlack on GitHub (Jan 27, 2021).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/773

Issuehunt badges

Current behavior

I just switched from old Boostnote, and found I can's use ctrl+c to copy text into clipboard, which has been solved in old Boostnote issue #646.

Expected behavior

  1. Add a copy to clipboard to existing ctrl+c shortcut
  2. Change as to copy into clipboard on yank.
  3. Custom keybinding maybe, I personally prefer use Esc instead of ctrl+c to exit insert mode, in old Boostnote you can copy text with ctrl+c but it also exit insert mode, which is a little annoy for me.

Steps to reproduce

  1. insert some text in Vim insert mode, select some text, try press ctrl-c to copy them into clipboard
  2. exit from vim insert mode, select some text, try press y to yank them, but it's not show in clipboard

Environment

Desktop/Web

  • Boost Note.next version: 0.12.4
  • OS version and name: Windows 10

IssueHunt Summary

Backers (Total: $20.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

Originally created by @HineBlack on GitHub (Jan 27, 2021). Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/773 <!-- Issuehunt Badges --> [<img alt="Issuehunt badges" src="https://img.shields.io/badge/IssueHunt-%2420%20Funded-%2300A156.svg" />](https://issuehunt.io/r/BoostIO/BoostNote-App/issues/773) <!-- /Issuehunt Badges --> # Current behavior <!-- Let us know what is currently happening. Please include some **screenshots** with the **developer tools** open (console tab) when you report a bug. If your issue is regarding the old Boostnote, please open an issue in the old repo 👉 https://github.com/BoostIO/Boostnote/issues. --> I just switched from old Boostnote, and found I can's use `ctrl+c` to copy text into clipboard, which has been solved in [old Boostnote issue #646](https://github.com/BoostIO/Boostnote/issues/646). # Expected behavior 1. Add a copy to clipboard to existing `ctrl+c` shortcut 2. Change as to copy into clipboard on yank. 3. Custom keybinding maybe, I personally prefer use `Esc` instead of `ctrl+c` to exit insert mode, in old Boostnote you can copy text with `ctrl+c` but it also exit insert mode, which is a little annoy for me. # Steps to reproduce <!-- Please be thorough, issues we can reproduce are easier to fix! --> 1. insert some text in Vim insert mode, select some text, try press ctrl-c to copy them into clipboard 2. exit from vim insert mode, select some text, try press `y` to yank them, but it's not show in clipboard # Environment ## Desktop/Web - Boost Note.next version: 0.12.4 - OS version and name: Windows 10 <!-- Issuehunt content --> --- <details> <summary> <b>IssueHunt Summary</b> </summary> ### Backers (Total: $20.00) - [<img src='https://avatars3.githubusercontent.com/u/13612118?v=4' alt='boostio' width=24 height=24> boostio](https://issuehunt.io/u/boostio) ($20.00) #### [Become a backer now!](https://issuehunt.io/r/BoostIO/BoostNote-App/issues/773) #### [Or submit a pull request to get the deposits!](https://issuehunt.io/r/BoostIO/BoostNote-App/issues/773) ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/BoostIO/BoostNote-App/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds. </details> <!-- /Issuehunt content-->
Author
Owner

@Rokt33r commented on GitHub (Aug 20, 2021):

The issue is still existing in Windows and Linux. It works fine in macOS since its copying shortcut is using Super(Cmd) + C instead of Ctrl + C.

How to fix

Just like the below link, adding an extra key should fix the issue.

https://github.com/BoostIO/Boostnote/pull/649/files#diff-7890cda3f01d76c730b641b51aca870a682d84971add9f45e9e22fc9cac46dc1R88-R93

Adding the code above to here should fix this issue.

<!-- gh-comment-id:902372632 --> @Rokt33r commented on GitHub (Aug 20, 2021): The issue is still existing in Windows and Linux. It works fine in macOS since its copying shortcut is using `Super(Cmd) + C` instead of `Ctrl + C`. # How to fix Just like the below link, adding an extra key should fix the issue. https://github.com/BoostIO/Boostnote/pull/649/files#diff-7890cda3f01d76c730b641b51aca870a682d84971add9f45e9e22fc9cac46dc1R88-R93 Adding the code above to [here](https://github.com/BoostIO/BoostNote.next/blob/master/src/cloud/components/molecules/Editor/index.tsx#L626) should fix this issue.
Author
Owner

@Komediruzecki commented on GitHub (Aug 20, 2021):

@Rokt33r

But does that mean that ctrl+c cannot really be used as an exit? Since some users might want to use this shortcut instead of escape.

I suppose it would be best to add a custom keymap for a copy so that users can use the default copy in VIM mode but also change it if they prefer exiting with that shortcut (or unset it).

I can easily add this to local space since it already has the implementation of keymaps, but for cloud, probably once it's ported?
Or if we want the fix straight away, as suggested?

<!-- gh-comment-id:902782303 --> @Komediruzecki commented on GitHub (Aug 20, 2021): @Rokt33r But does that mean that `ctrl+c` cannot really be used as an exit? Since some users might want to use this shortcut instead of escape. I suppose it would be best to add a custom keymap for a copy so that users can use the default copy in VIM mode but also change it if they prefer exiting with that shortcut (or unset it). I can easily add this to local space since it already has the implementation of keymaps, but for cloud, probably once it's ported? Or if we want the fix straight away, as suggested?
Author
Owner

@issuehunt-oss[bot] commented on GitHub (Sep 14, 2021):

@boostio has funded $20.00 to this issue.


<!-- gh-comment-id:918960503 --> @issuehunt-oss[bot] commented on GitHub (Sep 14, 2021): [@boostio](https://issuehunt.io/u/boostio) has funded $20.00 to this issue. --- - Submit pull request via [IssueHunt](https://issuehunt.io/repos/74213528/issues/773) to receive this reward. - Want to contribute? Chip in to this issue via [IssueHunt](https://issuehunt.io/repos/74213528/issues/773). - Checkout the [IssueHunt Issue Explorer](https://issuehunt.io/issues) to see more funded issues. - Need help from developers? [Add your repository](https://issuehunt.io/r/new) on IssueHunt to raise funds.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#403
No description provided.