BoostNote-App
BoostNote-App copied to clipboard
Can't use ctrl-c to copy text in Vim binding mode
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
- Add a copy to clipboard to existing
ctrl+cshortcut - Change as to copy into clipboard on yank.
- Custom keybinding maybe, I personally prefer use
Escinstead ofctrl+cto exit insert mode, in old Boostnote you can copy text withctrl+cbut it also exit insert mode, which is a little annoy for me.
Steps to reproduce
- insert some text in Vim insert mode, select some text, try press ctrl-c to copy them into clipboard
- exit from vim insert mode, select some text, try press
yto 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)
boostio ($20.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
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.
@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?
@boostio has funded $20.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.