-
Notifications
You must be signed in to change notification settings - Fork 795
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
vscode: copy, paste, redo and undo through command palate #1677
Conversation
Makes these actions more reliable than the default of sending keypresses, especially if the user has rebound those keys or is in a different editor mode (eg with vim extension)
for more information, see https://pre-commit.ci
Same reason - more reliable, avoids conflicts with vim mode or user rebindings
Also added copy and paste while I'm there, for the same reason. |
On the community backlog session we discussed that this will make the experience worse for people who do not have the command server installed but at this point this should be a rare occurrence and the command server should essentially be considered a dependency if you are using visual studio code and Talon. |
Good to know. Would it be possible to make the whole class definition dependent on whether it can reach the server? Then the default edit shortcuts would be used as a fallback I also found a few other commands that would be useful to send via server, eg find. I'll open a PR for those, since the decision is to go with the command versions generally |
won't this break undo commands when the edit view isn't focused? |
@lunixbochs good point, we should probably revert this. @BlueDrink9 we did discuss that, @AndreasArvidsson should be able to clarify. |
Confused why undo would break outside the editor window - is it because ctrl+z does different commands outside the edit window? |
I presume the command server can tell us if the editor window is focused - maybe this just needs a bit more smarts |
I just tried |
If those cases work, the only example I can think of where it would break would be system open and save dialogs; these are modal. Sometimes you will paste a file name into those, for example. |
You're right. In the save dialog |
…lonhub#1677)" This reverts commit f34f73d.
Makes these actions more reliable than the default of sending keypresses, especially if the user has rebound those keys or is in a different editor mode (eg with vim extension)