You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Add option to prevent accidentally moving folder #835
What would such a feature be? I'm not aware of any IDE (or other relevant software for that matter) with any special "feature" to prevent accidentally moving folders when dragging and dropping.
@atom/feedback What do we think about this? In general I'm against adding functionality like this. We definitely don't need more checkboxes for tiny stuff like this.
I'm fairly sure we can find a way to kill the drag and drop functionality via the init script (or perhaps via style tweaking)... I propose we find such a workaround and close this as wontfix.
I'd be open to making it harder to accidentally drag and drop things if we had an example of a situation that caused an accidental drag action. I think the best solution is to make drag and drop require a very deliberate action and make it very visible.
@miftahafina do you have an example of a situation that caused an accidental drag-and-drop action that we can reproduce?
For example when I use laptop without 2 fingers gesture to scroll, so I have to press the left click button (or double tap the touchpad) and drag the scrollbar manually. But, sometime I move the file into other folder accidentally.
I'm in agreement that more checkboxes isn't the right approach here. In addition to @lee-dohm's suggestion, perhaps we can maintain an operation history so you can "undo" in the tree view easily
It might could be combined with an init script to temporarily enable dragging by pressing cmd or so. Then you'd still be able to drag, just not as easy.
Reacted by Junaid Anwer, Nick, Joe Savage, Alex Hunley, Adrian Wilkins, Jesus Galvan, Jonah Groendal, mcorteel, Dennis Best, Farley Farley (yes, really) and 1 more
Reacted by Jesus Galvan, Dan Leininger, Kenn Blvnp and haxilla
Reacted by Jesus Galvan, Freddie, neumond, Gopal Patel and haxilla
@simurai I know this is an old issue, but I was just about ready to flip my desk over this time. I have developed a paranoia for these "instant drags" that occur sometimes without me really noticing. Sometimes I'll see a glimpse of the handle and not be sure if anything actually moved or not.. and end up having to sort through a rsync dry run against my backup partitions to be sure I didn't delete anything. Then just now I saw a popup saying "Cross device copying is not supported" in a little "instant drag" and I decided I was going to solve this once and for all, even if it meant writing a plugin or drinking myself into a coma. After digging around I came across this thread, before my drag and drop insanity got too out of hand.
Those three glorious lines of CSS are fantastic and I thank you sir.
Reacted by Junaid Anwer, Nick, Alex Hunley, Jesus Galvan and John Small
Reacted by simurai, Jesus Galvan, raylopro, Agonzit and John Small
Activity
thomasjo commentedon May 15, 2016
What would such a feature be? I'm not aware of any IDE (or other relevant software for that matter) with any special "feature" to prevent accidentally moving folders when dragging and dropping.
miftahafina commentedon May 15, 2016
Sorry, I mean 'option', not 'feature'.
[-]Add feature to prevent accidentally move folder[/-][+]Add option to prevent accidentally move folder[/+]thomasjo commentedon May 15, 2016
Just to be sure we're on the same page; you want an option to disable the drag and drop feature entirely?
miftahafina commentedon May 15, 2016
Yes, I want it.
But of course, I wish the 'drag-n-drop' is enabled by default.
thomasjo commentedon May 15, 2016
@atom/feedback What do we think about this? In general I'm against adding functionality like this. We definitely don't need more checkboxes for tiny stuff like this.
I'm fairly sure we can find a way to kill the drag and drop functionality via the init script (or perhaps via style tweaking)... I propose we find such a workaround and close this as
wontfix.lee-dohm commentedon May 16, 2016
I'd be open to making it harder to accidentally drag and drop things if we had an example of a situation that caused an accidental drag action. I think the best solution is to make drag and drop require a very deliberate action and make it very visible.
@miftahafina do you have an example of a situation that caused an accidental drag-and-drop action that we can reproduce?
miftahafina commentedon May 17, 2016
For example when I use laptop without 2 fingers gesture to scroll, so I have to press the left click button (or double tap the touchpad) and drag the scrollbar manually. But, sometime I move the file into other folder accidentally.
lee-dohm commentedon May 17, 2016
I feel like the answer to that is to make the scroll bar bigger when you're in that situation so that it isn't as easy to miss.
@simurai do you have any suggestions for how to do that? Is there a way to make the scroll bar grow on hover?
BinaryMuse commentedon May 17, 2016
I'm in agreement that more checkboxes isn't the right approach here. In addition to @lee-dohm's suggestion, perhaps we can maintain an operation history so you can "undo" in the tree view easily
simurai commentedon May 18, 2016
Adding the following to
styles.lessshould work. But on OS X only if you enable "Show scroll bars: Always".You should be able to disable dragging with:
It might could be combined with an init script to temporarily enable dragging by pressing
cmdor so. Then you'd still be able to drag, just not as easy.[-]Add option to prevent accidentally move folder[/-][+]Add option to prevent accidentally moving folder[/+]lee-dohm commentedon May 19, 2016
Thanks so much for the solution @simurai 😀 Since dragging can be disabled by a simple
styles.lesschange, I'm going to close this.cstockton commentedon Oct 22, 2016
@simurai I know this is an old issue, but I was just about ready to flip my desk over this time. I have developed a paranoia for these "instant drags" that occur sometimes without me really noticing. Sometimes I'll see a glimpse of the handle and not be sure if anything actually moved or not.. and end up having to sort through a rsync dry run against my backup partitions to be sure I didn't delete anything. Then just now I saw a popup saying "Cross device copying is not supported" in a little "instant drag" and I decided I was going to solve this once and for all, even if it meant writing a plugin or drinking myself into a coma. After digging around I came across this thread, before my drag and drop insanity got too out of hand.
Those three glorious lines of CSS are fantastic and I thank you sir.
kennblvnp commentedon Nov 9, 2018
Hi @simurai ! What are the exact steps to do this??
rsese commentedon Nov 9, 2018
@kennblvnp - the steps @simurai mentioned are macOS specific and still seem to work (I just tried it out):
Application: Open Your StylesheetAs also mentioned, on macOS you need to have
System Preferences > General > Show Scroll Barsset toAlwaysfor this to work.If you have any trouble, please reach out on the message board or the Atom Slack.
kennblvnp commentedon Nov 10, 2018
@rsese thank you very much! but im using windows...