-
Notifications
You must be signed in to change notification settings - Fork 24
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
Feature: add a “move” event? #214
Comments
Is this inspired from some other tool where you can move elements this way? I'm not familiar with this combo. But generally we're open to the idea. There is a PR on the way regarding the switch event to allow for some more natural cursor interaction when switching between blocks. It probably makes sense to build your work from that or wait until we merge it in the coming days. |
It’s not. I’m just looking for a comfortable way to move paragraphs in a document up/down. Click-and-drag works already, but the grip icon doesn’t seem to work for users. Holding Alt seems nice and unintrusive, although the actual key should probably be configured (even disabled in the default config, in which case the “move” event wouldn’t fire).
Do you have an ETA for that PR? It would probably make sense for me to wait and build on top of that? |
It's merged now :) |
Great, thank you! Also, I just noticed that the Lines 511 to 514 in 8e477fa
|
Yes. That's a relic. |
Lucky me, I’ve repurposed it for now 👍🏼 |
Actually, vscode is using |
I guess we can close this for now |
Dang, I didn’t know! (Well, I barely use VS Code anyway.) But yes, just tried it out and that’s exactly how I wouldn’t say it’s unintuitive — I got used to it quickly 😉
Bummer. Well, I’ll just keep it in my fork… But in that case, you might want to remove the |
Oh, we could implement if you really want to. But at the moment it's also conflicting with jumping to the end of a block. I'm not really a fan to change the default behavior. |
I'd rather bind |
@marcbachmann, well if you want I can create a PR from my local change and you can take a look. If it’s too invasive and not too useful we can always close later…
And on Windows that’d be |
yes |
I think it would be useful (at least for my use case) to have a “move” event, similar to the current
switch
event. It fires when the user holds e.g. the Alt key together with the arrow up/down key at the top/bottom of the element, thus indicating that the element should be moved up or down.If you’re open to that, then I’d supply a PR.
The text was updated successfully, but these errors were encountered: