-
Notifications
You must be signed in to change notification settings - Fork 298
Conversation
browser/src/Input/KeyBindings.ts
Outdated
@@ -79,6 +80,7 @@ export const applyDefaultKeyBindings = (oni: Oni.Plugin.Api, config: Configurati | |||
input.bind("<c-,>", "oni.config.openConfigJs") | |||
|
|||
if (config.getValue("editor.clipboard.enabled")) { | |||
input.bind("<c-x>", "editor.clipboard.cut", isVisualMode) |
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.
<c-x>
in visual mode decrements an integer value under the cursor
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.
Thanks for the heads up, I'll remove this part
Codecov Report
@@ Coverage Diff @@
## master #2515 +/- ##
==========================================
- Coverage 43.6% 43.57% -0.03%
==========================================
Files 351 351
Lines 14176 14186 +10
Branches 1845 1846 +1
==========================================
+ Hits 6181 6182 +1
- Misses 7758 7767 +9
Partials 237 237
Continue to review full report at Codecov.
|
I can give this a test on a clean Windows VM to check if a base config works with this new method. That way, if people have an issue with win32yank, its most likely their config. |
@psxpaul seems the large paste test is repeatedly failing on windows 😭 we might need the solution in the snippet you pasted for windows |
I've not had a chance to test this yet, but I've set a reminder to do it tonight, so should be able to test it then. I'll also give it a test on my normal dev box, see if its all Windows or just the CI / base config versions of Oni. |
This is pretty odd....I ran the CI tests locally, it passed fine twice. I started Oni, pasted and copied a bunch, all good. Then I tried it one last time, and now there is no clipboard provider registered, Even weirder, I reloaded Oni (Ctrl-Shift-P -> Reload) and |
Thanks for trying it out @CrossR. I got a Windows VM setup and managed to get the win32yank workaround working. I wasn't sure if this workaround should only be applied for windows machines, but the approach seems to work fine on my Mac and Linux machines. |
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.
@psxpaul thanks for all the work on this 👍, glad its working crossplatform now
This PR might hame created a issue when pasting on command. Say I start a search with |
As @josemarluedke mentioned [here](#2515 (comment)), pasting in command line mode was broken with #2515.
This is a fix for some of the issues raised in #2414. One thing to note - there was some question as to whether win32yank works for everyone. I did find a possible workaround for that, if it's still an issue:
I don't have a windows box to test this on, so perhaps we can add this code to
NeovimEditorCommands. pasteContents
later if needed.